[Intel-gfx] [PATCH] drm/i915/gt: Force the GT reset on shutdown

Chris Wilson chris at chris-wilson.co.uk
Mon May 25 12:04:11 UTC 2020

Before we return control to the system, and letting it reuse all the
pages being accessed by HW, we must disable the HW. At the moment, we
dare not reset the GPU if it will clobber the display, but once we know
the display has been disabled, we can proceed with the reset as we
shutdown the module. We know the next user must reinitialise the HW for
their purpose.

Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/489
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: stable at kernel.org
 drivers/gpu/drm/i915/gt/intel_gt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_gt.c b/drivers/gpu/drm/i915/gt/intel_gt.c
index dac254673c2e..e4ff18ab48e5 100644
--- a/drivers/gpu/drm/i915/gt/intel_gt.c
+++ b/drivers/gpu/drm/i915/gt/intel_gt.c
@@ -634,4 +634,6 @@ void intel_gt_driver_late_release(struct intel_gt *gt)
+	__intel_gt_reset(gt, ALL_ENGINES);

More information about the Intel-gfx mailing list