From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41124C4332F for ; Tue, 14 Nov 2023 14:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233496AbjKNOwL (ORCPT ); Tue, 14 Nov 2023 09:52:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233320AbjKNOwJ (ORCPT ); Tue, 14 Nov 2023 09:52:09 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06FEF10D; Tue, 14 Nov 2023 06:52:05 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9B129240017; Tue, 14 Nov 2023 14:52:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1699973524; 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=+xLOKyAAZIVKLOKCb0mKpR7Go2KaA91YZcat0nslHDA=; b=WVFrCZzSVomLddWRoyTAJVN2lheLIAPj3akGLiY74f7YjiS1+ffTxbM8+vg/OMO4m6ykC7 UtFGvotFxwzjlBpEzo/cvARR+m0zfHNq+X1SlCkP/Pid6aIPDQQohJYXsaRoKfmF0uX0Ml pnmnrxwchg4YNAGoCxmCJJS8ude3MeNK77brvj28DI375A14s3dVPdDkwFdmAYYzZZt+96 B/2JmWREq2Vkg67+SWpzNC+F1fOUPSghs1QvaE51SA+S/23l0Li+ZhBx2R8UEhKmhSxqnQ J23A9lKqx2S4I7G6UnG8NYGX8d+tEgRgjeDGMi404SIKNpliz34SRBolqS1s0g== From: Kory Maincent Subject: [PATCH v5 0/6] Fix support of dw-edma HDMA NATIVE IP in remote setup Date: Tue, 14 Nov 2023 15:51:53 +0100 Message-Id: <20231114-b4-feature_hdma_mainline-v5-0-7bc86d83c6f7@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAIqJU2UC/43NSw7CIBCA4as0rMVAoS9X3sOYBuhgJ7FgoBJN0 7tLu3PX5T+T+WYhEQJCJJdiIQESRvQuR3UqiBmVewDFITcpWSk445xqSS2o+R2gH4dJ9ZNC90Q HVNemamwLQlcDyeevABY/O3275x4xzj58909JbNMDaBKU0VICMNM1nantVXs/59XZ+IlsbJJHK ZkpKQbJG90JLtp/al3XH+ilrpUNAQAA 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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: b85ea95d086471afb4ad062012a4d73cd328fa86 change-id: 20231011-b4-feature_hdma_mainline-b6c57f8e3b5d Best regards, -- Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com