From: Ben Widawsky <benjamin.widawsky@intel.com>
To: "Chris Wilson" <chris@chris-wilson.co.uk>,
"Intel GFX" <intel-gfx@lists.freedesktop.org>,
"Kristian Høgsberg" <krh@bitplanet.net>,
"Dave Gordon" <david.s.gordon@intel.com>,
"Jordan Justen" <jordan.l.justen@intel.com>
Subject: Re: [PATCH] [v2] drm/i915: Check for get_pages instead of shmem (filp)
Date: Wed, 10 Feb 2016 09:39:33 -0800 [thread overview]
Message-ID: <20160210173931.GA15058@intel.com> (raw)
In-Reply-To: <20160210162308.GJ7134@nuc-i3427.alporthouse.com>
On Wed, Feb 10, 2016 at 04:23:08PM +0000, Chris Wilson wrote:
> On Wed, Feb 10, 2016 at 07:42:23AM -0800, Ben Widawsky wrote:
> > Do you guys get the CI mails? This version has regressions. v1 did not. I don't
> > know what to trust.
>
> I didn't even see v2 itself!
>
> > On Tue, Feb 09, 2016 at 11:44:12AM -0800, Ben Widawsky wrote:
> > > This behavior of checking for a shmem backed GEM object was introduced here:
> > > commit 4c914c0c7c787b8f730128a8cdcca9c50b0784ab
> > > Author: Brad Volkin <bradley.d.volkin@intel.com>
> > > Date: Tue Feb 18 10:15:45 2014 -0800
> > >
> > > drm/i915: Refactor shmem pread setup
> > >
> > > It is possible for an object to not be a shmem backed GEM object (for example
> > > userptr objects). An example of how we hit this failure can be found through
> > > copy_batch() in the command parser because we allocate a userptr object for the
> > > batch which contains privileged instructions. Userptr calls
> > > drm_gem_private_object_init() which explicitly sets the filp to none.
> > >
> > > NOTE: I manually retyped this from a test machine. So I haven't even compiled
> > > this exact patch.
> > >
> > > v2: Use same logic as from a2a4f916c2f (Kristian, Dave Gordon)
> > >
> > > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > > Cc: Kristian Høgsberg <krh@bitplanet.net>
> > > Cc: Dave Gordon <david.s.gordon@intel.com>
> > > Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
> > > Tested-by: Jordan Justen <jordan.l.justen@intel.com> (v1)
> > > Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> (v1)
>
> > > ---
> > > drivers/gpu/drm/i915/i915_gem.c | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
> > > index e9b19bc..7fd79b0 100644
> > > --- a/drivers/gpu/drm/i915/i915_gem.c
> > > +++ b/drivers/gpu/drm/i915/i915_gem.c
> > > @@ -489,7 +489,7 @@ int i915_gem_obj_prepare_shmem_read(struct drm_i915_gem_object *obj,
> > >
> > > *needs_clflush = 0;
> > >
> > > - if (!obj->base.filp)
> > > + if (WARN_ON((obj->ops->flags & I915_GEM_OBJECT_HAS_STRUCT_PAGE) == 0))
>
> Don't use WARN_ON, there is code (or will be) where we use
> prepare_shmem_read/write to determine if we can use the shmem paths.
>
> Also i915_gem_obj_prepare_shmem_write() requires the same treatment.
>
> My apologies I had this patch but appear to have accidentally squashed
> it whilst rebasing. Thanks!
> -Chris
>
So... is someone going to land this fix? We need it.
--
Ben Widawsky, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2016-02-10 17:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-06 1:48 [PATCH] drm/i915: Check for get_pages instead of shmem (filp) Ben Widawsky
2016-02-08 12:58 ` ✓ Fi.CI.BAT: success for " Patchwork
2016-02-08 23:02 ` [PATCH] " Jordan Justen
2016-02-09 0:20 ` Kristian Høgsberg
2016-02-09 11:30 ` Dave Gordon
2016-02-09 17:37 ` Ben Widawsky
2016-02-09 19:44 ` [PATCH] [v2] " Ben Widawsky
2016-02-10 15:42 ` Ben Widawsky
2016-02-10 16:23 ` Chris Wilson
2016-02-10 17:39 ` Ben Widawsky [this message]
2016-02-15 17:26 ` Daniel Vetter
2016-02-15 17:56 ` Dave Gordon
2016-02-10 7:14 ` ✗ Fi.CI.BAT: warning for drm/i915: Check for get_pages instead of shmem (filp) (rev2) Patchwork
2016-02-15 17:25 ` 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=20160210173931.GA15058@intel.com \
--to=benjamin.widawsky@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=david.s.gordon@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jordan.l.justen@intel.com \
--cc=krh@bitplanet.net \
/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.