From: Greg Kroah-Hartman Date: Tue, 18 Apr 2017 14:12:06 +0000 (+0200) Subject: 4.10-stable patches X-Git-Tag: v4.4.63~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=64de6262818de4631eab24f8283b91e965a04798;p=thirdparty%2Fkernel%2Fstable-queue.git 4.10-stable patches added patches: drm-i915-gvt-set-the-correct-default-value-of-ctx-status-ptr.patch --- diff --git a/queue-4.10/drm-i915-gvt-set-the-correct-default-value-of-ctx-status-ptr.patch b/queue-4.10/drm-i915-gvt-set-the-correct-default-value-of-ctx-status-ptr.patch new file mode 100644 index 00000000000..6cfd77603c6 --- /dev/null +++ b/queue-4.10/drm-i915-gvt-set-the-correct-default-value-of-ctx-status-ptr.patch @@ -0,0 +1,33 @@ +From a34f83639490a5cc11a9d5c1b3773d4b6eb69a9e Mon Sep 17 00:00:00 2001 +From: Min He +Date: Thu, 6 Apr 2017 11:01:45 +0800 +Subject: drm/i915/gvt: set the correct default value of CTX STATUS PTR + +From: Min He + +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 +Signed-off-by: Zhenyu Wang +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/gpu/drm/i915/gvt/execlist.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- 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 in + _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; + } + diff --git a/queue-4.10/series b/queue-4.10/series index 076974cbbb4..434cf66edff 100644 --- a/queue-4.10/series +++ b/queue-4.10/series @@ -51,3 +51,4 @@ pwm-rockchip-state-of-pwm-clock-should-synchronize-with-pwm-enabled-state.patch cpufreq-bring-cpus-up-even-if-cpufreq_online-failed.patch irqchip-irq-imx-gpcv2-fix-spinlock-initialization.patch ftrace-fix-removing-of-second-function-probe.patch +drm-i915-gvt-set-the-correct-default-value-of-ctx-status-ptr.patch