lkml.org 
[lkml]   [2018]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 086/118] dmaengine: imx-sdma: use GFP_NOWAIT for dma descriptor allocations
    Date
    4.19-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Lucas Stach <l.stach@pengutronix.de>

    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>

    ---
    drivers/dma/imx-sdma.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/dma/imx-sdma.c
    +++ b/drivers/dma/imx-sdma.c
    @@ -1214,7 +1214,7 @@ static int sdma_alloc_bd(struct sdma_des
    int ret = 0;

    desc->bd = dma_zalloc_coherent(NULL, bd_size, &desc->bd_phys,
    - GFP_ATOMIC);
    + GFP_NOWAIT);
    if (!desc->bd) {
    ret = -ENOMEM;
    goto out;

    \
     
     \ /
      Last update: 2018-12-11 17:02    [W:4.361 / U:0.116 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site