From 9a1540ca44538b6730c995cee44200d366a9f45b Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Thu, 26 Nov 2026 07:49:58 +1100 Subject: [PATCH] drm/asahi: g16: lay out G15G GLOBALS as the G15 family's 26B123 The 15-inch M3 Air (T8122 G15G) runs the G15 family's 26B123 InitData version, the same version as G15S, but its layout took G16G's GLOBALS runs. In this version the 25G83 words from +0xe28 on sit 5 bytes up, not 4, so the soft-fault word (25G83 +0xe28 = 3) landed one byte low and the firmware read 0 there. With soft faults off, an unmapped shader write faults the whole context instead of being dropped: Geekbench 6 Vulkan's Background Blur (resize_bilinear) wrote 29 KiB past an application buffer, the VM went into its sticky error state and the device was lost, on both linux#3163's head and main. The same workload passes on G16G (J713) and G16S (J616s), whose firmware default drops such writes. Use the G15S GLOBALS runs for G15G. The rest of the G15G layout is unchanged. Signed-off-by: Ryan Murray --- drivers/gpu/drm/asahi/g16/fw/initdata.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/asahi/g16/fw/initdata.rs b/drivers/gpu/drm/asahi/g16/fw/initdata.rs index 79f85c96350e6..ab15e9d40e53b 100644 --- a/drivers/gpu/drm/asahi/g16/fw/initdata.rs +++ b/drivers/gpu/drm/asahi/g16/fw/initdata.rs @@ -502,6 +502,11 @@ pub(crate) const G15G_26B123: Layout = Layout { // The shared3 block's state word (+0x62ac + 8): with the block all zero the G15G firmware // never takes the first device-control records. state_bound: Some(0x62b4), + // GLOBALS as the G15 family's 26B123 InitData version lays it out (the same version as + // G15S): the words from 25G83 +0xe28 on sit 5 bytes up, not G16G's 4. With G16G's runs the + // soft-fault word (25G83 +0xe28 = 3) lands one byte low, the firmware reads 0 there and an + // unmapped shader write faults the context instead of being dropped. + globals: G15S_26B123.globals, ..V26B123 };