Re: [PATCH] drm/msm/a5xx: don't read the GPMU registers on GPUs without a GPMU
From: Alexey Minnekhanov
Date: Wed Oct 14 2026 - 01:32:57 EST
On 20.09.2026 14:08, Dmitry Baryshkov wrote:
Only a530/a540 have a GPMU. On the other a5xx parts, reading the
0xa800-0xac60 GPMU aperture during a crashdump resets the board -- on
sda660 (a512) a GPU hang thus reboots the SoC instead of recovering.
Split the GPMU block into its own array and collect it only when a GPMU
is present.
Fixes: e20c9284c8f2 ("drm/msm/adreno: Add support for Adreno 510 GPU")
Assisted-by: LLM
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
---
Nvm, I've managed to "catch" the GPU hang (even 2 times) and with this
patch I've seen GPU actually recover and kwin_wayland displaying popup
saying "desktop effects were restarted due to graphics reset" and the
device was usable again, which never happened before (before it was
completely hung). And after hangcheck recover some register dump
followed, which I also observed for the first time:
https://paste.sr.ht/~minlexx/20376296a7d95d2273dd2a64c2ce792d77954bce
FWIW,
Tested-by: Alexey Minnekhanov <alexeymin@xxxxxxxxxx>
--
Regards,
Alexey Minnekhanov