Message ID | CABnWg9scYTkZ242STBop4yXNKsEzgd1gsGoZQzvrurL5nYhUQw@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=SFki=J6=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MISSING_HEADERS,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EA07C433B4 for <linux-arm-kernel@archiver.kernel.org>; Mon, 3 May 2021 15:30:17 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3A7AD61176 for <linux-arm-kernel@archiver.kernel.org>; Mon, 3 May 2021 15:30:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A7AD61176 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Cc:Subject:Message-ID:Date:From:MIME-Version: Reply-To:To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Gwbr3NTBvHHFv2lrlpii05fznIvWjyHVSP2pDLpDACw=; b=f/BPVa3GotFj0i 1wXakS7KJMP4HHO9TAFgei/ELHGL6Ohq782kcU0tZcDq++6tGAfWg5prHQ/cZZXX6SACyw7F00To0 +hT0xIoEhP12YjPY9S0emmRBM5HoDED2M+D0XvnRR+FBfz3WRgdwd2A/KDyWzRoAd7Gm2KGX+tSyZ foZvMravLv/vmWutFHmCykvA6ruteutyu1rZ2ZyIWWy2Ctk7Ys9tcLGuJnNHBzCx0zaLF83PO527y 3/p+g8sWqQ1yVv46VGjV+ZiqDoZjUUcOD4oZHU8JV8haBXzZB/38EkcBmKlw+RXfq4NgU234ItdIK MlD34z5VZ4ZqGTqfuhwg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1ldaTx-00EEHV-2Y; Mon, 03 May 2021 15:27:37 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldaSy-00EE6g-U9 for linux-arm-kernel@desiato.infradead.org; Mon, 03 May 2021 15:26:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:Cc:Subject:Message-ID: Date:From:MIME-Version:Sender:Reply-To:To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=EI6bZyecXV+D4mAvyW1zNE2tx9yP9EY1VWyGEKOhGs4=; b=xlkjrfLY9f8I3YRfmAzxDNeBIs 4sOcM+Glzg6gfrLTYCF5DPWWBRjwz4SSP5NrM1JxF+sD3iBLP4D3CJyzRXHAyRUyGgi4FULHa9pDn UaUDrPubiFo3jjpjaPwN2L99tVcqve5p6CCCW3ZWBBkrVtMUM8yC2TJ3Ohcrz8X0APHvaE7fE2ss5 Jn5C0nLET4fKZ8yUAzyxkxDOwZvTjDoiWB2UJAUYJnLbdVwREeQTknIIviFDQmX/8UjkF5hTGaP+Z w2xwIe05sW7nERWo7CZJl14gnYWgmWG/T7XUwcWLL1CgrKd9GF1Jq/2v/r1iSoMBhYmgckhL8PyQg ngmx1BhQ==; Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1ldaSv-003Av8-6Z for linux-arm-kernel@lists.infradead.org; Mon, 03 May 2021 15:26:35 +0000 Received: by mail-ot1-x329.google.com with SMTP id x54-20020a05683040b6b02902a527443e2fso5410897ott.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 03 May 2021 08:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:cc; bh=EI6bZyecXV+D4mAvyW1zNE2tx9yP9EY1VWyGEKOhGs4=; b=qeuOlliDGX/UXrFBQRGA+wZpGmrZ3HwhDOaBcLLbNorJFBQ4hQ9Q/6PhUtBuNeS8Aj au6pVFpGyoJApuOoR9hMvcsM3O/ekucc0pvsmba0X3h/ETYu8raP259toJ+B9EQmVv3U noQ0uvWbA3AQWM/Qk9dBt9TfYB86MQgd8kz3agg/3D5fZKr6N1NOHdVpSHKhVHkpQlbO GeOcTWWtTFUZMM+V3A3Em2sAhxFybQCvJI/ak4a4jeiX+fIB3AtFhVdTWrFtg63tw3xd QOgP2+GbpbYXfLlNvbH5jOyPPPAz8hsNULBRqJWfisA+Pml5+1NmzEMm7R5HvdDBlBGU Wc/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:cc; bh=EI6bZyecXV+D4mAvyW1zNE2tx9yP9EY1VWyGEKOhGs4=; b=pH4DEw4h+egR9Rg2ntHou0AuD6AkpccYRF6qN+yUzUXsJCd9u/an5TTiAx7EvrrQvG Pbr1WSKXjSb5MNZMpG8MJbdrzMkTy55lNdFDfa305J3AARlnf4G/iaf9NWmVyCUX1aMA RTwGygUP/a/PG6ZtZ9l2mUQatcAfch2I9Rec1x31G6ZEX8OAIAoSgOIJkOYEJn2rkfL2 eX7ROUSTPUeDh7b3i1qHQWrSBjvWIlEhwFQ1xy9HGYpNEP3yI42fGUGV8+1w/SlfwcGF 87+idC39bP1HBrJOUp1ixIbeouKSRJ0ld7RN8sawNS1XkRyfV7QOjdSSlDx4v4I5w7uU 362Q== X-Gm-Message-State: AOAM533XojKUg+YpQe+1Bm4Xjc/TFjPxlDK1ZhAw/qe6QCk9to70Oxk0 RWxBFiu26MUjNvH0ABi62/DemfFd1ebkwr0/bn8a4w== MIME-Version: 1.0 X-Received: by 2002:a9d:2f24:: with SMTP id h33mt13304195otb.128.1620055591994; Mon, 03 May 2021 08:26:31 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 May 2021 08:26:31 -0700 From: Guillaume Ranquet <granquet@baylibre.com> Date: Mon, 3 May 2021 08:26:31 -0700 Message-ID: <CABnWg9scYTkZ242STBop4yXNKsEzgd1gsGoZQzvrurL5nYhUQw@mail.gmail.com> Subject: [PATCH 3/4] dmaengine: mediatek: use GFP_NOWAIT instead of GFP_ATOMIC in prep_dma Cc: Sean Wang <sean.wang@mediatek.com>, Vinod Koul <vkoul@kernel.org>, Dan Williams <dan.j.williams@intel.com>, Matthias Brugger <matthias.bgg@gmail.com>, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210503_082633_261122_3161DC9C X-CRM114-Status: UNSURE ( 6.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/4] dmaengine: mediatek: free the proper desc in desc_free handler
|
expand
|
diff --git a/drivers/dma/mediatek/mtk-uart-apdma.c b/drivers/dma/mediatek/mtk-uart-apdma.c index 249cabddb7ee..4711bec04b98 100644 --- a/drivers/dma/mediatek/mtk-uart-apdma.c +++ b/drivers/dma/mediatek/mtk-uart-apdma.c @@ -349,7 +349,7 @@ static struct dma_async_tx_descriptor *mtk_uart_apdma_prep_slave_sg return NULL; /* Now allocate and setup the descriptor */ - d = kzalloc(sizeof(*d), GFP_ATOMIC); + d = kzalloc(sizeof(*d), GFP_NOWAIT); if (!d) return NULL;
As recommended by the doc in: Documentation/drivers-api/dmaengine/provider.rst Use GFP_NOWAIT to not deplete the emergency pool. Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>