summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-09-05 14:06:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-09-05 14:06:40 +0000
commit96e07f8fadf6c4a0a2099d8733182ab6ef998b53 (patch)
treef3c41c16e250f785a51f1e74ce3006e709801e54 /sys/dev
parentb314ffdbe3863185a0c904632c6214e37f1fbd38 (diff)
drm/i915/gt: Skip TLB invalidations once wedged
From Chris Wilson 4676773ea117624ced48fdf9806d5e0dc051bd7f in linux 5.15.y/5.15.65 e5a95c83ed1492c0f442b448b20c90c8faaf702b in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/i915/gt/intel_gt.c3
1 files changed, 3 insertions, 0 deletions
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);