Re: [PATCH] x86: Fix gfp flags for coherent DMA memory allocation

From: Tony Luck
Date: Wed Sep 16 2015 - 17:47:40 EST


On Mon, Sep 14, 2015 at 12:38 AM, Junichi Nomura <j-nomura@xxxxxxxxxxxxx> wrote:
> 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()
> is just discarded and causes 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@xxxxxxxxxxxxx>

Tested-by: Tony Luck <tony.luck@xxxxxxxxx>

Is this en-route to Linus? I can't boot 4.3-rc1 without this patch.

-Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/