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

Consolidate the "should we allocate fbdev fb in stolen?"
check into a helper function. Makes it easier to change the
heuristics without having to change so many places.

v2: rebase related changes and consolidate all the prefer
    stolen conditions into a single function (Vinod)

v3: avoid including intel_display_core.h (Jani)

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-4-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_fbdev_fb.c
drivers/gpu/drm/i915/display/intel_fbdev_fb.h
drivers/gpu/drm/i915/i915_initial_plane.c