[PATCH] iommu: omap_iovmm: support non page-aligned buffers in iommu_vmap
From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
Date: 2011-09-01 14:15:48
Also in:
linux-omap
From: laurent.pinchart@ideasonboard.com (Laurent Pinchart)
Date: 2011-09-01 14:15:48
Also in:
linux-omap
On Thursday 01 September 2011 16:02:35 Ohad Ben-Cohen wrote:
On Thu, Sep 1, 2011 at 4:59 PM, Laurent Pinchart [off-list ref] wrote:quoted
It looks good to me.Thanks.quoted
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