[Intel-gfx] [PATCH] drm/i915: Don't prefault the entire obj if the vma is smaller
Daniel Vetter
daniel at ffwll.ch
Tue Jun 17 21:03:28 CEST 2014
On Tue, Jun 17, 2014 at 8:03 PM, <ville.syrjala at linux.intel.com> wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Take the minimum of the object size and the vma size and prefault
> only that much. Avoids a SIGBUS when mmapping only a portion of the
> object.
>
> Prefaulting was introduced here:
> commit b90b91d87038f6b257b40a02b42ed4f9705e06f0
> Author: Chris Wilson <chris at chris-wilson.co.uk>
> Date: Tue Jun 10 12:14:40 2014 +0100
>
> drm/i915: Prefault the entire object on first page fault
>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Do we have an igt for this?
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
More information about the Intel-gfx
mailing list