All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/imagination: Hard reset fixes for META firmware cores
@ 2026-11-25 23:26 Ryan Brue
  2026-11-25 23:26 ` [PATCH 1/2] drm/imagination: Report firmware page faults Ryan Brue
  2026-11-25 23:26 ` [PATCH 2/2] drm/imagination: Don't wait for a running META to idle on a hard reset Ryan Brue
  0 siblings, 2 replies; 4+ messages in thread
From: Ryan Brue @ 2026-11-25 23:26 UTC (permalink / raw)
  To: Alessio Belle, Luigi Santivetti, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, David Airlie, Simona Vetter, Donald Robson,
	Sarah Walker
  Cc: imagination, dri-devel, linux-kernel, Ryan Brue

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@gmail.com>
---
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@gmail.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-25 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 23:26 [PATCH 0/2] drm/imagination: Hard reset fixes for META firmware cores Ryan Brue
2026-11-25 23:26 ` [PATCH 1/2] drm/imagination: Report firmware page faults Ryan Brue
2026-11-25 23:26 ` [PATCH 2/2] drm/imagination: Don't wait for a running META to idle on a hard reset Ryan Brue
2026-11-25 23:35   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.