From 2c3203e38b562b83042706fe6ed65c8931bc6663 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Thu, 26 Nov 2026 06:16:01 -0500 Subject: [PATCH] drm/asahi: g17: name the owning process when a compute publication gives up The admission-expiry warning printed only the queue owner id, which is an internal counter and matches no process, so a give-up during a multi-client test could not be tied to the client that was waiting. Print the owning process's pid from the backend's context next to it. Signed-off-by: DjDeveloperr --- drivers/gpu/drm/asahi/g17/runtime.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/asahi/g17/runtime.rs b/drivers/gpu/drm/asahi/g17/runtime.rs index e64a10eb7d945..8f09241119e09 100644 --- a/drivers/gpu/drm/asahi/g17/runtime.rs +++ b/drivers/gpu/drm/asahi/g17/runtime.rs @@ -4079,8 +4079,9 @@ impl Backend { } /// Warns about a compute publication whose admission budget ran out, so that the lost - /// device it causes can be attributed: the time spent in each wait, the owner's queue - /// installation state and the recovery state. Rate-limited to the first few per boot. + /// device it causes can be attributed: the owning process, the time spent in each wait, + /// the owner's queue installation state and the recovery state. Rate-limited to the first + /// few per boot. fn report_admission_expiry(&self, admission: &Admission<'_>) { static REPORTS: core::sync::atomic::AtomicU32 = core::sync::atomic::AtomicU32::new(0); const ADMISSION_REPORTS: u32 = 8; @@ -4106,8 +4107,8 @@ impl Backend { return; } pr_warn!( - "asahi: G17: compute publication of owner {} gave up after {} ms; ms by wait: {}={} {}={} {}={} {}={} {}={} {}={} {}={}; queue {:?}; recovery pending {}, state {:?}\n", - self.owner, total, + "asahi: G17: compute publication of owner {} (pid {}) gave up after {} ms; ms by wait: {}={} {}={} {}={} {}={} {}={} {}={} {}={}; queue {:?}; recovery pending {}, state {:?}\n", + self.owner, self.context.owner_pid(), total, NAMES[0], spent[0], NAMES[1], spent[1], NAMES[2], spent[2], NAMES[3], spent[3], NAMES[4], spent[4], NAMES[5], spent[5], NAMES[6], spent[6], queue, pending, recovery_state,