Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2212934pxb; Fri, 25 Mar 2022 13:09:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdsA+hniiU7Y7Db5kES4cauudu3yihdYqc6Sz2znZGvfYZFaP5AKjHksW30FJwZtYqidzH X-Received: by 2002:a17:90b:4a88:b0:1c7:9bc:a72e with SMTP id lp8-20020a17090b4a8800b001c709bca72emr14404082pjb.112.1648238960480; Fri, 25 Mar 2022 13:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648238960; cv=none; d=google.com; s=arc-20160816; b=Qazo1DFDwwP8XgXBxqFgwZDC3uQGzLlFRsjfSxNpe/5EC6aoV1uzVkCP7G7KuGuvJM FWXrbgMN1FPwfTeEeTgzuN3pIODI/SL34SpoBANogUJd74DBHfS8305aI4q1Mwt/fUnI bkJolpjz1jLmVKzZz0kDJwNPxIAOEqJ8jRevrQMs0a9XpL1AFOpLYs/Kq+Y2EYnfQ8p4 g60qbpVgd2B6NZ/cN5ZPTSvaaOisQ1pwAZc59EDU2M07TIDHKnoHExH5TgYTWatz+Hwl 2m2MXYtBuaJnRObLyty02RD+8RbIhnJi4YNyQFUkiHsZXYcUv6Q/LI+DdB5+QL6qm9nh 0/lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4p0X/XeCE266vSwVQNBGK11tvaUj7yQyARoxG+v1mAo=; b=oitdjflTi1LF5QwSYekYQ8XmdywDE4d58GeL18S51oZV8nCI064VM9qUGu+YfhhYlL p36gw0wg/61uWNV0IXQLU+fixWJkkNoWXe9iEfhz8P5SpmftviLCpTr1F+qFwkmaECQP +hqB/18C3mVKVd9KgcgLW9qKPda32jeMrJCTi47nAKenTDj+8R2Oz6IxdQUko3tj8xsL N/yu2PFxsVGcRZY1R8TIXaB929BbXFJ5stHR3bHcHyr6jKeRwcq6s+1qTSiYgDRCp2HD PLGAgzpxCd+/HoPzot8cQFb4j7edNREdWQMfBw4aySo3ISbF6SG63zqXfy6uqUxIlXc+ PIfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eXVXBuCH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a18-20020a170902ecd200b0015445f2c041si3567405plh.230.2022.03.25.13.09.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:09:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eXVXBuCH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B21FF177D03; Fri, 25 Mar 2022 11:52:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344234AbiCYRPN (ORCPT + 99 others); Fri, 25 Mar 2022 13:15:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347560AbiCYRPD (ORCPT ); Fri, 25 Mar 2022 13:15:03 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89E593CFD2; Fri, 25 Mar 2022 10:13:28 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-2d07ae0b1c4so89460957b3.11; Fri, 25 Mar 2022 10:13:28 -0700 (PDT) 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:content-transfer-encoding; bh=4p0X/XeCE266vSwVQNBGK11tvaUj7yQyARoxG+v1mAo=; b=eXVXBuCHvv4Vq88Lxjrm0KjehjMvkIEGi/FnXBa/K9rJxso24l2l4EcQAYwmOnha2d YPSm0QTAVkozSxCsZWSJIypqKkn2IfS1j4h/YSHlVKwj1p1la9DcioQyqVPWK+/Tu3RK 5s3US5NY8BT6cfZhLSe9manwsCEyrNAZhjKzHJwt+ubHEVbc961N0jVtA9zqIehRDn6r fs4Fe97WtUlqrKIw9NQsuB83dzU4AqoQiFuVKtvFJzUpgHwxp4dnjYpD3hGhVi11cCTQ z286bOjZwqf0KBtMS2gFU2jmm5dhgARV4U8MY2lkBP6b0Z9VsBFHq3zVafVluH+7gVMx trEA== 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:content-transfer-encoding; bh=4p0X/XeCE266vSwVQNBGK11tvaUj7yQyARoxG+v1mAo=; b=zYrX8EY+LF+b655TS8ShzPB7XX6BXpLLaQzSdFOvQL6NxN4pY6CPe2ijkHXmhfafsn jdjVNAYsXa93MYQmG6zgbmH5eTAX3BJ1r6+fCnErqRMt/jfGjOoJjy59go+58ygDlWpt AwLrgx4LQT8xhMElb1U4ZwR/e8JLFSXg/j0sJzE+cYBGGURomlcdL6bo18uDT0kzmpEE xLb5f1VpZS2sgWF9Myh8fQTS5x1Vv5JEE/d+xgsIin/nE18vuKR0dd1/bfzKIEbYHoGm /F86/T8Vx7GBZVdSX3pnoQvoYXii7oEz5VDhUS11Ixwo96JPIIxPZ2jbU0CF01pq1bJg Gdew== X-Gm-Message-State: AOAM533LstyYSrVK4Iv/iQISCk3INW9xUTe3kiGjVwH9Gi3y7PcuSCzV 2Q+duxsVCb8Os95laxiEBLyvJL6mjJYsn2ZH24g= X-Received: by 2002:a0d:c0c7:0:b0:2e5:bf19:2698 with SMTP id b190-20020a0dc0c7000000b002e5bf192698mr11970702ywd.119.1648228407794; Fri, 25 Mar 2022 10:13:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Lad, Prabhakar" Date: Fri, 25 Mar 2022 17:13:02 +0000 Message-ID: Subject: Re: [EXT] Re: [RFC PATCH 0/5] PCIe EPF support for internal DMAC handling and driver update for R-Car PCIe EP to support DMAC To: Kishon Vijay Abraham I Cc: Frank Li , Bjorn Helgaas , Lorenzo Pieralisi , Manivannan Sadhasivam , Lad Prabhakar , =?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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Kishon, On Wed, Mar 2, 2022 at 6:28 PM Frank Li wrote: > > > > > -----Original Message----- > > From: Lad, Prabhakar > > Sent: Wednesday, March 2, 2022 11:18 AM > > To: Frank Li > > Cc: Manivannan Sadhasivam ; Lad Prabh= akar > > ; Kishon Vijay Abraham I > > ; Bjorn Helgaas ; Lorenzo Pieralisi > > ; Krzysztof Wilczy=C5=84ski ; = Arnd > > Bergmann ; Greg Kroah-Hartman ; > > Marek Vasut ; Yoshihiro Shimoda > > ; Rob Herring ; linu= x- > > pci ; Linux-Renesas > soc@vger.kernel.org>; LKML ; Biju Das > > > > Subject: [EXT] Re: [RFC PATCH 0/5] PCIe EPF support for internal DMAC > > handling and driver update for R-Car PCIe EP to support DMAC > > > > Caution: EXT Email > > > > Hi Frank, > > > > On Wed, Mar 2, 2022 at 3:42 PM Frank Li wrote: > > > > > > > > > > > > > -----Original Message----- > > > > From: Lad, Prabhakar > > > > Sent: Thursday, February 10, 2022 3:24 AM > > > > To: Manivannan Sadhasivam > > > > Cc: Lad Prabhakar ; Kishon > > Vijay > > > > Abraham I ; Bjorn Helgaas ; Lor= enzo > > > > Pieralisi ; Krzysztof Wilczy=C5=84ski > > ; > > > > Arnd Bergmann ; Greg Kroah-Hartman > > > > ; Marek Vasut > > ; > > > > Yoshihiro Shimoda ; Rob Herring > > > > ; linux-pci ; Linux-Ren= esas > > > > ; LKML > kernel@vger.kernel.org>; > > > > Biju Das > > > > Subject: [EXT] Re: [RFC PATCH 0/5] PCIe EPF support for internal DM= AC > > > > handling and driver update for R-Car PCIe EP to support DMAC > > > > > > I use standard DMA engine API to implement Designware PCIE EP embedde= d > > DMA support. > > > Please check > > https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flor= e.kern > > el.org%2Fall%2F20220302032646.3793-3- > > Frank.Li%40nxp.com%2FT%2F&data=3D04%7C01%7Cfrank.li%40nxp.com%7C0e2= e5fe8f > > d224076afb208d9fc70aa16%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C63= 7818 > > 383096028914%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz= IiLC > > JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=3DDCDX%2BYEVFsPOE6ZWzwrMx= k1Fjlk > > ZA%2FEPGmhQSHuPB2c%3D&reserved=3D0 > > > > > Thank you for the link. The Designware PCIE EP is implemented as a DMA > > engine driver so it's convenient to use the DMA engine API, whereas > > the R-Car PCIe-EP is implemented as an actual PCIe EP [0]. > > My means, needn't add new interface pci_epf_internal_dmac_xfr at epc/epf. > Your R-Car PCI-EP DMA part can implement as a dma engine driver like desi= gnware. > > So EP functional driver use the same method to operate DMA regardless > EP controller type. > With this approach all the PCIe controllers supporting internal dmac will have to be added as a DMA driver. Could you please provide some feedback on the above? Sorry this mail is not in chain to my orignal patch series. My orignal series can be found at [0] [0] https://patchwork.kernel.org/project/linux-renesas-soc/cover/2022012619= 5043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com/ Cheers, Prabhakar