Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp329646rdf; Tue, 21 Nov 2023 04:08:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8wM8RH75x2bFPV+9qPlPNwegu804NFHglzg3oS92TeCfSWkT0Hr5e+2rnLXsuDl2aWI6t X-Received: by 2002:a05:6a20:8f14:b0:187:f7d3:fdd with SMTP id b20-20020a056a208f1400b00187f7d30fddmr9780688pzk.56.1700568539073; Tue, 21 Nov 2023 04:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700568539; cv=none; d=google.com; s=arc-20160816; b=A3L2Tb+AyhlYW6yIqoB/NZ83KSe1jyHfepO5MKS1FKQquFlNGX2VkXVvAGHf5zaJH8 0rwxyWg90jKBDyv+aijiWEJS+qX6h0jX5LbTr7nXkWm4bZ9BsN20iOe3iveJdLElCl7n B2af+VRPAXsKaS5nHr+z09hHWbE2uokLQcjh4p7qL1PFFBRvf1Bbzo/g7wIu4ZFks/uw gsHp5ufXOp37TbmNlV3Dn17A9kIa9kvRAyf6W+v6a3yq/aHdHkkUYVNSBfplXKQX85cD c62rtA2qMvcEhlxNFncfxcIfdeXpT/qXnaRE9zl5vhHexM8VKkONfmTIcrazeRvrzrwh husA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9Rdj3/RbzCG1RNqN79CPqoKmTVDHL1fnO9EU2HNnm3I=; fh=TFMEPndniH5krY8tNKGkwuoZzQknC4rcLtToZdk0kgI=; b=tunbr/OiucmJmXXy0a7Vr4o8Xfp+aTiAh+at369IC2HlLo7/VnBDg0h7ZHsTP1m01Q lr0Z09cqKf8+8Tq0eXfGBRbYsG35A912Pj/ubiwSuA3pORMIGL8QhPSb5jO9XU05dS+U y6rSEKfTNviZd7TR9bj3YioiNjn0j0R9C3EH9j1rnUhhFykRJjeQ0nv2c1v7vmXgEHXK opwTDlH80j3VXo22e/AkTV9mCrlLo8v9NCMLnUn9cxylTdSpR5FDLeatA4Hbsy8mAsc+ 69ANrgLZ8txByEQAK/1PPMj9scwpxxNQ/xV1nLzOoUWlZbXv3DXvgc+HBqOKf189kiad GK2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LxWBqy9U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id h67-20020a625346000000b006cbc1fe46d0si699783pfb.383.2023.11.21.04.08.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 04:08:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LxWBqy9U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id C82598045BD4; Tue, 21 Nov 2023 04:08:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231977AbjKUMIr (ORCPT + 99 others); Tue, 21 Nov 2023 07:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjKUMIq (ORCPT ); Tue, 21 Nov 2023 07:08:46 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B166125 for ; Tue, 21 Nov 2023 04:08:42 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5549C433C9; Tue, 21 Nov 2023 12:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700568522; bh=xY/S+drvjUTqo2Fu2FpUAKYEb7XcjqGXCgM5ZYigqpI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LxWBqy9UnCrGoq3oBdWsp9PGMjwX7o7lQB4D4cAFspVDDEzdm5Rav9/N168AUm8N0 hdKRHRpQYw0ljwk0KcHOd0jUhTEvIWFPeiArFDdoPU4IrA7U3QYb1z+/dgj69VQoAc mG7s8o2GEMP1PuGAGPoIsNLRW/lXPLSiVCk7M3SObX6IbuZWKRvcbaWXLgaZURsFNN WO4/JmldKDx1guTwRg7s/FXMzvtaWylSESJLort26n6tx2isMCmupoje6lspivqtd3 P1NcXQlLBETlPYSWfEWOUTAxy3dnv3DogJjX3F2c14emfUTjhjJrBzzT+hq4WFL2km i5NBtxDZafi1g== Date: Tue, 21 Nov 2023 17:38:28 +0530 From: Manivannan Sadhasivam To: Serge Semin Cc: Kory Maincent , Gustavo Pimentel , Vinod Koul , Cai Huoqing , Thomas Petazzoni , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Herve Codina Subject: Re: [PATCH v6 0/6] Fix support of dw-edma HDMA NATIVE IP in remote setup Message-ID: <20231121120828.GC3315@thinkpad> References: <20231117-b4-feature_hdma_mainline-v6-0-ebf7aa0e40d7@bootlin.com> <20231121062629.GA3315@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 04:08:56 -0800 (PST) On Tue, Nov 21, 2023 at 01:55:22PM +0300, Serge Semin wrote: > Hi Mani > > On Tue, Nov 21, 2023 at 11:56:29AM +0530, Manivannan Sadhasivam wrote: > > On Fri, Nov 17, 2023 at 11:03:48AM +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. > > > > > > > Just out of curiosity, can you share how you are setting EDMA_MF_HDMA_NATIVE? > > This topic has already been concerned on v1 (in another context > though): > https://lore.kernel.org/dmaengine/20230621151948.36125997@kmaincent-XPS-13-7390/ > > Here is the repo with the out-of-tree driver Kory said he was using > together with the kernel's version of the DW eDMA/hDMA driver: > https://github.com/Brainchip-Inc/akida_dw_edma > Thanks Sergey, I missed it! But looks like we are not focusing on the HDMA integration in designware-ep.c. Have you/anyone thought about it? Was it discussed previously that I missed? HDMA is used in one of the recent Qcom SoCs (SA8775) that Qcom folks are bringing up and I'd like to have a common solution like we have for eDMA. - Mani > -Serge(y) > > > > > - 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 > > > > > > 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: b85ea95d086471afb4ad062012a4d73cd328fa86 > > > change-id: 20231011-b4-feature_hdma_mainline-b6c57f8e3b5d > > > > > > Best regards, > > > -- > > > Köry Maincent, Bootlin > > > Embedded Linux and kernel engineering > > > https://bootlin.com > > > > > > > -- > > மணிவண்ணன் சதாசிவம் -- மணிவண்ணன் சதாசிவம்