Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2826773pxb; Thu, 10 Feb 2022 06:28:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoWnAy5RcQByXE3Y+1mzffnpyIG8I7RVGLs04hvt/KkEe3FcrnO9RzZBRyzVDVHw8z6yg0 X-Received: by 2002:a17:907:9815:: with SMTP id ji21mr5557129ejc.700.1644503321730; Thu, 10 Feb 2022 06:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644503321; cv=none; d=google.com; s=arc-20160816; b=VC4T4sgnvm7nm+ofdph1XH8syoasizia3SOmQR958JffJlo2qjHbRI1UW+qRUWTHhr ADreGYe1sNVszciznnwSVuwhjiPUprRPENhtWUv1nmH6T7FI9CpkpMAcE3AaLI/bOiC+ aorkmnNH7N+eqblvrTaMff8zmH8JzDW1vQXOXPHn8sDh2FcE7GsdrcS76ZzB4bgdsY6T 8Nx3MUiR9TeaNxAz29SPnP6TsYOBgA9S5pIbHvvilAXuZvAsJZ/18SB6apdkbI8ZKcmN TyQuBOU7haSLRRGNzG2Xsu9CXP6BqRCfDTQWLKPW3+QHIpXdUHEnhCR4s64PbbDl6UI5 m+MA== 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=pfPmHTNS3kNf2REIYVPxP0rI8dFehD3FUEuoa/nfhmQ=; b=YV+HsSDLCL7JmdPjuH4m9P/BDWz9Ci2WNUbAkZiw4riB+s4GxGaoXyFI+aaxUds49y uY2EKOTBkGYEADeXo7OqIzs2gC3KXrXP06NK+KecJ185oS1IniD3xQCCbeQqyeeKVoFv 9MnVclHpb1P1grP5CAeWjHuDaQisRAQNWMzF+ER064peN1HXK95AjDWcJWFr9l62VouQ +PsO45kSBUtKE3/r/07mCU2W8il7O+DzZ/6rNrop0jdzbCpagk1s+YgNMXIEAKqqKyLH rMBCIGZ9JYOY21h3y+iChDwUgGNCRsI1b6vAc9BoT1LG150gxRnB0gRrxJhS3XzS/XFP jixw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LV+Wgp8y; 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 i8si12048606ejj.319.2022.02.10.06.28.15; Thu, 10 Feb 2022 06:28:41 -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=LV+Wgp8y; 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 S240229AbiBJKua (ORCPT + 99 others); Thu, 10 Feb 2022 05:50:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:59306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240214AbiBJKu3 (ORCPT ); Thu, 10 Feb 2022 05:50:29 -0500 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE52FFE for ; Thu, 10 Feb 2022 02:50:31 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id d187so9487205pfa.10 for ; Thu, 10 Feb 2022 02:50:31 -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=pfPmHTNS3kNf2REIYVPxP0rI8dFehD3FUEuoa/nfhmQ=; b=LV+Wgp8y3d5XDi3wv3BsyrxVE/eJEg914rTG32ssP43QX2iCrRuh4WUb+6RwJP8n9A XKmpvwvmhZnw8XJ21kf3VZH2jlpzWbQqfvtmkYF/0MR3b+qZZv+o6iF3q6JAoarRHqGZ o9azkiYLnrXoaq1SASw1qMZ5pFQRTKiWtXzvUBbZBy31W8MslfIfFpoM9K+y9eSGBw+X 0R4NYYYnq/OSOh15JpFvO9i4lnYSx3CpHXeZgdERKYb2eprNuqRDbD4TYmvvFNbDRDDu 8gTdmCz3Tg9ewAdRsYcolPHOYiS2PvpRu3SooESMNWcbJGvogpPyZoSZV4/hKLei8tn1 N3oQ== 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=pfPmHTNS3kNf2REIYVPxP0rI8dFehD3FUEuoa/nfhmQ=; b=tsgvyzXzanlYB8iFQ+xocwXZjMeupjZQb+alq35k+/tRfVBJaZuqYBAU9taNFoTDZz CPk6XUMpRod/IOuAGeRK/Km42LiAddUpv0sUzyjbX8m+UgRgTGZI8WHq+Q6CAvmkItzw dk0w4hFtFiIXIS6PnMy1TRk44GcldlWsmoXcG6GgTWzbYVo38SVM6STZD6pSwXZnrZpk Dxex+7o6x21jQUYQNnaDc6gMgu7zLwo+NSAH0REYNoxaFlNlQZU2rFED7iW4AGCZEWFt 4/72mNsRjDqtwP646vgpFJ1RptaXwAMVWfBj5t+/PehokhX9cX9h+yX7W0Be+RPTPZeQ TRBg== X-Gm-Message-State: AOAM532HNfD/zFT8qy/os//m0TKuxCdP0UcOFYi3c1yGAcrhkm6ev9XN P/VAzL/bRBQlT2Mpkw6xBdqI X-Received: by 2002:a63:dd0f:: with SMTP id t15mr5652799pgg.12.1644490230574; Thu, 10 Feb 2022 02:50:30 -0800 (PST) Received: from thinkpad ([27.111.75.88]) by smtp.gmail.com with ESMTPSA id t9sm1794782pjg.44.2022.02.10.02.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 02:50:30 -0800 (PST) Date: Thu, 10 Feb 2022 16:20:23 +0530 From: Manivannan Sadhasivam To: "Lad, Prabhakar" Cc: Lad Prabhakar , 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 , Linux-Renesas , LKML , 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: <20220210105023.GB69529@thinkpad> References: <20220126195043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220210084052.GA69529@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Thu, Feb 10, 2022 at 09:24:19AM +0000, Lad, Prabhakar wrote: > Hi, > > On Thu, Feb 10, 2022 at 8:40 AM Manivannan Sadhasivam > wrote: > > > > 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? > > > Let me have a look. Could you please share a link to the Synopsys PCIe > endpoint HW manual (the driver doesn't have a binding doc). > I don't think the PCIe reference manual is available publicly. And you are right that the driver is not tied to devicetree. The reason is, it gets probed using the PCI ID of the EP and all the resources are defined statically in the driver itself. Thanks, Mani > Cheers, > Prabhakar > > > [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 > > >