]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/imagination: Disable interrupts before suspending the GPU
authorAlessio Belle <alessio.belle@imgtec.com>
Tue, 10 Mar 2026 11:41:12 +0000 (11:41 +0000)
committerMatt Coster <matt.coster@imgtec.com>
Tue, 17 Mar 2026 14:27:42 +0000 (14:27 +0000)
commit74ef7844dd8c27d6b94ebc102bb4677edd3e7696
tree5c42915135241499f642bbbf5bb4a047b646c894
parent2d7f05cddf4c268cc36256a2476946041dbdd36d
drm/imagination: Disable interrupts before suspending the GPU

This is an additional safety layer to ensure no accesses to the GPU
registers can be made while it is powered off.

While we can disable IRQ generation from GPU, META firmware, MIPS
firmware and for safety events, we cannot do the same for the RISC-V
firmware.
To keep a unified approach, once the firmware has completed its power
off sequence, disable IRQs for the while GPU at the kernel level
instead.

Signed-off-by: Alessio Belle <alessio.belle@imgtec.com>
Reviewed-by: Matt Coster <matt.coster@imgtec.com>
Link: https://patch.msgid.link/20260310-drain-irqs-before-suspend-v1-2-bf4f9ed68e75@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/pvr_power.c