[Intel-gfx] [PATCH 2/2] drm/i915: Disable page-faults around the fast pwrite/pread paths
keithp at keithp.com
Sat Jul 9 13:24:02 PDT 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
Size: 189 bytes
Desc: not available
More information about the Intel-gfx