drm/lima: set pp bus_stop bit before hard reset
authorErico Nunes <nunes.erico@gmail.com>
Wed, 24 Jan 2024 02:59:42 +0000 (03:59 +0100)
committerQiang Yu <yuq825@gmail.com>
Mon, 12 Feb 2024 08:26:57 +0000 (16:26 +0800)
commita9da58c86e3bfb0a068a1834e48bdc536e7201e4
tree10fc1c4025c8bb1c24764f64047588475396821a
parent2ccd4adc681e34cc12313b078e5067fa2383c2eb
drm/lima: set pp 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>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240124025947.2110659-4-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_pp.c