]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/v3d: Use V3D_SMS registers for power on/off and reset on V3D 7.x
authorMaíra Canal <mcanal@igalia.com>
Tue, 18 Mar 2025 01:01:13 +0000 (22:01 -0300)
committerMaíra Canal <mcanal@igalia.com>
Sun, 23 Mar 2025 14:06:15 +0000 (11:06 -0300)
commit1bdf2ccc351ce73ec5fcc0fa82eb6959b30f34c7
treede4e79eddb4ebe665faa4424edcc471a99b39636
parentb1cd1d738e8d98296a01768ba217f2f2ea5dd7b8
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
drivers/gpu/drm/v3d/v3d_drv.c
drivers/gpu/drm/v3d/v3d_drv.h
drivers/gpu/drm/v3d/v3d_gem.c
drivers/gpu/drm/v3d/v3d_regs.h