Skip to content

Commit

Permalink
drm/i915/gt: Flush the requests after wedging on suspend
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Wilson committed Nov 19, 2019
1 parent dcbebb1 commit 0cdfdf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/gt/intel_gt_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0cdfdf6

Please sign in to comment.