drm/i915: Extract pipe_mbus_dbox_ctl_update()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 31 Oct 2024 15:56:43 +0000 (17:56 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 6 Nov 2024 14:41:38 +0000 (16:41 +0200)
commit7b3cb58fb2101ffe12fc6667b3cd97dbe61884b2
treedeb5959fdc55355bc1d76bfb4d792166a9f5abca
parent45bc523009f0c289b0f1354de007f3c61958e8c0
drm/i915: Extract pipe_mbus_dbox_ctl_update()

We'll be wanting to reprogram the PIPE_MBUS_DBOX_CTL registers
during an upcoming MBUS sanitation stage. Extract the reprogramming
loop into a helper that doesn't depend on the full atomic state
so that it can be reused.

We'll stick to sturct drm_i915_private for now (instead of
struct intel_display) since the rest of the skl wm code does the
same, and we might need to bakport this.

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