All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH] drm/i915/gt: Force the GT reset on shutdown
@ 2020-05-25 12:04 Chris Wilson
  2020-05-25 14:05 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Chris Wilson @ 2020-05-25 12:04 UTC (permalink / raw)
  To: intel-gfx; +Cc: stable, Chris Wilson

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@chris-wilson.co.uk>
Cc: stable@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_fini_reset(gt);
 	intel_gt_fini_timelines(gt);
 	intel_engines_free(gt);
+
+	__intel_gt_reset(gt, ALL_ENGINES);
 }
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-05-26  9:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-25 12:04 [Intel-gfx] [PATCH] drm/i915/gt: Force the GT reset on shutdown Chris Wilson
2020-05-25 14:05 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2020-05-25 14:17 ` [Intel-gfx] [PATCH] " Chris Wilson
2020-05-25 15:03 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/gt: Force the GT reset on shutdown (rev2) Patchwork
2020-05-25 15:14 ` [Intel-gfx] [PATCH] drm/i915/gt: Force the GT reset on shutdown Chris Wilson
2020-05-26  9:10   ` Mika Kuoppala
2020-05-25 16:49 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/gt: Force the GT reset on shutdown (rev3) Patchwork
2020-05-25 20:18 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.