drm/i915/gt: Skip TLB invalidations once wedged
authorjsg <jsg@openbsd.org>
Mon, 5 Sep 2022 14:06:39 +0000 (14:06 +0000)
committerjsg <jsg@openbsd.org>
Mon, 5 Sep 2022 14:06:39 +0000 (14:06 +0000)
From Chris Wilson
4676773ea117624ced48fdf9806d5e0dc051bd7f in linux 5.15.y/5.15.65
e5a95c83ed1492c0f442b448b20c90c8faaf702b in mainline linux

sys/dev/pci/drm/i915/gt/intel_gt.c

index ebeb02a..810d138 100644 (file)
@@ -953,6 +953,9 @@ void intel_gt_invalidate_tlbs(struct intel_gt *gt)
        if (I915_SELFTEST_ONLY(gt->awake == -ENODEV))
                return;
 
+       if (intel_gt_is_wedged(gt))
+               return;
+
        if (GRAPHICS_VER(i915) == 12) {
                regs = gen12_regs;
                num = ARRAY_SIZE(gen12_regs);