artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63f57b
)
drm/i915: fix TLB invalidation for Gen12 video and compute engines
author
jsg
<jsg@openbsd.org>
Sat, 3 Dec 2022 01:18:03 +0000
(
01:18
+0000)
committer
jsg
<jsg@openbsd.org>
Sat, 3 Dec 2022 01:18:03 +0000
(
01:18
+0000)
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
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/i915/gt/intel_gt.c
b/sys/dev/pci/drm/i915/gt/intel_gt.c
index
810d138
..
a45dc6f
100644
(file)
--- 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);
}