Skip to content

drm/asahi: g17: let progress end a restart storm window - #1394

Merged
DjDeveloperr merged 1 commit into
funkzy/t6050-gpu-on-integrationfrom
dj/g17-restart-storm-progress
Nov 10, 2026
Merged

DjDeveloperr merged 1 commit into
funkzy/t6050-gpu-on-integrationfrom
dj/g17-restart-storm-progress

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

The G17 restart storm limit stopped the GPU runtime after 8 firmware restarts within 30 s, however much work retired between them. Timeout storms already reset the window on progress; this applies the same rule to restarts.

Problem (measured on the M5 Pro, J714s)

A sampled Vulkan CTS synchronization2 run had 7 hangs in 9 s, each in a different deqp-vk process, with thousands of commands completing between them. The 8th restart in 30 s stopped the runtime (restart storm limit reached, GPU runtime stopped, device lost). Every later client then got ENODEV (Failed to query AGX device parameters: No such device) until reboot, so 6 of the sampled dEQP groups couldn't run at all.

Fix

restart_limit() uses Storm::note_unless_progress(now, retired()): work retired since the previous restart starts a new window. Each restart still fails the guilty client's work. Restarts with no progress between them still reach the limit and stop the GPU. A test case is added to recovery/safety.rs; it was not run, because CONFIG_KUNIT is off in the M5 kit config.

Test (M5 Pro)

The same sampled synchronization2 list, unpaced, hit 15 restarts in 17 s. The old kernel stops at the 8th; with this change there was no storm stop. Afterwards m5gpu compute and m5gpu render passed, and the 6 remaining sampled groups ran clean.

Every M5 kernel shipped since 11-09 carries this commit:

  • the integration SSD boot 7.3.0-m5-integration has it as 82f52a31c232;
  • the argb default boot carries it too.

This PR is the same diff, as one commit on this branch's head (0dd0833). It applies without conflicts, so it wasn't rebuilt.

🤖 Generated with Claude Code

The restart storm limit stopped the GPU for every client after eight
firmware restarts within 30 s, however much work retired between them.
On the M5 Pro a sampled Vulkan CTS synchronization run hits one hang every
few hundred cases, each in a different deqp-vk process, while thousands of
other commands complete in between. The eighth hang in 30 s stopped the
GPU runtime ("restart storm limit reached"), and every later client saw
ENODEV until reboot.

Count restarts the way timeouts already are: work retired since the
previous restart starts a new window. Each restart still fails the guilty
client's work, and restarts that follow each other without any progress
still reach the limit and stop the GPU.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr
DjDeveloperr changed the base branch from funkzy/t6050-gpu-on-integration to dj/g17-m5-pro-bare-metal November 10, 2026 09:10
@DjDeveloperr
DjDeveloperr force-pushed the dj/g17-restart-storm-progress branch from 1e397cc to ae20b32 Compare November 10, 2026 09:10
@DjDeveloperr
DjDeveloperr changed the base branch from dj/g17-m5-pro-bare-metal to funkzy/t6050-gpu-on-integration November 10, 2026 10:21
@DjDeveloperr
DjDeveloperr merged commit dc5dcdd into funkzy/t6050-gpu-on-integration Nov 10, 2026
6 checks passed
@RyanTheTide
RyanTheTide deleted the dj/g17-restart-storm-progress branch November 16, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant