Message ID | 20231114-b4-feature_hdma_mainline-v5-4-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 t9csp1914628vqg; Tue, 14 Nov 2023 06:53:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGOQe+MdgDYaC04CxnSmc//1b09u7+iRGMovE+Z4/f8oQpHCNyuR2Nrc4pamvTCPPoHykym X-Received: by 2002:a05:6a20:7d9f:b0:187:4118:140 with SMTP id v31-20020a056a207d9f00b0018741180140mr467234pzj.24.1699973591244; Tue, 14 Nov 2023 06:53:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699973591; cv=none; d=google.com; s=arc-20160816; b=EO1N4R9Crh2VhOAEiBLOVmVoaN4FYYWn9cZOHg6g936X6IlNF1VlQ4yvO+PvZFrCAU L+gQWQiGhtTriEJqAY4BKsNqz1C+6SxNV437iPGrTsLCazoNJZGL5IA+g3u3Ads0qvIH rYs7Yl6kIb+whfY45zYmE+6IUCpxF7G+wMi7YossCfDrCoPEYcW8BfWe7f3fUQfCS49B LkVd5Znd+bmf56cQ3UdP3wFdfIc6XV3V2wRl8jDYG/vXbynLL2SE/TJwxhbduRruNE4k 9b9tS9SjmsE2bMl/8EuKC6YwYknLhAKfHh2MNjremBRtlvm0cfoRXMeDNn1K7WXx4k0E 3csg== 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=svngh7gavoOsAoTd14KvI+aVm1JHod9n5Mvh72UXNZY=; fh=Fko32OqwGgI5WpcqYpp5KigXgtelsKMiigtnZERCGL8=; b=tsvTFKJ2xMy//tlcNR6We6+ncWSbec2LFsXT8Ov5ZUcMIdNpPbHYlKp67CQaoLVNX4 S07epFVh8fbqEgTFwsuMxwEwlzATEmLydvq/aCySExNFTk9eH0frXUYiS0gw4xubkMVd 9uQIlDP9tPw8Rw+vST6dfqnjsiuHHx4RIZIdI6Qv0LB3UH8PXphwGqPtWonll3iHRiy6 Yi8fjRPFBFgKEd9DzGYJoL5LoWAwrdaJZHByBQE9WbOPljcg2zuRw5wnJC48HXeZ3nSt aTr56vwW3I77eHY11jLCDeIt1KtM9z8x/iQGCwkQEljVByG5rWQM8RrH1X4WtIGtq/V2 tMgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=l093DY4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id f16-20020a63e310000000b005bdbdc71c90si7738100pgh.282.2023.11.14.06.53.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 06:53:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=l093DY4t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 5C1C6803235A; Tue, 14 Nov 2023 06:53:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233533AbjKNOwU (ORCPT <rfc822;lhua1029@gmail.com> + 29 others); Tue, 14 Nov 2023 09:52:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233490AbjKNOwK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 14 Nov 2023 09:52:10 -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 4F603CA; Tue, 14 Nov 2023 06:52:07 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9D8CC24001A; Tue, 14 Nov 2023 14:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699973526; 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=svngh7gavoOsAoTd14KvI+aVm1JHod9n5Mvh72UXNZY=; b=l093DY4tY3uYI0h8I8HZT0q/eiUFB7NuJDDOQ8GuICv7vwFR5tDyIfaJCHrndUqkgXHBTW /Vra+Ug2i9GUHE/tyxWKJVHao/NfRCnQNu3L9Nm6YmFiDGKHZuImP3+zFB82qDaThoiRX3 2zdp4Gcf8OMYREUS6RQwITSrPrcL9aQJkCnEKwKPgmQ3xzZbU3x2XIzS26emBQ6xXWsNc3 IRkC9VUTojkXiifW+1RtQipJd1CkZpYLuMkS7kzZrTNoJRJv+wX6gu6tkPDl8FZ7Ynskzf Bx53oQxWb1PxzhVFMGPA6XGqLmmtUEUO4ncriX2cV7oTYxNc7VuPZhJyd1TQKg== From: Kory Maincent <kory.maincent@bootlin.com> Date: Tue, 14 Nov 2023 15:51:57 +0100 Subject: [PATCH v5 4/6] dmaengine: dw-edma: Add HDMA remote interrupt configuration MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231114-b4-feature_hdma_mainline-v5-4-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>, Manivannan Sadhasivam <mani@kernel.org> 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 14 Nov 2023 06:53:04 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782551508316977684 X-GMAIL-MSGID: 1782551508316977684 |
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
Only the local interruption was configured, remote interrupt was left behind. This patch fix it by setting stop and abort remote interrupts when the DW_EDMA_CHIP_LOCAL flag is not set. 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> Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> --- drivers/dma/dw-edma/dw-hdma-v0-core.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/dma/dw-edma/dw-hdma-v0-core.c b/drivers/dma/dw-edma/dw-hdma-v0-core.c index 108f9127aaaa..04b0bcb6ded9 100644 --- a/drivers/dma/dw-edma/dw-hdma-v0-core.c +++ b/drivers/dma/dw-edma/dw-hdma-v0-core.c @@ -237,6 +237,8 @@ static void dw_hdma_v0_core_start(struct dw_edma_chunk *chunk, bool first) 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_ABORT_INT_EN; + if (!(dw->chip->flags & DW_EDMA_CHIP_LOCAL)) + tmp |= HDMA_V0_REMOTE_STOP_INT_EN | HDMA_V0_REMOTE_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);