linux/arch/ia64
FUJITA Tomonori 97d9800de9 IA64: fix swiotlb alloc_coherent for non DMA_64BIT_MASK devices
Before the dma ops unification, IA64 always uses GFP_DMA for
dma_alloc_coherent like:

#define dma_alloc_coherent(dev, size, handle, gfp)	\
	platform_dma_alloc_coherent(dev, size, handle, (gfp) | GFP_DMA)

This GFP_DMA enforcement doesn't make sense for IOMMUs since they can
do address translation to give addresses that devices can access
to. The IOMMU drivers ignore the zone flag. However, this is still
necessary for swiotlb since it can't do address translation.

We don't always need to use GFP_DMA for swiotlb. We need GFP_DMA for
devices incapable of 64bit DMA.

This patch is sorta updated version of:

http://marc.info/?l=linux-kernel&m=122638215612705&w=2

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2009-01-29 14:39:28 +01:00
..
configs [IA64] generic_defconfig: Enable SATA_VITESSE 2009-01-15 10:40:59 -08:00
dig x86, ia64: convert to use generic dma_map_ops struct 2009-01-06 14:06:57 +01:00
hp x86, ia64: convert to use generic dma_map_ops struct 2009-01-06 14:06:57 +01:00
ia32 [CVE-2009-0029] Remove __attribute__((weak)) from sys_pipe/sys_pipe2 2009-01-14 14:15:15 +01:00
include/asm Merge branch 'linus' into core/iommu 2009-01-16 10:09:10 +01:00
kernel IA64: fix swiotlb alloc_coherent for non DMA_64BIT_MASK devices 2009-01-29 14:39:28 +01:00
kvm KVM: change KVM to use IOMMU API 2009-01-03 14:11:07 +01:00
lib [IA64] Add Variable Page Size and IA64 Support in Intel IOMMU 2008-10-17 12:14:13 -07:00
mm mm: show node to memory section relationship with symlinks in sysfs 2009-01-06 15:59:00 -08:00
oprofile oprofile: more whitespace fixes 2008-10-15 20:55:51 +02:00
pci [IA64] SN specific version of dma_get_required_mask() 2009-01-15 10:42:16 -08:00
scripts ia64/pv_ops: paravirtualized instruction checker. 2008-10-17 10:12:54 -07:00
sn Merge branch 'linus' into core/iommu 2009-01-16 10:09:10 +01:00
uv [IA64] Simplify SGI uv vs. sn2 driver issues 2008-11-04 11:29:39 -08:00
xen [IA64] Update to use account_{steal,idle}_ticks 2009-01-15 09:43:24 -08:00
install.sh
Kconfig [IA64] Turn on CONFIG_HAVE_UNSTABLE_CLOCK 2009-01-15 10:29:17 -08:00
Kconfig.debug
Makefile Pull vtd-iommu into release branch 2008-10-17 13:52:22 -07:00
module.lds