aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2017-07-10 02:13:12 -0400
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-08-09 22:26:08 -0400
commit73821a53d081de30368262198793e891fbd7318d (patch)
tree324270065bd9f7020881964a556e5a8941b0942c
parent64d8bb83b61d3fcb0babaa88c4e8b423e7d2721e (diff)
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 <ping.a.gao@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
-rw-r--r--drivers/gpu/drm/i915/gvt/execlist.c2
1 files changed, 2 insertions, 0 deletions
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,
707 * as there is only one pre-allocated buf-obj for shadow. 707 * as there is only one pre-allocated buf-obj for shadow.
708 */ 708 */
709 if (list_empty(workload_q_head(vgpu, ring_id))) { 709 if (list_empty(workload_q_head(vgpu, ring_id))) {
710 intel_runtime_pm_get(dev_priv);
710 mutex_lock(&dev_priv->drm.struct_mutex); 711 mutex_lock(&dev_priv->drm.struct_mutex);
711 intel_gvt_scan_and_shadow_workload(workload); 712 intel_gvt_scan_and_shadow_workload(workload);
712 mutex_unlock(&dev_priv->drm.struct_mutex); 713 mutex_unlock(&dev_priv->drm.struct_mutex);
714 intel_runtime_pm_put(dev_priv);
713 } 715 }
714 716
715 queue_workload(workload); 717 queue_workload(workload);