https://github.com/torvalds/linux
Revision 590f07874e8e3c83729b919312c65aea2533c8cf authored by Junichi Nomura on 14 September 2015, 07:38:36 UTC, committed by Thomas Gleixner on 17 September 2015, 14:22:11 UTC
Commit 6894258eda2f reversed the order of gfp_flags adjustment in
dma_alloc_attrs() for x86 [arch/x86/kernel/pci-dma.c] As a result,
relevant flags set by dma_alloc_coherent_gfp_flags() are just
discarded and cause coherent DMA memory allocation failure on some
devices.

Fixes: 6894258eda2f ("dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent}")
Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20150914073834.GA13077@xzibit.linux.bs1.fc.nec.co.jp
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

1 parent 6ff33f3
History
Tip revision: 590f07874e8e3c83729b919312c65aea2533c8cf authored by Junichi Nomura on 14 September 2015, 07:38:36 UTC
x86/pci/dma: Fix gfp flags for coherent DMA memory allocation
Tip revision: 590f078
File Mode Size
bnx2-mips-06-6.2.1.fw.ihex -rw-r--r-- 249.6 KB
bnx2-mips-09-6.2.1a.fw.ihex -rw-r--r-- 279.4 KB
bnx2-rv2p-06-6.0.15.fw.ihex -rw-r--r-- 15.6 KB
bnx2-rv2p-09-6.0.17.fw.ihex -rw-r--r-- 16.7 KB
bnx2-rv2p-09ax-6.0.17.fw.ihex -rw-r--r-- 18.1 KB

back to top