drm/i915/mtl: Introduce FBC B
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Aug 2022 12:26:24 +0000 (15:26 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 19 Aug 2022 09:38:54 +0000 (12:38 +0300)
commit4cf05a4d7125854800a0e88eb3e1dbd74368e9af
tree5f2677d7b03922364ef997cdc99a8cde3c0784ef
parentf386832509b85e567acc849cdef22843ed33a525
drm/i915/mtl: Introduce FBC B

MTL introduces a second FBC engine. The two FBC engines can
operate entirely independently, FBC A serving pipe A and
FBC B serving pipe B.

The one place where things might go a bit wrong is the CFB
allocation from stolen. We might have to consider some change
to the allocation strategy to have a better chance of both
engines being able to allocate its CFB. Maybe FBC A should
allocate bottom up and FBC B top down, or something? For the
moment the allocation strategy is DRM_MM_INSERT_BEST for both.

Cc: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220817122624.213889-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_fbc.h
drivers/gpu/drm/i915/i915_pci.c