[PATCH 0/4] RPM, percnt and other minor fixes for Panfrost

From: Adrián Larumbe

Date: Mon May 25 2026 - 19:04:40 EST


This patch series comes with some minor fixes for Panfrost. Some of the
issues addressed were uncovered by LLM tools, while the one about RPM was
traditionally debugged.

I haven't yet added any Fixes or Reported-By tags, because the purpose of
the first revision is probing appetite for these changes and eliciting
early discussion.

The only proper bug fixes are the ones for perfcnt and RPM, and the others
are more about ensuring robustness. perfcnt bug was never observed in the
open, because no one had faced a HW reset when a perfcnt session was
ongoing. RPM fix addresses a long-standing issue I had been observing for
quite some time, but that I had completely misunderstood.

Signed-off-by: Adrián Larumbe <adrian.larumbe@xxxxxxxxxxxxx>
---
Adrián Larumbe (4):
drm/panfrost: Check another bo field for cache option query
drm/panfrost: Make reset sequence deal with an active HWPerf session
drm/panfrost: Prevent division by 0
drm/panfrost: Fix RPM so device suspends when no jobs are in flight

drivers/gpu/drm/panfrost/panfrost_devfreq.c | 3 +-
drivers/gpu/drm/panfrost/panfrost_device.c | 1 +
drivers/gpu/drm/panfrost/panfrost_drv.c | 10 +++--
drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 58 +++++++++++++++++++----------
drivers/gpu/drm/panfrost/panfrost_perfcnt.h | 1 +
5 files changed, 49 insertions(+), 24 deletions(-)
---
base-commit: c1079aebb4de218caa86c44f9a53700d1a582683
change-id: 20260523-claude-fixes-82b03a134a8c

Best regards,
--
Adrián Larumbe <adrian.larumbe@xxxxxxxxxxxxx>