[Intel-gfx] [PATCH 1/2] drm/i915: Prefault all pages for pread and pwrite

Keith Packard keithp at keithp.com
Sat Jul 9 22:21:48 CEST 2011


On Sat,  9 Jul 2011 09:38:50 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:

> +static int prefault_writeable(unsigned long uaddr, unsigned long len)

> +static int prefault_readable(unsigned long uaddr, unsigned long len)

These seems like a functions which belongs alongside (or in place of) the
existing fault_in_pages_writable and fault_in_pages_readable functions.

I think, in fact, that one could convincingly argue that the existing
functions are misleadingly named (or just broken).

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20110709/8d554ae9/attachment.sig>


More information about the Intel-gfx mailing list