From patchwork Mon Jan 29 16:25:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?K=C3=B6ry_Maincent?= X-Patchwork-Id: 19608 Return-Path: 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 (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 ; 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJTRt2UC/43OTQrCMBAF4KtI1kaSJk1aV95DRPIzsQHbSFqLI r27oxvFQnH5ZnjfzIP0kCP0ZLt6kAxj7GPqMOj1irjGdCeg0WMmBSsEZ5xTK2kAM1wzHBvfmmN rYneOHVCrXKlDBcKWnmD9kiHE25veHzA3sR9Svr8vjeI1/QMdBWW0kADM1bp2KuxsSgOuNi615 MWO8l9KIiWFl1zbWnBRzanyQ3EuF6gSKW1dpXwl8Ck9p9Q3pRcohRTYoI1hIJn/oaZpegIAGNo HowEAAA== To: Manivannan Sadhasivam , Gustavo Pimentel , Serge Semin , Vinod Koul , Cai Huoqing Cc: Thomas Petazzoni , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Herve Codina , Kory Maincent , Manivannan Sadhasivam 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 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 (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,