From: Imre Deak <imre.deak@intel.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: vlv: fix DP PHY lockup due to invalid PP sequencer setup
Date: Thu, 30 Jan 2014 18:48:35 +0200 [thread overview]
Message-ID: <1391100515.26112.6.camel@intelbox> (raw)
In-Reply-To: <87eh3p8moj.fsf@intel.com>
[-- Attachment #1.1: Type: text/plain, Size: 2400 bytes --]
On Thu, 2014-01-30 at 18:22 +0200, Jani Nikula wrote:
> On Thu, 30 Jan 2014, Daniel Vetter <daniel@ffwll.ch> wrote:
> > On Thu, Jan 30, 2014 at 04:50:42PM +0200, Imre Deak wrote:
> >> Atm we setup the HW panel power sequencer logic both for eDP and DP
> >> ports. On eDP we then go on and start the power on sequence and commence
> >> with link training when it's ready. On DP we don't do the power on
> >> sequencing but do the link training immediately. At this point the DP
> >> PHY block gets stuck, since - supposedly - it is waiting for the power
> >> on sequence to finish. The actual register write that seems to hold off
> >> the PHY is PIPEX_PP_ON_DELAYS[Panel Control Port Select]. Writing here
> >> a non-0 value eventually sets PIPEX_PP_STATUS[Require Asset Status] to
> >> 1 and blocks the PHY until the panel power on is ready.
> >>
> >> Fix this by not doing any PP sequencing setup for DP ports.
> >>
> >> Thanks to Ville Syrjälä, Jesse Barnes and Todd Previte for the help in
> >> tracking this down.
> >>
> >> Signed-off-by: Imre Deak <imre.deak@intel.com>
> >
> > Ah, the infamous ABCD hack we're using all over the place in intel_lvds.c.
> > On edp we didn't have a need for it thus far since the "require asset
> > status" checks have all been fused of, with the PP being on the PCH and
> > the edp port on the north display block. If this is really all we need to
> > appease the hardware then I'm heavily in favour of it as opposed to
> > resurrect the ABCD hack for intel_dp.c.
> >
> > One thing though: Should we add a check for the "Required Asset Status"
> > bit somewhere? I don't really have a good idea for a spot to put this
> > into, hence the question.
>
> Don't know about the asset status stuff, but I know it was me who
> screwed this up in
>
> commit bf13e81b904a37d94d83dd6c3b53a147719a3ead
> Author: Jani Nikula <jani.nikula@intel.com>
> Date: Fri Sep 6 07:40:05 2013 +0300
>
> drm/i915: add support for per-pipe power sequencing on vlv
>
> We need to make sure the PP registers are set up correctly on the pipe
> being enabled, which might be different from the last time. But only for
> eDP.
>
> I'm a bit surprised this hasn't been bisected to.
One thing making that more difficult is buggy VBTs. If that reports the
DP port being eDP, like in my case, you won't see the problem.
--Imre
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2014-01-30 16:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-30 14:50 [PATCH] drm/i915: vlv: fix DP PHY lockup due to invalid PP sequencer setup Imre Deak
2014-01-30 15:52 ` Daniel Vetter
2014-01-30 15:55 ` Daniel Vetter
2014-01-30 15:58 ` Imre Deak
2014-01-30 16:22 ` Jani Nikula
2014-01-30 16:48 ` Imre Deak [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=1391100515.26112.6.camel@intelbox \
--to=imre.deak@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
/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