test(agc): lift the host import budget in the sparse dma-buf import test #6261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6261"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by EdouardSence on 2026-10-15T08:15:46Z.
What
agc_host_import_sparsefails onmainon a Linux host where/dev/udmabufis writable andudmabuf.size_limit_mbis raised to 8192, the setting the host import path needs for large titles:Why it fails:
RangeBytes()gives limit + 65 MiB = 8257 MiB here), and the range fromImportsALargeRangeAsOneSparseBufferstays live.HostImportForthen returnsnullptrbefore the sparse decision, so the failure cases never reach the step they test.size_limit_mbof 64 every range is 129 MiB and the test passes. Hosts without/dev/udmabufaccess skip it, which is likely why nobody reported it.The fix is one line: the test lifts the budget with
SetHostImportBudget, asBdaResourcesalready does. The budget is not what this test checks.#5390 edits other functions in this file and adds one more live import in
UnalignedOffsetStartsAtTheBlockBelow, so on the same host it hits this too. The hunks don't overlap.Tested
Based on
maindb81992c5. CachyOS Linux 7.2.9, GCC, RX 9070 XT (RADV Mesa 26.2.4), 32 GB RAM,udmabuf.size_limit_mb=8192,/dev/udmabufwritable:main,agc_host_import_sparsefails as shown above. It fails the same way ona050f856f, and passes there withAPS5_HOST_IMPORT_MIB=40000.host import sparse dma-buf tests passed).Not tested: other RAM sizes or the default
size_limit_mb, which needs root to change.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)Tested and written by Claude (AI assistant) on a contributor's machine.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:17:39Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/tests/HostImportSparseDmaBuf.cppcore/libs/prx/libSceAgcDriver/tests/HostImportSparseDmaBuf.cpp