[PATCH 0/2] drm/imagination: Hard reset fixes for META firmware cores

From: Ryan Brue

Date: Wed Nov 25 2026 - 18:26:45 EST


Two fixes found while chasing GPU freezes on an MT8173 tablet (GX6250,
BVNC 4.40.2.51, META firmware processor).

The firmware reports page faults of its own with FWCCB command 112,
which the driver logs as unknown and drops; patch 1 logs the address.

Patch 2: every hard reset on this core ended with "GPU device lost".
pvr_fw_stop() waits for the Garten wrapper to go idle, and a META that
was not asked to idle first keeps it busy; all the other idle polls
pass. Skipping that one wait on a hard reset, as the driver already does
when a debugger has halted META, lets the soft reset that follows stop
the core. Other firmware processors, and the other polls, are
unchanged.

On the board, with lockdep and a local debug hook that forces a hard
reset from the watchdog under glmark2, every hard reset recovered
without losing the device: 13 forced and 8 that the watchdog started on
its own, on this series over drm-misc-next. New GPU work ran correctly
afterwards. Contexts that had jobs in flight at the reset are flagged
guilty as before, and the clients using them (here KWin, through zink)
stop rendering.

I do not have Imagination's documentation for the META stop sequence. If
halting the META threads through the slave port first is the right
shape, I am happy to test that instead.

This series was developed with the help of an LLM.

Signed-off-by: Ryan Brue <ryanbrue.dev@xxxxxxxxx>
---
Ryan Brue (2):
drm/imagination: Report firmware page faults
drm/imagination: Don't wait for a running META to idle on a hard reset

drivers/gpu/drm/imagination/pvr_ccb.c | 5 +++++
drivers/gpu/drm/imagination/pvr_fw.c | 2 +-
drivers/gpu/drm/imagination/pvr_fw.h | 3 ++-
drivers/gpu/drm/imagination/pvr_fw_meta.c | 6 ++++--
drivers/gpu/drm/imagination/pvr_fw_startstop.c | 10 ++++++----
drivers/gpu/drm/imagination/pvr_fw_startstop.h | 4 +++-
drivers/gpu/drm/imagination/pvr_power.c | 4 ++--
7 files changed, 23 insertions(+), 11 deletions(-)
---
base-commit: 479e381e77dcde0dfcc9d51e89ff3273da199804
change-id: 20261118-rbrue-suez-pvr-reset-recovery-ba687c88bf85

Best regards,
--
Ryan Brue <ryanbrue.dev@xxxxxxxxx>