drm/i915: Verify the BIOS FB first PTE on non-LMEMBAR systems
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Mar 2025 14:08:34 +0000 (16:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Apr 2025 23:20:00 +0000 (02:20 +0300)
commit4bef6b0e1049a952fc4d728b7defc42422cab599
treeda813366a2bbb89ac6b05256db3cf03b010e7d8a
parent50596bdd4e724c9d84885e4a67edc11c622c590b
drm/i915: Verify the BIOS FB first PTE on non-LMEMBAR systems

Now that we have intel_ggtt_read_entry() we can easily read out the
first PTE of the BIOS FB and verify that it looks correct. We'll
also use the extracted dma address to figure out where in stolen
the FB lives (so far we've just assumed that it sits at offset 0,
and in practice that does seem to be true, but better safe than
sorry).

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313140838.29742-7-ville.syrjala@linux.intel.com
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
drivers/gpu/drm/i915/display/intel_plane_initial.c