Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Intel Graphics Development <intel-gfx@lists.freedesktop.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH 3/7] drm/i915: drop TVclock special casing on ilk+
Date: Fri, 10 May 2013 14:18:46 +0300	[thread overview]
Message-ID: <87bo8j9j6x.fsf@intel.com> (raw)
In-Reply-To: <1367323306-13605-4-git-send-email-daniel.vetter@ffwll.ch>

On Tue, 30 Apr 2013, Daniel Vetter <daniel.vetter@ffwll.ch> wrote:
> TV-out uses the same reference clock as everyone else. The only
> difference seems to be in the slightly different CB tuning limit.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> ---
>  drivers/gpu/drm/i915/intel_display.c | 11 +----------
>  1 file changed, 1 insertion(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index f10f094..317e055 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -5629,9 +5629,6 @@ static uint32_t ironlake_compute_dpll(struct intel_crtc *intel_crtc,
>  			if (intel_encoder->needs_tv_clock)
>  				is_tv = true;
>  			break;
> -		case INTEL_OUTPUT_TVOUT:
> -			is_tv = true;
> -			break;

An observation, this code path is actually dead code for ilk+, as is the
else if (is_tv) branch below. Good riddance.

>  		}
>  
>  		num_connectors++;
> @@ -5690,13 +5687,7 @@ static uint32_t ironlake_compute_dpll(struct intel_crtc *intel_crtc,
>  		break;
>  	}
>  
> -	if (is_sdvo && is_tv)
> -		dpll |= PLL_REF_INPUT_TVCLKINBC;

The commit message could reflect that this is actually a reserved value
in the register spec. With that bikeshed,

Reviewed-by: Jani Nikula <jani.nikula@intel.com>

> -	else if (is_tv)
> -		/* XXX: just matching BIOS for now */
> -		/*	dpll |= PLL_REF_INPUT_TVCLKINBC; */
> -		dpll |= 3;
> -	else if (is_lvds && intel_panel_use_ssc(dev_priv) && num_connectors < 2)
> +	if (is_lvds && intel_panel_use_ssc(dev_priv) && num_connectors < 2)
>  		dpll |= PLLB_REF_INPUT_SPREADSPECTRUMIN;
>  	else
>  		dpll |= PLL_REF_INPUT_DREFCLK;
> -- 
> 1.7.11.7
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2013-05-10 11:20 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 12:01 [PATCH 0/7] sdvo tv clock improvements + some random stuff Daniel Vetter
2013-04-30 12:01 ` [PATCH 1/7] drm/i915: simplify DP/DDI port width macros Daniel Vetter
2013-05-02 13:34   ` Paulo Zanoni
2013-05-02 14:51     ` Daniel Vetter
2013-05-02 17:38       ` Paulo Zanoni
2013-05-02 19:29         ` Daniel Vetter
2013-04-30 12:01 ` [PATCH 2/7] drm/i915: move sdvo TV clock computation to intel_sdvo.c Daniel Vetter
2013-05-10 11:13   ` Jani Nikula
2013-04-30 12:01 ` [PATCH 3/7] drm/i915: drop TVclock special casing on ilk+ Daniel Vetter
2013-05-10 11:18   ` Jani Nikula [this message]
2013-04-30 12:01 ` [PATCH 4/7] drm/i915: rip out TV-out lore Daniel Vetter
2013-05-10 11:34   ` Jani Nikula
2013-04-30 12:01 ` [PATCH 5/7] drm/i915: rip out now unused is_foo tracking from crtc code Daniel Vetter
2013-05-10 11:39   ` Jani Nikula
2013-04-30 12:01 ` [PATCH 6/7] drm/i915: make SDVO TV-out work for multifunction devices Daniel Vetter
2013-04-30 12:49   ` Chris Wilson
2013-04-30 13:10     ` Daniel Vetter
2013-05-06 13:36   ` Jani Nikula
2013-05-06 14:15     ` Daniel Vetter
2013-05-10 11:47   ` Jani Nikula
2013-04-30 12:01 ` [PATCH 7/7] drm/i915: rip out an unused lvds_reg variable Daniel Vetter
2013-05-10 11:42   ` Jani Nikula
2013-05-10 14:03     ` Daniel Vetter

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=87bo8j9j6x.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    /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