]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/ggtt: Add intel_ggtt_read_entry()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Mar 2025 14:08:32 +0000 (16:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Apr 2025 23:17:30 +0000 (02:17 +0300)
commitd1b14231aa0cf78ad21e5e83d32e50608928c108
treef1f098ea19c4cab45ca8f9e520c85dff86d58655
parent8f0d3618c6b31b1f8ff0c6c08cf6b101e56d6f8b
drm/i915/ggtt: Add intel_ggtt_read_entry()

The BIOS FB takeover code wants to read out the PTEs (or at least
one of them) to figure out where the FB is located in memory.
Currently we only do that for systems with LMEMBAR, and we've
open coded the PTE decoding in the display code. Introduce a more
proper abstract interface (intel_ggtt_read_entry()) for this purpose,
and implement it for all platforms.

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