diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-12-03 01:18:04 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-12-03 01:18:04 +0000 |
commit | e738ec91e8d77ab49981970f5531e72b5ec6024f (patch) | |
tree | 07ef83ae1bac57873369eb7de4f4042b095c21ae /sys/dev | |
parent | 92685b93e6ed1bdea7a1e36e4a4b1a3cec119d41 (diff) |
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
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915/gt/intel_gt.c | 4 |
1 files changed, 4 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 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); } |