From f90aebb19ac56441f6b03fcf253e8680b0b56448 Mon Sep 17 00:00:00 2001 From: jsg Date: Sat, 3 Dec 2022 01:18:03 +0000 Subject: [PATCH] drm/i915: fix TLB invalidation for Gen12 video and compute engines From Andrzej Hajda ee2d04f23bbb16208045c3de545c6127aaa1ed0e in linux 5.15.y/5.15.81 04aa64375f48a5d430b5550d9271f8428883e550 in mainline linux --- sys/dev/pci/drm/i915/gt/intel_gt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/pci/drm/i915/gt/intel_gt.c b/sys/dev/pci/drm/i915/gt/intel_gt.c index 810d138ff9e..a45dc6fc60e 100644 --- a/sys/dev/pci/drm/i915/gt/intel_gt.c +++ b/sys/dev/pci/drm/i915/gt/intel_gt.c @@ -986,6 +986,10 @@ void intel_gt_invalidate_tlbs(struct intel_gt *gt) if (!i915_mmio_reg_offset(rb.reg)) continue; + if (GRAPHICS_VER(i915) == 12 && (engine->class == VIDEO_DECODE_CLASS || + engine->class == VIDEO_ENHANCEMENT_CLASS)) + rb.bit = _MASKED_BIT_ENABLE(rb.bit); + intel_uncore_write_fw(uncore, rb.reg, rb.bit); } -- 2.20.1