Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2039352rwd; Wed, 17 May 2023 05:05:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4/GXYR/DQ9kTg/Ba5D2pt+ZvFRZN5nEjebLQK2eNWkICjMFfRfUMK8Cwmzvi42N3kFd3fj X-Received: by 2002:a05:6a00:16ce:b0:64a:ff32:7347 with SMTP id l14-20020a056a0016ce00b0064aff327347mr770301pfc.13.1684325115838; Wed, 17 May 2023 05:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684325115; cv=none; d=google.com; s=arc-20160816; b=FymLUAS+UAmN0Av3r+Kb33YobLqyf+/iOUiSeydXsO75STO+MySQ9xbyjKhaKJa7q8 8gjKX5BJIn60XQCHzoLamehU9/SYI2pFUhSnZxWsHN6BWamsAew+zPRcFh6Qex5DC/k2 9lYX2+nkW0sIAlgBluXFW4U/TxrNWkw25sD9MyrTfwKL9Y9iMuzvkraZyKEIOqMelDae ONMR2D2pEa5k5Z9udq4W1A85k+qAsp52vXy0X0SOyN0bPoSALvVviUBKSW9l5DJKbVhW E/idPyixKwBtZmlbJBYpTEIZTOYuDG78m3ITuSjJUg4ZeR9nIWnwiUsuq6l7cK51ct1o XfvA== 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:dkim-signature:date; bh=RegapNMmBRLNA96VPuIn7tHsjnNMlPNK377aEwnN62o=; b=KPpXLPrXJtAxiQBq+UQ7uNPMsON63MaqxzPgQhdpcec1BVlHlZxLathhYk3LFie2O7 KfstoFXt9REeylkcn/srDGylp/f2NHXHA27x3FEJ8/hbYGmSzhUvC5F+2YumGPG5osJr dpcrG0gJKmBmZ8Nqdf0jIeiBjb2JwIKsJRvINrVtpRK/T9DDHqj0M4DDbXVCrRsKywmC PbDvckt1eTZuik7UK0OlvWH5F5HAYKDbyPHbhojrf90NPBvKU/gk1xPoc8zvKBEtZKUE mzFdRc4upNtVl15bOGgBlZOuR/3y+eL4cbuY3vzDpblMxHLkBmTfRCTCXJUlWqGtClnn z3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Mgk2CvWl; 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 x22-20020aa79ad6000000b006466813eba9si21700440pfp.47.2023.05.17.05.05.02; Wed, 17 May 2023 05:05:15 -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=Mgk2CvWl; 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 S231152AbjEQLog (ORCPT + 99 others); Wed, 17 May 2023 07:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjEQLoe (ORCPT ); Wed, 17 May 2023 07:44:34 -0400 Received: from out-52.mta1.migadu.com (out-52.mta1.migadu.com [95.215.58.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37AC8526A for ; Wed, 17 May 2023 04:44:31 -0700 (PDT) Date: Wed, 17 May 2023 19:44:25 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1684323869; 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: in-reply-to:in-reply-to:references:references; bh=RegapNMmBRLNA96VPuIn7tHsjnNMlPNK377aEwnN62o=; b=Mgk2CvWl0v3IXJRZ6SMhHReIo64SfJOYgVCY5vOhiahiPJZ2fyMk7abL+Kn0A/J7R+agKx lsLxBsW1m1Lf7M3C0zPSxGWexXOqE9nje/qyfVuTomtB1uy9r7/zkmlQFj5yufVKIXjPix DD2UTDQUulxm4cYihsFjbzKNK8BHng8= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Cai Huoqing To: manivannan.sadhasivam@linaro.org, vkoul@kernel.org Cc: Serge Semin , Gustavo Pimentel , Jingoo Han , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v10 0/4] dmaengine: dw-edma: Add support for native HDMA Message-ID: References: <20230517030115.21093-1-cai.huoqing@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230517030115.21093-1-cai.huoqing@linux.dev> 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > 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 >