[PATCH v2 2/3] drm/i915/gvt: Invalidate shadow PPGTT during vGPU reset

Zhi Wang zhi.wang.linux at gmail.com
Thu Nov 2 16:39:58 UTC 2017


Invalidate shadow PPGTT to avoid unnecessary traps caused by random access
of tracked page during vGPU reset.

Signed-off-by: Zhi Wang <zhi.a.wang at intel.com>
---
 drivers/gpu/drm/i915/gvt/vgpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
index c6b82d1..9560274 100644
--- a/drivers/gpu/drm/i915/gvt/vgpu.c
+++ b/drivers/gpu/drm/i915/gvt/vgpu.c
@@ -506,6 +506,7 @@ void intel_gvt_reset_vgpu_locked(struct intel_vgpu *vgpu, bool dmlr,
 	/* full GPU reset or device model level reset */
 	if (engine_mask == ALL_ENGINES || dmlr) {
 		intel_vgpu_select_submission_ops(vgpu, 0);
+		intel_vgpu_invalidate_mm(vgpu, INTEL_GVT_MM_PPGTT);
 
 		/*fence will not be reset during virtual reset */
 		if (dmlr) {
-- 
2.7.4



More information about the intel-gvt-dev mailing list