test(agc): skip the arena host hole checks when no host region lies in the arena #4660
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4660"
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 kr4y4 on 2026-10-12T18:15:19Z.
What
agc_driver_graphicssometimes fails on Windows withwrite-watched arena contained no host exclusion to test, fromhostWriteWatchExclusionTestsinBdaResources.cpp(#3594). The check needs a host region inside the guest arena, and whether there is one depends on the process's address layout.mainruns. Its host regions are whatever the process had already mapped in [0x2_0000_0000, 0xFC_0000_0000). In my runs they were 2 MiB private reservations with a few committed pages, at addresses that changed with every start.Arena()(a local change, not part of this PR) over 200 starts ofagc_driver_graphics_tests.exeonmain2a5eca11c. 5 starts had no host region; the others had 14 to 16. Those 5 starts fail the check.The check now prints that the arena host holes were not tested when there is no host region, as the file already does when write watch or the arena is unavailable. When there is one, which is most starts, it runs as before. The host heap checks after it always run.
Tested
Windows 11 (26200), WinLibs GCC 15.2.0 r7, Release, CI configure flags,
main2a5eca11c, an RTX 4070 Laptop GPU and an Intel Raptor Lake-S iGPU.agc_driver_graphicstwice on the RTX 4070 in my runs of two unrelated pull requests, which don't touch the arena. On plainmainit passed 25 of 25 runs on each GPU, which fits a rate of about 2.5 %.agc_driver_graphicspasses on both GPUs with--repeat until-fail:3.agc_driver_graphicspasses on both GPUs.tools/check_conventions.py --base origin/mainpasses, andtools/pr_overlap.pyfinds no overlap with open pull requests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T20:35:38Z.
Windows test of #4660 (MinGW GCC, Release, Windows 10, RTX 4080 SUPER,
agc_driver_graphicsthrough ctest, main0428328b7+ this PR):arena host holes not testeddid not appear in any of them, so the "no host region" case was not hit and the new branch itself was not exercised in my runs.main, same machine: earlier today 2 failures in 10 runs (3e0e01f35), and 0 failures in 23 later runs (44ab0c39e); I stopped the later series at 23 because a game was started. Together 2 in 33. Across all the failures I saw today (3 including one on the line-strip branch), I read the final message in one case only: it waswrite-watched arena contained no host exclusion to test, as this PR describes; for the others I only saw thevkAllocateMemorylines, so I can't say they were the same failure.[gpu] host import ... failed at vkAllocateMemory (-2); falling back to copieslines also appear in the passing runs (30 of 30 here, 23 of 23 onmain), so they are not related to this failure.Not tested: the skip path was not forced here.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T20:44:16Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/tests/BdaResources.cppL807-829Imported from boykopovar/AnyPS5. Originally posted by kr4y4 on 2026-10-12T21:08:10Z.
Closing in favor of #4746, which reserves the host hole so the check runs on every start instead of being skipped. The Windows results are in https://github.com/boykopovar/AnyPS5/pull/4746#issuecomment-6132622925.
Written with AI assistance.
Pull request closed