AMD IOMMU: use coherent_dma_mask in alloc_coherent
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 18 Sep 2008 13:54:23 +0000 (15:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Sep 2008 10:59:34 +0000 (12:59 +0200)
commit832a90c30485117d65180cc9a8d9869c1b158570
treee8a183e647252766d178bb297854d1e1862553ac
parentbbd001c73cb92aa8f779ae44bb89d8a5dee74ad5
AMD IOMMU: use coherent_dma_mask in alloc_coherent

The alloc_coherent implementation for AMD IOMMU currently uses
*dev->dma_mask per default. This patch changes it to prefer
dev->coherent_dma_mask if it is set.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu.c