drm/i915/fbc: Polish the skl+ FBC stride override handling
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 2 Jul 2021 20:45:59 +0000 (23:45 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 20 Aug 2021 13:50:26 +0000 (16:50 +0300)
commit2670ff5c72870646c5dd086f63887ab411ed44ee
tree0a141f865a424ae80a191e5030ae8d83cd7850d7
parentcd4891e4f78b1ed77e86500d9dc69262b25b56e4
drm/i915/fbc: Polish the skl+ FBC stride override handling

Polish the FBC stride override stuff:
- just call it override_cfb_stride since it'll be used on
  more gens later
- Use REG_BIT() & co. for the registers and give everything
  CHICKEN_ prefix since glk+ will have a different register
  for this
- Use intel_de_rmw() for the RMW

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702204603.596-5-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h