drm/i915: Stop adding planes to the commit needlessly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 25 Mar 2021 00:44:15 +0000 (02:44 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 29 Mar 2021 16:56:52 +0000 (19:56 +0300)
commit67f6f52af4566192a9b087986b3ddcc33e817d72
tree022f592b21c4565e8ea4b002d53943d8b9a13377
parent5644dc0a75674df197241b481f1dbfb874739b5a
drm/i915: Stop adding planes to the commit needlessly

The dbuf bandwidth calculations don't need the planes to be
added to the state. Each plane's data rate has already been
precalculated and stored in the crtc state, and that with
the dbuf slice usage for each plane is all the dbuf bandwidth
code needs to figure out what the minimum cdclk is.

What we're trying to do here is make sure each plane recalculates
its minimum cdclk (ie. plane->min_cdclk()) on those platforms where
the number of active planes affects the result of said calculation.
Nothing to do with any dbuf cdclk requirements.

Not sure if we had stuff in slightly different order or what,
but at least in the current scheme this is not necessary.

Cc: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210325004415.17432-2-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/display/intel_display.c