From d0345a7a770f0ec4fe0b4e3a7858a0a8aba4d7da Mon Sep 17 00:00:00 2001 From: Ryan <81541646+RyanTheTide@users.noreply.github.com> Date: Sat, 28 Nov 2026 22:19:52 +1100 Subject: [PATCH] drm/asahi: g17: reuse released objects early on M4 Pro 25G83 Cached descriptor storage, queue records and queue configuration that come back after their owner's release was consumed may be reused once the firmware has consumed every control record published before they came back. The A18 Pro does this; the M4 Pro kept the stricter fence of 34b438de until a create/destroy-heavy queue test ran on that hardware. Turn it on for 25G83. 25F84 and 26B123 keep the stricter fence. --- drivers/gpu/drm/asahi/g17/fw/variant.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/asahi/g17/fw/variant.rs b/drivers/gpu/drm/asahi/g17/fw/variant.rs index 7d9267e30beaf..cf32a2dc8145d 100644 --- a/drivers/gpu/drm/asahi/g17/fw/variant.rs +++ b/drivers/gpu/drm/asahi/g17/fw/variant.rs @@ -121,9 +121,9 @@ pub(crate) struct Variant { /// Cached descriptor storage, queue records and queue configuration that come back /// after their owner's release was consumed are reused once the firmware has consumed /// every control record published before they came back, not only after a later one. - /// Set for the A18 Pro. Elsewhere they keep the stricter fence of 34b438de, which fixed - /// an M4 Pro crash on a recycled work state; extending this needs a create/destroy-heavy - /// queue test on that hardware. + /// Set for the A18 Pro and the M4 Pro 25G83 (measured with create/destroy-heavy queue + /// churn on the J616s). 25F84 and 26B123 keep the stricter fence of 34b438de, which + /// fixed an M4 Pro crash on a recycled work state, until measured there. pub(crate) objects_after_release: bool, /// What the firmware reports in its statistics ring beyond utilisation /// ([`crate::g17::telemetry::Protocol`]). @@ -231,7 +231,7 @@ pub(crate) const V25G83: Variant = Variant { // Host policy: take the render pool identity at context creation. On for the M4 Max // 25G83 build since ec3ced95 and measured on the M4 Pro (J616s). render_id_at_create: true, - objects_after_release: false, + objects_after_release: true, telemetry_protocol: crate::g17::telemetry::Protocol::NONE, }; @@ -265,6 +265,7 @@ pub(crate) const V25F84: Variant = Variant { // Not measured on 25F84 or on 26B123, which inherits this. render_stage_prefixes: false, render_id_at_create: false, + objects_after_release: false, ..V25G83 };