summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/genpd.py
diff options
context:
space:
mode:
authorAlessio Belle <alessio.belle@imgtec.com>2025-06-24 16:01:31 +0100
committerMatt Coster <matt.coster@imgtec.com>2025-07-04 16:25:08 +0100
commit551507e0d0bf32ce1d7d27533c4b98307380804c (patch)
treeb7240cae1e7ffadcf5d03d943464947f86a0f43f /scripts/gdb/linux/genpd.py
parentc03ea34cbf88dd778197a929b3269003567def55 (diff)
drm/imagination: Clear runtime PM errors while resetting the GPU
The runtime PM might be left in error state if one of the callbacks returned an error, e.g. if the (auto)suspend callback failed following a firmware crash. When that happens, any further attempt to acquire or release a power reference will then also fail, making it impossible to do anything else with the GPU. The driver logic will eventually reach the reset code. In pvr_power_reset(), replace pvr_power_get() with a new API pvr_power_get_clear() which also attempts to clear any runtime PM error state if acquiring a power reference is not possible. Signed-off-by: Alessio Belle <alessio.belle@imgtec.com> Reviewed-by: Matt Coster <matt.coster@imgtec.com> Link: https://lore.kernel.org/r/20250624-clear-rpm-errors-gpu-reset-v1-1-b8ff2ae55aac@imgtec.com Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Diffstat (limited to 'scripts/gdb/linux/genpd.py')
0 files changed, 0 insertions, 0 deletions