[PATCH] drm/i915: CPT/PPT pch dp transcoder workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Nov 2012 16:33:45 +0100
Daniel Vetter <daniel at ffwll.ch> wrote:

> On Thu, Nov 01, 2012 at 07:37:36AM -0700, Jesse Barnes wrote:
> > > v3: Paulo Zanoni pointed out that this workaround is also required on
> > > the LPT PCH. And Arthur Ranyan confirmed that this workaround is
> > > requierd for all ports on the pch, not just DP: The important part
> > > is that the bit is set whenever the pch transcoder is enabled, and
> > > that it is _not_ set while the fdi link is trained. It is also
> > > important that the pch transcoder is fully disabled, i.e. we have to
> > > wait for bit 30 to clear before clearing the w/a bit.
> 
> See above: "Paulo Zanoni pointed out that this workaround is also required
> on the LPT PCH".
> 
> > > +	if (!HAS_PCH_IBX(dev)) {
> > > +		/* Workaround: Set the timing override bit before enabling the
> > > +		 * pch transcoder. */
> > > +		reg = TRANS_CHICKEN2(pipe);
> > > +		val = I915_READ(reg);
> > > +		val |= TRANS_CHICKEN2_TIMING_OVERRIDE;
> > > +		I915_WRITE(reg, val);
> > > +	}
> > 
> > I'd like this better if it were HAS_PCH_CPT; we use that as a synonym
> > for PPT elsehwere, and it shouldn't apply to LPT right?  I see LPT has
> > the bit, but I don't know if it's needed (the changelong and summary
> > are misleading if so).
> 
> Paulo's vga patch bomb will split this up, so we can use HAS_PCH_CPT
> instead of !IBX. But since I've written this patch against dinq without
> paulo's patches, hence HAS_CPT would be wrong. So:
> 
> What colour would please you most, Sir?

Just fix the changelog summary then!

-- 
Jesse Barnes, Intel Open Source Technology Center


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux