Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp650315rdg; Wed, 11 Oct 2023 01:12:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1dW7TbmKLWZb9M7gIsDEHPZXgrxgAwCHakoY/Bc6tKn/xs4nlUwnCVc18mlc5F3aHeqVO X-Received: by 2002:a17:90b:38c9:b0:268:b0b:a084 with SMTP id nn9-20020a17090b38c900b002680b0ba084mr18083772pjb.46.1697011965293; Wed, 11 Oct 2023 01:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697011965; cv=none; d=google.com; s=arc-20160816; b=wdjsUpNxMncKC2+UWX2U1V1kqRuUs77NpHdSijZpz5Lla9f0vRdO54Ix7q0cw9ZP/h RD3MiThqWKkfxkrOdm992IwTPRi5NnLHPaxayow4F1QPOEBmlMc5Hod00evB1xrx0CFL hnagf21oHF3qZTbprZsY1mfwyp/DQhc48sxUSIbAwWDx7HxU40j8ZKy/i99C7arP6/gw MXPMsYr5gVkzGquarMCj+m3XW7rzedRz0OQEHfe9SZ/XtX0w4JNwkQx8zXyTM8jDIENE BVhmxVZp57rmRduRNFpryjtJLjmT1rjddOqHnLKEQ6Odi3xiTJZO8n89Yp/W6tAXPIZ0 0ePg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=4HMH1lD+WUg/h8euX0dESyMJIfvuUaMHpH1iRNCMCEw=; fh=Fko32OqwGgI5WpcqYpp5KigXgtelsKMiigtnZERCGL8=; b=y35enSXTcK65Rlb29eHm2gOxkOKk2Hb53JNCEEVh84pZAdaTCN0NJB6A1PS7PzXxSj 7mEi1tnvTnsK5tPx56LG55EIVKq3Oep2oBgZkI22Om5JlWFTnE2jgZ7xOVbrXHZqv63R 5KU/lsp3zZAeA9/1bpCtyzwFhH8i9ABBYOFKC3RTLidSq/6sHfyjgZnG3L/udNMu9sl+ srl80rvmnJeVwNJkhAO82o3V8y9ei60s92GgQrLQ4JZhM+i+IP/DbI3V4ZRtr5IfK/0+ O3cqJWbNLms9e8/KWBiV/5G8gRNlBjCEuPCRelyMKXMRypo1SqHd86kmlqkkYMcXD5aG CSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="N7n/BlTy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id p3-20020a17090a348300b00274a22e6364si15549471pjb.92.2023.10.11.01.12.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="N7n/BlTy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 4AFE08229190; Wed, 11 Oct 2023 01:12:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbjJKIMc (ORCPT + 99 others); Wed, 11 Oct 2023 04:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbjJKIMb (ORCPT ); Wed, 11 Oct 2023 04:12:31 -0400 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6CAF98; Wed, 11 Oct 2023 01:12:28 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id AB0DA1BF20C; Wed, 11 Oct 2023 08:12:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697011947; 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=4HMH1lD+WUg/h8euX0dESyMJIfvuUaMHpH1iRNCMCEw=; b=N7n/BlTydq1oNGaSomuVSJYjiApWa2wHro7DBGhmj89qhNZj9e7cTxXS5JgZSwcwfbxqD8 n0STB1OWbeBYUNoy29G0stmkriw2RA/muu0763YmpfsgZnxTb8aheYS5M5n7dST4X3/c8L pBuxRjFQd/KPU4eNuuud3V5Cear3sScaj9Y5vBcK2bd3VYtp7jNar4egea1fLJy+JVStHf AF3LpPQRtp10dsZ8fetqdyb+ZXrsmnfL7/mcZ7BgUHM8QisbV7NsWs+ym+Ghcube/MykS/ WmH8PvumznGXp2HYT2JIyIlcEA2edKfKi/+Wl4MuJZ63T9extKnne8o+qKCw7A== From: Kory Maincent Subject: [PATCH v3 0/6] Fix support of dw-edma HDMA NATIVE IP in remote setup Date: Wed, 11 Oct 2023 10:11:39 +0200 Message-Id: <20231011-b4-feature_hdma_mainline-v3-0-24ee0c979c6f@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIALtYJmUC/x3MSwqDMBRG4a3IHRswxtTSrYhIHn/qBY2S2CKIe 2/o8Bucc1FGYmR6VRclfDnzFgtUXZGbTXxDsC+mtmmVbKQUthMB5vgkTLNfzbQajgtHCPtwug9 PKKs9lXxPCHz+18N43z858518agAAAA== 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.3 X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:12:41 -0700 (PDT) X-Spam-Level: ** 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. 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 dmaengine: dw-edma: 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: 8bf914570650ec5858e18554d70d2838cef01de1 change-id: 20231011-b4-feature_hdma_mainline-b6c57f8e3b5d Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com