Skip to content

selftests/asahi-m4: implement KVec::push_within_capacity in test-vm-slots.py - #4324

Closed
satchlj wants to merge 1 commit into
aurora-silicon:mainfrom
satchlj:satchlj/asahi-m4-vm-slots-push-within-capacity
Closed

satchlj wants to merge 1 commit into
aurora-silicon:mainfrom
satchlj:satchlj/asahi-m4-vm-slots-push-within-capacity

Conversation

@satchlj

@satchlj satchlj commented Dec 4, 2026

Copy link
Copy Markdown
Member

Tested: python3 tools/testing/selftests/drivers/gpu/asahi-m4/test-vm-slots.py (7/7 passed)
Risk: low — host selftest mock only; no kernel code changes

Summary

  • Implement KVec::push_within_capacity in tools/testing/selftests/drivers/gpu/asahi-m4/test-vm-slots.py matching the existing shims in test-command-stream.py and test-fence-signalling.py.
  • Fixes the Host tests/host-tests failure on main (asahi-m4: not ok 26 - test-vm-slots.py, error[E0658]: use of unstable library feature vec_push_within_capacity) introduced after 9ece2d8202d2 (drm/asahi: g16: start-full render UMA pool with 5 s idle shrink #3990) added a KVec::push_within_capacity call in drivers/gpu/drm/asahi/g16/vm.rs.

Verification

  • Reproduced error[E0658] on 9ece2d8202d2 before the change.
  • Ran python3 tools/testing/selftests/drivers/gpu/asahi-m4/test-vm-slots.py after the change: 7 passed; 0 failed.

…lots.py

Commit 9ece2d8 (PR aurora-silicon#3990) added a call to
KVec::push_within_capacity() in drivers/gpu/drm/asahi/g16/vm.rs.
test-vm-slots.py mocks KVec<T> as a wrapper that DerefMuts to
std::vec::Vec<T> without defining push_within_capacity(), so stable
rustc fails to compile the test harness with E0658
(vec_push_within_capacity).

Implement KVec::push_within_capacity() in test-vm-slots.py matching the
existing shims in test-command-stream.py and test-fence-signalling.py.

Signed-off-by: Satya Benson <satya@benson.earth>
@satchlj
satchlj requested review from a team as code owners December 4, 2026 14:21
@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Merge readiness at 325fb42c: not ready yet

Check Detail
CI at head ok 1 check passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 325fb42c, a Mac and a result in the PR body or a comment
Conflicts no merge conflicts with main: merge it in (no force push)
PR text no add 'one-way' or 'two-way' in Risk (guide)

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Thanks, this is the right shim. main already carries an identical KVec::push_within_capacity mock in test-vm-slots.py, from Dj's 194d13e5 ("selftests: asahi-m4: mock capacity-limited VM snapshot pushes"), which is why this branch now conflicts. Once main's host-tests run at 967fe021 finishes green, this PR can be closed as superseded.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Thanks for reproducing E0658. #4323 landed at 967fe02 and adds the same capacity check to the same fixture. Its exact-head host suite passed 1,197/1,197. Closing this parallel fix as superseded.

@satchlj
satchlj deleted the satchlj/asahi-m4-vm-slots-push-within-capacity branch December 4, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants