summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-11-18 23:02:50 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2019-11-19 17:19:25 +0000
commit0cdfdf6fa9ee8babb72d3cb725c15a81dbc42bf1 (patch)
tree81c41f7cd72f7171c4bc9b5c79528db52493a170
parentdcbebb11197cc7182fdbab61388939b8c323a08e (diff)
downloadlinux-0cdfdf6fa9ee8babb72d3cb725c15a81dbc42bf1.tar.bz2
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 <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191118230254.2615942-16-chris@chris-wilson.co.uk
-rw-r--r--drivers/gpu/drm/i915/gt/intel_gt_pm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gt/intel_gt_pm.c b/drivers/gpu/drm/i915/gt/intel_gt_pm.c
index e61f752a3cd5..470fbdc30e5a 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);