[PATCH v4 3/3] drm/i915/gvt: turn on shadow context skipping

Yan Zhao yan.y.zhao at intel.com
Wed Apr 15 07:56:24 UTC 2020


turnning on skipping of population of the shadow context

Signed-off-by: Yan Zhao <yan.y.zhao at intel.com>
---
 drivers/gpu/drm/i915/gvt/scheduler.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c
index 717d2a110a40..1f0b15b9a846 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.c
+++ b/drivers/gpu/drm/i915/gvt/scheduler.c
@@ -200,9 +200,6 @@ static int populate_shadow_context(struct intel_vgpu_workload *workload)
 	atomic_set(&s->last_ctx[ring_id].lrca, workload->ctx_desc.lrca);
 	s->last_ctx[ring_id].ring_context_gpa = workload->ring_context_gpa;
 
-	/* intentionally set it to false now. will turn it on in later patch */
-	skip = false;
-
 	if (IS_RESTORE_INHIBIT(shadow_ring_context->ctx_ctrl.val) || skip)
 		return 0;
 
-- 
2.17.1



More information about the intel-gvt-dev mailing list