Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2654715pxb; Thu, 10 Feb 2022 02:31:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJz88pqbrlekuzllJxewX6xX0W2Hej6iH/ZH6qtLMBCuuPeZGxMWRcvBKmW2tvrvczPNT8QI X-Received: by 2002:a17:906:9b90:: with SMTP id dd16mr1041784ejc.401.1644489066510; Thu, 10 Feb 2022 02:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644489066; cv=none; d=google.com; s=arc-20160816; b=Gf78gbmNtKRffHJKyf0G+KgVJgeFmh8+Nalt29muW9ZxnakePIEYc2MeI5uEMoegKv 1aYedfPdLJ2W3WTmKziqZRp5MRzS9YvPvpuMA0UsR8qiIXCLvI3A8ut616nd9J894oNS Z19MbQkm9pBi5SvLjVwwnO2k92BShKqC2wqbrc7F5E3YLU1b0DAZjv8MnMaDtzoLbyF+ sf4EMlvwplZ04/BD1Q0m5wxL7HdxjAyMN2Iozb8g4EUrACOK5hz5d1IPrI3ySAA7vzWZ 7uv5V8cSzLffJA+fNMvuufzgj3wzKwjwrVYPj8P5H4p18W0HJ7sazHrkCbLmXeEr8wfn /WDA== 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=Lml04aTETNhbjz5UfbB0wHhW/pmKPxDeqou6P6IhLSE=; b=PFocRhL2uww/bask5eIxEVaOSokZE5RVyMFCOEwkRcKxInmg+wE7vCUjU7F5MWW3RF u5OOA7fOrKQKljehGH6PuyE3tb+gtp2V3upAD5PXhS5VVEwN0Gt63ygVL93sJ2/zopYa migllwNxARp5mVQFS4RHXqLsG89vah5hXJpJt30LUSJp+m0Dv8tylN+u01u2xHOgmt8z h/Ye8I0RrLv5BR6o9gLGf7y2NKdh6KDH0N9qWu9l9oTH7XpR0UDZEMpBE/9AM7h9MY+H CIln2A1zbIkncI6pACezHUsBqzHZ+8M5tzJlwPq3QNuncvuRK9ZxdHq1CQpuC1zzmUy9 kmVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0FvrNCN; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp1si12908932ejc.963.2022.02.10.02.30.40; Thu, 10 Feb 2022 02:31:06 -0800 (PST) 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=@linaro.org header.s=google header.b=A0FvrNCN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237720AbiBJIlB (ORCPT + 99 others); Thu, 10 Feb 2022 03:41:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237655AbiBJIk5 (ORCPT ); Thu, 10 Feb 2022 03:40:57 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8136F39 for ; Thu, 10 Feb 2022 00:40:58 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id u12so1216891plf.13 for ; Thu, 10 Feb 2022 00:40:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Lml04aTETNhbjz5UfbB0wHhW/pmKPxDeqou6P6IhLSE=; b=A0FvrNCNOsvejy3SYS0u8eTopBroPKxiAKRLzWoR7Q28Ksz40kCXZnhMIqVG4C5dGJ N2AxqvQeANh116uG9ACcxpLt/MXpHKU0OmzQdg6W65n6IdsOkd3jMXCzsg3gIrQu6UfD X3oLAT9dzrC/JeXXMrtmLWLbGG3zrTwgcsJ3jqcjQ41tcp0UrrPgQThop5UWGa6JntT8 h9f/0qA+jQISoCNbLl8tXPHH5i9e8yWCJNBZPfEQ7Ry2aHzoSrrIhGsq/hVg21fxwef8 yAblay5XgINV6fM14fUOB7l9o109bvPVVxcNF69S5vXpMh6oDZi8CEYL5LcQt4mWeQAi CNgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Lml04aTETNhbjz5UfbB0wHhW/pmKPxDeqou6P6IhLSE=; b=e9GR+J0qK3sxq4JgHDtk/ST9oFxlHFoBzYSB6iTX1bN11Q1ioMXznUUWxblTeB8wjs lxBf8Tt2ReLKgob/QOSa/LTF2OSdfmXwRf/W/b2sMgPcoYEBNJGUQwn+fIlgp8+3TWg1 mqzvZEom4TEVdIUZQcAQD19I4rxRnoo/kc7w6LhWgsNaJfbnC8GZuq00VKtPDHPzJXqt lnle6ufdYMsHMXDsYHPGLLwaAvgEiRv9OSvQibeplbsNtr012ROdFBP6uzeZwgIaphto iJtA0Ry/f9JugFbgQ6zb8nLIioCCYbVha+KvA2QgwgmzdY5xv5n+I+L+1lRd+0Ip62/q WRww== X-Gm-Message-State: AOAM531O4nIHVAzziEGGX/HGIjkUJ6nY4nGw7ojfXGHF0Yl3WNFKQsa6 m4hQvOsRUBXxtVlub1Z/V1Fa X-Received: by 2002:a17:902:a9c2:: with SMTP id b2mr6411138plr.135.1644482458228; Thu, 10 Feb 2022 00:40:58 -0800 (PST) Received: from thinkpad ([27.111.75.88]) by smtp.gmail.com with ESMTPSA id rj1sm1590621pjb.49.2022.02.10.00.40.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 00:40:57 -0800 (PST) Date: Thu, 10 Feb 2022 14:10:52 +0530 From: Manivannan Sadhasivam To: Lad Prabhakar Cc: Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Arnd Bergmann , Greg Kroah-Hartman , Marek Vasut , Yoshihiro Shimoda , Rob Herring , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Prabhakar , Biju Das Subject: Re: [RFC PATCH 0/5] PCIe EPF support for internal DMAC handling and driver update for R-Car PCIe EP to support DMAC Message-ID: <20220210084052.GA69529@thinkpad> References: <20220126195043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220126195043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi, On Wed, Jan 26, 2022 at 07:50:38PM +0000, Lad Prabhakar wrote: > Hi All, > > The current PCIe EPF framework supports DMA data transfers using external > DMA only, this patch series aims to add support for platforms supporting > internal DMAC on PCIe for data transfers. > > R-Car PCIe supports internal DMAC to transfer data between Internal Bus to > PCI Express and vice versa. Last patch fills up the required flags and ops > to support internal DMAC. > > Patches 1-3 are for PCIe EPF core to support internal DMAC handling, patch > 4/5 is to fix test cases based on the conversation [1]. > This looks similar to the Synopsys eDMA IP [1] that goes with the Synopsys PCIe endpoint IP. Why can't you represent it as a dmaengine driver and use the existing DMA support? Thanks, Mani [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma/dw-edma > Patches are based on top of [1] next branch. > > [0] https://www.spinics.net/lists/linux-pci/msg92385.html > [1] https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git > > Cheers, > Prabhakar > > Lad Prabhakar (5): > PCI: endpoint: Add ops and flag to support internal DMAC > PCI: endpoint: Add support to data transfer using internal dmac > misc: pci_endpoint_test: Add driver data for Renesas RZ/G2{EHMN} > misc: pci_endpoint_test: Add support to pass flags for buffer > allocation > PCI: rcar-ep: Add support for DMAC > > drivers/misc/pci_endpoint_test.c | 56 ++++- > drivers/pci/controller/pcie-rcar-ep.c | 227 ++++++++++++++++++ > drivers/pci/controller/pcie-rcar.h | 23 ++ > drivers/pci/endpoint/functions/pci-epf-test.c | 184 ++++++++++---- > drivers/pci/endpoint/pci-epf-core.c | 32 +++ > include/linux/pci-epc.h | 8 + > include/linux/pci-epf.h | 7 + > 7 files changed, 483 insertions(+), 54 deletions(-) > > -- > 2.25.1 >