From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Jani Nikula <jani.nikula@linux.intel.com>,
intel-gfx@lists.freedesktop.org, daniel.vetter@ffwll.ch,
rclark@redhat.com, stable@vger.kernel.org
Subject: Re: [PATCH] drm/i915: Check for driver readyness before handling an underrun interrupt
Date: Fri, 27 Feb 2015 15:24:22 +0100 [thread overview]
Message-ID: <20150227142422.GJ24485@phenom.ffwll.local> (raw)
In-Reply-To: <20150227092704.GI20682@nuc-i3427.alporthouse.com>
On Fri, Feb 27, 2015 at 09:27:04AM +0000, Chris Wilson wrote:
> On Fri, Feb 27, 2015 at 10:20:05AM +0200, Jani Nikula wrote:
> > On Fri, 27 Feb 2015, Jani Nikula <jani.nikula@linux.intel.com> wrote:
> > > On Thu, 26 Feb 2015, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> > >> When we takeover from the BIOS and install our interrupt handler, the
> > >> BIOS may have left us a few surprises in the form of spontaneous
> > >> interrupts. (This is especially likely on hardware like 965gm where
> > >> display fifo underruns are continuous and the GMCH cannot filter that
> > >> interrupt souce.) As we enable our IRQ early so that we can use it
> > >> during hardware probing, our interrupt handler must be prepared to
> > >> handle a few sources prior to being fully configured. As such, we need
> > >> to add a simple is-ready check prior to dereferencing our KMS state for
> > >> reporting underruns.
> > >>
> > >> Reported-by: Rob Clark <rclark@redhat.com>
> > >> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1193972
> > >
> > > "You are not authorized to access bug #1193972. To see this bug, you
> > > must first log in to an account with the appropriate permissions."
> > >
> > > Meh.
> >
> > Pushed to drm-intel-fixes, thanks for the patch and review. If someone
> > both cares and has access to the bugzilla, please update it.
>
> Jani, I goofed...
>
> > >> /* GMCH can't disable fifo underruns, filter them. */
> > >> if (HAS_GMCH_DISPLAY(dev_priv->dev) &&
> > >> - !__cpu_fifo_underrun_reporting_enabled(dev_priv, pipe))
> > >> + !to_intel_crtc(crtc)->cpu_fifo_underrun_disabled)
>
> Should be without the '!':
> if (HAS_GMCH_DISPLAY(dev_priv->dev) &&
> to_intel_crtc(crtc)->cpu_fifo_underrun_disabled)
Somewhere on my todo is to invert the sense of our underrun reporting.
I've screwed this up countless times, but I fear the patch to switch will
be buggy as well ;-)
/me is chicken
Cheers, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - 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-02-27 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 15:53 [PATCH] drm/i915: Check for driver readyness before handling an underrun interrupt Chris Wilson
2015-02-27 7:52 ` [Intel-gfx] " Jani Nikula
2015-02-27 8:20 ` Jani Nikula
2015-02-27 9:27 ` Chris Wilson
2015-02-27 9:53 ` Jani Nikula
2015-02-27 14:24 ` Daniel Vetter [this message]
2015-02-28 19:16 ` shuang.he
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=20150227142422.GJ24485@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=chris@chris-wilson.co.uk \
--cc=daniel.vetter@ffwll.ch \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=rclark@redhat.com \
--cc=stable@vger.kernel.org \
/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