]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/fbdev: Extract intel_fbdev_fb_prefer_stolen()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 20 Feb 2026 17:09:06 +0000 (19:09 +0200)
committerVinod Govindapillai <vinod.govindapillai@intel.com>
Wed, 25 Feb 2026 12:35:28 +0000 (14:35 +0200)
commit27c56f73c3af03bb057fc1f0f99684deb2741fe0
treea4cdfc64089ab856eb9245e196d5215768337a20
parent94c7d286129268ead0fb76d684fe4363d57da415
drm/xe/fbdev: Extract intel_fbdev_fb_prefer_stolen()

Pull the "should we keep the bios fb in stolen?" logic into
into a helper function, same as was done for i915. Gives us
a single place where to tweak the heuristics.

v2: changes related to rebase and consolidated other conditions
    for the stolen preference into this single function (Vinod)

v3: avoid including intel_display_core.h (Jani Nikula)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Acked-by: Mika Kahola <mika.kahola@intel.com>
Link: https://patch.msgid.link/20260220170908.201422-5-vinod.govindapillai@intel.com
drivers/gpu/drm/xe/display/intel_fbdev_fb.c
drivers/gpu/drm/xe/display/xe_initial_plane.c