drm/i915/tgl: Fix Combo PHY DPLL fractional divider for 38.4MHz ref clock
authorImre Deak <imre.deak@intel.com>
Sat, 3 Oct 2020 00:18:46 +0000 (03:18 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jan 2021 12:46:23 +0000 (13:46 +0100)
commit8cba90399216ac12ad86193a5dcb0bb7606e15c9
tree000d284aa4d5eaa1f5aa8a1a9ebecf62009575dd
parentadee1c5126ef0aa7951e0ba101b73a3cd6732c09
drm/i915/tgl: Fix Combo PHY DPLL fractional divider for 38.4MHz ref clock

commit 0e2497e334de42dbaaee8e325241b5b5b34ede7e upstream.

Apply Display WA #22010492432 for combo PHY PLLs too. This should fix a
problem where the PLL output frequency is slightly off with the current
PLL fractional divider value.

I haven't seen an actual case where this causes a problem, but let's
follow the spec. It's also needed on some EHL platforms, but for that we
also need a way to distinguish the affected EHL SKUs, so I leave that
for a follow-up.

v2:
- Apply the WA at one place when calculating the PLL dividers from the
  frequency and the frequency from the dividers for all the combo PLL
  use cases (DP, HDMI, TBT). (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201003001846.1271151-6-imre.deak@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/display/intel_dpll_mgr.c