drm/lima: set gp bus_stop bit before hard reset
authorErico Nunes <nunes.erico@gmail.com>
Wed, 24 Jan 2024 02:59:43 +0000 (03:59 +0100)
committerQiang Yu <yuq825@gmail.com>
Mon, 12 Feb 2024 08:27:07 +0000 (16:27 +0800)
commit27aa58ec85f973d98d336df7b7941149308db80f
tree7077e082ff89384b967e3ccfa227bbeee61994ae
parenta9da58c86e3bfb0a068a1834e48bdc536e7201e4
drm/lima: set gp bus_stop bit before hard reset

This is required for reliable hard resets. Otherwise, doing a hard reset
while a task is still running (such as a task which is being stopped by
the drm_sched timeout handler) may result in random mmu write timeouts
or lockups which cause the entire gpu to hang.

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-5-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_gp.c