public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@virtuousgeek.org>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 4/7] drm/i915: add HDMI and DP port enumeration on ValleyView
Date: Wed, 13 Jun 2012 10:19:46 -0700	[thread overview]
Message-ID: <20120613101946.5c68a1bd@jbarnes-desktop> (raw)
In-Reply-To: <20120613081109.GC4829@phenom.ffwll.local>

On Wed, 13 Jun 2012 10:11:09 +0200
Daniel Vetter <daniel@ffwll.ch> wrote:

> On Tue, Jun 12, 2012 at 02:47:32PM -0700, Jesse Barnes wrote:
> > ValleyView is similar to IbexPeak here, but with different register
> > offsets.
> > 
> > Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
> > ---
> >  drivers/gpu/drm/i915/intel_display.c |   17 +++++++++++++++++
> >  1 file changed, 17 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index 5006928..2a677f8 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -6772,7 +6772,24 @@ static void intel_setup_outputs(struct drm_device *dev)
> >  
> >  		if (!dpd_is_edp && (I915_READ(PCH_DP_D) & DP_DETECTED))
> >  			intel_dp_init(dev, PCH_DP_D);
> > +	} else if (IS_VALLEYVIEW(dev)) {
> > +		int found;
> > +
> > +		if (I915_READ(VLV_HDMIB) & PORT_DETECTED) {
> 
> VLV_HDMIB == SDVOB, which royally confused me, especially since below you
> use SDVOC for VLV_HDMC. Yeah, pre-pch_split we just use the SDVO names for
> the HDMI registers. I guess I'll just wait for Paulo to clean up this
> mess.

I dropped this and just use SDVOB now; the docs look the same as
Cantiga, so we may as well keep it looking similar.

> 
> > +			/* SDVOB multiplex with HDMIB */
> > +			found = intel_sdvo_init(dev, VLV_HDMIB, true);
> > +			if (!found)
> > +				intel_hdmi_init(dev, VLV_HDMIB);
> > +			if (!found && (I915_READ(DP_B) & DP_DETECTED))
> > +				intel_dp_init(dev, DP_B);
> > +		}
> > +
> > +		if (I915_READ(SDVOC) & PORT_DETECTED)
> > +			intel_hdmi_init(dev, SDVOC);
> >  
> > +		/* Shares lanes with HDMI on SDVOC */
> > +		if (!dpd_is_edp && (I915_READ(DP_C) & DP_DETECTED))
> > +			intel_dp_init(dev, DP_C);
> 
> This !dpd_is_edp check here looks fishy for DP_C, copy&paste fail?

Ah yeah, merge error on my part.  Fixed.

> Also, I wonder where you set up the vlv eDP panels?

That'll be coming with Shobit's eDP patchset.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center

  reply	other threads:[~2012-06-13 17:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 21:47 Remaining VLV patches Jesse Barnes
2012-06-12 21:47 ` [PATCH 1/7] drm/i915: ValleyView mode setting limits and PLL functions Jesse Barnes
2012-06-13  8:06   ` Daniel Vetter
2012-06-13 15:04     ` Purushothaman, Vijay A
2012-06-12 21:47 ` [PATCH 2/7] drm/i915: Enable DP panel power sequencing for ValleyView Jesse Barnes
2012-06-13  8:05   ` Daniel Vetter
2012-06-13 16:10     ` Shobhit Kumar
2012-06-12 21:47 ` [PATCH 3/7] drm/i915: add ValleyView specific CRT detect function Jesse Barnes
2012-06-12 21:47 ` [PATCH 4/7] drm/i915: add HDMI and DP port enumeration on ValleyView Jesse Barnes
2012-06-13  8:11   ` Daniel Vetter
2012-06-13 17:19     ` Jesse Barnes [this message]
2012-06-12 21:47 ` [PATCH 5/7] drm/i915: access VLV regs through read/write switch Jesse Barnes
2012-06-13  8:14   ` Daniel Vetter
2012-06-12 21:47 ` [PATCH 6/7] drm/i915: bind driver to ValleyView chipsets Jesse Barnes
2012-06-12 21:47 ` [PATCH 7/7] drm/i915: VLV VGA port only handles on & off, like PCH VGA Jesse Barnes
2012-06-13  8:36   ` 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=20120613101946.5c68a1bd@jbarnes-desktop \
    --to=jbarnes@virtuousgeek.org \
    --cc=daniel@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