From: Ville Syrjälä Date: Tue, 5 May 2015 14:06:26 +0000 (+0300) Subject: drm/i915: Fix hdmi clock readout with pixel repeat X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=be69a1335fceb706e19f7eaf8d34c9a721c5baf9;p=linux-beck.git drm/i915: Fix hdmi clock readout with pixel repeat Account for the pixel multiplier when reading out the HDMI mode dotclock. Makes the state checked happier on my ILK when using double clocked modes. Signed-off-by: Ville Syrjälä Reviewed-by: Chandra Konduru Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 1cde6c045da2..42fc50528190 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c @@ -943,6 +943,9 @@ static void intel_hdmi_get_config(struct intel_encoder *encoder, else dotclock = pipe_config->port_clock; + if (pipe_config->pixel_multiplier) + dotclock /= pipe_config->pixel_multiplier; + if (HAS_PCH_SPLIT(dev_priv->dev)) ironlake_check_encoder_dotclock(pipe_config, dotclock);