drm/xe/fbdev: Limit the usage of stolen for LNL+
authorUma Shankar <uma.shankar@intel.com>
Wed, 17 Jul 2024 08:22:52 +0000 (13:52 +0530)
committerUma Shankar <uma.shankar@intel.com>
Thu, 18 Jul 2024 05:13:27 +0000 (10:43 +0530)
commit775d0adc01a55fe0458139330415d86bb3533efe
treea2b4723f15c39f51354e9a056f3be3b1b4359ab1
parent3849c6ff3a1517e4c8a6d004d9cb31241c849713
drm/xe/fbdev: Limit the usage of stolen for LNL+

As per recommendation in the workarounds:
WA_22019338487

There is an issue with accessing Stolen memory pages due a
hardware limitation. Limit the usage of stolen memory for
fbdev for LNL+. Don't use BIOS FB from stolen on LNL+ and
assign the same from system memory.

v2: Corrected the WA Number, limited WA to LNL and
    Adopted XE_WA framework as suggested by Lucas and Matt.

v3: Introduced the waxxx_display to implement display side
    of WA changes on Lunarlake. Used xe_root_mmio_gt and
    avoid the for loop (Suggested by Lucas)

v4: Fixed some nits (Luca)

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240717082252.3875909-1-uma.shankar@intel.com
drivers/gpu/drm/xe/display/intel_fbdev_fb.c
drivers/gpu/drm/xe/display/xe_plane_initial.c
drivers/gpu/drm/xe/xe_wa_oob.rules