diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2023-11-28 14:51:37 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2023-12-13 21:50:24 +0300 |
commit | 0656afab88a6cf0efb3fbef394b68a4451b40365 (patch) | |
tree | 6aad26c9a97e9192ba992893e1ccc861f1a06cb0 /drivers/gpu/drm/i915/display/intel_ddi.c | |
parent | 46bdb77d8b61e560ebb95c8d3a355be84b5492d2 (diff) | |
download | linux-0656afab88a6cf0efb3fbef394b68a4451b40365.tar.xz |
drm/i915/mtl: Calculate the correct voltage level from port_clock
On MTL we need to bump the voltage level to only 1 (not 2)
when port clock exceeds 594MHz. Make it so.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231128115138.13238-8-ville.syrjala@linux.intel.com
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_ddi.c')
-rw-r--r-- | drivers/gpu/drm/i915/display/intel_ddi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index bcfcd7e789f0..dd04bd7b348c 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -3699,7 +3699,9 @@ static int icl_ddi_min_voltage_level(const struct intel_crtc_state *crtc_state) void intel_ddi_compute_min_voltage_level(struct drm_i915_private *dev_priv, struct intel_crtc_state *crtc_state) { - if (DISPLAY_VER(dev_priv) >= 12) + if (DISPLAY_VER(dev_priv) >= 14) + crtc_state->min_voltage_level = icl_ddi_min_voltage_level(crtc_state); + else if (DISPLAY_VER(dev_priv) >= 12) crtc_state->min_voltage_level = tgl_ddi_min_voltage_level(crtc_state); else if (IS_JASPERLAKE(dev_priv) || IS_ELKHARTLAKE(dev_priv)) crtc_state->min_voltage_level = jsl_ddi_min_voltage_level(crtc_state); |