Merge tag 'gvt-next-2017-06-08' of https://github.com/01org/gvt-linux into drm-intel...
[muen/linux.git] / drivers / gpu / drm / i915 / gvt / render.c
index 28c91187c02762a31b80dbdd15e5e0183f01addf..504e57c3bc23c824036dff1bf51cd1168f5b15f3 100644 (file)
@@ -343,6 +343,9 @@ static void switch_mmio_to_host(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);