diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2008-08-18 00:36:18 +0900 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-17 19:36:59 +0200 |
commit | 7b22ff5344fda666e0938e5261ea7b9a3dfce497 (patch) | |
tree | 3fc6994f3432a7264867688b67db631878b81d7c /arch/x86/kernel/numaq_32.c | |
parent | f3efbe582b5396d134024c03a5fa253f2a85d9a6 (diff) | |
download | op-kernel-dev-7b22ff5344fda666e0938e5261ea7b9a3dfce497.zip op-kernel-dev-7b22ff5344fda666e0938e5261ea7b9a3dfce497.tar.gz |
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>
Diffstat (limited to 'arch/x86/kernel/numaq_32.c')
0 files changed, 0 insertions, 0 deletions