From: Daniel Vetter <daniel@ffwll.ch>
To: Chris Wilson <chris@chris-wilson.co.uk>,
Keith Packard <keithp@keithp.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
stable@kernel.org
Subject: Re: [PATCH 2/2] drm/i915: properly prefault for pread/pwrite
Date: Sun, 23 Oct 2011 12:19:57 +0200 [thread overview]
Message-ID: <20111023101957.GF2953@phenom.ffwll.local> (raw)
In-Reply-To: <20111023101830.GE2953@phenom.ffwll.local>
Oosp, forgotten to actually put Keith on the To: ... not enough coffee,
yet.
-Daniel
On Sun, Oct 23, 2011 at 12:18:30PM +0200, Daniel Vetter wrote:
> Hi Keith,
>
> This patch isn't in your -next pull. This papers over a spurious -EFAULT
> in the pwrite/pread paths that actually gets hit in the wild. The real fix
> in the form of a almost complete rewrite of the pwrite/pread paths won't
> be ready for 3.2.
>
> Do you want me to implement Chris' beautification suggestion? The code
> as-is is copied over from the pagecache prefault helper. Otherwise please
> consider merging for 3.2.
>
> Yours, Daniel
>
> On Wed, Sep 28, 2011 at 12:24:04PM +0100, Chris Wilson wrote:
> > > + if (ret == 0) {
> > > + if (((unsigned long)uaddr & PAGE_MASK) !=
> > > + ((unsigned long)end & PAGE_MASK))
> > This is a little ugly. Perhaps,
> >
> > #define page_align(addr) ((unsigned long)addr & PAGE_MASK)
> > if (page_align(uaddr) != page_align(end))
> >
> > Otherwise, both are
> > Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
> > -Chris
> >
> > --
> > Chris Wilson, Intel Open Source Technology Centre
>
> --
> Daniel Vetter
> Mail: daniel@ffwll.ch
> Mobile: +41 (0)79 365 57 48
--
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48
next prev parent reply other threads:[~2011-10-23 10:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-28 9:57 [PATCH 1/2] io-mapping: ensure io_mapping_map_atomic _is_ atomic Daniel Vetter
2011-09-28 9:57 ` [PATCH 2/2] drm/i915: properly prefault for pread/pwrite Daniel Vetter
2011-09-28 11:24 ` Chris Wilson
2011-10-23 10:18 ` Daniel Vetter
2011-10-23 10:19 ` Daniel Vetter [this message]
2011-10-23 19:23 ` Keith Packard
2011-10-23 22:11 ` Daniel Vetter
2011-11-03 21:06 ` [Intel-gfx] " Keith Packard
2011-11-03 21:06 ` Keith Packard
2011-11-03 22:10 ` [Intel-gfx] " Daniel Vetter
2011-11-03 22:10 ` Daniel Vetter
2011-11-17 20:52 ` Keith Packard
2011-11-18 9:12 ` Daniel Vetter
2011-11-18 17:42 ` Keith Packard
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=20111023101957.GF2953@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=keithp@keithp.com \
--cc=stable@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 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.