File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -952,6 +952,20 @@ void intel_gt_invalidate_tlbs(struct intel_gt *gt)
952952 mutex_lock (& gt -> tlb_invalidate_lock );
953953 intel_uncore_forcewake_get (uncore , FORCEWAKE_ALL );
954954
955+ spin_lock_irq (& uncore -> lock ); /* serialise invalidate with GT reset */
956+
957+ for_each_engine (engine , gt , id ) {
958+ struct reg_and_bit rb ;
959+
960+ rb = get_reg_and_bit (engine , regs == gen8_regs , regs , num );
961+ if (!i915_mmio_reg_offset (rb .reg ))
962+ continue ;
963+
964+ intel_uncore_write_fw (uncore , rb .reg , rb .bit );
965+ }
966+
967+ spin_unlock_irq (& uncore -> lock );
968+
955969 for_each_engine (engine , gt , id ) {
956970 /*
957971 * HW architecture suggest typical invalidation time at 40us,
@@ -966,7 +980,6 @@ void intel_gt_invalidate_tlbs(struct intel_gt *gt)
966980 if (!i915_mmio_reg_offset (rb .reg ))
967981 continue ;
968982
969- intel_uncore_write_fw (uncore , rb .reg , rb .bit );
970983 if (__intel_wait_for_register_fw (uncore ,
971984 rb .reg , rb .bit , 0 ,
972985 timeout_us , timeout_ms ,
You can’t perform that action at this time.
0 commit comments