From: Zhenyu Wang Date: Mon, 10 Jul 2017 06:13:12 +0000 (+0800) Subject: drm/i915/gvt: take runtime pm when do early scan and shadow X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=73821a53d081de30368262198793e891fbd7318d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/i915/gvt: take runtime pm when do early scan and shadow Need to take runtime pm when do early scan/shadow of workload for request operations. Fixes: 7fa56bd159bc ("drm/i915/gvt: Audit and shadow workload during ELSP writing") Cc: Ping Gao Signed-off-by: Zhenyu Wang --- diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c index 28a2c7e8bee1..33808657988a 100644 --- a/drivers/gpu/drm/i915/gvt/execlist.c +++ b/drivers/gpu/drm/i915/gvt/execlist.c @@ -707,9 +707,11 @@ static int submit_context(struct intel_vgpu *vgpu, int ring_id, * as there is only one pre-allocated buf-obj for shadow. */ if (list_empty(workload_q_head(vgpu, ring_id))) { + intel_runtime_pm_get(dev_priv); mutex_lock(&dev_priv->drm.struct_mutex); intel_gvt_scan_and_shadow_workload(workload); mutex_unlock(&dev_priv->drm.struct_mutex); + intel_runtime_pm_put(dev_priv); } queue_workload(workload);