From patchwork Fri Jan 29 17:08:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Fitzgerald X-Patchwork-Id: 12056269 Return-Path: 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=-17.0 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,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 F32FFC433DB for ; Fri, 29 Jan 2021 18:18:48 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 87A5E64E11 for ; Fri, 29 Jan 2021 18:18:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87A5E64E11 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=opensource.cirrus.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To:From: Reply-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=wxdjS/+ZefGLUQvyuggLnrIlKIntczxUiHlghd2Hxkw=; b=z+E4Fy5eRYCYD9M3dqFIidfkOu FxoJK30y+VRo0xdu5SlO0TuttgjHGL3eS1p2NA4pLGqqNspSNG8hYoi1JJf635KwW4/Yz1+/jfZx2 kzSzfokkEllEwNiiXGfySkNCY0qALvIWiebikBI/dceS3hjOoqyoquBxpQDhgFg0ziCexezWrJAUD pf6MocA/cEvAZhucl57OMna+NarQFPaXR8ifODonxNtYAiF6P0otuMKsBCRFJbfJu8EcMsXSLmnzb elTdNLSdK57Tz4MMAwgYsbRdGhf9kwQJikmqiEBSwNp94CNCcwcnp85iMNJvttWWC/iaAhVvOD8iD XCPb7WOQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5XFh-0001Bz-HL; Fri, 29 Jan 2021 17:08:09 +0000 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l5XFe-0001Aw-MA for linux-arm-kernel@lists.infradead.org; Fri, 29 Jan 2021 17:08:07 +0000 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 10TH6Vvd007638; Fri, 29 Jan 2021 11:08:04 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=InbfmcNQ3u+eutYnwP8FnOSnY1mQqECHGcLKmEZ24/s=; b=Owh4aZEcpAxX8wm82rBfYBZHF6g7aI8uUnO8ADYgIlcTIvTrKMkIJGfj1IgZSC95/tbA gZsqcYnKSpf7q1kyiHGLkVPB94vNru9NNwuat5oPhL9MxuvmCdYgOwYYSZUQJj3VTll7 KQTXdSeQII6Yu3u5zGktAHKakl6ymaUe2zzPn8ENZG/z1RCNicPN/GZNZn7JINySSpc/ qJkZUybb4Py/ZyRVRz3AzGNeklbSnCH+5ZOpEZukLkTgSRvSJMfNT/+u5++Ehd24EACY Tv4f1dCtFHwWwR3fQ+pfFICNeHXDImakoISiixyuysLad7/2hEhwKkDdRMFeJAAi6wgQ Kw== Received: from ediex01.ad.cirrus.com ([87.246.76.36]) by mx0b-001ae601.pphosted.com with ESMTP id 368h3u7nxh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 29 Jan 2021 11:08:04 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 29 Jan 2021 17:08:02 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Fri, 29 Jan 2021 17:08:02 +0000 Received: from AUSNPC0LSNW1-debian.cirrus.com (AUSNPC0LSNW1.ad.cirrus.com [198.61.64.253]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 240B345; Fri, 29 Jan 2021 17:08:02 +0000 (UTC) From: Richard Fitzgerald To: , Subject: [PATCH] dmaengine: xilinx_dma: Alloc tx descriptors GFP_NOWAIT Date: Fri, 29 Jan 2021 17:08:00 +0000 Message-ID: <20210129170800.31857-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 priorityscore=1501 adultscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 clxscore=1011 mlxlogscore=725 mlxscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101290084 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210129_120806_797021_3BFDB0ED X-CRM114-Status: GOOD ( 13.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dmaengine@vger.kernel.org, patches@opensource.cirrus.com, Richard Fitzgerald , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use GFP_NOWAIT allocation in xilinx_dma_alloc_tx_descriptor(). This is necessary for compatibility with ALSA, which calls dmaengine_prep_dma_cyclic() from an atomic context. Signed-off-by: Richard Fitzgerald --- drivers/dma/xilinx/xilinx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 22faea653ea8..fb046af9ac53 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -800,7 +800,7 @@ xilinx_dma_alloc_tx_descriptor(struct xilinx_dma_chan *chan) { struct xilinx_dma_tx_descriptor *desc; - desc = kzalloc(sizeof(*desc), GFP_KERNEL); + desc = kzalloc(sizeof(*desc), GFP_NOWAIT); if (!desc) return NULL;