From: Chris Wilson Date: Mon, 18 Nov 2019 23:02:50 +0000 (+0000) Subject: drm/i915/gt: Flush the requests after wedging on suspend X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0cdfdf6fa9ee8babb72d3cb725c15a81dbc42bf1;p=linux.git drm/i915/gt: Flush the requests after wedging on suspend 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 Reviewed-by: Tvrtko Ursulin Link: https://patchwork.freedesktop.org/patch/msgid/20191118230254.2615942-16-chris@chris-wilson.co.uk --- diff --git a/drivers/gpu/drm/i915/gt/intel_gt_pm.c b/drivers/gpu/drm/i915/gt/intel_gt_pm.c index e61f752a3cd56..470fbdc30e5af 100644 --- a/drivers/gpu/drm/i915/gt/intel_gt_pm.c +++ b/drivers/gpu/drm/i915/gt/intel_gt_pm.c @@ -257,6 +257,7 @@ static void wait_for_suspend(struct intel_gt *gt) * the gpu quiet. */ intel_gt_set_wedged(gt); + intel_gt_retire_requests(gt); } intel_gt_pm_wait_for_idle(gt);