Skip to contentSkip to conversation

drm/i915/gvt: set the correct default value of CTX STATUS PTR

PATCH Superseded Zhenyu Wang 1 participant 2 messages Apr 6, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/gvt: set the correct default value of CTX STATUS PTR

From: Min He <[email protected]>

Fix wrong initial csb read pointer value. This fixes the random engine timeout issue in guest when guest boots up.

---
 drivers/gpu/drm/i915/gvt/execlist.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gvt/execlist.c +2 -1
index ce4276a7cf9c..536bde8638c8 100644
@@ -776,7 +776,8 @@ static void init_vgpu_execlist(struct intel_vgpu *vgpu, int ring_id)
 			_EL_OFFSET_STATUS_PTR);
 
 	ctx_status_ptr.dw = vgpu_vreg(vgpu, ctx_status_ptr_reg);
-	ctx_status_ptr.read_ptr = ctx_status_ptr.write_ptr = 0x7;
+	ctx_status_ptr.read_ptr = 0;
+	ctx_status_ptr.write_ptr = 0x7;
 	vgpu_vreg(vgpu, ctx_status_ptr_reg) = ctx_status_ptr.dw;
 }
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 drm/i915/gvt: set the correct default value of CTX STATUS PTR

From: Min He <[email protected]>

Fix wrong initial csb read pointer value. This fixes the random engine timeout issue in guest when guest boots up.

Fixes 8453d674ae7e ("drm/i915/gvt: vGPU execlist virtualization")
Cc [email protected] # v4.10+
---
 drivers/gpu/drm/i915/gvt/execlist.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/gvt/execlist.c +2 -1
index ce4276a7cf9c..536bde8638c8 100644
@@ -776,7 +776,8 @@ static void init_vgpu_execlist(struct intel_vgpu *vgpu, int ring_id)
 			_EL_OFFSET_STATUS_PTR);
 
 	ctx_status_ptr.dw = vgpu_vreg(vgpu, ctx_status_ptr_reg);
-	ctx_status_ptr.read_ptr = ctx_status_ptr.write_ptr = 0x7;
+	ctx_status_ptr.read_ptr = 0;
+	ctx_status_ptr.write_ptr = 0x7;
 	vgpu_vreg(vgpu, ctx_status_ptr_reg) = ctx_status_ptr.dw;
 }
 
Signature · 1 line
2.11.0