public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: intel-gfx@lists.freedesktop.org
Cc: a.nielsen@shikadi.net, post+kernel@ralfj.de
Subject: Re: [PATCH] drm/i915: Reject >165MHz modes w/ DVI monitors
Date: Mon, 03 Mar 2014 15:01:03 +0200	[thread overview]
Message-ID: <87txbfphbk.fsf@intel.com> (raw)
In-Reply-To: <1393839216-14619-1-git-send-email-jani.nikula@intel.com>

On Mon, 03 Mar 2014, Jani Nikula <jani.nikula@intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
> Single-link DVI max dotclock is 165MHz. Filter out modes with higher
> dotclock when the monitor doesn't support HDMI.
>
> Modes higher than 165 MHz were allowed in
>
> commit 7d148ef51a657fd04036c3ed7803da600dd0d451
> Author: Daniel Vetter <daniel.vetter@ffwll.ch>
> Date:   Mon Jul 22 18:02:39 2013 +0200
>
>     drm/i915: fix hdmi portclock limits
>
> Also don't attempt to use 12bpc mode with DVI monitors.
>
> Cc: Adam Nielsen <a.nielsen@shikadi.net>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75345
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=70331
> Tested-by: Ralf Jung <post+kernel@ralfj.de>
> Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Pushed to -fixes, thanks for the patch.

BR,
Jani.


> ---
>  drivers/gpu/drm/i915/intel_hdmi.c |    6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
> index 98d68ab04de4..aa4641d1898e 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -820,7 +820,7 @@ static int hdmi_portclock_limit(struct intel_hdmi *hdmi)
>  {
>  	struct drm_device *dev = intel_hdmi_to_dev(hdmi);
>  
> -	if (IS_G4X(dev))
> +	if (!hdmi->has_hdmi_sink || IS_G4X(dev))
>  		return 165000;
>  	else if (IS_HASWELL(dev) || INTEL_INFO(dev)->gen >= 8)
>  		return 300000;
> @@ -874,8 +874,8 @@ bool intel_hdmi_compute_config(struct intel_encoder *encoder,
>  	 * outputs. We also need to check that the higher clock still fits
>  	 * within limits.
>  	 */
> -	if (pipe_config->pipe_bpp > 8*3 && clock_12bpc <= portclock_limit
> -	    && HAS_PCH_SPLIT(dev)) {
> +	if (pipe_config->pipe_bpp > 8*3 && intel_hdmi->has_hdmi_sink &&
> +	    clock_12bpc <= portclock_limit && HAS_PCH_SPLIT(dev)) {
>  		DRM_DEBUG_KMS("picking bpc to 12 for HDMI output\n");
>  		desired_bpp = 12*3;
>  
> -- 
> 1.7.9.5
>

-- 
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

      reply	other threads:[~2014-03-03 13:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-03  9:33 [PATCH] drm/i915: Reject >165MHz modes w/ DVI monitors Jani Nikula
2014-03-03 13:01 ` Jani Nikula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txbfphbk.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=a.nielsen@shikadi.net \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=post+kernel@ralfj.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox