OSDN Git Service

drm/i915: Restore very early GPU reset
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 28 Dec 2019 11:12:55 +0000 (11:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 28 Dec 2019 11:52:07 +0000 (11:52 +0000)
commit640b50fa8c349135cb97d7430b8f8f0f87e56047
tree3c891bf33bf76c1ec563e4c4cb15554c8c5deee3
parent4ca153827f65a6779392fff668c46f9cc54d414b
drm/i915: Restore very early GPU reset

In commit d03b224f4252 ("drm/i915/gt: Apply sanitiization just before
resume") the GT sanitization was pulled into the resume path as we need
to know the backend in order to do a full reset prior to resume.
However, it is still imperative that we scrub existing GPU state before
clobbering in our early setup, so restore a minimal GPU reset at the
start of our init sequence.

Fixes: d03b224f4252 ("drm/i915/gt: Apply sanitiization just before resume")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191228111255.3086901-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c