Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2856512pxb; Thu, 10 Feb 2022 07:06:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/vyC3HRUNXUbnT5XEKnGquiTqnLwzQvcRbWCSSu9LhO8eEEwGzZNDveHITFhcsvspj6xY X-Received: by 2002:a17:90a:5d91:: with SMTP id t17mr3205765pji.31.1644505562656; Thu, 10 Feb 2022 07:06:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644505562; cv=none; d=google.com; s=arc-20160816; b=hX+IeyBMhYxV5851JWkM55f9MRxQWVEMaUPZYd5Ql53BzsR57dMcFeniFZButdanTG T1LQnUYSBvvhLfnkwS7HEoCsS75ZD1T5pglee9xyPgO1otHkAqkseyKRROWgHldI2tdO 1mtcZEy93Ph6eKuCvrCMBKm6Z1k9tWVXhU88ClAYvgWXkpKN7pSZSZtpAVVPbtPK1XlU nzCX7iV9aBo1vNa4A7UVuLCIwxlY14cQ8yGlPBR6BW38b3WlIeMU+wMSA0BoqUa2E7yj tkOQS3UDR02JVAd8mzXezbH83toNcx7vU2NgS3T5K4BW3IgTPLxcadc6vA9FgNduY709 XhHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TpXloTlHsM1ntk3sqSjk73sshHjTMcoczp7h9ZRIX5M=; b=wAINGwqpm315ck5Fyw+Mh8q9clQI9+iuNGoRHMfwEfwWhp3z0x9OI/0mq9vi5keDP+ GBAneguju6p2S9OlBaVocJSs7CMOOJKKyRNNfhZyG20wRbEJpLQrtx6P3Kv9kPkkgZC6 wywoXISdDr/l8i2P0+oUyf1DEyVZFBb4YrCe3AiWOk6/CjPT4tsQ3n346PcAmeqkrW6t XSP0GZkqShMtT1GqJgjii1Yvn07ErjT+iEN3/q0TTJIm3hA2nUD7uGsN7dNUkGdhl+ZB Kmv5zJXPIfLSWvmbxK1oQd/WVTKZhsmC62FFeKl092OTRUafeYm+fRDZdXPvEk0PZ/1B XiXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nG29oYDV; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u25si8087805pfh.109.2022.02.10.07.05.49; Thu, 10 Feb 2022 07:06:02 -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=@gmail.com header.s=20210112 header.b=nG29oYDV; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237221AbiBJJYq (ORCPT + 99 others); Thu, 10 Feb 2022 04:24:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiBJJYo (ORCPT ); Thu, 10 Feb 2022 04:24:44 -0500 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41FC5D94; Thu, 10 Feb 2022 01:24:46 -0800 (PST) Received: by mail-yb1-xb2d.google.com with SMTP id c6so13623216ybk.3; Thu, 10 Feb 2022 01:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TpXloTlHsM1ntk3sqSjk73sshHjTMcoczp7h9ZRIX5M=; b=nG29oYDVD0/CTfWlZlBTSYZYkCvfxxAe2ytLf/1ynW7ACv4wOR+kS5nLbgNWO2cwRZ 3Ij2aZCSYTEkTmMSPSlSfWMgEfPqIZvmyaGa8tmGFzhMUFE2+O2zqecFSoGkWwRl0jZs M+WaWwq+eBUHgvWShFJbAdVFJRGokJbQY8t6UP7UVfPcr02Lbaq22WgI8NPIPmEjBTk7 nPW+6TyijgTBSh70Z30FssDYCEuTSB2J+Sdl9nphMYf1+stA3ecTIsBgceW+fzEpFaYw LX123oN0/7N25IN7mdCJN3L/oT5PrXZOLZbV5QLRqMBEJcX9KdyBp1GRJEuGIyDxxjwU NnQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TpXloTlHsM1ntk3sqSjk73sshHjTMcoczp7h9ZRIX5M=; b=vRTYu81L6g4IHulWtqq8JA4lIwvzhIsNvBOVewQxDVG1dVU+FRcTs3SUmbh75YeYf1 55pQY/YKG8HuuafHwhP3SVHocS/A+l+khBIiI/VLQbKFE3Y0ZDHz99RPX7xl0Yt3vORk 3FZE1OwaIwTbsu4N5XDdgTI2xZ6Z1VobveEhkmZKcyp3B7MoH+Rdo6Bm2QKAYsCRHpfB 6MAGKnmDQA0nMug8Ds5sUNmTNR6+Wd+e7AMtExBA/jNZynU55MfzcKJnVWYq8PT2e+8s zBzVVImKNbrNFLKqzhpGGhtnszNbtTE34wfnSvR5CDVV/9kx6MO7SEh/DVGv+SytOEti rk7w== X-Gm-Message-State: AOAM5327JW4oR6zDJTr9A9RaMBoCU9Y6CMCr67PpIIdFTFdRRxwV6nW1 P/Ph5r6kXxF5DzXQN+8srmqc+ERjw4UCgqCZVpV0HMYGHqxcxA== X-Received: by 2002:a25:be50:: with SMTP id d16mr5721263ybm.41.1644485085432; Thu, 10 Feb 2022 01:24:45 -0800 (PST) MIME-Version: 1.0 References: <20220126195043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com> <20220210084052.GA69529@thinkpad> In-Reply-To: <20220210084052.GA69529@thinkpad> From: "Lad, Prabhakar" Date: Thu, 10 Feb 2022 09:24:19 +0000 Message-ID: Subject: Re: [RFC PATCH 0/5] PCIe EPF support for internal DMAC handling and driver update for R-Car PCIe EP to support DMAC To: Manivannan Sadhasivam Cc: Lad Prabhakar , Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Arnd Bergmann , Greg Kroah-Hartman , Marek Vasut , Yoshihiro Shimoda , Rob Herring , linux-pci , Linux-Renesas , LKML , Biju Das Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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). 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 > >