Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4914683rwb; Tue, 20 Sep 2022 23:54:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+5MD4M+wXDCuiojZ5rs6zjgKqP6f1ZOcsfjQEDoMaotg3QNugiXRVemGwJDLDtw8F3/xQ X-Received: by 2002:a17:907:94d4:b0:77f:d0c9:573f with SMTP id dn20-20020a17090794d400b0077fd0c9573fmr19424511ejc.98.1663743262437; Tue, 20 Sep 2022 23:54:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663743262; cv=none; d=google.com; s=arc-20160816; b=sXU9tZLNbv/bShhnYMkktjfSTOBncQp2zFNAL7m5f9x8LPJqODnqyhtN/1ajlxkvcF ltVxzkubdBqOFQedtPeAMxMl50XDnpAKz/ahdcIidYaWaEu3pa9EHebFC9Vua4nr/oCu Brvix+YO773ZK+w774w44VbsVNhlufeg/+vUIB4BXCOIgx7GONd6Gy9FHuI8iKFdmLbM XaqaqqAu7/WWNK7QwxH9n16+wNBsXZZ5LDDw1gnglOut6LghR5dj23tUYycDf5WMiR5y C685MDgG399JtqvHH/R6YQorJAPRY4OBgMpPvL50c3+2zDL5m1MTCfqlHiJAWp5cSpKf CHDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=W1RFpst4VQOTLpVGnlysDlt9TL1azrIROKSRIvQcbkY=; b=cOaw1vt4UdGImpB33mhufW2HGkMzAG+FuvPbLCI4L3gR0T/zX0tnryYsuXy0X7yadS EnVXIz2aXQlzvluNr8BhB3KIdlC2wyttXLLW7y9kct2qnWUW72HGF+xlq9FjhGV9ngTV r72PVgt6D0/xMFKeFvQ3DUQgc8m7M6bqzXiz2k09o3ZuiTPp1y+l1ZCn7OkEmQG960Py DBv73+IxFOH8GCj0/0zdABA4jCQz9Q1tWrSjTyPQTNsmPreS5ihInsleLP3LY92Bs6Fx /rDlGAIpMZswo5csQ6wYeRFWv72Az1qhKUWCRbHPkaMymQedq62E/yxM0Fijflg7VEG/ fMNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kJyl8jiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb9-20020a170907160900b0073d932580ffsi1955581ejc.242.2022.09.20.23.53.55; Tue, 20 Sep 2022 23:54:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=kJyl8jiP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbiIUGtY (ORCPT + 99 others); Wed, 21 Sep 2022 02:49:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230094AbiIUGtR (ORCPT ); Wed, 21 Sep 2022 02:49:17 -0400 Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76C9C80F7E; Tue, 20 Sep 2022 23:49:12 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663742950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=W1RFpst4VQOTLpVGnlysDlt9TL1azrIROKSRIvQcbkY=; b=kJyl8jiP5pCaeGDe3exP3MRVWRc7uuhKh9BtrFe+4swwagCERUTaP0JH0OP6XFsQdSC9Gm QbCrc4IpqI1qRenK2fP53KKq6FYFQLA6kB9C2uti9Y+lSaYX3lczEcrTPHw2BfakrqyER0 FAve+P9y18RTk8xKGedDmPaRmO+f7Z4= From: Cai Huoqing To: fancer.lancer@gmail.com Cc: caihuoqing , Gustavo Pimentel , Vinod Koul , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org Subject: [PATCH 0/3] dmaengine: dw-edma: Add support for native HDMA Date: Wed, 21 Sep 2022 14:48:49 +0800 Message-Id: <20220921064859.10328-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 From: caihuoqing Add support for HDMA NATIVE, as long the IP design has set the compatible register map parameter-HDMA_NATIVE, which allows compatibility for native HDMA register configuration. The HDMA Hyper-DMA IP is an enhancement of the eDMA embedded-DMA IP. And the native HDMA registers are different from eDMA, so this patch add support for HDMA NATIVE mode. HDMA write and read channels operate independently to maximize the performance of the HDMA read and write data transfer over the link When you configure the HDMA with multiple read channels, then it uses a round robin (RR) arbitration scheme to select the next read channel to be serviced. The same applies when you have multiple write channels. The native HDMA driver also supports a maximum of 16 independent channels (8 write + 8 read), which can run simultaneously. Both SAR (Source Address Register) and DAR (Destination Address Register) are alignmented to byte.dmaengine: dw-edma: Add support for native HDMA These series based on the series https://lore.kernel.org/dmaengine/20220822185332.26149-1-Sergey.Semin@baikalelectronics.ru/ Cai Huoqing (3): dmaengine: dw-edma: Rename dw_edma_core_ops structure to dw_edma_plat_ops dmaengine: dw-edma: Create a new dw_edma_core_ops structure to abstract controller operation dmaengine: dw-edma: Add support for native HDMA drivers/dma/dw-edma/Makefile | 6 +- drivers/dma/dw-edma/dw-edma-core.c | 65 ++--- drivers/dma/dw-edma/dw-edma-core.h | 19 ++ drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- drivers/dma/dw-edma/dw-edma-v0-core.c | 90 ++++++- drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- drivers/dma/dw-edma/dw-hdma-v0-core.c | 304 +++++++++++++++++++++++ drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 150 +++++++++++ drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ drivers/dma/dw-edma/dw-hdma-v0-regs.h | 98 ++++++++ include/linux/dma/edma.h | 7 +- 12 files changed, 725 insertions(+), 71 deletions(-) create mode 100644 drivers/dma/dw-edma/dw-hdma-v0-core.c create mode 100644 drivers/dma/dw-edma/dw-hdma-v0-core.h create mode 100644 drivers/dma/dw-edma/dw-hdma-v0-debugfs.c create mode 100644 drivers/dma/dw-edma/dw-hdma-v0-debugfs.h create mode 100644 drivers/dma/dw-edma/dw-hdma-v0-regs.h -- 2.25.1