agc_driver_gated_dispatch_capture hangs the GPU on Intel UHD 620 (i915 preemption timeout) #3345

Closed
opened 2026-10-11 08:22:56 +00:00 by benadizd · 3 comments
benadizd commented 2026-10-11 08:22:56 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by benadizd on 2026-10-11T08:22:56Z.


agc_driver_gated_dispatch_capture hangs the GPU on Intel UHD 620 (i915). The kernel resets the render ring after a preemption timeout and the test fails with VK_ERROR_DEVICE_LOST.

Environment

  • Commit: 6a8f0ebb (main); the test was added in e802fd40 (#1864)
  • GPU: Intel UHD Graphics 620 (WHL GT2), 8086:3ea0
  • Driver: Mesa ANV 26.2.4 (mesa-vulkan-drivers-26.2.4-1.fc44), Vulkan 1.4.354
  • Kernel: 7.2.9-200.fc44.x86_64 (i915)
  • Build: Linux, GCC 16.2.1, Release

Reproduce

ctest --test-dir build -R '^agc_driver_gated_dispatch_capture$' --output-on-failure

Fails every time, both alone and in a full parallel run (4 of 4 standalone runs). It passed once alone at the earlier commit 1690db9a.

Test output

After about 10 seconds:

[gpu] queue 0x28 dropped 1 queued labels: their record failed
AGC graphics: vkWaitForFences recorder: Vulkan result -4

Kernel log

i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
i915 0000:00:02.0: [drm] agc_driver_gate[102263] context reset due to GPU hang
i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85ddfffa, in agc_driver_gate [102263]

Notes

The gated dispatch waits on a label that another queue writes. On this GPU, the wait does not finish before i915's preemption timeout, so the kernel resets the context. #2832 (WAIT_REG_MEM timing out while the label is pending on another queue) may share a cause.

All other 786 tests passed, apart from 2 precision checks (sin_cos_near_zero, vop1_float_unary; the latter is also listed for UHD 770 in #2114).

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5799360418 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3345). Originally posted by [benadizd](https://github.com/benadizd) on 2026-10-11T08:22:56Z. --- `agc_driver_gated_dispatch_capture` hangs the GPU on Intel UHD 620 (i915). The kernel resets the render ring after a preemption timeout and the test fails with `VK_ERROR_DEVICE_LOST`. ### Environment - Commit: `6a8f0ebb` (main); the test was added in `e802fd40` (#1864) - GPU: Intel UHD Graphics 620 (WHL GT2), `8086:3ea0` - Driver: Mesa ANV 26.2.4 (`mesa-vulkan-drivers-26.2.4-1.fc44`), Vulkan 1.4.354 - Kernel: 7.2.9-200.fc44.x86_64 (i915) - Build: Linux, GCC 16.2.1, Release ### Reproduce ```sh ctest --test-dir build -R '^agc_driver_gated_dispatch_capture$' --output-on-failure ``` Fails every time, both alone and in a full parallel run (4 of 4 standalone runs). It passed once alone at the earlier commit `1690db9a`. ### Test output After about 10 seconds: ``` [gpu] queue 0x28 dropped 1 queued labels: their record failed AGC graphics: vkWaitForFences recorder: Vulkan result -4 ``` ### Kernel log ``` i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out i915 0000:00:02.0: [drm] agc_driver_gate[102263] context reset due to GPU hang i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85ddfffa, in agc_driver_gate [102263] ``` ### Notes The gated dispatch waits on a label that another queue writes. On this GPU, the wait does not finish before i915's preemption timeout, so the kernel resets the context. #2832 (`WAIT_REG_MEM` timing out while the label is pending on another queue) may share a cause. All other 786 tests passed, apart from 2 precision checks (`sin_cos_near_zero`, `vop1_float_unary`; the latter is also listed for UHD 770 in #2114). AI-assisted (Claude Code).
Silverash-i8 commented 2026-10-11 08:28:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T08:28:52Z.


Same failure on Windows with an Arrow Lake iGPU (Core Ultra 9 275HX, Intel driver 101.8991), WinLibs GCC 15.2.0 r7, Release, ANYPS5_GPU=Intel:

[gpu] queue 0x28 dropped 1 queued labels: their record failed
AGC graphics: vkWaitForFences recorder: Vulkan result -4

after about 10.5 s, with a burst of LiveKernelEvent 141 (the Windows GPU watchdog, the counterpart of the i915 reset here) at the same second. It fails on current main (3 of 3 just now) and on 961b25fe and d31b57a4. Some runs exit with 0xc0000374 instead, which I've been following on #3171; those die right after the same dropped 1 queued labels line.

It hasn't always failed here, though. Earlier the same night it passed on this iGPU (d31b57a4 in a full run; on 961b25fe, 2 of the first 3 runs passed in about 3.4 s), and it only started failing consistently after a series of watchdog resets while I was testing #2985 (#2832). I took that for a driver stuck in a bad state. With your report showing the same thing on a UHD 620 under Linux, the dispatch simply running longer than the watchdog allows on a slow iGPU seems at least as likely, so pass or fail may depend on clocks and load. The RTX 5060 in the same machine passes it 10/10 in about 1.8 s.

AI-assisted (Claude Code); I ran all of this on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6107135650 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3345#issuecomment-6107135650). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T08:28:52Z. --- Same failure on Windows with an Arrow Lake iGPU (Core Ultra 9 275HX, Intel driver 101.8991), WinLibs GCC 15.2.0 r7, Release, `ANYPS5_GPU=Intel`: ``` [gpu] queue 0x28 dropped 1 queued labels: their record failed AGC graphics: vkWaitForFences recorder: Vulkan result -4 ``` after about 10.5 s, with a burst of `LiveKernelEvent 141` (the Windows GPU watchdog, the counterpart of the i915 reset here) at the same second. It fails on current `main` (3 of 3 just now) and on 961b25fe and d31b57a4. Some runs exit with `0xc0000374` instead, which I've been following on #3171; those die right after the same `dropped 1 queued labels` line. It hasn't always failed here, though. Earlier the same night it passed on this iGPU (d31b57a4 in a full run; on 961b25fe, 2 of the first 3 runs passed in about 3.4 s), and it only started failing consistently after a series of watchdog resets while I was testing #2985 (#2832). I took that for a driver stuck in a bad state. With your report showing the same thing on a UHD 620 under Linux, the dispatch simply running longer than the watchdog allows on a slow iGPU seems at least as likely, so pass or fail may depend on clocks and load. The RTX 5060 in the same machine passes it 10/10 in about 1.8 s. AI-assisted (Claude Code); I ran all of this on my machine.
Silverash-i8 commented 2026-10-11 13:45:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Silverash-i8 on 2026-10-11T13:45:22Z.


Follow-up on my Arrow Lake report above, now that the iGPU behaves again: on current main a11c8f7f (Windows 11, Intel driver 101.8991, WinLibs GCC 15.2.0 r7, Release, ANYPS5_GPU=Intel, ANYPS5_NO_SHADER_CACHE=1), agc_driver_gated_dispatch_capture passes 19 of 20 direct runs, each in about 3.4 to 3.6 s.

The one failure is the same as before: dropped 1 queued labels: their record failed, then vkWaitForFences recorder: Vulkan result -4, and the Windows event log has a burst of LiveKernelEvent 141 (GPU watchdog) at 16:43:46 to 16:43:47 local time, the run having ended at 16:43:48. None of the passing runs has a 141 event.

So on this iGPU it's intermittent rather than consistent; the 3 of 3 failures in my first comment came after a long series of watchdog resets that night. The occasional failure still fits a slow iGPU occasionally taking the dispatch past the watchdog limit, as with your UHD 620, but these runs don't establish that.

AI-assisted (Claude Code); I ran all of this on my machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6109673382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3345#issuecomment-6109673382). Originally posted by [Silverash-i8](https://github.com/Silverash-i8) on 2026-10-11T13:45:22Z. --- Follow-up on my Arrow Lake report above, now that the iGPU behaves again: on current `main` a11c8f7f (Windows 11, Intel driver 101.8991, WinLibs GCC 15.2.0 r7, Release, `ANYPS5_GPU=Intel`, `ANYPS5_NO_SHADER_CACHE=1`), `agc_driver_gated_dispatch_capture` passes 19 of 20 direct runs, each in about 3.4 to 3.6 s. The one failure is the same as before: `dropped 1 queued labels: their record failed`, then `vkWaitForFences recorder: Vulkan result -4`, and the Windows event log has a burst of `LiveKernelEvent 141` (GPU watchdog) at 16:43:46 to 16:43:47 local time, the run having ended at 16:43:48. None of the passing runs has a 141 event. So on this iGPU it's intermittent rather than consistent; the 3 of 3 failures in my first comment came after a long series of watchdog resets that night. The occasional failure still fits a slow iGPU occasionally taking the dispatch past the watchdog limit, as with your UHD 620, but these runs don't establish that. AI-assisted (Claude Code); I ran all of this on my machine.
David-cmrg commented 2026-10-11 17:21:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by David-cmrg on 2026-10-11T17:21:26Z.


Reproduced on Intel HD Graphics 520 (SKL GT2), Mesa 26.2.4 ANV, Fedora 44, kernel 6.19.10 (i915, preempt_timeout_ms 640), main a11c8f7f: fails 3 of 3 with the same Resetting rcs0 for preemption time out and GPU HANG: ecode 9:1:85ddfffa. The producer's single 2^26-iteration dispatch runs for about 3.1 s here.

Fix in #3833: the same iterations as 64 dispatches of 2^20 (50 ms each). It passes 23 of 23 runs with no reset.

AI-assisted: yes (Claude Opus 5.5)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6111644102 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/3345#issuecomment-6111644102). Originally posted by [David-cmrg](https://github.com/David-cmrg) on 2026-10-11T17:21:26Z. --- Reproduced on Intel HD Graphics 520 (SKL GT2), Mesa 26.2.4 ANV, Fedora 44, kernel 6.19.10 (i915, `preempt_timeout_ms` 640), `main` a11c8f7f: fails 3 of 3 with the same `Resetting rcs0 for preemption time out` and `GPU HANG: ecode 9:1:85ddfffa`. The producer's single 2^26-iteration dispatch runs for about 3.1 s here. Fix in #3833: the same iterations as 64 dispatches of 2^20 (50 ms each). It passes 23 of 23 runs with no reset. AI-assisted: yes (Claude Opus 5.5)
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#3345
No description provided.