[07/11] drm/i915/gt: Flush the requests after wedging on suspend
diff mbox series

Message ID 20191116175139.1790440-7-chris@chris-wilson.co.uk
State New
Headers show
  • [01/11] drm/i915/gt: Close race between engine_park and intel_gt_retire_requests
Related show

Commit Message

Chris Wilson Nov. 16, 2019, 5:51 p.m. UTC
Retire all requests if we resort to wedged the driver on suspend. They
will now be idle, so we might as we free them before shutting down.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
 drivers/gpu/drm/i915/gt/intel_gt_pm.c | 1 +
 1 file changed, 1 insertion(+)

diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/intel_gt_pm.c b/drivers/gpu/drm/i915/gt/intel_gt_pm.c
index 7a9044ac4b75..f6b5169d623f 100644
--- a/drivers/gpu/drm/i915/gt/intel_gt_pm.c
+++ b/drivers/gpu/drm/i915/gt/intel_gt_pm.c
@@ -256,6 +256,7 @@  static void wait_for_suspend(struct intel_gt *gt)
 		 * the gpu quiet.
+		intel_gt_retire_requests(gt);