Repository navigation
test(agc): cover idle publication through dma-buf imports - #14330
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The exact-head source and test evidence show no blocking issue; the Linux pass and negative controls are author-run and independently checksum-verified, while the hosted Windows and labels jobs remain pending.
What I ran
Reviewed head ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da against base 26fa1212b82f76dd49cf12d65e445d6ff3e0844c; GitHub reports the PR open and mergeable. Environment: Debian GNU/Linux 12, Linux 6.1, Python 3.11.2, GCC 12.2.0. No project build or local C++/CTest run was performed. I inspected the diff and test registration, ran the repository no-build precheck and stack check, queried hosted CI, and verified the published Linux evidence archive and its internal checksums.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14330 --output-dir /tmp/anyps5-pr-precheck-14330
git diff --check 26fa1212b82f76dd49cf12d65e445d6ff3e0844c...ffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da
python3 tools/pr_stack_check.py 14330 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-14330/stack-manual
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-14330/head-ffe30238a4ad-34a125e2 --json core/libs/prx/libSceAgcDriver/tests/Recorder.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_driver_recorder_tests.cmake
python3 tools/pr_overlap.py --repo boykopovar/AnyPS5 --branch refs/review/session-20261101/14330 --jobs 4
gh pr checks 14330 -R boykopovar/AnyPS5
sha256sum /tmp/anyps5-pr-14330/idle-publish-dmabuf-main26fa-ffe3023-linux-20261101.tar.gz
(cd /tmp/anyps5-pr-14330/artifact && sha256sum -c SHA256SUMS)Results
| Check | Result |
|---|---|
| Diff whitespace | Passed; git diff --check exited 0 with no output. |
| Conventions and PR template | Passed in the precheck. |
| Test registration | Confirmed manually: agc_idle_publish_dmabuf_wait is registered under the Linux CMake condition, with skip code 77 and a 30-second timeout. |
| Test-quality heuristic | The script flagged the shared Recorder.cpp as possibly unregistered; this is a false positive because the test executable is registered from that source in agc_driver_recorder_tests.cmake, and the new CTest entry is present there. |
| Dependency/current-main preview | Passed; stack check reports a clean merge preview against current main, no declared dependency, and unchanged heads. |
| Overlap helper | Could not complete: pr_overlap.py stopped on Invalid \\uXXXX escape while parsing its GitHub response. The PR includes an author-provided shared-file overlap audit; I did not independently reproduce that full scan. |
| Precheck helper availability | Partial failure unrelated to the PR: its isolated checkout lacks the workspace-only tools/pr_abi_audit.py and tools/pr_test_quality.py. The precheck’s conventions, diff, and live stack checks passed; I ran the local test-quality helper separately and inspected its finding. |
| Author-provided Linux tests | Archive hash matched the GitHub release digest (30a9f2137977bd405ee74e56a602263c8ce054c2b9acb9d192c4bddb556173e1); every internal archive hash passed. The archive identifies main 26fa1212b82f and candidate ffe30238a4ad, with 4/4 baseline and 5/5 candidate groups passing and zero skips/VUIDs. These tests were not run by me. |
| Author-provided negative controls | In the verified archive, disabling the idle wait failed at the intended idle-publication assertion; making non-idle calls wait failed at the intended non-idle assertion. These controls were not run by me. |
| Hosted CI | At recheck, conventions, report, eligibility, intake, and library-portability passed; Windows and labels were pending; Linux, register-context, relinker, relinker-asan, and write-watch were skipped. |
| Local build/CTest | Not run; this is the initial no-build review. |
Selected unedited output
tools/check_conventions.py from the precheck:
All conventions checks passed.
pr_test_quality.py:
{
"findings": [
{
"path": "core/libs/prx/libSceAgcDriver/tests/Recorder.cpp",
"line": 1,
"kind": "possible-unregistered-cpp-test",
"message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
}
],
"negative_control_candidates": [],
"limits": [
"Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
"A test that passes against base is not by itself proof that the PR test is inadequate.",
"Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
]
}Verified author-run CTest summaries:
100% tests passed, 0 tests failed out of 4
Total Test time (real) = 0.16 sec
100% tests passed, 0 tests failed out of 5
Total Test time (real) = 0.21 sec
Verified author-run negative-control failures:
AGC graphics: the idle flush returned before its dma-buf publish completed
1/1 Test #1654: agc_idle_publish_dmabuf_wait .....***Failed 0.10 sec
AGC graphics: the non-idle dma-buf publish was waited
1/1 Test #1654: agc_idle_publish_dmabuf_wait .....***Failed 0.06 sec
Hosted checks at the time of review:
conventions pass
labels pending
report pass
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping
windows pending
eligibility pass
intake pass
library-portability pass
Negative control
| Assertion | Change made to code under test | Did the new test fail? |
|---|---|---|
| Idle flush waits until the dma-buf publication is complete | Author disabled idle waiting in waitForIdlePublish |
Yes, at the idle flush returned before its dma-buf publish completed (author-run; archive verified, not rerun here). |
| Non-idle flush stays pending until recorder sync | Author changed non-idle calls to wait too | Yes, at the non-idle dma-buf publish was waited (author-run; archive verified, not rerun here). |
Findings
Blocking
None found in the reviewed source or supplied exact-head test evidence.
Non-blocking
Hosted Windows and labels checks were still pending when checked. The hosted Linux and specialized jobs were skipped. The author’s Linux GPU run is strong supporting evidence but is not an independent run by me; I did not build or run CTest locally. The repository overlap helper could not parse its GitHub response, so I relied on the PR’s attached overlap audit for that part.
Sources
- New idle-publication test at the reviewed head
- Linux CTest registration at the reviewed head
- Author-provided positive and negative test logs
- Hosted Windows job, hosted Linux job, hosted conventions job
Not verified
I did not compile or run the Linux C++ tests, reproduce the author’s GPU test, run a full suite, test other operating systems, or verify console behavior. Hosted Windows was pending; hosted Linux and specialized CI jobs were skipped.
|
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.
|
✅ NVIDIA GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 346 tests)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
Windows check of exact head
|
…tive-9601 fix(libSceVoice): report inactive input voice activity
…id-base fix(libc): reject an invalid _WStoul base like Dinkumware instead of …
…internal-9528 feat(libSceLibcInternal): declare 149 PS5 3.20 round three exports
…d-shared-scratch fix(agc): reuse one tiled and one linear texture upload scratch per recorded batch
…ource feat(libSceAvPlayer): read progressive media over HTTP
…afe-bcmp feat(libc): implement timingsafe_bcmp
…-condattr-getclock-null-output feat(libkernel): throw for a null pthread_condattr_getclock output
…ventory-exports-20261030 feat(gnm): add debug reset inventory export
…ologue-main-20261029 fix(agc): snapshot host shader prologues before frame replay
…port-coherence feat(libSceAgcDriver): import scattered direct memory as a dma-buf run list and probe its coherence
…a34015 feat(libc): export _FDsign/_Dsign like MSVC CRT (PPSA34015)
…s-pinning-release fix(agc): retire the window imports that pin a range a guest unmap waits for
…egistry-scan perf(libc): start the guest allocation overlap queries at the range that touches the address
test(libSceVideoOut): cover the guest mouse button bits
…locks perf(agc): cross uniform runs of cached guest pages 64 pages per load
…-main2fab fix(agc): render layered mesh targets within device limits
…capture-on-change fix(agc): prepare a draw or dispatch again when the memory it captured changed before it was recorded
…directory-bounds fix(tools): bound PE audit directories by optional header size
…nding-events fix(libkernel): bound equeue pending events
…s-libs fix: clear GCC warnings in the AGC driver and two tests
…tovers-and-error-paths feat(libs): the Hmd2 reprojection session
fix(shader): split scalar-address descriptor phis
…justment fix(agc): bind a V# of exactly the range limit within the limit
…oltenvk fix(agc): skip the pixel interlock test where BDA atomics are not atomic
test(libc): exercise division returns through patched PRX
…-register-stack docs(debt): give the stack bounds of sceCoredumpRegisterCoredumpHandler and what titles pass
|
@MarcZX10 Refreshed the reviewed test onto main The conflict was an adjacent CLI dispatch insertion in Fresh Linux/RX 6650 XT/RADV validation: main's five common import/queued-write checks pass; the merge passes those five plus the DMA-buf idle-publication regression (5/5 main, 6/6 change; zero skips, zero VUIDs). The common selection includes Fresh logs, JUnit, exact pins and resolved diff, SHA-256 AI-assisted: yes. |
✅ NVIDIA GPU test: passedPR head
Failing on main too (3, not counted against this PR)Validation IDs already present on main (4 IDs in 357 tests)Skipped (1)ReproduceAutomated build and test on a contributor's NVIDIA machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (5, not counted against this PR)Validation IDs already present on main (4 IDs in 361 tests)Skipped (4)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
…mits check_skips accepts a host-import limit but not the two messages this test printed on a host without dma-buf imports or /dev/udmabuf. The conditions are unchanged.
|
Hi @JJenkx, Thanks for the idle-publish wait test. On a host without dma-buf imports it printed "skipped, unit shadows or dma-buf imports are unavailable", and on a host without |
What
Adds a Linux regression for idle unit-shadow publication through an actual watched DMA-buf import. It allocates 512 KiB of direct memory, checks that the import really uses DMA-buf, fills two 64 KiB shadow units on the GPU, and verifies that an idle flush finishes before returning. CPU stores made immediately afterward must survive a later recorder sync; every other byte must retain its expected value. A non-idle label flush must remain pending until sync and then publish its full unit.
This complements #12158: that PR handles the existing forced host-pointer-watch fixture on drivers whose GPU reads look like CPU writes. This PR leaves that fixture byte-identical and exercises RADV's working DMA-buf path with the default probe policy. Unsupported Linux DMA-buf/write-watch capability or an inaccessible /dev/udmabuf produces skip 77; a purported DMA-buf path falling back to another import fails the test. The new CTest is Linux-only, with a 30 s timeout.
No production code or runtime behavior changes. No title or performance gain claim.
Tested
Current head
0dc8e3f969fc67f730a707939dabf62c89d1742dmerges main4f64f81ef7b4bca975b4b9f3dfd15dfff56f716fwith the original PR headffe30238a4ad2bf9ca8c99d3db2d1ce0511e08da, without rebasing or force-pushing. The conflict was between the new window-import-unmap dispatch and this PR's idle-publication dispatch; both are retained. The DMA-buf fixture is byte-identical to the reviewed head; there are no production changes against main.Linux 7.2.11-arch1-1, Ryzen 9 7950X, RX 6650 XT/RADV Mesa 26.2.6, Release, bundled SPIRV-Tools ON, independent source/build and pinned dependency worktrees. Both sides built
agc_driver_recorder_tests.Matched common checks:
agc_host_import_unmap,agc_host_import_retirement,agc_sparse_run_import,agc_queued_write_groups, andagc_window_import_unmap. Main 5/5 pass; change 5/5 plus the newagc_idle_publish_dmabuf_waitpass. Zero skips and zero VUIDs on both. Both complete harnesses used the shared GPU FIFO andANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation ctest -V. Actual validation-layer insertions: 4 on main, 5 on the change; queued-write-groups is CPU/mock. No requested-layer-missing messages. Conventions and whitespace checks pass.Fresh verbose logs, JUnit, exact diff and receipts, SHA-256
77812c50d9102e8e918703a1e506e62372d4201b2af24ecaade61ff6ce5444da.Original positive/negative controls and overlap audit, SHA-256
30a9f2137977bd405ee74e56a602263c8ce054c2b9acb9d192c4bddb556173e1, remain historical evidence atffe30238a4. At that head, disabling the idle wait failed atthe idle flush returned before its dma-buf publish completed; making non-idle calls wait failed atthe non-idle dma-buf publish was waited. Neither negative control is claimed rerun on this merge. The earlier Windows check also retains its original exact head. No new Windows/macOS, full-suite, title or performance run is claimed. #12158 covers the independent forced host-pointer-watch limitation; no dependency on that PR is introduced.0dc8e3f969merged ontomain1d91f29, RTX 2000 Ada (driver 595.99.02), Ubuntu 26.04 container: 1,495 passed, 3 failed that also fail onmain(0 new), no new validation IDs againstmain.0dc8e3f969merged ontomaina4eca2a, Radeon RX 6300 (RADV NAVI24, Mesa 25.2.8): 1,512 passed, 6 failed (0 new: 5 also fail onmain, 1 unstable onmain), no new validation IDs vsmain(431 tests on the GPU).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)