]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: Use intel_gt_pm_put_async in GuC submission path
authorStuart Summers <stuart.summers@intel.com>
Wed, 20 Nov 2019 21:13:21 +0000 (13:13 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 20 Nov 2019 21:23:10 +0000 (21:23 +0000)
GuC submission path can be called from an interrupt context
and so should use a worker to avoid holding a mutex.

References: 07779a76ee1f ("drm/i915: Mark up the calling context for intel_wakeref_put()")
Signed-off-by: Stuart Summers <stuart.summers@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191120211321.88021-1-stuart.summers@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c

index 902e25eb6b9d38828140cc6547ce0ec18ab30b74..dcccbd6408093df606c9d1f2486629f9a456729c 100644 (file)
@@ -537,7 +537,7 @@ static void schedule_out(struct i915_request *rq)
 {
        trace_i915_request_out(rq);
 
-       intel_gt_pm_put(rq->engine->gt);
+       intel_gt_pm_put_async(rq->engine->gt);
        i915_request_put(rq);
 }