Skip to content

Commit 0656afa

Browse files
committed
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>
1 parent 46bdb77 commit 0656afa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3699,7 +3699,9 @@ static int icl_ddi_min_voltage_level(const struct intel_crtc_state *crtc_state)
36993699
void intel_ddi_compute_min_voltage_level(struct drm_i915_private *dev_priv,
37003700
struct intel_crtc_state *crtc_state)
37013701
{
3702-
if (DISPLAY_VER(dev_priv) >= 12)
3702+
if (DISPLAY_VER(dev_priv) >= 14)
3703+
crtc_state->min_voltage_level = icl_ddi_min_voltage_level(crtc_state);
3704+
else if (DISPLAY_VER(dev_priv) >= 12)
37033705
crtc_state->min_voltage_level = tgl_ddi_min_voltage_level(crtc_state);
37043706
else if (IS_JASPERLAKE(dev_priv) || IS_ELKHARTLAKE(dev_priv))
37053707
crtc_state->min_voltage_level = jsl_ddi_min_voltage_level(crtc_state);

0 commit comments

Comments
 (0)