[Intel-gfx] [PATCH 2/2] drm/i915: Disable page-faults around the fast pwrite/pread paths
Keith Packard
keithp at keithp.com
Sat Jul 9 22:24:02 CEST 2011
On Sat, 9 Jul 2011 09:38:51 +0100, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> + /* We have to disable faulting here in case the user address
> + * is really a GTT mapping and so we can not enter
> + * i915_gem_fault() whilst already holding struct_mutex.
> + */
I would (far, far) rather disallow pread through the GTT
mapping. There's no credible reason to allow it. Is there some
reasonably fast way to detect that these addresses are within the GTT
and just bail?
Any performance penalty that serves solely to enable abuse of the
interface is not reasonable.
--
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/b57ad369/attachment.sig>
More information about the Intel-gfx
mailing list