Skip to content
Commit 590f0787 authored by Junichi Nomura's avatar Junichi Nomura Committed by Thomas Gleixner
Browse files

x86/pci/dma: Fix gfp flags for coherent DMA memory allocation



Commit 6894258e 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: 6894258e ("dma-mapping: consolidate dma_{alloc,free}_{attrs,coherent}")
Signed-off-by: default avatarJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Tested-by: default avatarTony Luck <tony.luck@intel.com>
Acked-by: default avatarChristoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20150914073834.GA13077@xzibit.linux.bs1.fc.nec.co.jp


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 6ff33f39
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment