From d1c1ff4010902676905619c465dc4382fc88df47 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 5 Sep 2022 14:06:39 +0000 Subject: [PATCH] drm/i915/gt: Skip TLB invalidations once wedged 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/i915/gt/intel_gt.c b/sys/dev/pci/drm/i915/gt/intel_gt.c index ebeb02acf1d..810d138ff9e 100644 --- a/sys/dev/pci/drm/i915/gt/intel_gt.c +++ b/sys/dev/pci/drm/i915/gt/intel_gt.c @@ -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); -- 2.20.1