瀏覽代碼

dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations

commit 64068853bc77786d1a28abb4087d6a3e93aedbe2 upstream.

DMA buffer descriptors aren't allocated from atomic context, so they
can use the less heavyweigth GFP_NOWAIT.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Lucas Stach 7 年之前
父節點
當前提交
374f384bc6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/dma/imx-sdma.c

+ 1 - 1
drivers/dma/imx-sdma.c

@@ -1214,7 +1214,7 @@ static int sdma_alloc_bd(struct sdma_desc *desc)
 	int ret = 0;
 	int ret = 0;
 
 
 	desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys,
 	desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys,
-					GFP_ATOMIC);
+					GFP_NOWAIT);
 	if (!desc->bd) {
 	if (!desc->bd) {
 		ret = -ENOMEM;
 		ret = -ENOMEM;
 		goto out;
 		goto out;