]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Decouple cdclk calculation from modeset checks
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Tue, 19 May 2020 13:11:11 +0000 (16:11 +0300)
committerManasi Navare <manasi.d.navare@intel.com>
Thu, 21 May 2020 21:12:32 +0000 (14:12 -0700)
commitc93b9b2c79296e7ea0fe31f1eafda20bb288dafd
tree213b896f51a0e1f6513e2035477a0b22969c6243
parentaedbe0a1af585edc91221890f3a2a9ea2a319336
drm/i915: Decouple cdclk calculation from modeset checks

We need to calculate cdclk after watermarks/ddb has been calculated
as with recent hw CDCLK needs to be adjusted accordingly to DBuf
requirements, which is not possible with current code organization.

Setting CDCLK according to DBuf BW requirements and not just rejecting
if it doesn't satisfy BW requirements, will allow us to save power when
it is possible and gain additional bandwidth when it's needed - i.e
boosting both our power management and perfomance capabilities.

This patch is preparation for that, first we now extract modeset
calculation from modeset checks, in order to call it after wm/ddb
has been calculated.

v2: - Extract only intel_modeset_calc_cdclk from intel_modeset_checks
      (Ville Syrjälä)

v3: - Clear plls after intel_modeset_calc_cdclk

v4: - Added r-b from previous revision to commit message

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.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-2-stanislav.lisovskiy@intel.com
drivers/gpu/drm/i915/display/intel_display.c