From: FUJITA Tomonori Date: Sun, 17 Aug 2008 15:36:18 +0000 (+0900) Subject: x86 gart: allocate size-aligned address for alloc_coherent, v2 X-Git-Tag: v2.6.28-rc1~734^2^10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b22ff5344fda666e0938e5261ea7b9a3dfce497;p=pandora-kernel.git x86 gart: allocate size-aligned address for alloc_coherent, v2 This patch changes GART IOMMU to return a size aligned address wrt dma_alloc_coherent, as DMA-mapping.txt defines: The cpu return address and the DMA bus master address are both guaranteed to be aligned to the smallest PAGE_SIZE order which is greater than or equal to the requested size. This invariant exists (for example) to guarantee that if you allocate a chunk which is smaller than or equal to 64 kilobytes, the extent of the buffer you receive will not cross a 64K boundary. Signed-off-by: FUJITA Tomonori Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed