From: Laurent Pinchart Date: Fri, 2 Sep 2011 17:32:30 +0000 (-0400) Subject: iommu/omap-iovmm: support non page-aligned buffers in iommu_vmap X-Git-Tag: v3.2-rc1~117^2^3~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=329d8d3b474923087f6988737ff12137b58e55cc;p=pandora-kernel.git iommu/omap-iovmm: support non page-aligned buffers in iommu_vmap omap_iovmm requires page-aligned buffers, and that sometimes causes omap3isp failures (i.e. whenever the buffer passed from userspace is not page-aligned). Remove this limitation by rounding the address of the first page entry down, and adding the offset back to the device address. Signed-off-by: Laurent Pinchart Acked-by: Hiroshi DOYU [ohad@wizery.com: rebased, but tested only with aligned buffers] [ohad@wizery.com: slightly edited the commit log] Signed-off-by: Ohad Ben-Cohen Signed-off-by: Joerg Roedel --- Reading git-diff-tree failed