Allocating stolen memory for the fbdev and initial plane bo might
bar enabling FBC. So have some check if we have enough stolen memory
for FBC before allocating the stolen to fbdev and initial plane bo.
Right now the check is based on simple logic that if the fbdev or
initial plane bo take more than half of the stolen, avoid useing the
stolen for that. Later on we will fine tune this by adding some better
comparison based on the possible FBC size.

Ville Syrjälä (3):
  drm/xe/fbdev: Fix BIOS FB vs.s stolen size check
  drm/i915/fbdev: Extract intel_fbdev_fb_prefer_stolen()
  drm/xe/fbdev: Extract intel_fbdev_fb_prefer_stolen()

Vinod Govindapillai (3):
  drm/i915/display: remove the usage of dev_priv
  drm/xe/fbdev: print info about stolen memory preference for fbdev
  drm/i915/fbdev: print info about stolen memory preference for fbdev

 drivers/gpu/drm/i915/display/intel_fbdev_fb.c | 40 +++++++++++++------
 drivers/gpu/drm/i915/display/intel_fbdev_fb.h |  2 +
 drivers/gpu/drm/i915/i915_initial_plane.c     |  3 +-
 drivers/gpu/drm/xe/display/intel_fbdev_fb.c   | 29 +++++++++++++-
 drivers/gpu/drm/xe/display/xe_initial_plane.c | 13 ++----
 5 files changed, 63 insertions(+), 24 deletions(-)

-- 
2.43.0

Reply via email to