Repository navigation
Conversation
…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>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
Contributor
|
Thanks, this is the right shim. main already carries an identical |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
KVec::push_within_capacityintools/testing/selftests/drivers/gpu/asahi-m4/test-vm-slots.pymatching the existing shims intest-command-stream.pyandtest-fence-signalling.py.Host tests/host-testsfailure onmain(asahi-m4: not ok 26 - test-vm-slots.py,error[E0658]: use of unstable library feature vec_push_within_capacity) introduced after9ece2d8202d2(drm/asahi: g16: start-full render UMA pool with 5 s idle shrink #3990) added aKVec::push_within_capacitycall indrivers/gpu/drm/asahi/g16/vm.rs.Verification
error[E0658]on9ece2d8202d2before the change.python3 tools/testing/selftests/drivers/gpu/asahi-m4/test-vm-slots.pyafter the change:7 passed; 0 failed.