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.
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 well-known issue I had been observing for quite some time, but that I had completely misunderstood. Signed-off-by: Adrián Larumbe <[email protected]> --- Changes in v2: - Fixed race conditions introduced by the previous revision, in the RPM and HWPerf commits specifically. These can be consulted at [1] - Don't attempt to suspend the device unconditionally at the end of probe(), and do it through autosuspend instead. - Broke the RPM patch into one that fixes PM refcnt proper and another one for MMU enablement at device init time. - Moved perfcnt GPU disable helper into its own commmit. Same for transplating shrinker initialisation and unplug. - Added 'Fixes' and 'Reported-by' tags to all the relevant commits - [1] https://sashiko.dev/#/patchset/20260526-claude-fixes-v1-0-16e92eaa4949%40collabora.com - Link to v1: https://patch.msgid.link/[email protected] To: Boris Brezillon <[email protected]> To: Rob Herring <[email protected]> To: Steven Price <[email protected]> To: Adrián Larumbe <[email protected]> To: Maarten Lankhorst <[email protected]> To: Maxime Ripard <[email protected]> To: Thomas Zimmermann <[email protected]> To: David Airlie <[email protected]> To: Simona Vetter <[email protected]> To: Faith Ekstrand <[email protected]> To: "Marty E. Plummer" <[email protected]> To: Tomeu Vizoso <[email protected]> To: Eric Anholt <[email protected]> To: Alyssa Rosenzweig <[email protected]> To: Robin Murphy <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Neil Armstrong <[email protected]> --- Adrián Larumbe (7): drm/panfrost: Check another bo field for cache option query drm/panfrost: Prevent division by 0 drm/panfrost: Move shrinker initialization and unplug one level down drm/panfrost: Move perfcnt GPU disable sequence into a helper drm/panfrost: Make reset sequence deal with an active HWPerf session drm/panfrost: Fix PM usage_count mishandling drm/panfrost: Explicitly enable MMU interrupts at device init drivers/gpu/drm/panfrost/panfrost_devfreq.c | 3 +- drivers/gpu/drm/panfrost/panfrost_device.c | 8 +++ drivers/gpu/drm/panfrost/panfrost_drv.c | 14 ++--- drivers/gpu/drm/panfrost/panfrost_gem.h | 4 +- drivers/gpu/drm/panfrost/panfrost_gem_shrinker.c | 8 +-- drivers/gpu/drm/panfrost/panfrost_mmu.c | 11 +++- drivers/gpu/drm/panfrost/panfrost_mmu.h | 2 + drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 77 ++++++++++++++++++------ drivers/gpu/drm/panfrost/panfrost_perfcnt.h | 1 + 9 files changed, 90 insertions(+), 38 deletions(-) --- base-commit: c1079aebb4de218caa86c44f9a53700d1a582683 change-id: 20260523-claude-fixes-82b03a134a8c Best regards, -- Adrián Larumbe <[email protected]>
