[PATCH v1] drm/i915/gvt: Fix guest boot warning

Gao, Fred fred.gao at intel.com
Tue Nov 26 16:19:04 UTC 2019


Simulate MIA core in reset status once GUC engine is reset.

Signed-off-by: Gao Fred <fred.gao at intel.com>
---
 drivers/gpu/drm/i915/gvt/handlers.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/gvt/handlers.c b/drivers/gpu/drm/i915/gvt/handlers.c
index 3de664deb2f8..78f4d41b9005 100644
--- a/drivers/gpu/drm/i915/gvt/handlers.c
+++ b/drivers/gpu/drm/i915/gvt/handlers.c
@@ -341,6 +341,11 @@ static int gdrst_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
 			gvt_dbg_mmio("vgpu%d: request VCS2 Reset\n", vgpu->id);
 			engine_mask |= BIT(VCS1);
 		}
+		if (data & GEN9_GRDOM_GUC) {
+			gvt_dbg_mmio("vgpu%d: request GUC Reset\n", vgpu->id);
+			vgpu_vreg(vgpu, i915_mmio_reg_offset(GUC_STATUS))
+				|= GS_MIA_IN_RESET;
+		}
 		engine_mask &= INTEL_INFO(vgpu->gvt->dev_priv)->engine_mask;
 	}
 
-- 
2.17.1



More information about the intel-gvt-dev mailing list