From 8c56e79009eadf90086b0864ae949a544eba07ad Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Sat, 28 Nov 2026 11:45:12 +1100 Subject: [PATCH 1/2] drm/asahi: g17: let M4 Pro 25G83 renders carry stage prefixes The M4 Pro 25G83 variant kept render_stage_prefixes off as not measured, so GET_PARAMS never advertised RENDER_STAGE_PREFIXES_V2 there and Borealis never sent staged or compute-prefixed renders. The M4 Max runs the same 25G83 firmware train with the flag on (ec3ced95), and the A18 Pro has it on. Turn it on in V25G83 and drop the now redundant M4 Max 25G83 override. 25F84 (and 26B123, which inherits it) keeps it off until measured there. Signed-off-by: Ryan Murray --- drivers/gpu/drm/asahi/g17/fw/variant.rs | 7 +++++-- drivers/gpu/drm/asahi/hw/t6041.rs | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/asahi/g17/fw/variant.rs b/drivers/gpu/drm/asahi/g17/fw/variant.rs index 5bd78e1e37696..3e507ba4c1761 100644 --- a/drivers/gpu/drm/asahi/g17/fw/variant.rs +++ b/drivers/gpu/drm/asahi/g17/fw/variant.rs @@ -207,8 +207,9 @@ pub(crate) const V25G83: Variant = Variant { mcache: false, // A fragment stage with the few-primitives flag hangs. few_primitives: false, - // Not measured on this firmware. - render_stage_prefixes: false, + // Tiling and fragment kicks wait on their own prefixes, as on the A18 Pro. Measured on the + // M4 Max 25G83 build (ec3ced95) and on the M4 Pro (J616s). + render_stage_prefixes: true, ray_traversal: true, // Not measured on this firmware. traversal_exclusion: false, @@ -259,6 +260,8 @@ pub(crate) const V25F84: Variant = Variant { compute: super::compute::ComputeProgram::V25F84, opening_record: false, split_firmware_area: true, + // Not measured on 25F84 or on 26B123, which inherits this. + render_stage_prefixes: false, ..V25G83 }; diff --git a/drivers/gpu/drm/asahi/hw/t6041.rs b/drivers/gpu/drm/asahi/hw/t6041.rs index 4cce54372a3f8..9138081512714 100644 --- a/drivers/gpu/drm/asahi/hw/t6041.rs +++ b/drivers/gpu/drm/asahi/hw/t6041.rs @@ -208,9 +208,6 @@ pub(super) const BUILD_25G83: fw::variant::Build = fw::variant::Build { // T6041's 25G83 firmware emits pstate reports (tags 0x19/0x1b) and 8 ms // timestamped utilisation records (tag 0x13). variant: &fw::variant::Variant { - // Tiling and fragment kicks wait on their own prefixes (host path, !m5_commands); - // unmeasured on the M4 Pro, which keeps false. - render_stage_prefixes: true, ta_mode_1: true, telemetry_protocol: crate::g17::telemetry::Protocol::PSTATE_8MS, render_id_at_create: true, From 95b8c0dd3c82c2325848d1fd29897b5cd1505a82 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Sat, 28 Nov 2026 11:45:24 +1100 Subject: [PATCH 2/2] drm/asahi: g17: take the M4 Pro render identity at context creation V25G83 kept the first-render claim of the render pool identity because the M4 Pro had not been tested with the claim at creation. The M4 Max runs the same 25G83 firmware train with it on (ec3ced95), as does the A18 Pro. The claim is host policy: with it, a context that cannot get an identity fails at creation instead of at its first render. Turn it on in V25G83 and drop the now redundant M4 Max 25G83 override. 25F84 keeps the first-render claim; the M4 Max 26B123 override stays. Signed-off-by: Ryan Murray --- drivers/gpu/drm/asahi/g17/fw/variant.rs | 9 ++++++--- drivers/gpu/drm/asahi/hw/t6041.rs | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/asahi/g17/fw/variant.rs b/drivers/gpu/drm/asahi/g17/fw/variant.rs index 3e507ba4c1761..7d9267e30beaf 100644 --- a/drivers/gpu/drm/asahi/g17/fw/variant.rs +++ b/drivers/gpu/drm/asahi/g17/fw/variant.rs @@ -115,8 +115,8 @@ pub(crate) struct Variant { /// A context takes its render pool identity when it is created, not at its first render, /// so that identities held by render graphs kept until the firmware stops refuse new /// contexts with an error instead of failing a context's first render. Set for the A18 - /// Pro and M4 Max (`25G83`/`26B123`); M4 Pro and M4 Max `25F84` keep the first-render - /// claim until tested on that hardware. + /// Pro, M4 Pro and M4 Max `25G83` and M4 Max `26B123`; `25F84` keeps the first-render + /// claim until tested on that firmware. pub(crate) render_id_at_create: bool, /// 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 @@ -228,7 +228,9 @@ pub(crate) const V25G83: Variant = Variant { m5_commands: false, registration_power_hold: true, m5_layouts: None, - render_id_at_create: false, + // 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, telemetry_protocol: crate::g17::telemetry::Protocol::NONE, }; @@ -262,6 +264,7 @@ pub(crate) const V25F84: Variant = Variant { split_firmware_area: true, // Not measured on 25F84 or on 26B123, which inherits this. render_stage_prefixes: false, + render_id_at_create: false, ..V25G83 }; diff --git a/drivers/gpu/drm/asahi/hw/t6041.rs b/drivers/gpu/drm/asahi/hw/t6041.rs index 9138081512714..00a721b71c8b3 100644 --- a/drivers/gpu/drm/asahi/hw/t6041.rs +++ b/drivers/gpu/drm/asahi/hw/t6041.rs @@ -210,7 +210,6 @@ pub(super) const BUILD_25G83: fw::variant::Build = fw::variant::Build { variant: &fw::variant::Variant { ta_mode_1: true, telemetry_protocol: crate::g17::telemetry::Protocol::PSTATE_8MS, - render_id_at_create: true, ..fw::variant::V25G83 }, config: None,