drm/i915: Fix PTE decode during initial plane readout
authorjsg <jsg@openbsd.org>
Tue, 13 Aug 2024 00:10:51 +0000 (00:10 +0000)
committerjsg <jsg@openbsd.org>
Tue, 13 Aug 2024 00:10:51 +0000 (00:10 +0000)
From Ville Syrjala
6b757e1d420cf01bc135212922906b8616b779d5 in mainline linux

sys/dev/pci/drm/i915/display/intel_plane_initial.c

index 736072a..41a5936 100644 (file)
@@ -71,7 +71,7 @@ initial_plane_vma(struct drm_i915_private *i915,
                        return NULL;
                }
 
-               phys_base = pte & I915_GTT_PAGE_MASK;
+               phys_base = pte & GEN12_GGTT_PTE_ADDR_MASK;
                mem = i915->mm.regions[INTEL_REGION_LMEM_0];
 
                /*