2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/v3d
Maíra Canal 1bdf2ccc35
drm/v3d: Use V3D_SMS registers for power on/off and reset on V3D 7.x
In addition to the standard reset controller, V3D 7.x requires configuring
the V3D_SMS registers for proper power on/off and reset. Add the new
registers to `v3d_regs.h` and ensure they are properly configured during
device probing, removal, and reset.

This change fixes GPU reset issues on the Raspberry Pi 5 (BCM2712).
Without exposing these registers, a GPU reset causes the GPU to hang,
stopping any further job execution and freezing the desktop GUI. The same
issue occurs when unloading and loading the v3d driver.

Link: https://github.com/raspberrypi/linux/issues/6660
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250317-v3d-gpu-reset-fixes-v6-5-f3ee7717ed17@igalia.com
2025-03-23 11:06:15 -03:00
..
Kconfig
Makefile drm/v3d: Introduce gemfs 2024-09-25 08:40:20 -03:00
v3d_bo.c drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -03:00
v3d_debugfs.c drm/v3d: Associate a V3D tech revision to all supported devices 2025-03-23 11:04:16 -03:00
v3d_drv.c 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_drv.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_fence.c
v3d_gem.c 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_gemfs.c drm/v3d: Add modparam for turning off Big/Super Pages 2024-09-25 08:40:25 -03:00
v3d_irq.c drm/v3d: Associate a V3D tech revision to all supported devices 2025-03-23 11:04:16 -03:00
v3d_mmu.c drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -03:00
v3d_perfmon.c drm/v3d: Associate a V3D tech revision to all supported devices 2025-03-23 11:04:16 -03:00
v3d_performance_counters.h drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -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/v3d: Associate a V3D tech revision to all supported devices 2025-03-23 11:04:16 -03:00
v3d_submit.c drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -03:00
v3d_sysfs.c drm/v3d: Decouple stats calculation from printing 2024-04-23 19:32:48 -03:00
v3d_trace_points.c
v3d_trace.h drm/v3d: Create tracepoints to track the CPU job 2023-12-01 09:37:48 -03:00