Skip to content

drm/asahi: g17: concurrent timeline_semaphore.one_to_n clients lose their device behind another VM's failed render work (J616s) #2736

Done

Description

@RyanTheTide

On the J616s (M4 Pro, G16S on the G17 runtime), every full Vulkan CTS run with 4 deqp-vk processes in parallel loses 3 to 5 dEQP-VK.synchronization{,2}.timeline_semaphore.one_to_n.* clients. Each lost client is preceded by the render watchdog deciding it is stuck "behind earlier work of another VM" whose work has already failed (blocker_failed=1). The client then sits at the head of its queue for about 30 s until the watchdog gives up, and it sees a lost device. Run alone, every affected case passes 3 of 3.

This is not a regression between kernels. The same family fails on fleet77 and fleet78, but a different set of cases each time, so it reads as a scheduling/teardown interaction between concurrent clients rather than a bad test.

Reproduction

  • Kernel 7.3.0-aurora-fleet77 or -fleet78 (production defaults), installed Mesa, VK-GL-CTS 1.4.7.0.
  • Run the vk-default mustpass in 6000-case chunks with 4 deqp-vk processes per chunk (the cases split round-robin). The timeline_semaphore.one_to_n chunks (sorted mustpass order, around cases 2.86M and 2.95M) hit it every time.
  • Each failing case passes when run alone (deqp-vk -n <case>, 3/3).

Results

kernel one_to_n cases lost (Timeout / DeviceLost) GPU firmware crashes
fleet77 3 (image_128_r32_uint Timeout, image_64x64x8_r32_sfloat DeviceLost, sync2 image_128x128_r16g16b16a16_uint Timeout) 0
fleet78 5 (3 in synchronization, 2 in synchronization2) 0

The M1 Pro (G13S) and M2 (G14G) ran the same lists with the same 4-process load and lost none.

Question
Should a client's render command that is only waiting behind another VM's failed work be excused from the watchdog, or should the failed VM's work stop blocking the queue sooner? From the log the blocker has blocker_in_allowance=0 and blocker_failed=1 while the owner is renewed and then given up on.

Kernel log (fleet78, one chunk)
aurora 28a600000.gpu: Render watchdog owner=13599 vm=69959 publication=8366700 renewals=0 excused=0 decision=Defer behind earlier work of another VM: blocker_vm=69954 blocker_publication=8352321 blocker_failed=1 blocker_in_allowance=0
aurora 28a600000.gpu: Render watchdog owner=13599 vm=69959 publication=8366700 renewals=8 excused=0 decision=Own behind earlier work of another VM: blocker_vm=69954 blocker_publication=8352321 blocker_failed=1 blocker_in_allowance=0
aurora 28a600000.gpu: G17: watchdog gave up on a render command of owner 13599: allowance 2000 ms, at the head of its queue for 32720 ms; not long work; sharing renewals 7/14, last command retired 9569 ms ago; deferred 8 polls behind ...
aurora: G17: render timeout slot 22 ordinal 197 qids [96, 97]: ... recovery state 0 ...
aurora: GPU work of a client failed (ETIMEDOUT, reported at g17/runtime.rs:1463, client deqp-vk[...]); the client sees a lost device

fleet77 shows the same sequence (Defer/Own behind earlier work of another VM ... blocker_failed=1, then watchdog gave up ... at the head of its queue for 36816 ms).

Run details
  • Runner: chunked deqp-vk with crash/stall resume (a crashed process is restarted after the case it was running), 300 s stall timeout, thermal freeze at 100 C. All other chunks of the 3,245,960-case run were clean on these kernels.
  • Same families also produced one binding_model.mutable_descriptor...acceleration_structure_khr...comp DeviceLost with GPU work of a client failed (ENOSPC, reported at g17/runtime/backend.rs:83) on fleet77; it passes 3/3 alone.
  • Status files and per-chunk kernel logs are kept in our lab archive.

Assisted-by: LLM (Claude:Opus 5.5)

Activity

  1. added
    area:gpu
    blast:m4
    soc:T6040
    bug
    on Nov 24, 2026
  2. DjDeveloperr commented on Nov 24, 2026

    @DjDeveloperr
    Contributor

    Checked open PRs and main: no PR yet changes G17 render-watchdog behavior when a client is blocked behind another VM's already-failed work (blocker_failed=1).

    Next step: routed to M4/G17 GPU maintenance to diagnose why failed-VM work stays blocking the queue for 30 s under parallel timeline_semaphore.one_to_n CTS runs on J616s and land a fix.

  3. RyanTheTide commented on Nov 27, 2026

    @RyanTheTide
    ContributorAuthor

    #3229 addresses owed render stamps and drained timeout heads. Validation needs one timed-out VM alongside a second VM whose timeline still advances through the synchronization workload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:gpublast:m4bugsoc:T6040

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions