Message ID | 20240129-b4-feature_hdma_mainline-v7-0-8e8c1acb7a46@bootlin.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp680004dyb; Mon, 29 Jan 2024 08:27:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx1LIVe+ZejnHed7IQbzW5ZAbaAT0BTFBJ7Ad74m+cwaKOwZukCQTUNnu82tgFzhWeTOYi X-Received: by 2002:aa7:d052:0:b0:55f:3cb:9cfa with SMTP id n18-20020aa7d052000000b0055f03cb9cfamr1911849edo.30.1706545630274; Mon, 29 Jan 2024 08:27:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706545630; cv=pass; d=google.com; s=arc-20160816; b=OqrsU+SNcYQBSUIjHYlu9s+2wsSYw3SJhv9cKddLi0qN5dJIUeleMPDxueGXY+WboC bnoQgafTjNd0G2aY7B7vDEqtq3d4HvjObdh8GVb3kf7ln+pTewK+2un2AFCUUs6seYd4 B0/yAzAUmqJ7kLss72KtpPojb0YI63z0ZfKx9nEh2cGHBb4QLEjmCyuFJIN1ktS3k3VF 5ZN2iq7O2tPXNCvL0HQ3fjCfqCSE3YbhmhVl2TnQVO6UbsMChNA2goAb7rktQ+aYv0/+ ui/smXBOUGT+vXNwtLDdBhUbU/Zut7mfNBGpNZN20mWf7pV14pfxH83p+DxVI34vMF2n HoOA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=E9Y1YO9a4lUPIXa97ED1XfcPSm0h5Y2q/VaMDZEFmqw=; fh=oC1+pIJR2tZdBb9Uzp3yLjqrVYle+8srf2TBxoXLW2Q=; b=s+PFLR5wqOjFubejCZ1biCqg6IO0mpAlsEOyvkdw8PwAifKT5jQRqRbHW+JM/3a65w IZlRM6giC3MTPsV4BpH5HtQnpSlwU9SuEEf3QvzPhX9jqWBxy3k9AptfTbt3QWYK8bKx N3n9LZKVR7IM7mwh+cvLfXMTSHw2SPtQJUZhr2jq7GgaMqszgmmUsX17ke8oro+vd5eU nsJPpfFn0/vBp0l2Mbp973S2ButVKkQ0w/TVthM43CcIagKDwOh/99ev5SMAC4CEfTY2 BjyLHBsHhgA2uHENvbWh0wOBcMuaNPV3GSsV9eXE7N8K2Ynz25yB5/FnG0LGTQTR2WCE b5EQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bpLROeWM; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id q4-20020a056402040400b0055c62997f71si3655328edv.169.2024.01.29.08.27.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:27:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=bpLROeWM; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43073-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DF1B51F228C5 for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 16:27:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0A35157E70; Mon, 29 Jan 2024 16:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="bpLROeWM" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E9CC155A22; Mon, 29 Jan 2024 16:26:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.196 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706545571; cv=none; b=fx9+CmVsZwdl5DlbfcBBb+2E1+e1D+cqvfO3r509vsz2nlvbP6J3xmgw2uiGfbIVN38agGQh3QBteNkcBEDO1W8UBJNd/vhMl8n3LS/aZt/ojkDY1QhF0REa1EnZZjhkDKSBQLrJz/PTBg2fBi5NN+8s/C1uzoDrZAGhSvIve9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706545571; c=relaxed/simple; bh=W46H/aCMXfesOX2zY96FjX0batkbZQUarj6CDXDqBP8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=rdNS8mvpSZP/dxa3ARITf34PxHIasdJRM3yMeovO4iobbkSlP6Mqz/KJXnW07lriupugsimnyy7Na8tNPXjAVEXaVOhGqJv7TnA0OLwyPVsQhx8n6ejC5x/eg5A7yJ+Ml+mChm+ogwvPE8zj0R6pmraw2jKj8BpE0Ct230BdfM8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=bpLROeWM; arc=none smtp.client-ip=217.70.183.196 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 2430DE0008; Mon, 29 Jan 2024 16:26:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1706545565; 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; bh=E9Y1YO9a4lUPIXa97ED1XfcPSm0h5Y2q/VaMDZEFmqw=; b=bpLROeWMvuPAptm68QoPAg0rklxbUdEqyDVt0QebadEgi2fFXBAaOeAHosWg5PL9oDrqp6 gLcV0KTxxN/uSqowdPt9hq6IzIcEF9w1nKroKiXeIe9uNTbOyFyuS/eHp5wpuWBnFjbiAx NW4skpr/0UxuH1LswPFISPQjgpCAHEyl3YEl0i0mRGq0ylwuDKIvgYqXKfZ9C0HYgRU1aA 8j8Uz1ryodJSoctJYfhUejX0/NfFWSk89UzNgL/qnQChYmC5UGq29Vzs/HKhim/Myr6Qm4 +DXnV6JGL22peVHrjpmu+H3ko49tCbqwSQtjLtO9plZW94DuCr/fK6TdTKxycw== From: Kory Maincent <kory.maincent@bootlin.com> Subject: [PATCH v7 0/6] Fix support of dw-edma HDMA NATIVE IP in remote setup Date: Mon, 29 Jan 2024 17:25:56 +0100 Message-Id: <20240129-b4-feature_hdma_mainline-v7-0-8e8c1acb7a46@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAJTRt2UC/43OTQrCMBAF4KtI1kaSJk1aV95DRPIzsQHbSFqLI r27oxvFQnH5ZnjfzIP0kCP0ZLt6kAxj7GPqMOj1irjGdCeg0WMmBSsEZ5xTK2kAM1wzHBvfmmN rYneOHVCrXKlDBcKWnmD9kiHE25veHzA3sR9Svr8vjeI1/QMdBWW0kADM1bp2KuxsSgOuNi615 MWO8l9KIiWFl1zbWnBRzanyQ3EuF6gSKW1dpXwl8Ck9p9Q3pRcohRTYoI1hIJn/oaZpegIAGNo HowEAAA== 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 <manivannan.sadhasivam@linaro.org> X-Mailer: b4 0.12.4 X-GND-Sasl: kory.maincent@bootlin.com X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789442791106287076 X-GMAIL-MSGID: 1789442791106287076 |
Series |
Fix support of dw-edma HDMA NATIVE IP in remote setup
|
|
Message
Köry Maincent
Jan. 29, 2024, 4:25 p.m. UTC
This patch series fix the support of dw-edma HDMA NATIVE IP.
I can only test it in remote HDMA IP setup with single dma transfer, but
with these fixes it works properly.
Few fixes has also been added for eDMA version. Similarly to HDMA I have
tested only eDMA in remote setup.
Changes in v2:
- Update comments and fix typos.
- Removed patches that tackle hypothetical bug and then were not pertinent.
- Add the similar HDMA race condition in remote setup fix to eDMA IP driver.
Changes in v3:
- Fix comment style.
- Split a patch in two to differ bug fix and simple harmless typo.
Changes in v4:
- Update patch git commit message.
- Link to v3: https://lore.kernel.org/r/20231011-b4-feature_hdma_mainline-v3-0-24ee0c979c6f@bootlin.com
Changes in v5:
- No change
- Rebase to mainline 6.7-rc1
- Link to v4: https://lore.kernel.org/r/20231011-b4-feature_hdma_mainline-v4-0-43d417b93138@bootlin.com
Changes in v6:
- Fix several commit messages and comments.
- Link to v5: https://lore.kernel.org/r/20231114-b4-feature_hdma_mainline-v5-0-7bc86d83c6f7@bootlin.com
Changes in v7:
- No change, ready for merge
- Rebase to mainline 6.8-rc2
- Link to v6: https://lore.kernel.org/r/20231117-b4-feature_hdma_mainline-v6-0-ebf7aa0e40d7@bootlin.com
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
---
Kory Maincent (6):
dmaengine: dw-edma: Fix the ch_count hdma callback
dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA
dmaengine: dw-edma: HDMA_V0_REMOTEL_STOP_INT_EN typo fix
dmaengine: dw-edma: Add HDMA remote interrupt configuration
dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup
dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup
drivers/dma/dw-edma/dw-edma-v0-core.c | 17 +++++++++++++++
drivers/dma/dw-edma/dw-hdma-v0-core.c | 39 +++++++++++++++++++++++------------
drivers/dma/dw-edma/dw-hdma-v0-regs.h | 2 +-
3 files changed, 44 insertions(+), 14 deletions(-)
---
base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3
change-id: 20231011-b4-feature_hdma_mainline-b6c57f8e3b5d
Best regards,
Comments
On Mon, Jan 29, 2024 at 05:25:56PM +0100, Kory Maincent wrote: > This patch series fix the support of dw-edma HDMA NATIVE IP. > I can only test it in remote HDMA IP setup with single dma transfer, but > with these fixes it works properly. > > Few fixes has also been added for eDMA version. Similarly to HDMA I have > tested only eDMA in remote setup. > Vinod, could you please merge this series for v6.9? This already missed previous release. - Mani > Changes in v2: > - Update comments and fix typos. > - Removed patches that tackle hypothetical bug and then were not pertinent. > - Add the similar HDMA race condition in remote setup fix to eDMA IP driver. > > Changes in v3: > - Fix comment style. > - Split a patch in two to differ bug fix and simple harmless typo. > > Changes in v4: > - Update patch git commit message. > - Link to v3: https://lore.kernel.org/r/20231011-b4-feature_hdma_mainline-v3-0-24ee0c979c6f@bootlin.com > > Changes in v5: > - No change > - Rebase to mainline 6.7-rc1 > - Link to v4: https://lore.kernel.org/r/20231011-b4-feature_hdma_mainline-v4-0-43d417b93138@bootlin.com > > Changes in v6: > - Fix several commit messages and comments. > - Link to v5: https://lore.kernel.org/r/20231114-b4-feature_hdma_mainline-v5-0-7bc86d83c6f7@bootlin.com > > Changes in v7: > - No change, ready for merge > - Rebase to mainline 6.8-rc2 > - Link to v6: https://lore.kernel.org/r/20231117-b4-feature_hdma_mainline-v6-0-ebf7aa0e40d7@bootlin.com > > Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> > --- > Kory Maincent (6): > dmaengine: dw-edma: Fix the ch_count hdma callback > dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA > dmaengine: dw-edma: HDMA_V0_REMOTEL_STOP_INT_EN typo fix > dmaengine: dw-edma: Add HDMA remote interrupt configuration > dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup > dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup > > drivers/dma/dw-edma/dw-edma-v0-core.c | 17 +++++++++++++++ > drivers/dma/dw-edma/dw-hdma-v0-core.c | 39 +++++++++++++++++++++++------------ > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 2 +- > 3 files changed, 44 insertions(+), 14 deletions(-) > --- > base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3 > change-id: 20231011-b4-feature_hdma_mainline-b6c57f8e3b5d > > Best regards, > -- > Köry Maincent, Bootlin > Embedded Linux and kernel engineering > https://bootlin.com >
On Mon, 29 Jan 2024 17:25:56 +0100, Kory Maincent wrote: > This patch series fix the support of dw-edma HDMA NATIVE IP. > I can only test it in remote HDMA IP setup with single dma transfer, but > with these fixes it works properly. > > Few fixes has also been added for eDMA version. Similarly to HDMA I have > tested only eDMA in remote setup. > > [...] Applied, thanks! [1/6] dmaengine: dw-edma: Fix the ch_count hdma callback commit: cd665bfc757c71e9b7e0abff0f362d8abd38a805 [2/6] dmaengine: dw-edma: Fix wrong interrupt bit set for HDMA commit: 7b52ba8616e978bf4f38f207f11a8176517244d0 [3/6] dmaengine: dw-edma: HDMA_V0_REMOTEL_STOP_INT_EN typo fix commit: 930a8a015dcfde4b8906351ff081066dc277748c [4/6] dmaengine: dw-edma: Add HDMA remote interrupt configuration commit: e2f6a5789051ee9c632f27a12d0f01f0cbf78aac [5/6] dmaengine: dw-edma: HDMA: Add sync read before starting the DMA transfer in remote setup commit: 712a92a48158e02155b4b6b21e03a817f78c9b7e [6/6] dmaengine: dw-edma: eDMA: Add sync read before starting the DMA transfer in remote setup commit: bbcc1c83f343e580c3aa1f2a8593343bf7b55bba Best regards,