test(agc): skip the sparse dma-buf import tests when udmabuf size_limit_mb is above 1024 #5950
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5950"
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 mrfelek on 2026-10-14T16:51:02Z.
What
agc_host_import_sparseandagc_driver_sparse_dma_buf_importbuild a range one chunk above udmabuf'ssize_limit_mb. When the limit is set very high (for example to its maximum, the workaround for one dma-buf import larger than the default 64 MB, #5329), that range is petabytes andmmapfails, so the two tests fail instead of testing anything:cannot reserve the guest rangeandsparse import: cannot map the backing file. The driver does not take the sparse path for such a limit either, so there is nothing to exercise.Both tests now skip (exit code 77, which ctest reports as skipped) when
size_limit_mbis above 1024. The check sits right after the/dev/udmabufaccess check, so a host at the default 64 MB, or any limit up to 1 GiB, runs them exactly as before.Tested
Ubuntu 26.10, GCC 15.3.0, RTX 3080 Ti (NVIDIA 615.71.09), Release, on main
e34c47921, with/sys/module/udmabuf/parameters/size_limit_mb= 2147483647.ctestrun of main: 1125 of 1127 passed, these two failed).ctest -R "agc_host_import_sparse|agc_driver_sparse_dma_buf_import"reports both as skipped.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryAI-assisted; the runs are from my machine.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:12:09Z.
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/execution/SparseDmaBufImport.cppcore/libs/prx/libSceAgcDriver/tests/HostImportSparseDmaBuf.cppcore/libs/prx/libSceAgcDriver/tests/execution/SparseDmaBufImport.cppImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T12:05:57Z.
Checked the diff against the two tests (
UdmabufLimitBytes()is already defined in both files, skip placed right after the/dev/udmabufaccess check, exit codes 77 /VulkanTestSkipped). Built both targets on current main plus this PR and ran them at the default 64 MB limit: both pass unchanged. Merging.