summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorFUJITA Tomonori2008-09-08 11:10:13 +0200
committerIngo Molnar2008-09-08 15:50:07 +0200
commit823e7e8c6ef12cd1943dc42fe7595ca74e8cc3d7 (patch)
tree56f4b01741353ad4d24f24adeeedd68eaa041354 /lib
parentx86: fix nommu_alloc_coherent allocation with NULL device argument (diff)
downloadkernel-qcow2-linux-823e7e8c6ef12cd1943dc42fe7595ca74e8cc3d7.tar.gz
kernel-qcow2-linux-823e7e8c6ef12cd1943dc42fe7595ca74e8cc3d7.tar.xz
kernel-qcow2-linux-823e7e8c6ef12cd1943dc42fe7595ca74e8cc3d7.zip
x86: dma_alloc_coherent sets gfp flags properly
Non real IOMMU implemenations (which doesn't do virtual mappings, e.g. swiotlb, pci-nommu, etc) need to use proper gfp flags and dma_mask to allocate pages in their own dma_alloc_coherent() (allocated page need to be suitable for device's coherent_dma_mask). This patch makes dma_alloc_coherent do this job so that IOMMUs don't need to take care of it any more. Real IOMMU implemenataions can simply ignore the gfp flags. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions