]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915: Handle SKL+ WM/DDB registers next to all other plane registers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 May 2024 15:23:29 +0000 (18:23 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 15 May 2024 11:11:24 +0000 (14:11 +0300)
commit19be15dcc0f6bcb4be9109faf2d50771fc9a80e1
treee73ba8fd9a9ade7d2faeaeedaa7915ee9e9ea703
parent09fc93141d4c6ba3f6e78ce3c995c9dedac4a37c
drm/i915: Handle SKL+ WM/DDB registers next to all other plane registers

Having the plane WM/DDB regitster write functions in skl_watermarks.c
is rather annoying when trying to implement DSB based plane updates.
Move them into the respective files that handle all other plane
register writes. Less places where I need to worry about the DSB
vs. MMIO decisions.

The downside is that we spread the wm struct details a bit further
afield. But if that becomes too annoying we can probably abstract
things a bit more with a few extra functions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240510152329.24098-17-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_cursor.c
drivers/gpu/drm/i915/display/skl_universal_plane.c
drivers/gpu/drm/i915/display/skl_universal_plane.h
drivers/gpu/drm/i915/display/skl_watermark.c
drivers/gpu/drm/i915/display/skl_watermark.h