linux/drivers/gpu/drm/v3d
Maíra Canal 07e769ba3d
drm/v3d: Idle AXI transactions before disabling the clock on suspend
Currently, v3d_power_suspend() removes the GPU clock without first
quiescing the GPU's memory interface (AXI). If the clock is cut while the
core still has outstanding AXI transactions in flight, the hardware is
frozen mid-transaction. That corrupted state survives the power cycle, and
the first job submitted after the next resume will cause a GPU hang
accompanied by an L2T "pte invalid" MMU fault.

The hardware already provides a safe-powerdown sequence for this: request
the GMP to stop and wait for outstanding reads/writes to drain
(v3d_idle_axi()), plus the GCA safe shutdown on pre-4.1 HW
(v3d_idle_gca()). The driver implements both, but the runtime PM support
added later never invoked them when powering the GPU down.

Perform the safe-powerdown sequence in v3d_power_suspend() before
disabling the clock, while the core is still powered.

Link: https://github.com/raspberrypi/linux/issues/7443
Link: https://github.com/raspberrypi/linux/issues/7488
Fixes: 458f2a712a ("drm/v3d: Introduce Runtime Power Management")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20260718-v3d-pm-axi-transactions-v1-2-4ecd7729ed70@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
2026-07-22 10:36:43 -03:00
..
Kconfig
Makefile drm/v3d: Introduce Runtime Power Management 2026-04-04 07:41:08 -03:00
v3d_bo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
v3d_debugfs.c drm/v3d: Introduce Runtime Power Management 2026-04-04 07:41:08 -03:00
v3d_drv.c drm/v3d: Introduce Runtime Power Management 2026-04-04 07:41:08 -03:00
v3d_drv.h drm/v3d: Idle AXI transactions before disabling the clock on suspend 2026-07-22 10:36:43 -03:00
v3d_fence.c drm/v3d: Remove dedicated fence_lock 2026-03-13 18:02:32 -03:00
v3d_gem.c drm/v3d: Idle AXI transactions before disabling the clock on suspend 2026-07-22 10:36:43 -03:00
v3d_irq.c drm/v3d: Allocate all resources before enabling the clock 2026-04-04 07:41:08 -03:00
v3d_mmu.c drm/v3d: Flush MMU TLB and cache during runtime resume 2026-06-01 18:40:46 -03:00
v3d_perfmon.c drm-next for 7.2-rc1 2026-06-17 10:21:00 +01:00
v3d_performance_counters.h drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -03:00
v3d_power.c drm/v3d: Idle AXI transactions before disabling the clock on suspend 2026-07-22 10:36:43 -03:00
v3d_regs.h drm/v3d: Use V3D_SMS registers for power on/off and reset on V3D 7.x 2025-03-23 11:06:15 -03:00
v3d_sched.c drm-next for 7.2-rc1 2026-06-17 10:21:00 +01:00
v3d_submit.c drm/v3d: Reject invalid indirect BO handle in indirect CSD setup 2026-07-07 18:52:13 -03:00
v3d_sysfs.c drm/v3d: Refcount v3d_stats 2026-03-13 18:02:32 -03:00
v3d_trace_points.c
v3d_trace.h