Message ID | 20230517030115.21093-1-cai.huoqing@linux.dev |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp857913vqo; Tue, 16 May 2023 20:52:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Gz+YSWkdB/w6XJ+JeNuVzCPKyT9t4mVVlJNXc1Je0XBwalJvQkYX9ee2wyGvZ/JeQi/0m X-Received: by 2002:a05:6a20:1048:b0:ff:1df3:51dd with SMTP id gt8-20020a056a20104800b000ff1df351ddmr41965051pzc.37.1684295578676; Tue, 16 May 2023 20:52:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684295578; cv=none; d=google.com; s=arc-20160816; b=fJBdoO3SCE+9c0WogVj8iabWU43gd7f6p92cUtqWeBs310oFKO+KmJJYBGO8i+gQTv VaqOzdNktuHSk7RtcitUoIeZOPQqwINEzdtrGgROpG7e+FtV3iT4gfsFGV5Efeh0pyTc 9D27K62AI7n2qgc1M3UewVw031qLUns16M+w5tbczboN/XaKTXfW+VIXsJ6LMOyspg6T aC+6lQRCOoQ2zfT/06wZyIgIOVIvoZ3CYaL0VNOBTyjnPWn15sI9FM8y3S2NK4W1Jh1J m6N58akd1xtMiJha+sKRCE5aps/ln/0X5qA+qGwYbbN+ICDvfnnsbNyy1IqTGafbYlj8 rzQg== 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=uZlIpDLA3NZ6mp2Qw+zJKax+3uAeBqf9vfLEfM23DhI=; b=N+Iirlnjy3RwyCmiff0ttRzKg5NedwBWTBNs0/JZoV38JK2RX2zMiKrIuKdTyY9sfH yBAZ+sEAp0crDQZmMqBF5/XumsizlnW0rdiGasnlenb2OFv1j+a5ZToJ478vT0lSlrLF wm2AidOcZb0dBUtO9gyiIr/QzZhuu6rkrYqg86qKD3KXeVySWPBEhXWNN9J/pKP22Lbe 3jGAK7ztI9X6FfdxMxBKHrAm1BDXcNWhskkIPFE7Ku4RjzJZ1lBq68MYRppeBkpxcD/2 doPqXtIKzxiBZ1GLuwdt14rtS5DLK/Of3AaAZpQMOjSdAbPKptKcNaZnNGLyxkbVGNaG tzwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="HAd/eh84"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c2-20020a621c02000000b005a8b856ad47si20410469pfc.7.2023.05.16.20.52.44; Tue, 16 May 2023 20:52:58 -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="HAd/eh84"; 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 S232256AbjEQDB3 (ORCPT <rfc822;abdi.embedded@gmail.com> + 99 others); Tue, 16 May 2023 23:01:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbjEQDBZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 May 2023 23:01:25 -0400 Received: from out-30.mta0.migadu.com (out-30.mta0.migadu.com [91.218.175.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01DB210B for <linux-kernel@vger.kernel.org>; Tue, 16 May 2023 20:01:23 -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=1684292482; 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=uZlIpDLA3NZ6mp2Qw+zJKax+3uAeBqf9vfLEfM23DhI=; b=HAd/eh84o8q70IuzgNiNsoSQwbhhbXZZdhWWmzbf/UdPuw7YzfFR26XftJKfbMfos8BBJC q6v6LLH9QB/UNbVGYYRVNRlGv512VFIuOS+qwdpLKesdpDeiIgKDCnZ1vkcXhT6wFvD0bF 7V0WAT/iGZojpEE6uWQ42H7bLJ2y0x0= From: Cai Huoqing <cai.huoqing@linux.dev> To: vkoul@kernel.org Cc: Cai Huoqing <cai.huoqing@linux.dev>, Serge Semin <fancer.lancer@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Jingoo Han <jingoohan1@gmail.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v10 0/4] dmaengine: dw-edma: Add support for native HDMA Date: Wed, 17 May 2023 11:01:10 +0800 Message-Id: <20230517030115.21093-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT 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_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766111789820920182?= X-GMAIL-MSGID: =?utf-8?q?1766111920737158484?= |
Series |
dmaengine: dw-edma: Add support for native HDMA
|
|
Message
Cai Huoqing
May 17, 2023, 3:01 a.m. UTC
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
youhave 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 aligned to byte.
Cai Huoqing (1):
dmaengine: dw-edma: Add support for native HDMA
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 HDMA DebugFS support
Tested-by: Serge Semin <fancer.lancer@gmail.com>
v9->v10:
1.Update commit log.
2.rebase for dma-next
v9 link:
https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/
drivers/dma/dw-edma/Makefile | 8 +-
drivers/dma/dw-edma/dw-edma-core.c | 86 ++----
drivers/dma/dw-edma/dw-edma-core.h | 58 ++++
drivers/dma/dw-edma/dw-edma-pcie.c | 4 +-
drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++-
drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +-
drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++
drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++
drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++
drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++
drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++
drivers/pci/controller/dwc/pcie-designware.c | 2 +-
include/linux/dma/edma.h | 7 +-
13 files changed, 807 insertions(+), 91 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
Comments
On 17 5月 23 11:01:10, Cai Huoqing wrote: > 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 > youhave 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 aligned to byte. + Manivannan Sadhasivam > > Cai Huoqing (1): > dmaengine: dw-edma: Add support for native HDMA > > 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 HDMA DebugFS support > > Tested-by: Serge Semin <fancer.lancer@gmail.com> > > v9->v10: > 1.Update commit log. > 2.rebase for dma-next > > v9 link: > https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/ > > drivers/dma/dw-edma/Makefile | 8 +- > drivers/dma/dw-edma/dw-edma-core.c | 86 ++---- > drivers/dma/dw-edma/dw-edma-core.h | 58 ++++ > drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- > drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++- > drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- > drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++ > drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ > drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++ > drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++ > drivers/pci/controller/dwc/pcie-designware.c | 2 +- > include/linux/dma/edma.h | 7 +- > 13 files changed, 807 insertions(+), 91 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.34.1 >
On 17-05-23, 11:01, Cai Huoqing wrote: > 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 > youhave 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 aligned to byte. > > Cai Huoqing (1): > dmaengine: dw-edma: Add support for native HDMA > > 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 HDMA DebugFS support You should have a single name for all these patches :-( > > Tested-by: Serge Semin <fancer.lancer@gmail.com> > > v9->v10: > 1.Update commit log. > 2.rebase for dma-next > > v9 link: > https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/ > > drivers/dma/dw-edma/Makefile | 8 +- > drivers/dma/dw-edma/dw-edma-core.c | 86 ++---- > drivers/dma/dw-edma/dw-edma-core.h | 58 ++++ > drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- > drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++- > drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- > drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++ > drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ > drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++ > drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++ > drivers/pci/controller/dwc/pcie-designware.c | 2 +- > include/linux/dma/edma.h | 7 +- > 13 files changed, 807 insertions(+), 91 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.34.1
On 19 5月 23 16:57:06, Vinod Koul wrote: > On 17-05-23, 11:01, Cai Huoqing wrote: > > 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 > > youhave 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 aligned to byte. > > > > Cai Huoqing (1): > > dmaengine: dw-edma: Add support for native HDMA > > > > 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 HDMA DebugFS support > > You should have a single name for all these patches :-( Hi Vinod, Thanks for your reply. Do you mean patch[0/4] and patch[3/4] shouldn't have the same name? Thanks, Cai- > > > > > Tested-by: Serge Semin <fancer.lancer@gmail.com> > > > > v9->v10: > > 1.Update commit log. > > 2.rebase for dma-next > > > > v9 link: > > https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/ > > > > drivers/dma/dw-edma/Makefile | 8 +- > > drivers/dma/dw-edma/dw-edma-core.c | 86 ++---- > > drivers/dma/dw-edma/dw-edma-core.h | 58 ++++ > > drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- > > drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++- > > drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- > > drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++ > > drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++ > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ > > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++ > > drivers/pci/controller/dwc/pcie-designware.c | 2 +- > > include/linux/dma/edma.h | 7 +- > > 13 files changed, 807 insertions(+), 91 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.34.1 > > -- > ~Vinod
On 19-05-23, 21:39, Cai Huoqing wrote: > On 19 5月 23 16:57:06, Vinod Koul wrote: > > On 17-05-23, 11:01, Cai Huoqing wrote: > > > 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 > > > youhave 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 aligned to byte. > > > > > > Cai Huoqing (1): > > > dmaengine: dw-edma: Add support for native HDMA > > > > > > 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 HDMA DebugFS support > > > > You should have a single name for all these patches :-( > > Hi Vinod, > > Thanks for your reply. > > Do you mean patch[0/4] and patch[3/4] shouldn't have the same name? It should be Cai Huoqing or Cai huoqing not both :-) > > Thanks, > Cai- > > > > > > > > Tested-by: Serge Semin <fancer.lancer@gmail.com> > > > > > > v9->v10: > > > 1.Update commit log. > > > 2.rebase for dma-next > > > > > > v9 link: > > > https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/ > > > > > > drivers/dma/dw-edma/Makefile | 8 +- > > > drivers/dma/dw-edma/dw-edma-core.c | 86 ++---- > > > drivers/dma/dw-edma/dw-edma-core.h | 58 ++++ > > > drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- > > > drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++- > > > drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- > > > drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++ > > > drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ > > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++ > > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ > > > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++ > > > drivers/pci/controller/dwc/pcie-designware.c | 2 +- > > > include/linux/dma/edma.h | 7 +- > > > 13 files changed, 807 insertions(+), 91 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.34.1 > > > > -- > > ~Vinod
On 19 5月 23 23:06:00, Vinod Koul wrote: > On 19-05-23, 21:39, Cai Huoqing wrote: > > On 19 5月 23 16:57:06, Vinod Koul wrote: > > > On 17-05-23, 11:01, Cai Huoqing wrote: > > > > 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 > > > > youhave 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 aligned to byte. > > > > > > > > Cai Huoqing (1): > > > > dmaengine: dw-edma: Add support for native HDMA > > > > > > > > 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 HDMA DebugFS support > > > > > > You should have a single name for all these patches :-( > > > > Hi Vinod, > > > > Thanks for your reply. > > > > Do you mean patch[0/4] and patch[3/4] shouldn't have the same name? > > It should be Cai Huoqing or Cai huoqing not both :-) Sorry, My mistake :-) I resend v11 here: https://lore.kernel.org/lkml/20230520050854.73160-1-cai.huoqing@linux.dev/ thanks, Cai- > > > > > Thanks, > > Cai- > > > > > > > > > > > Tested-by: Serge Semin <fancer.lancer@gmail.com> > > > > > > > > v9->v10: > > > > 1.Update commit log. > > > > 2.rebase for dma-next > > > > > > > > v9 link: > > > > https://lore.kernel.org/lkml/20230413033156.93751-1-cai.huoqing@linux.dev/ > > > > > > > > drivers/dma/dw-edma/Makefile | 8 +- > > > > drivers/dma/dw-edma/dw-edma-core.c | 86 ++---- > > > > drivers/dma/dw-edma/dw-edma-core.h | 58 ++++ > > > > drivers/dma/dw-edma/dw-edma-pcie.c | 4 +- > > > > drivers/dma/dw-edma/dw-edma-v0-core.c | 85 +++++- > > > > drivers/dma/dw-edma/dw-edma-v0-core.h | 14 +- > > > > drivers/dma/dw-edma/dw-hdma-v0-core.c | 296 +++++++++++++++++++ > > > > drivers/dma/dw-edma/dw-hdma-v0-core.h | 17 ++ > > > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.c | 170 +++++++++++ > > > > drivers/dma/dw-edma/dw-hdma-v0-debugfs.h | 22 ++ > > > > drivers/dma/dw-edma/dw-hdma-v0-regs.h | 129 ++++++++ > > > > drivers/pci/controller/dwc/pcie-designware.c | 2 +- > > > > include/linux/dma/edma.h | 7 +- > > > > 13 files changed, 807 insertions(+), 91 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.34.1 > > > > > > -- > > > ~Vinod > > -- > ~Vinod