]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Simplify FW fast reset path
authorKarunika Choo <karunika.choo@arm.com>
Tue, 19 Nov 2024 13:50:29 +0000 (13:50 +0000)
committerLiviu Dudau <liviu.dudau@arm.com>
Tue, 19 Nov 2024 16:28:02 +0000 (16:28 +0000)
commit498893bd596e6aedd9796a10e2828311f8135a02
tree31ab00d0d92dc843e7acfd9c788f812f9eeb9157
parentdd7db8d911a103cb17927cfdba69c2bdfa6e8a71
drm/panthor: Simplify FW fast reset path

Stop checking the FW halt_status as MCU_STATUS should be sufficient.
This should make the check for successful FW halt and subsequently
setting fast_reset to true more robust.

We should also clear GLB_REQ.GLB_HALT bit only on post-reset prior
to starting the FW and only if we're doing a fast reset, because
the slow reset will re-initialize all FW sections, including the
global interface.

Signed-off-by: Karunika Choo <karunika.choo@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/r/20241119135030.3352939-1-karunika.choo@arm.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/panthor/panthor_fw.c