From: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>
To: "intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
Subject: Re: [PATCH] drm/i915: Use dpcd read wake for sink crc calls.
Date: Mon, 24 Aug 2015 21:20:20 +0000 [thread overview]
Message-ID: <1440451288.3879.61.camel@intel.com> (raw)
In-Reply-To: <1440446093.2526.30.camel@intel.com>
On Mon, 2015-08-24 at 19:54 +0000, Zanoni, Paulo R wrote:
> Em Qui, 2015-08-20 às 16:23 -0700, Rodrigo Vivi escreveu:
> > Let's use a native read with retry as suggested per spec to
> > fix Sink CRC on SKL when PSR is enabled.
> >
> > With PSR enabled panel is probably taking more time to wake
> > and dpcd read is faling.
>
> Does this commit actually fix any known problem with Sink CRC? Or is
> it
> just a try? It would be nice to have this clarified in the commit
> message.
It was just a try but that made sink crc working on my SKL when PSR is
enabled. nothing much to add...
>
> Anyway, it looks correct, so:
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
>
> >
> > v2: Fix my email domain on commit message. Thanks Rafael.
> >
> > Cc: Rafael Antognolli <rafael.antognolli@intel.com>
> > Cc: Sonika Jindal <sonika.jindal@intel.com>
> > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > ---
> > drivers/gpu/drm/i915/intel_dp.c | 15 +++++++++------
> > 1 file changed, 9 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/i915/intel_dp.c
> > b/drivers/gpu/drm/i915/intel_dp.c
> > index d32ce48..34f5e33 100644
> > --- a/drivers/gpu/drm/i915/intel_dp.c
> > +++ b/drivers/gpu/drm/i915/intel_dp.c
> > @@ -4037,7 +4037,8 @@ static int intel_dp_sink_crc_stop(struct
> > intel_dp *intel_dp)
> > u8 buf;
> > int ret = 0;
> >
> > - if (drm_dp_dpcd_readb(&intel_dp->aux, DP_TEST_SINK, &buf)
> > <
> > 0) {
> > + if (intel_dp_dpcd_read_wake(&intel_dp->aux, DP_TEST_SINK,
> > + &buf, 1) < 0) {
> > DRM_DEBUG_KMS("Sink CRC couldn't be stopped
> > properly\n");
> > ret = -EIO;
> > goto out;
> > @@ -4069,7 +4070,8 @@ static int intel_dp_sink_crc_start(struct
> > intel_dp *intel_dp)
> > return ret;
> > }
> >
> > - if (drm_dp_dpcd_readb(&intel_dp->aux, DP_TEST_SINK_MISC,
> > &buf) < 0)
> > + if (intel_dp_dpcd_read_wake(&intel_dp->aux,
> > DP_TEST_SINK_MISC,
> > + &buf, 1) < 0)
> > return -EIO;
> >
> > if (!(buf & DP_TEST_CRC_SUPPORTED))
> > @@ -4077,7 +4079,7 @@ static int intel_dp_sink_crc_start(struct
> > intel_dp *intel_dp)
> >
> > intel_dp->sink_crc.last_count = buf & DP_TEST_COUNT_MASK;
> >
> > - if (drm_dp_dpcd_readb(&intel_dp->aux, DP_TEST_SINK, &buf)
> > <
> > 0)
> > + if (intel_dp_dpcd_read_wake(&intel_dp->aux, DP_TEST_SINK,
> > &buf, 1) < 0)
> > return -EIO;
> >
> > hsw_disable_ips(intel_crtc);
> > @@ -4109,8 +4111,8 @@ int intel_dp_sink_crc(struct intel_dp
> > *intel_dp, u8 *crc)
> > do {
> > intel_wait_for_vblank(dev, intel_crtc->pipe);
> >
> > - if (drm_dp_dpcd_readb(&intel_dp->aux,
> > - DP_TEST_SINK_MISC, &buf) <
> > 0)
> > {
> > + if (intel_dp_dpcd_read_wake(&intel_dp->aux,
> > + DP_TEST_SINK_MISC,
> > &buf,
> > 1) < 0) {
> > ret = -EIO;
> > goto stop;
> > }
> > @@ -4123,7 +4125,8 @@ int intel_dp_sink_crc(struct intel_dp
> > *intel_dp, u8 *crc)
> > if (count == 0)
> > intel_dp->sink_crc.last_count = 0;
> >
> > - if (drm_dp_dpcd_read(&intel_dp->aux,
> > DP_TEST_CRC_R_CR, crc, 6) < 0) {
> > + if (intel_dp_dpcd_read_wake(&intel_dp->aux,
> > DP_TEST_CRC_R_CR,
> > + crc, 6) < 0) {
> > ret = -EIO;
> > goto stop;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-08-24 21:20 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 23:12 [PATCH] drm/i915: Use dpcd read wake for sink crc calls Rodrigo Vivi
2015-08-20 23:23 ` Rodrigo Vivi
2015-08-24 4:57 ` Jindal, Sonika
2015-08-24 19:54 ` Zanoni, Paulo R
2015-08-24 21:20 ` Vivi, Rodrigo [this message]
2015-10-21 18:31 ` Thulasimani, Sivakumar
2015-10-21 19:59 ` Vivi, Rodrigo
2015-10-21 20:14 ` Damien Lespiau
2015-10-22 3:26 ` Thulasimani, Sivakumar
2015-11-16 16:05 ` Rodrigo Vivi
2015-11-17 14:08 ` Daniel Vetter
2015-11-18 18:31 ` Vivi, Rodrigo
2015-11-19 9:12 ` Daniel Vetter
2015-08-26 9:06 ` Daniel Vetter
2015-08-26 16:41 ` Vivi, Rodrigo
2015-08-27 9:21 ` Daniel Vetter
2015-08-27 10:45 ` Jani Nikula
2015-10-19 23:08 ` [PATCH] drm/i915: Retry on every aux read Rodrigo Vivi
2015-10-20 7:02 ` Jani Nikula
2015-10-20 7:39 ` Daniel Vetter
2015-10-20 15:36 ` Vivi, Rodrigo
2015-10-20 17:45 ` Vivi, Rodrigo
2015-10-20 18:31 ` 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=1440451288.3879.61.camel@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=paulo.r.zanoni@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