[PATCH 8/8] testme4

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Jun 21 11:48:51 UTC 2021


Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/gt/intel_ggtt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt.c b/drivers/gpu/drm/i915/gt/intel_ggtt.c
index bd8e7dea6254..19140c5a6c70 100644
--- a/drivers/gpu/drm/i915/gt/intel_ggtt.c
+++ b/drivers/gpu/drm/i915/gt/intel_ggtt.c
@@ -371,7 +371,9 @@ static void bxt_vtd_ggtt_insert_page__BKL(struct i915_address_space *vm,
 	struct insert_page arg = { vm, addr, offset, level };
 
 	migrate_disable();
+	wbinvd_on_all_cpus();
 	stop_machine(bxt_vtd_ggtt_insert_page__cb, &arg, cpumask_of(smp_processor_id()));
+	wbinvd_on_all_cpus();
 	migrate_enable();
 }
 
@@ -400,7 +402,9 @@ static void bxt_vtd_ggtt_insert_entries__BKL(struct i915_address_space *vm,
 	struct insert_entries arg = { vm, vma, level, flags };
 
 	migrate_disable();
+	wbinvd_on_all_cpus();
 	stop_machine(bxt_vtd_ggtt_insert_entries__cb, &arg, cpumask_of(smp_processor_id()));
+	wbinvd_on_all_cpus();
 	migrate_enable();
 }
 
-- 
2.31.0



More information about the Intel-gfx-trybot mailing list