]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86 gart: allocate size-aligned address for alloc_coherent, v2
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Sun, 17 Aug 2008 15:36:18 +0000 (00:36 +0900)
committerIngo Molnar <mingo@elte.hu>
Sun, 17 Aug 2008 17:36:59 +0000 (19:36 +0200)
commit7b22ff5344fda666e0938e5261ea7b9a3dfce497
tree3fc6994f3432a7264867688b67db631878b81d7c
parentf3efbe582b5396d134024c03a5fa253f2a85d9a6
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 <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-gart_64.c