aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChuanxiao Dong <chuanxiao.dong@intel.com>2017-05-08 09:27:39 +0800
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-05-08 16:55:35 +0800
commit2345ab1df8a9aa3cdca942142b48eb141faeb1c3 (patch)
tree28b666266ff602ca0141488bf69ca1f12f2ef7f9 /drivers/gpu
parentdrm/i915/gvt: fix typo: "supporte" -> "support" (diff)
downloadlinux-dev-2345ab1df8a9aa3cdca942142b48eb141faeb1c3.tar.xz
linux-dev-2345ab1df8a9aa3cdca942142b48eb141faeb1c3.zip
drm/i915/gvt: not to restore in-context mmio
Needn't to restore the in-context MMIO when SCHEDULE_OUT. Sometimes with restoring the in-context MMIO, some GPU hang can be observed. So remove the in-context MMIO restore Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/gvt/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/render.c b/drivers/gpu/drm/i915/gvt/render.c
index 0beb83563b08..05b75b9f852a 100644
--- a/drivers/gpu/drm/i915/gvt/render.c
+++ b/drivers/gpu/drm/i915/gvt/render.c
@@ -333,6 +333,9 @@ void intel_gvt_restore_render_mmio(struct intel_vgpu *vgpu, int ring_id)
} else
v = mmio->value;
+ if (mmio->in_context)
+ continue;
+
I915_WRITE(mmio->reg, v);
POSTING_READ(mmio->reg);