summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMin He <min.he@intel.com>2017-04-06 11:01:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-21 09:32:41 +0200
commitebe4deab5c805a7301e6967d984d01bb8ff58c78 (patch)
tree8725ba80dd52c9944bbfa1015f3bd21192144289 /drivers
parent4bf7df7b3bd7b336280a938bf23c108e0bc52579 (diff)
downloadlinux-stable-ebe4deab5c805a7301e6967d984d01bb8ff58c78.tar.gz
linux-stable-ebe4deab5c805a7301e6967d984d01bb8ff58c78.tar.bz2
linux-stable-ebe4deab5c805a7301e6967d984d01bb8ff58c78.zip
drm/i915/gvt: set the correct default value of CTX STATUS PTR
commit a34f83639490a5cc11a9d5c1b3773d4b6eb69a9e upstream. 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") Signed-off-by: Min He <min.he@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/gvt/execlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c
index 34083731669d..6804bf5fec3a 100644
--- a/drivers/gpu/drm/i915/gvt/execlist.c
+++ b/drivers/gpu/drm/i915/gvt/execlist.c
@@ -778,7 +778,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;
}