IA64: fix swiotlb alloc_coherent for non DMA_64BIT_MASK devices, fix
authorYasunori Goto <y-goto@jp.fujitsu.com>
Tue, 3 Feb 2009 01:52:03 +0000 (10:52 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 3 Feb 2009 05:57:24 +0000 (06:57 +0100)
commit0d688da5505d77bcef2441e0a22d8cc26459702d
treeab71f037ce9953e3652bb617b6b604ed42fa4514
parentd7ab5c46ae2743079a40bb4060e510418c0842b4
IA64: fix swiotlb alloc_coherent for non DMA_64BIT_MASK devices, fix

Because dma_alloc_coherent() always required DMA zone even if DMA is
NOT necessary, FUJITA Tomonori posted a patch to fix it:

  http://marc.info/?l=linux-ia64&m=123314730923356&w=2

However, this fix needs one more patch to fix completely.
I tested and confirmed dma_alloc_coherent() returns
correct zone after applied following patch.

Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/ia64/include/asm/dma-mapping.h