drm/i915: Extract cdclk requirements checking to separate function
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Tue, 19 May 2020 13:11:12 +0000 (16:11 +0300)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 21 May 2020 21:13:06 +0000 (14:13 -0700)
commit4f0b4352bd26eff85f972ccf12bcdf9236a42175
tree86a7758b2b5b4d587b0dee5cb51c9a93ff010644
parentc93b9b2c79296e7ea0fe31f1eafda20bb288dafd
drm/i915: Extract cdclk requirements checking to separate function

In Gen11+ whenever we might exceed DBuf bandwidth we might need to
recalculate CDCLK which DBuf bandwidth is scaled with.
Total Dbuf bw used might change based on particular plane needs.

Thus to calculate if cdclk needs to be changed it is not enough
anymore to check plane configuration and plane min cdclk, per DBuf
bw can be calculated only after wm/ddb calculation is done and
all required planes are added into the state. In order to keep
all min_cdclk related checks in one place let's extract it into
separate function, checking and modifying any_ms.

Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200519131117.17190-3-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_display.c