[igt-dev] [PATCH i-g-t] lib/draw: Align mmap requests to page boundaries
Chris Wilson
chris at chris-wilson.co.uk
Wed Jan 23 14:25:11 UTC 2019
Quoting Joonas Lahtinen (2019-01-23 14:22:54)
> Quoting Chris Wilson (2019-01-07 12:56:36)
> > Since we trust fb->size as either calculated by calc_fb_size() or the
> > supplied by the user, it invariably isn't page aligned. The mmap
> > routines and ioctls only deal in pages...
> >
> > Not sure if fb->size should be page aligned, but that may break
> > some other drawing tests, so opt to just fix up the mmap requests.
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
>
> Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Pushed, so that should clear the board for your mmap-wc fix.
-Chris
More information about the igt-dev
mailing list