Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73821a53 authored by Zhenyu Wang's avatar Zhenyu Wang
Browse files

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: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent 64d8bb83
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);