From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Detect invalid scanout pitches
Date: Thu, 20 Jun 2013 15:44:56 +0300 [thread overview]
Message-ID: <20130620124456.GK5004@intel.com> (raw)
In-Reply-To: <20130620122714.GA8936@cantiga.alporthouse.com>
On Thu, Jun 20, 2013 at 01:27:14PM +0100, Chris Wilson wrote:
> On Thu, Jun 20, 2013 at 01:29:10PM +0300, Ville Syrjälä wrote:
> > On Thu, Jun 20, 2013 at 10:14:36AM +0100, Chris Wilson wrote:
> > > On Thu, Jun 20, 2013 at 11:17:16AM +0300, Ville Syrjälä wrote:
> > > > We already have a bit of pitch checking in intel_framebuffer_init().
> > > > In fact there's a FIXME about pre-ilk limits there.
> > >
> > > It looks tidier to fix that check. We still need to double check the
> > > values though as the tiling mode is independent of the fb config and may
> > > be changed by the user.
> >
> > True, some checking needs to be done after pinning.
> >
> > I guess we could have one function that has the checks, and just call it
> > from both places.
>
> I'm thinking we note the tiling (and anything else of significance)
> during framebuffer_init() and reject the set-base if the object changes.
> I don't think any userspace depends upon being able to change the object
> after AddFB, and I don't think we want to allow the fb/obj to so easily
> become inconsistent.
An alternative idea I've been tossing around is that we'd reject tiling
changes while we have drm_framebuffers pointing at the object. So some
kind of fb_refcount on the object. That would make buggy user space trip
over a bit earlier. But either way seems reasonable to me.
--
Ville Syrjälä
Intel OTC
next prev parent reply other threads:[~2013-06-20 12:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-19 15:20 [PATCH] drm/i915: Detect invalid scanout pitches Chris Wilson
2013-06-19 15:50 ` Chris Wilson
2013-06-20 8:17 ` Ville Syrjälä
2013-06-20 9:14 ` Chris Wilson
2013-06-20 10:29 ` Ville Syrjälä
2013-06-20 12:27 ` Chris Wilson
2013-06-20 12:44 ` Ville Syrjälä [this message]
2013-06-20 13:54 ` Chris Wilson
2013-06-20 10:34 ` Ville Syrjälä
-- strict thread matches above, loose matches on Subject: below --
2013-06-20 16:14 Chris Wilson
2013-06-24 15:05 ` Ville Syrjälä
2013-06-25 16:26 ` Chris Wilson
2013-06-25 16:29 ` 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=20130620124456.GK5004@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@lists.freedesktop.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 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.