[PATCH] iommu: omap_iovmm: support non page-aligned buffers in iommu_vmap
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Thu Sep 1 10:15:48 EDT 2011
On Thursday 01 September 2011 16:02:35 Ohad Ben-Cohen wrote:
> On Thu, Sep 1, 2011 at 4:59 PM, Laurent Pinchart
>
> <laurent.pinchart at ideasonboard.com> wrote:
> > It looks good to me.
>
> Thanks.
>
> > I haven't tested it though.
>
> I did, but I always get aligned buffers so my testing is a bit moot. I
> can't see how unmap could work without this patch, though, so I'll
> squash this and re-post.
You can allocate a page-aligned buffer with posix_memalign() and add an offset
(64 should do the job, smaller values can get rejected by the OMAP3 ISP
driver).
--
Regards,
Laurent Pinchart
More information about the linux-arm-kernel
mailing list