drm/i915/display: relax 2big checking around initial fb
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 26 May 2021 12:49:01 +0000 (13:49 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 27 May 2021 09:11:34 +0000 (10:11 +0100)
commit40e40e63f7be028ff8dc2a2dcef4a812539e86cc
treee9c6646c256bfb9cf9491d3df0b243825165544b
parent994a4c3e226a40fb6404ca9999e20d1e43096470
drm/i915/display: relax 2big checking around initial fb

The kernel prefers enabling fbc over the initial fb, since this leads to
actual runtime power savings, so if the initial fb is deemed too big
using some heuristic, then we simply skip allocating stolen for it.
However if the kernel is not configured with fbcon then it should be
possible to relax this, since unlike with fbcon the display server
shouldn't preserve it when later replacing it, and so we should be able
to re-use the stolen memory for fbc and friends. This patch is reported
to fix some flicker seen during boot splash on some devices.

v2: s/FRAMEBUFFER_CONSOLE/CONFIG_FRAMEBUFFER_CONSOLE

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Lee Shawn C <shawn.c.lee@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210526124901.245689-1-matthew.auld@intel.com
drivers/gpu/drm/i915/display/intel_display.c