Repository navigation
Conversation
…rse queue of its own A range imported at map time is bound into the chunk imports only on a device with a queue family of its own that binds sparse memory: without one the bind would need the GPU mutex, so createSparseDmaBufImport declines and the range takes a udmabuf of its own, as the "Sparse dma-buf imports" debt entry says. lavapipe has a single queue family, so agc_driver_sparse_dma_buf_straddle failed there whenever /dev/udmabuf could be opened. The range inside one chunk is still checked first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
Nothing blocks this change; the queue check matches the import path’s requirements and preserves the straddling assertion on devices that can bind it.
What I ran
Reviewed head 5ce83ccd51da53680edbc24d6b53b029e35b8407 and the changed test plus its import-path and context definitions. No commands or tests were run.
Results
| Check | Result | Note |
|---|---|---|
| Changed-line review | passed | All six added lines read |
| Hardware and automated checks | not run | Results in the PR description are author-reported |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The reported GPU runs, source-scanning tests, and checks were not independently run. The only changed file, core/libs/prx/libSceAgcDriver/tests/execution/SparseDmaBufStraddle.cpp, was read in full; no files were excluded by the manifest.
To get this to a good state
Nothing is required.
|
Closing: the test this PR adjusts left |
What
agc_driver_sparse_dma_buf_straddle(new with #23272) fails on lavapipe whenever/dev/udmabufcan be opened:The test imports its ranges at map time (
ImportGuestMemory(..., false), without the GPU lock).createSparseDmaBufImportbinds such a range only on a device with a queue of its own that binds sparse memory. Without one, the bind would need the GPU mutex, so it returns early and the range takes a udmabuf of its own, as the "Sparse dma-buf imports" debt entry says ("when it is imported at map time on a device with no second family"). lavapipe has a single queue family, so the straddling range is never chunk-bound there. The check holds on RADV, which has a second family, and NVIDIA and the Intel HD 630 already skip the test (no dma-buf import, no sparse binding).The test now skips after the range inside one chunk has been imported, checked and filled, when the device has no sparse queue of its own (
sparseQueue/sparseQueueMutexof the context, the conditioncreateSparseDmaBufImportuses):skipped, the device has no queue of its own that binds sparse memory, so a range imported at map time is not bound into the chunk imports. On a device with one, nothing changes.Tested
Linux Mint 22.3, kernel 7.0.0-38, GCC 13.3.0, Release, under Xvfb, with
/dev/udmabufaccess, head onmain0626a8334f. lavapipe from Mesa 26.0.8 (the release tarball, sha256 as in its release notes) selected withVK_DRIVER_FILES.mainthe device has no sparse bindingthe device does not import shared memory through dma-bufAPS5_SPARSE_DMA_BUF_IMPORTSatprobe,onoroff. The two PRs touch different files.check_skips.pyaccepts every skip.VK_LOADER_DEBUG=layer, on llvmpipe and lavapipe 26.0.8: the loader inserts the layer, and noVUID-,SYNC-HAZARD-orUNASSIGNED-message appears.public_headers, the conventions, checker and tools tests, 318) pass.check_conventions.py,check_test_registration.py,check_main_sync.py(merges cleanly) andcheck_compile.pyare clean.pr_overlap.py --branch: no overlap with open pull requests (2 share a file and merge cleanly).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code