All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
To: "intel-gfx@lists.freedesktop.org"
	<intel-gfx@lists.freedesktop.org>,
	"Vivi, Rodrigo" <rodrigo.vivi@intel.com>
Cc: "daniel.vetter@ffwll.ch" <daniel.vetter@ffwll.ch>
Subject: Re: [PATCH] drm/i915: Sink CRC: tune down error message at stop to debug_kms.
Date: Wed, 20 Jan 2016 12:37:39 +0000	[thread overview]
Message-ID: <1453293458.22174.0.camel@intel.com> (raw)
In-Reply-To: <1453242255.5745.84.camel@intel.com>

Em Ter, 2016-01-19 às 22:21 +0000, Vivi, Rodrigo escreveu:
> On Tue, 2016-01-19 at 17:46 +0000, Zanoni, Paulo R wrote:
> > Em Qua, 2016-01-13 às 14:05 -0800, Rodrigo Vivi escreveu:
> > > When we stop the sink CRC calculation we wait a while until the
> > > counter
> > > is reset to zero and return -ETIMEDOUT. However the sink crc was
> > > calculated already by this point so we just ignore this return at
> > > the main function.
> > > 
> > > So, let's also ignore the message and put it as a debug message
> > > instead
> > > of an error one. The message might still be useful when debuging
> > > test failures so we could be able to know something was not
> > > going 
> > > so
> > > well with sink crc stop.
> > > Reference: https://bugs.freedesktop.org/show_bug.cgi?id=93694
> > > Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> > > Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
> > > Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > > ---
> > >  drivers/gpu/drm/i915/intel_dp.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/drivers/gpu/drm/i915/intel_dp.c
> > > b/drivers/gpu/drm/i915/intel_dp.c
> > > index c8f58ab..22f6887 100644
> > > --- a/drivers/gpu/drm/i915/intel_dp.c
> > > +++ b/drivers/gpu/drm/i915/intel_dp.c
> > > @@ -4009,7 +4009,7 @@ static int intel_dp_sink_crc_stop(struct
> > > intel_dp *intel_dp)
> > >  	} while (--attempts && count);
> > 
> > Now I'm wondering if "count" stays static or changes during the 10
> > failed attempts. I know this is against the spec, but would make
> > some
> > sense to see it.
> > 
> > Another possibility is that we're not changing the contents of the
> > frame, so maybe we need to give it something new in order for the 
> > count
> > to really reset. This would make more sense for PSR.
> 
> Well, on the machines that sink crc isn't reliable I tried many
> attempts like to change the screen content, enable and disable again,
> sait more time, etc and there is no reliable way to make sure it
> reset
> to zero. Sometimes it just keep increasing even with test zeroed... 
> not following dp spec at all... 
> 
> > 
> > Anyway, this "error" shouldn't be a problem for our test suite. If
> > it
> > impacts the next CRC calculations, then we'll notice this through 
> > other
> > means, so:
> > Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
> 
> Thanks, but on IRC daniel had complained that the message is not good
> for debug purpose. So before merging it I'd like to check with you if
> it would be better with something like:
> 
> DRM_DEBUG_KMS("TIMEOUT: Sink CRC counter is not zeroed after
> calculation is stopped\n");

Since he's the one doing the suggestion, I'll let him answer.

> 
> ?
> 
> > 
> > >  
> > >  	if (attempts == 0) {
> > > -		DRM_ERROR("TIMEOUT: Sink CRC counter is not
> > > zeroed\n");
> > > +		DRM_DEBUG_KMS("TIMEOUT: Sink CRC counter is not
> > > zeroed\n");
> > >  		ret = -ETIMEDOUT;
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-01-20 12:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13 22:05 [PATCH] drm/i915: Sink CRC: tune down error message at stop to debug_kms Rodrigo Vivi
2016-01-14 10:20 ` ✗ warning: Fi.CI.BAT Patchwork
2016-01-19 10:15 ` [PATCH] drm/i915: Sink CRC: tune down error message at stop to debug_kms Daniel Vetter
2016-01-19 17:46 ` Zanoni, Paulo R
2016-01-19 22:21   ` Vivi, Rodrigo
2016-01-20 12:37     ` Zanoni, Paulo R [this message]
2016-01-20 12:57       ` 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=1453293458.22174.0.camel@intel.com \
    --to=paulo.r.zanoni@intel.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.