drm/lima: handle spurious timeouts due to high irq latency
authorErico Nunes <nunes.erico@gmail.com>
Wed, 24 Jan 2024 02:59:44 +0000 (03:59 +0100)
committerQiang Yu <yuq825@gmail.com>
Mon, 12 Feb 2024 08:27:17 +0000 (16:27 +0800)
commit53cb55b20208eaa79de63c82795c8d51caa9cfcc
treed97c2afc81bd2f8f5fb47a613c79dde702d231d0
parent27aa58ec85f973d98d336df7b7941149308db80f
drm/lima: handle spurious timeouts due to high irq latency

There are several unexplained and unreproduced cases of rendering
timeouts with lima, for which one theory is high IRQ latency coming from
somewhere else in the system.
This kind of occurrence may cause applications to trigger unnecessary
resets of the GPU or even applications to hang if it hits an issue in
the recovery path.
Panfrost already does some special handling to account for such
"spurious timeouts", it makes sense to have this in lima too to reduce
the chance that it hit users.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124025947.2110659-6-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_sched.c