Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp291149rdf; Tue, 21 Nov 2023 02:58:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIs+Q9XRYOhZYztLlYa3GRlFzkquxQ3s3On2lHa0Ya5RKcfAQKMd6nFCIP8Zm2aJ85zKZZ X-Received: by 2002:a05:6a20:9f4f:b0:18a:be:9c99 with SMTP id ml15-20020a056a209f4f00b0018a00be9c99mr10223069pzb.18.1700564289192; Tue, 21 Nov 2023 02:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700564289; cv=none; d=google.com; s=arc-20160816; b=WYb5oA681ut1cWX5+mvDhL+HdiYnu1J8TBcXl9D2a8EjWO6H3lQCv+9cNfPYxM9649 uzdqmtNMPceZJ3PFUI0Dc5rljN4BC3CUis5sicEWuJyCXjb7jQIBPSRPMlBetPOSFIxm qpTaa+DAR31Iup/2iKogKVww5ENs5pA36vjgvecxpjE72gQrsvn5Kz6FYGlj/Eljq6qB 15GEL5uWGmce2aNMU/4buDVgMedxbo+iIQVlnakEzTB5/FEIgqYHSnc1Nx4mMh7g4WI/ JbzQuxqIiEhXh1QsMUc1FONk4FgoipfbV3ey7XnvpVH0rOcY9C39M0//evlXw0Bsy6RE 40uQ== 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=f2/S1llZHvvLIHKm122xsgCS2RIget7hRyW8qLwZ7ko=; fh=pmHXQ5ygZTeUoyRFO0JhE+NZxqXcT7/40U5HLVnlZxY=; b=wL74Ig2jzWKG9kZWmVBLn6HNUcjMMoqg2NYMAQRZvfHQEgN4lnbvUN9Q2EE8th0q7F v81UO1hCknxbap1av2DY+F0PSJ9MWKKVcbaoljAN3mWVtcnZQRSZEGILOTXEQAH2VHUi c0Y4WOdUeLXohOQ/4xG50LXXcaOY3+jvPjzG0y9JmZNydvYslN55YHkUK3NhmM0mq9Qp T1qFACUKi1X3EekQI3TJNf633b6YhY/vGUWHhIRB0HFAzogYJQkHvp5S4NwhlfQhNUJJ 21DnjSY/YPJ3plyQ2CABRFwmKdyauMB9ezQm+ZIZ8Z9N3dfceGp20jshZExGedpk5axH BFAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C3VmgU9h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d13-20020a056a0010cd00b0068e3efffe2csi10316317pfu.243.2023.11.21.02.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:58:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C3VmgU9h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 7D5F58045949; Tue, 21 Nov 2023 02:55:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233925AbjKUKzg (ORCPT + 99 others); Tue, 21 Nov 2023 05:55:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbjKUKzd (ORCPT ); Tue, 21 Nov 2023 05:55:33 -0500 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5154CA; Tue, 21 Nov 2023 02:55:26 -0800 (PST) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-507cd62472dso6752846e87.0; Tue, 21 Nov 2023 02:55:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700564125; x=1701168925; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=f2/S1llZHvvLIHKm122xsgCS2RIget7hRyW8qLwZ7ko=; b=C3VmgU9hdt70XM7CdHoFJwadDy7MeEFhZ7ZV79GfKP6Z9MDCPEATJczDVLj81FoIh8 oXBG2WDujh5CBPHf1Rb8Kk71cCtVcQY4pBWSlKQCSZiw6uYBkN2oe3DawYQ0luSRILAz 8qlY6kq+5xz44B/BexRajzn8/cie3krfxcl0JtGlqus0lgt4Adtcz8KP1RS4NzxjmfNI Hp8ybJXh+hPp4TDveDZDUISSSwzO4oMnWz1nEZgTG5xo0i9tlVAhiwDq2nB4K0Kzt3Mo CfeTrr6MsPhPqUn6vCN3wz+WUPk/YMwaCvjISkX3wr8PQcN+PIfV+yi4JVbMp9MEWHdx XlIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700564125; x=1701168925; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f2/S1llZHvvLIHKm122xsgCS2RIget7hRyW8qLwZ7ko=; b=BG0fmjqAaayMpCtaVefQ5NKDX6wQG8LEW5dM0alyorSqTZVN0dJZM4bDOJOZemu2PZ jqU4cNJrOKdbV5zmH+xC9oyX4x7+2g4pcfhUgbj+Pi80X1/CY0DX3puSQ9wJfkXhE+6x 5p97DUDPDANGwCmdcD4Ddy7b7iSqiLm5BNKTkZWxwvwBFo+G7SG6zB14hq5VQzPa8mui HbUxMkagqK9xetKo1wn/7TBR71WxlPT4UTq1JopIZLMEz4VWJ5+fGy/7FYRBdsFzz+qC l0nDY89IQuxrFz6DXwyQhm6xa7061/fRxafwB394V6Fy+ZhrsR2rMiywz5NFgDWIY5wE l9Mg== X-Gm-Message-State: AOJu0YwPcsDDvgms/FK2p/X4jh4sEve65snO9v+tTPGP0FLgSjjWxYa/ GFcKcQvc+H3ltgF2Z3FMUic= X-Received: by 2002:a05:6512:e9c:b0:506:8b41:7e31 with SMTP id bi28-20020a0565120e9c00b005068b417e31mr851408lfb.6.1700564124765; Tue, 21 Nov 2023 02:55:24 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id e13-20020ac24e0d000000b0050a3e7e718dsm1471530lfr.189.2023.11.21.02.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:55:24 -0800 (PST) Date: Tue, 21 Nov 2023 13:55:22 +0300 From: Serge Semin To: Manivannan Sadhasivam 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: 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: <20231121062629.GA3315@thinkpad> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:55:53 -0800 (PST) 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 -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 > > > > -- > மணிவண்ணன் சதாசிவம்