drm/i915/gvt: not to restore in-context mmio
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Mon, 8 May 2017 01:27:39 +0000 (09:27 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 8 May 2017 08:55:35 +0000 (16:55 +0800)
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>
drivers/gpu/drm/i915/gvt/render.c

index 0beb83563b0870edecae35cf5a5807ba1bfc4ae8..05b75b9f852afb6ea6506ebbd55f4fde2829714b 100644 (file)
@@ -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);