[8/9] drm/i915: Fix hdmi clock readout with pixel repeat
diff mbox

Message ID 1430834787-10255-9-git-send-email-ville.syrjala@linux.intel.com
State New
Headers show

Commit Message

Ville Syrjälä May 5, 2015, 2:06 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

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ä <ville.syrjala@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_hdmi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Chandra Konduru June 1, 2015, 10:59 p.m. UTC | #1
> -----Original Message-----

> From: Intel-gfx [mailto:intel-gfx-bounces@lists.freedesktop.org] On Behalf Of

> ville.syrjala@linux.intel.com

> Sent: Tuesday, May 05, 2015 7:06 AM

> To: intel-gfx@lists.freedesktop.org

> Subject: [Intel-gfx] [PATCH 8/9] drm/i915: Fix hdmi clock readout with pixel

> repeat

> 

> From: Ville Syrjälä <ville.syrjala@linux.intel.com>

> 

> 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ä <ville.syrjala@linux.intel.com>

> ---

>  drivers/gpu/drm/i915/intel_hdmi.c | 3 +++

>  1 file changed, 3 insertions(+)

> 

> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c

> b/drivers/gpu/drm/i915/intel_hdmi.c

> index ce595c3..1810242 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;

> +


This is unrelated to HDMI 12bpc series. May be a separate patch.

Reviewed-by: Chandra Konduru <Chandra.konduru@intel.com>



>  	if (HAS_PCH_SPLIT(dev_priv->dev))

>  		ironlake_check_encoder_dotclock(pipe_config, dotclock);

> 

> --

> 2.0.5

> 

> _______________________________________________

> Intel-gfx mailing list

> Intel-gfx@lists.freedesktop.org

> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Patch
diff mbox

diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index ce595c3..1810242 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);