Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5542493pxb; Wed, 26 Jan 2022 14:35:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQPzRXrX7yTE/dVTWNHgmuOqWczfjK40SHTZqQXeyYkAGFkBqfT7CtVUqZrFN9mbObdvrd X-Received: by 2002:a17:907:7204:: with SMTP id dr4mr696660ejc.708.1643236556993; Wed, 26 Jan 2022 14:35:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236556; cv=none; d=google.com; s=arc-20160816; b=UkZCbOM9q0L8r/ubk3mI/naafu/js6N9y39qsf/yeeeEK+DzWu1NZkN+7Tm6On1PAx yP/TZk+zbjlQ9Mf+LPfnQhxdcPRwMy9WlvxSUNJTp+aCFDxt3yK0koujQuSG5DjXGbTj 7Pv/cc0PexVO+zVmJT0xfyGoWxQGKgLLTXykG0bFN/TxKWNkmXrXMDpT96ZWx0wCzWKY p67jDLXjlLdt0g4WtGz8SSeS0seJHX/wnb2Wnfu+9DGXSvaq+xlRW7ZGA+CIc7gTEwbf vL9aZN+GH1MAJGJ69EQuCaN5FtE9xL+nVtKQxXrOHj7x9DNmS3zdvdD42+ZG/zTEAXwv 6ucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=iBJpqyjyLNhFIxGnvsn3HekfGqP8QC1z7KzccVl+VQY=; b=yvClfDAYuK3Xne8v2mG5FdQzSAh0ergGrZMUrmAb7fC9oWC6xWFmiwgzBIycmrot5c uKvmWpd0jeYHnNVsrdP5Siwdfnu06aHDfO+MNxOJrbADuNX+5kY7zO/yTtNeMCnoCoUh t0KYSUAZi5MUnAe/Smknu79cliCyv8soLE0/9Z2NUNYmtdNGTEj9neQ82PeObX+fVZN5 sssp6yL4XqBXLAUCYFzlPjb6QtZQwz1FhgerHPBNYIEwNIUCIstJ5Ic1ROUoNuKVjv4a ZCsjqJ8T98UbCcnzeKQaayxgjkvcdTaXO2bOU/eCl5sNfcRlwNRPcf5J3obJxl4XYX53 Q97g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id go12si288539ejc.4.2022.01.26.14.35.32; Wed, 26 Jan 2022 14:35:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244532AbiAZTvA (ORCPT + 99 others); Wed, 26 Jan 2022 14:51:00 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:46865 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231611AbiAZTu7 (ORCPT ); Wed, 26 Jan 2022 14:50:59 -0500 X-IronPort-AV: E=Sophos;i="5.88,319,1635174000"; d="scan'208";a="107765993" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 27 Jan 2022 04:50:57 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 7F9404008541; Thu, 27 Jan 2022 04:50:54 +0900 (JST) From: Lad Prabhakar To: Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Arnd Bergmann , Greg Kroah-Hartman , Marek Vasut , Yoshihiro Shimoda , Rob Herring , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Prabhakar , Biju Das , Lad Prabhakar Subject: [RFC PATCH 0/5] PCIe EPF support for internal DMAC handling and driver update for R-Car PCIe EP to support DMAC Date: Wed, 26 Jan 2022 19:50:38 +0000 Message-Id: <20220126195043.28376-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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]. 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