Return-Path: Received: from mga05.intel.com ([192.55.52.43]:64227 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752226AbdDFDEd (ORCPT ); Wed, 5 Apr 2017 23:04:33 -0400 From: Zhenyu Wang To: intel-gvt-dev@lists.freedesktop.org Cc: Min He , stable@vger.kernel.org, #@vger.kernel.org, v4.10+@vger.kernel.org Subject: [PATCH v2] drm/i915/gvt: set the correct default value of CTX STATUS PTR Date: Thu, 6 Apr 2017 11:01:45 +0800 Message-Id: <20170406030145.1339-1-zhenyuw@linux.intel.com> In-Reply-To: <20170406024258.6345-1-zhenyuw@linux.intel.com> References: <20170406024258.6345-1-zhenyuw@linux.intel.com> Sender: stable-owner@vger.kernel.org List-ID: From: Min He 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: stable@vger.kernel.org # v4.10+ Signed-off-by: Min He Signed-off-by: Zhenyu Wang --- drivers/gpu/drm/i915/gvt/execlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c index ce4276a7cf9c..536bde8638c8 100644 --- a/drivers/gpu/drm/i915/gvt/execlist.c +++ b/drivers/gpu/drm/i915/gvt/execlist.c @@ -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; } -- 2.11.0