From: Daniel Vetter <daniel@ffwll.ch>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/3] drm/i915: Suppress spurious CPU FIFO underruns on ILK-IVB
Date: Tue, 24 Nov 2015 15:09:06 +0100 [thread overview]
Message-ID: <20151124140906.GE17050@phenom.ffwll.local> (raw)
In-Reply-To: <20151123145517.GZ4437@intel.com>
On Mon, Nov 23, 2015 at 04:55:17PM +0200, Ville Syrjälä wrote:
> On Mon, Nov 23, 2015 at 02:28:29PM +0000, Chris Wilson wrote:
> > On Mon, Nov 23, 2015 at 04:22:08PM +0200, Ville Syrjälä wrote:
> > > On Sat, Nov 21, 2015 at 10:51:50AM +0000, Chris Wilson wrote:
> > > > On Fri, Nov 20, 2015 at 10:09:18PM +0200, ville.syrjala@linux.intel.com wrote:
> > > > > From: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > >
> > > > > We still get spurious pipe underruns on ILK/SNB/IVB under two
> > > > > circumstances when dealing with PCH ports:
> > > > > * When the pipe has been disabled, but FDI RX/TX is still enabled
> > > > > * During FDI link training
> > > > >
> > > > > Both cases seem to happen at least when we do VGA+HDMI cloning
> > > > > from the same pipe. I don't think I've seen them when not cloning,
> > > > > but can't be 100% sure.
> > > > >
> > > > > Disable underrun reporting around those places to eliminate the
> > > > > dmesg errors.
> > > > >
> > > > > Testcase: igt/kms_setmode/basic-clone-single-crtc
> > > > > Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > > > Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
> > > >
> > > > I wondered if logging the suppressed errors would be of any use?
> > >
> > > Hmm. Maybe just to confirm that they still happen, and thus suppressing
> > > is still neded.
> > >
> > > > Does
> > > > the check_cpu_fifo work if the reporting is disabled? Could we do a
> > > > manual check and DRM_DEBUG_KMS() if the enable did generate a failure.
> > > > If the check_cpu_fifo does work, won't we still get the error from the
> > > > added check in atomic_commit()?
> > >
> > > The check only looks at pipes that have underrun reporting enabled. I
> > > suppose it might be possible to have it check all the pipes. At the
> > > point where we call it no explicit suppression should be happening, so
> > > the only reason why underrun reporting would be disabled on any pipe is
> > > due to detecting a previous underrun via the interrupt.
> >
> > Does the hw flag the underrun even if the interrupt is disabled?
> > (Playing games with PIPESTAT_IER?) Could we then report (debug) that an
> > underrun happened before we re-enable reporting?
>
> Hmm. We use the IMR to disable this stuff on many platforms, so we
> do lose the IIR. So we'd need to frob IER instead to make this work
> universally. Currently it would only work for GMCH, IVB/HSW,
> CPT/PPT/LPT/WPT since PIPESTAT/ERR_INT/SERR_INT don't have IMR.
Feels a bit too risky imo, changing all that code. Also, even in tests
where underruns reproduce readily it's not 100%, so the occasional debug
message won't be solid enough evidence.
For me I think as long as we hide underruns only while doing modesets
(where there's some expectation of them happening) we should be perfectly
fine wrt test coverage. The real benefit is when enabling/disabling
planes, fbc and all that stuff.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-11-24 14:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-20 20:09 [PATCH 1/3] drm/i915: Suppress spurious CPU FIFO underruns on ILK-IVB ville.syrjala
2015-11-20 20:09 ` [PATCH 2/3] drm/i915: Disable CPU underruns around eDP port and vdd enable " ville.syrjala
2015-11-21 10:52 ` Chris Wilson
2015-11-20 20:09 ` [PATCH 3/3] drm/i915: Check for underruns after crtc disable ville.syrjala
2015-11-21 10:49 ` Chris Wilson
2015-11-23 14:10 ` Ville Syrjälä
2015-11-23 14:42 ` Chris Wilson
2015-11-24 14:14 ` Daniel Vetter
2015-11-24 14:21 ` Ville Syrjälä
2015-11-21 10:51 ` [PATCH 1/3] drm/i915: Suppress spurious CPU FIFO underruns on ILK-IVB Chris Wilson
2015-11-23 14:22 ` Ville Syrjälä
2015-11-23 14:28 ` Chris Wilson
2015-11-23 14:55 ` Ville Syrjälä
2015-11-24 14:09 ` Daniel Vetter [this message]
2015-11-24 14:16 ` Daniel Vetter
2015-11-24 14:52 ` Ville Syrjälä
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=20151124140906.GE17050@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=ville.syrjala@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