drm/lima: reset async_reset on pp hard reset
authorErico Nunes <nunes.erico@gmail.com>
Wed, 24 Jan 2024 02:59:40 +0000 (03:59 +0100)
committerQiang Yu <yuq825@gmail.com>
Mon, 12 Feb 2024 08:26:31 +0000 (16:26 +0800)
commitb5b345ea9b3e68c41aeb4163c0a221bf7405b8d8
tree74e9a7bbb7b31d28b40bee7c13a40896f3a70e06
parent7edd06233958d9086a9e3eb723a8768d3c5a9ce1
drm/lima: reset async_reset on pp hard reset

Lima pp jobs use an async reset to avoid having to wait for the soft
reset right after a job. The soft reset is done at the end of a job and
a reset_complete flag is expected to be set at the next job.
However, in case the user runs into a job timeout from any application,
a hard reset is issued to the hardware. This hard reset clears the
reset_complete flag, which causes an error message to show up before the
next job.
This is probably harmless for the execution but can be very confusing to
debug, as it blames a reset timeout on the next application to submit a
job.
Reset the async_reset flag when doing the hard reset so that we don't
get that message.

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