Re: [PATCH] drm: Round size of SHM maps to PAGE_SIZE

2009-05-19 Thread Jesse Barnes
On Mon, 18 May 2009 11:56:16 +1000 Benjamin Herrenschmidt b...@kernel.crashing.org wrote: Currently, userspace fail to obtain the SAREA mapping (among others) because they pass SAREA_MAX to drmAddMap without aligning it to the page size. This breaks for example on PowerPC with 64K pages and

[PATCH] drm: Round size of SHM maps to PAGE_SIZE

2009-05-17 Thread Benjamin Herrenschmidt
Currently, userspace fail to obtain the SAREA mapping (among others) because they pass SAREA_MAX to drmAddMap without aligning it to the page size. This breaks for example on PowerPC with 64K pages and radeon despite the kernel radeon actually doing the right rouding in the first place. The way