NVIDIA: agc_driver_bda_span_reads and agc_driver_pixel_interlock lose the device since #4759 (RTX 4070 Laptop, driver 596.36) #4975

Closed
opened 2026-10-13 07:00:33 +00:00 by Zurisen · 3 comments
Zurisen commented 2026-10-13 07:00:33 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Zurisen on 2026-10-13T07:00:33Z.


Since #4759 (e51428bf2, "split a BDA span read's in-place loads from its fallback") two tests lose the device on an RTX 4070 Laptop GPU with driver 596.36, every run:

Test 226b40db0 (e51428bf2^1) e51428bf2 (#4759) main ea2bbefb2
agc_driver_bda_span_reads passes 3/3 fails 3/3 fails 5/5
agc_driver_pixel_interlock passes 3/3 fails 3/3 fails 5/5
agc_driver_bda_span_reads:
[gpu] recorded batch still running on the GPU after 5 s
...
[gpu] recorded batch still running on the GPU after 20 s
vkDeviceWaitIdle: Vulkan result -4        (vkWaitForFences recorder: Vulkan result -4 in the full-suite run)

agc_driver_pixel_interlock:
vkDeviceWaitIdle: Vulkan result -4

Windows 11 Home (26200), RTX 4070 Laptop GPU (Ada, driver 596.36 / 32.0.15.9636), WinLibs GCC 15.2.0 r7, Release, ANYPS5_REQUIRE_VULKAN=1, each commit built and the two tests run alone. Both passed in a full suite on main 2a5eca11c the day before. @Amoenus reported the same pair failing on an RTX 5080 (driver 610.62) on #3291 after #4759 was merged.

#4759 changed only the control-flow shape of read_bda_span, and its commit message records an RTX 4070 Laptop GPU on driver 616.92 passing with either shape. Together:

GPU, driver shape before #4759 shape from #4759
RTX 3060 / RTX 4060 Laptop 591.86, RTX 5060 Linux 590.48 (#3291) hangs passes
RTX 4070 Laptop 616.92 (#4759 message) passes passes
RTX 4070 Laptop 596.36 (here) passes hangs
RTX 5080 610.62 (#3291 comment) not reported hangs

So each shape hangs some NVIDIA drivers. A shape that every listed driver runs, or an emission that avoids the divergent call into read_bda_dword_bytes altogether, seems to be what is needed; the open #4048 and #3655 change this code and may be worth checking against both groups.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5826019956 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4975). Originally posted by [Zurisen](https://github.com/Zurisen) on 2026-10-13T07:00:33Z. --- Since #4759 (`e51428bf2`, "split a BDA span read's in-place loads from its fallback") two tests lose the device on an RTX 4070 Laptop GPU with driver 596.36, every run: | Test | `226b40db0` (`e51428bf2^1`) | `e51428bf2` (#4759) | `main` `ea2bbefb2` | |---|---|---|---| | `agc_driver_bda_span_reads` | passes 3/3 | fails 3/3 | fails 5/5 | | `agc_driver_pixel_interlock` | passes 3/3 | fails 3/3 | fails 5/5 | ``` agc_driver_bda_span_reads: [gpu] recorded batch still running on the GPU after 5 s ... [gpu] recorded batch still running on the GPU after 20 s vkDeviceWaitIdle: Vulkan result -4 (vkWaitForFences recorder: Vulkan result -4 in the full-suite run) agc_driver_pixel_interlock: vkDeviceWaitIdle: Vulkan result -4 ``` Windows 11 Home (26200), RTX 4070 Laptop GPU (Ada, driver 596.36 / 32.0.15.9636), WinLibs GCC 15.2.0 r7, Release, `ANYPS5_REQUIRE_VULKAN=1`, each commit built and the two tests run alone. Both passed in a full suite on `main` `2a5eca11c` the day before. @Amoenus reported the same pair failing on an RTX 5080 (driver 610.62) on #3291 after #4759 was merged. #4759 changed only the control-flow shape of `read_bda_span`, and its commit message records an RTX 4070 Laptop GPU on driver 616.92 passing with either shape. Together: | GPU, driver | shape before #4759 | shape from #4759 | |---|---|---| | RTX 3060 / RTX 4060 Laptop 591.86, RTX 5060 Linux 590.48 (#3291) | hangs | passes | | RTX 4070 Laptop 616.92 (#4759 message) | passes | passes | | RTX 4070 Laptop 596.36 (here) | passes | hangs | | RTX 5080 610.62 (#3291 comment) | not reported | hangs | So each shape hangs some NVIDIA drivers. A shape that every listed driver runs, or an emission that avoids the divergent call into `read_bda_dword_bytes` altogether, seems to be what is needed; the open #4048 and #3655 change this code and may be worth checking against both groups.
Zurisen commented 2026-10-13 07:04:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Zurisen on 2026-10-13T07:04:19Z.


Same machine, main ea2bbefb2, 3 runs each:

agc_driver_bda_span_reads agc_driver_pixel_interlock
RTX 4070 Laptop 596.36 fails 3/3 fails 3/3
RTX 4070 Laptop 596.36, APS5_BDA_BYTE_READS=1 passes 3/3 passes 3/3
Intel Raptor Lake iGPU (ANYPS5_GPU=Intel) passes 3/3 (Intel has its own failures here)

So the hang is on the read_bda_span path and NVIDIA-specific; APS5_BDA_BYTE_READS=1 avoids it on this driver.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140206523 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4975#issuecomment-6140206523). Originally posted by [Zurisen](https://github.com/Zurisen) on 2026-10-13T07:04:19Z. --- Same machine, `main` `ea2bbefb2`, 3 runs each: | | `agc_driver_bda_span_reads` | `agc_driver_pixel_interlock` | |---|---|---| | RTX 4070 Laptop 596.36 | fails 3/3 | fails 3/3 | | RTX 4070 Laptop 596.36, `APS5_BDA_BYTE_READS=1` | passes 3/3 | passes 3/3 | | Intel Raptor Lake iGPU (`ANYPS5_GPU=Intel`) | passes 3/3 | (Intel has its own failures here) | So the hang is on the `read_bda_span` path and NVIDIA-specific; `APS5_BDA_BYTE_READS=1` avoids it on this driver.
Zurisen commented 2026-10-13 12:29:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Zurisen on 2026-10-13T12:29:46Z.


#5022 fixes it here. On main afbc22fb1 (RTX 4070 Laptop, driver 596.36), agc_driver_bda_span_reads and agc_driver_pixel_interlock pass 8 of 8 runs each, 3 of them with ANYPS5_NO_SHADER_CACHE=1 and __GL_SHADER_DISK_CACHE=0, and without APS5_BDA_BYTE_READS. Closing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6145568146 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4975#issuecomment-6145568146). Originally posted by [Zurisen](https://github.com/Zurisen) on 2026-10-13T12:29:46Z. --- #5022 fixes it here. On main afbc22fb1 (RTX 4070 Laptop, driver 596.36), `agc_driver_bda_span_reads` and `agc_driver_pixel_interlock` pass 8 of 8 runs each, 3 of them with `ANYPS5_NO_SHADER_CACHE=1` and `__GL_SHADER_DISK_CACHE=0`, and without `APS5_BDA_BYTE_READS`. Closing.
ps54all commented 2026-10-13 17:37:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by ps54all on 2026-10-13T17:37:58Z.


Confirming #5022 on the 610 driver branch: RTX 3080 (Ampere), NVIDIA 610.74, Windows 11, WinLibs GCC 15.2.0 r7, Release. On main 8cf6a0bc3 (plus a few unrelated open PRs), agc_driver_bda_span_reads and agc_driver_pixel_interlock pass in a full ctest run (1096 of 1097; the one failure is guest_sce_net timing out on DNS). Both had lost the device here on every run since #4759 (my bisect is in #4759).

AI-assisted (Claude Code); I ran the above on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6151483570 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/4975#issuecomment-6151483570). Originally posted by [ps54all](https://github.com/ps54all) on 2026-10-13T17:37:58Z. --- Confirming #5022 on the 610 driver branch: RTX 3080 (Ampere), NVIDIA 610.74, Windows 11, WinLibs GCC 15.2.0 r7, Release. On `main` 8cf6a0bc3 (plus a few unrelated open PRs), `agc_driver_bda_span_reads` and `agc_driver_pixel_interlock` pass in a full ctest run (1096 of 1097; the one failure is `guest_sce_net` timing out on DNS). Both had lost the device here on every run since #4759 (my bisect is in #4759). AI-assisted (Claude Code); I ran the above on my machine.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#4975
No description provided.