Skip to content

drm/asahi: g17: say why the watchdog gave up on a command - #1926

Merged
DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/g17-timeout-reason
Nov 14, 2026
Merged

DjDeveloperr merged 1 commit into
integration/aurorafrom
djdev/g17-timeout-reason

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

When the scheduler watchdog fails a published command, the client sees a lost device with ETIMEDOUT, and nothing in the kernel log says which allowance ran out. A command can be failed after its own allowance, after the renewals for long work, after the renewals a shared GPU gives, or after waiting behind another client's work, and the fix differs for each.

Change

  • One warning line when the watchdog gives up on a published command, with what it had granted: the command's allowance and the time it spent at the head of its queue, the renewals used for long work and for a shared GPU, how long ago a command had last retired when the sharing renewal was decided, the polls it was deferred behind older or pending work, the polls it was excused behind other clients' work, and whether it was spared.
  • At most eight such lines per boot.
  • No decision changes: the same commands fail at the same time.

Testing

  • Unit test of the summary and of the line's text: passes in the driver's host test set (32 of 32 in that file's set). A full kernel build (Image, modules) with KUnit enabled compiles and links with this change; the KUnit case itself was not run.
  • MacBook Neo: multi-client stress on a test build with this change before the review edits (the line's labels, the retirement age now taken from the sharing decision instead of read again, the unit test's text assertion; none alters a decision): same results as without it. No watchdog gave up in those runs, so the new line has not been seen on hardware yet; only the unit test exercises it.

🤖 Generated with Claude Code

When the watchdog stops renewing a published command, the client loses
its device with ETIMEDOUT and the kernel log has one line that names the
client. Nothing says which of the watchdog's grants ran out, so a
command that was failed at its first poll on a busy GPU looks the same
as one that hung for 30 s.

Log one more line at that decision: the command's allowance and how long
it has been at the head of its queue, the long-work and sharing renewals
it used and their limits (or that the GPU's watchdog does not renew for
sharing), how long ago a command had last retired when the sharing
renewal was decided, how many polls it was deferred behind older or
pending work, how many it was excused behind other clients' work, and
whether it was spared or failed as its own. The first eight of a boot
report.

No decision changes. Commands still in publication are not failed here
and get no line.

Signed-off-by: Diljit Singh <[email protected]>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Merging on green host tests, to be verified after the merge.

  • The change adds one log line and changes no watchdog decision. Two independent reviews of the diff found none.
  • Checked before the merge: the driver's host tests on this head, a full kernel build with KUnit enabled, and multi-client stress on hardware with a build carrying an earlier form of this change (same results as without it).
  • Not checked before the merge: the full Vulkan/GL conformance gate on this exact head, and the new line itself on hardware (no watchdog gave up in those runs).
  • After the merge: the next kernel candidate cut from this branch runs the full conformance gate and the multi-client stress row. If either regresses because of this change, it is reverted.

🤖 Generated with Claude Code

@DjDeveloperr
DjDeveloperr merged commit a5ebec5 into integration/aurora Nov 14, 2026
1 check passed
m0d16l14n1 added a commit to m0d16l14n1/linux that referenced this pull request Nov 15, 2026
…t-next

G17 stability: aurora-silicon#1926 watchdog reason, aurora-silicon#1925 closed-client teardown, aurora-silicon#1946 kept-graph
pool pages, aurora-silicon#1948 reclaim idle render pools; configs: aurora-silicon#1938, aurora-silicon#1939 shared defaults.
@RyanTheTide
RyanTheTide deleted the djdev/g17-timeout-reason branch November 16, 2026 05:03
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