]> www.infradead.org Git - users/hch/misc.git/commit
drm/panthor: Fix a race between the reset and suspend path
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 17 Dec 2024 09:24:57 +0000 (10:24 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 13 Jan 2025 11:26:20 +0000 (11:26 +0000)
commit57e233c3bd63f32d2c7e937db2e16b98f723ce2f
tree35d75094c68e6525cc9e176c8c2f88220d7085af
parent573b73e5ac2ce0d58859eace8218f3a7e9212186
drm/panthor: Fix a race between the reset and suspend path

If a reset is scheduled when the suspend happens, we drop the
reset-pending info on the floor assuming the resume will fix things,
but the resume logic might try a fast reset. If we're lucky, the
fast reset fails and we fallback to a slow reset, but if the FW was
corrupted in a way that makes it partially functional (it boots but
doesn't quite do what it's expected to do), we won't notice immediately
that things are not working correctly, leading to a new reset further
down the road.

Fixes: 5fe909cae118 ("drm/panthor: Add the device logical block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241217092457.1582053-1-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_device.c