Message ID | 20231114-b4-feature_hdma_mainline-v5-2-7bc86d83c6f7@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp1914368vqg; Tue, 14 Nov 2023 06:52:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGl+PHmzj+AR8uk9r6T02KxDmMRA/GdB1qOcoTl3U3MiuLDpsgY58lUDNrZ1KqS5HGiIa3/ X-Received: by 2002:a17:902:d2d2:b0:1cc:5ea9:180a with SMTP id n18-20020a170902d2d200b001cc5ea9180amr2378392plc.17.1699973570366; Tue, 14 Nov 2023 06:52:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699973570; cv=none; d=google.com; s=arc-20160816; b=WDOYmWQzCNKzdqDXQiH3EXE1VsvOc+M65GmY2Cer3t9BwbVFS/cmKuI37Spv6fIo+c c/4okS55VjIndRzWTY7S0qn40QTNwfyDaVOPBJDgMsnBblCwG2R+UU6V4r6Yhv8pof3h Q8DNmzSfEbHQ5DEe1YTOrOxu9E1SIsCuslYJAW9Z+cjKbxcs/Ex0HFwTbkCjRI5YCWLK jDcTMye1bQEjTjGjBAqq+ukup74xnGTdt/cv2zzGJmcPN8dN3FTdKR4KJjDrmMIxF+NG SDYOTqbSwX0torfw5ZMSPlmn/VaMPv7zS/hZzrP41YOLMAVSjAVfFtEXgsUcpuhcPsry 8Yfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=9zfuTvre0UzAi4GpamYmN3E9uemUolgHrcnYVxe0/6o=; fh=6XphIdWxfa6Vpt4el4ltSz/1eFeqJAQ3KUirCeZaEUc=; b=UegQJuM26YMsRkyTu1Xfgr3y7XrzgPqFHfPC1Etkzxu+ov2zW82O0beZfl+XykIaYR aOHNwuNopJM4jS2gmXSWsgxO8YU+CZMsYZzK+I0quyHzzQ3k/T+TvvNCOvQiSkWHLWdv VIpU7k7zrWr9HfV9mXe4x2kqQ3FyO1rrqxYzvjLccvyWYfOGjfR+78PmKrveo1SeWOPs UWASnO+l6P/9pKz/eZ/rs3GG58Gyx/aBfYkFo53gcVFmDmXawhjgQjrHzlh1I70v8pEi l9QVMBUXu5l4q9jcrlNUEaX7mXDcDvnXccKKyJJMj385+wmbVH5CmU7C6nLm7AljDgJ6 44ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WYk2bi0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id q14-20020a170902dace00b001c9b5a96d15si8208627plx.13.2023.11.14.06.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:52:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WYk2bi0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 01E08803F947; Tue, 14 Nov 2023 06:52:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233509AbjKNOwM (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Tue, 14 Nov 2023 09:52:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231697AbjKNOwJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 09:52:09 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52189126; Tue, 14 Nov 2023 06:52:06 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id A3D59240003; Tue, 14 Nov 2023 14:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699973525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9zfuTvre0UzAi4GpamYmN3E9uemUolgHrcnYVxe0/6o=; b=WYk2bi0RayS5KdrXFqbBs1ZUT9c5Dp0Ig/yyDAl+rGqTB0JGPqachk9W2nn3szazQliexh bJu4e+X7001Ndf3IAj2ulsFJoD+/h2Mr3OzLL8CNMtSVk8kx1VanZDTwjyPgIcoTKiQ46Q zddanlA29ytFqh6mN/fXTdq/iI1lfq2HfgLyDtO8MwREiWpc3C52OupHDWcrfrRqRySEk8 HJzevquDlmD3osMZ2ChzrpwPLbIRlR7YObCAFt8aOF3O55P1+sKkaHcNu4ANYei6B/jldt mzu6Q2h93Q3YOj6sAHbNj6hRRqHW9qrbqhyR8xXGFZcQuam3c3iudq7sQYKSmg== From: Kory Maincent <kory.maincent@bootlin.com> Date: Tue, 14 Nov 2023 15:51:55 +0100 Subject: [PATCH v5 2/6] dmaengine: dw-edma: Fix wrong interrupt bit set MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231114-b4-feature_hdma_mainline-v5-2-7bc86d83c6f7@bootlin.com> References: <20231114-b4-feature_hdma_mainline-v5-0-7bc86d83c6f7@bootlin.com> In-Reply-To: <20231114-b4-feature_hdma_mainline-v5-0-7bc86d83c6f7@bootlin.com> To: Manivannan Sadhasivam <mani@kernel.org>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Serge Semin <fancer.lancer@gmail.com>, Vinod Koul <vkoul@kernel.org>, Cai Huoqing <cai.huoqing@linux.dev> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Herve Codina <herve.codina@bootlin.com>, Kory Maincent <kory.maincent@bootlin.com> X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 14 Nov 2023 06:52:43 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782551486539539444 X-GMAIL-MSGID: 1782551486539539444 |
Series |
Fix support of dw-edma HDMA NATIVE IP in remote setup
|
|
Commit Message
Köry Maincent
Nov. 14, 2023, 2:51 p.m. UTC
Fix "HDMA_V0_LOCAL_STOP_INT_EN" to "HDMA_V0_LOCAL_ABORT_INT_EN" as the STOP bit is already set in the same line. Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> --- Changes in v3: - Split the patch in two to differ bug fix and simple harmless typo. --- drivers/dma/dw-edma/dw-hdma-v0-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, Nov 14, 2023 at 03:51:55PM +0100, Kory Maincent wrote: Subject should reflect HDMA: "dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA" > Fix "HDMA_V0_LOCAL_STOP_INT_EN" to "HDMA_V0_LOCAL_ABORT_INT_EN" as the STOP > bit is already set in the same line. > How about: "Instead of setting HDMA_V0_LOCAL_ABORT_INT_EN bit, HDMA_V0_LOCAL_STOP_INT_EN bit got set twice, due to which the abort interrupt is not getting generated for HDMA. Fix it by setting the correct interrupt enable bit." > Fixes: e74c39573d35 ("dmaengine: dw-edma: Add support for native HDMA") > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> With the above changes, Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> - Mani > Reviewed-by: Serge Semin <fancer.lancer@gmail.com> > --- > > Changes in v3: > - Split the patch in two to differ bug fix and simple harmless typo. > --- > drivers/dma/dw-edma/dw-hdma-v0-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c > index 1f4cb7db5475..108f9127aaaa 100644 > --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c > +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c > @@ -236,7 +236,7 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) > /* Interrupt enable&unmask - done, abort */ > tmp = GET_CH_32(dw, chan->dir, chan->id, int_setup) | > HDMA_V0_STOP_INT_MASK | HDMA_V0_ABORT_INT_MASK | > - HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_STOP_INT_EN; > + HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_ABORT_INT_EN; > SET_CH_32(dw, chan->dir, chan->id, int_setup, tmp); > /* Channel control */ > SET_CH_32(dw, chan->dir, chan->id, control1, HDMA_V0_LINKLIST_EN); > > -- > 2.25.1 >
diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c index 1f4cb7db5475..108f9127aaaa 100644 --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c @@ -236,7 +236,7 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) /* Interrupt enable&unmask - done, abort */ tmp = GET_CH_32(dw, chan->dir, chan->id, int_setup) | HDMA_V0_STOP_INT_MASK | HDMA_V0_ABORT_INT_MASK | - HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_STOP_INT_EN; + HDMA_V0_LOCAL_STOP_INT_EN | HDMA_V0_LOCAL_ABORT_INT_EN; SET_CH_32(dw, chan->dir, chan->id, int_setup, tmp); /* Channel control */ SET_CH_32(dw, chan->dir, chan->id, control1, HDMA_V0_LINKLIST_EN);