drm/i915/lnl: possibility to enable FBC on first three planes
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 22 Sep 2023 13:30:02 +0000 (16:30 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 3 Oct 2023 12:52:59 +0000 (15:52 +0300)
commitde1ee4e4cd32ce044276ba809c985344cecdf7ac
treef9006aea2304b70e951e57b6159bb875f13a4538
parent587e80dc1cb5f1f3f41b38356d3e3563c01d9d8e
drm/i915/lnl: possibility to enable FBC on first three planes

In LNL onwards, FBC can be associated to the first three planes.
FBC will be enabled on planes first come first served basis
until the userspace can select one of these FBC capable planes
explicitly.

v2:
 - avoid fbc->state.plane check in intel_fbc_check_plane (Ville)
 - simplify plane binding register writes (Matt)
 - Update the subject to reflect that fbc can be enabled only in
   the first three planes (Matt)

v3:
 - use icl_is_hdr_plane(), use wrapper macro for plane binding
   register access, comments update and patch split (Ville)

v4:
 - update to the plane binding register access macro

Bspec: 69560
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230922133003.150578-2-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/display/skl_universal_plane.c
drivers/gpu/drm/i915/i915_reg.h