Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3147560rdh; Thu, 28 Sep 2023 04:17:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiA3DcfNVWFDyucLc5FcKcZx1JknFGtUrl3OuCEehHQZ0ftjzFVKU53vhIjViosGsDqwIo X-Received: by 2002:a17:90b:e89:b0:268:c569:f2af with SMTP id fv9-20020a17090b0e8900b00268c569f2afmr777190pjb.7.1695899845528; Thu, 28 Sep 2023 04:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695899845; cv=none; d=google.com; s=arc-20160816; b=PhKMtbkm/Hik44NQaN3DRr7olRP+AIV3UbbqLE0sTb3CwmRMJPRQW/4RwK/cYgn+zR 9E4fU4b7Iw7XQlW8fnjO4ShwEQDddyEGaGe3oEpITdSot/tvH9Gawc2ND/3TFUK65zA6 OAGHgfjqCU8xrA85DifcwXn8cGndN/iKlZ5eoa+wk4qaNePsaqPqoCHN55Na2xgP6Rq0 ADhtyUJbOBb99CxsY7BUCjLRD3woSKLey9dZDnoqiF8SKHQiWUuIe85xiunhVO4gBlHE fIOi0AQ+5FLIVPTr5h4hbLcRtdg1XkGz/hkPxpuZvAChs8D6prf4ZeigrLJKbTIwjta4 Izvg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2xdZZI4zTMdMwJWllEKprHb8qDzI/Jlncj+GrdLDOlM=; fh=CyKHOioppNAL2q6XyCfVB424SCzeyb5tCWRmFLusCg0=; b=PJJ6isQiOWcx/3iXditoNY+vCMXDTM1CNFxHdHbTcxm9kRJstNFdmtVMf5BiUNE6gq qj4zljNSF0vV5t8FGiBlCih1aw6zMTk1si9Ayyj2V+WEQatfPwVLAKfKhdVzI88E5NOD rLugXOM7mhuie30u9bGo5sKRj9rcBI8e9RYC0IcsnxwqeXdBIehD+YVIjAk3w54SdqWS QhB1jLuWO40VBanV3FBit+VtcWoY9gV6B4Z1BJchc9AlggV2FxWRxbcGBjDXAZdZIZb9 8Tn0wEnSxteM05nGLOrrhjBkXyfKq1WaziL2F2pyvPLq+8yhllhFgI+Sy+K99y3N/2V3 sO/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gTIGi8B4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id mg24-20020a17090b371800b0025c219a68e3si17639653pjb.45.2023.09.28.04.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:17:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gTIGi8B4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CF3A98119D13; Thu, 28 Sep 2023 04:10:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232435AbjI1LIb (ORCPT + 99 others); Thu, 28 Sep 2023 07:08:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231933AbjI1LH2 (ORCPT ); Thu, 28 Sep 2023 07:07:28 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7644D199E; Thu, 28 Sep 2023 04:05:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33219C433A9; Thu, 28 Sep 2023 11:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695899111; bh=RXNjr5wEScumRKn/TreikDC8qWu4O0tiXE/36zkFsM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gTIGi8B4SUrhiJoeBl7bQ58ZHJVWEd011+becaBjYmaG+mA8yyNHltLM7zooKPuGG fK6jKKIQlC1q2l/PMeGaRv1Jv5FEoUVTqIQkYzrYUVymykUUeIa2sksmxXT82L3lU1 YlVuiQH/algnNPgMALiZiNQUMQ7l9hh6HFxnx7VX9bSh4pmG2TgSTov2puH+jsN5PV 9PhVL0UzYvrBna+9jLcqMmKBKQDBl/bccIKOEHwQBiiBfqe2Na9vG80djxiEygFlsS dma/FN8YTMcAUFUqV8dFPsy1BLt08ICO7sSLpjrVDO5Q6ivfRVxZQQCbC7V52MA/Op 9bROlbT76FAHw== Date: Thu, 28 Sep 2023 16:35:07 +0530 From: Vinod Koul To: Lizhi Hou Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, nishad.saraf@amd.com, sonal.santan@amd.com, max.zhen@amd.com Subject: Re: [PATCH V5 0/1] AMD QDMA driver Message-ID: References: <1695402939-28924-1-git-send-email-lizhi.hou@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1695402939-28924-1-git-send-email-lizhi.hou@amd.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 04:10:25 -0700 (PDT) On 22-09-23, 10:15, Lizhi Hou wrote: > Hello, > > The QDMA subsystem is used in conjunction with the PCI Express IP block > to provide high performance data transfer between host memory and the > card's DMA subsystem. > > +-------+ +-------+ +-----------+ > PCIe | | | | | | > Tx/Rx | | | | AXI | | > <=======> | PCIE | <===> | QDMA | <====>| User Logic| > | | | | | | > +-------+ +-------+ +-----------+ This should be in patch description as well > > Comparing to AMD/Xilinx XDMA subsystem, > https://lore.kernel.org/lkml/Y+XeKt5yPr1nGGaq@matsya/ > the QDMA subsystem is a queue based, configurable scatter-gather DMA > implementation which provides thousands of queues, support for multiple > physical/virtual functions with single-root I/O virtualization (SR-IOV), > and advanced interrupt support. In this mode the IP provides AXI4-MM and > AXI4-Stream user interfaces which may be configured on a per-queue basis. > > The QDMA has been used for Xilinx Alveo PCIe devices. > https://www.xilinx.com/applications/data-center/v70.html > > This patch series is to provide the platform driver for AMD QDMA subsystem > to support AXI4-MM DMA transfers. More functions, such as AXI4-Stream > and SR-IOV, will be supported by future patches. > > The device driver for any FPGA based PCIe device which leverages QDMA can > call the standard dmaengine APIs to discover and use the QDMA subsystem > without duplicating the QDMA driver code in its own driver. > > Changes since v4: > - Convert to use platform driver callback .remove_new() > > Changes since v3: > - Minor changes in Kconfig description. > > Changes since v2: > - A minor change from code review comments. > > Changes since v1: > - Minor changes from code review comments. > - Fixed kernel robot warning. > > Nishad Saraf (1): > dmaengine: amd: qdma: Add AMD QDMA driver > > MAINTAINERS | 9 + > drivers/dma/Kconfig | 13 + > drivers/dma/Makefile | 1 + > drivers/dma/amd/Makefile | 8 + > drivers/dma/amd/qdma-comm-regs.c | 66 ++ > drivers/dma/amd/qdma.c | 1187 ++++++++++++++++++++++++ > drivers/dma/amd/qdma.h | 269 ++++++ > include/linux/platform_data/amd_qdma.h | 36 + > 8 files changed, 1589 insertions(+) > create mode 100644 drivers/dma/amd/Makefile > create mode 100644 drivers/dma/amd/qdma-comm-regs.c > create mode 100644 drivers/dma/amd/qdma.c > create mode 100644 drivers/dma/amd/qdma.h > create mode 100644 include/linux/platform_data/amd_qdma.h > > -- > 2.34.1 -- ~Vinod