drm/i915/gt: Reset twice
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 12 Dec 2022 16:13:38 +0000 (17:13 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 10 Jan 2023 16:02:20 +0000 (11:02 -0500)
commitd3de5616d36462a646f5b360ba82d3b09ff668eb
tree13dbd0ec8d4be589343e0408e70d20bc0ad0659d
parentafce71ff6daa9c0f852df0727fe32c6fb107f0fa
drm/i915/gt: Reset twice

After applying an engine reset, on some platforms like Jasperlake, we
occasionally detect that the engine state is not cleared until shortly
after the resume. As we try to resume the engine with volatile internal
state, the first request fails with a spurious CS event (it looks like
it reports a lite-restore to the hung context, instead of the expected
idle->active context switch).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221212161338.1007659-1-andi.shyti@linux.intel.com
(cherry picked from commit 3db9d590557da3aa2c952f2fecd3e9b703dad790)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_reset.c