Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1392296ybn; Wed, 25 Sep 2019 17:39:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2qdySYZ5mw0azhFxl17BKVPmvW0BsRsd1yXk4wLpbCFhsp5Jr/U6REmyUNuaV6RIeHRWn X-Received: by 2002:a17:906:5295:: with SMTP id c21mr860676ejm.80.1569458367190; Wed, 25 Sep 2019 17:39:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569458367; cv=none; d=google.com; s=arc-20160816; b=Zllb7nRCxUBzhQxRgQ1VVv8nY+fcjd054iz3vlEVg1uZMgnisoTK4HSI9/mUoUwpf4 N+NkYvjgxdphwZH4iisNIoE66KVvOxQsUARYKLRdEi7WqpfcJJzyFUjBeAREjwzXjp+H HWn+ie28ZADyYO2tOp5SrtHy9Z/V8jgDuYOOj0B7FP/7fJhU7XK/WxJ/heQqmYfBI7nV Wr6ca6p3Iecrx+OCy8Z/46cmZtjK6VKQQmJlAMpq5JnKrlzZc8r0pheWRLLdXRhWKGq7 NaNeARQZyRZPPtVYaTi2RNC9bxpXk3HoUeOLT7y0UTaEfM03haTjyAgNcjUA3N8JYSsw oZ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=oyBsO03mfYd2yTXmNSmLp9BVEEKIR1j6lOdViqYROh8=; b=UUoTeCq3gGKigEcetjlnzykg0kCNMISa/GCSQDuF8H4dpTu//57NzXEqdZrc39FUV1 xeY+dHdFGGMzG3slbK93IgwrV1OT1SY7awPm4lzf10tOAaQPDv1ORIdqgO7ScsMQGXQd LUyvHOVFc1TSv+Eb1+BgtUBFMF4wfXeg/nKAhYIKoxeUcjSVtoo2SvO+WGtdv8+WQxV6 GgfrAK+lhxKFBBTyfcMleAJ7zJ6Gze/fWjLfi5WmWFAjdDe+E3IhUoLryFMzAJXqe5jA QWJLx3D7DvPn/PjiFYc/oQaw+BKF1ijuVp41hKiIbUxapRPQ1Ac2mSpvoxMlwV2ed0v0 7jyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si383433eda.345.2019.09.25.17.39.03; Wed, 25 Sep 2019 17:39:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408567AbfIXC3c (ORCPT + 99 others); Mon, 23 Sep 2019 22:29:32 -0400 Received: from inva020.nxp.com ([92.121.34.13]:38690 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729193AbfIXC3c (ORCPT ); Mon, 23 Sep 2019 22:29:32 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 183A21A038B; Tue, 24 Sep 2019 04:29:30 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 55A301A037B; Tue, 24 Sep 2019 04:29:22 +0200 (CEST) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id A4A864029F; Tue, 24 Sep 2019 10:29:12 +0800 (SGT) From: Xiaowei Bao To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, lorenzo.pieralisi@arm.com, minghuan.Lian@nxp.com, mingkai.hu@nxp.com, roy.zang@nxp.com, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, andrew.murray@arm.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Cc: Xiaowei Bao Subject: [PATCH v4 00/11] Add the multiple PF support for DWC and Layerscape Date: Tue, 24 Sep 2019 10:18:38 +0800 Message-Id: <20190924021849.3185-1-xiaowei.bao@nxp.com> X-Mailer: git-send-email 2.9.5 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the PCIe EP multiple PF support for DWC and Layerscape, add the doorbell MSIX function for DWC, use list to manage the PF of one PCIe controller, and refactor the Layerscape EP driver due to some platforms difference. Xiaowei Bao (11): PCI: designware-ep: Add multiple PFs support for DWC PCI: designware-ep: Add the doorbell mode of MSI-X in EP mode PCI: designware-ep: Move the function of getting MSI capability forward PCI: designware-ep: Modify MSI and MSIX CAP way of finding dt-bindings: pci: layerscape-pci: add compatible strings for ls1088a and ls2088a PCI: layerscape: Fix some format issue of the code PCI: layerscape: Modify the way of getting capability with different PEX PCI: layerscape: Modify the MSIX to the doorbell mode PCI: layerscape: Add EP mode support for ls1088a and ls2088a arm64: dts: layerscape: Add PCIe EP node for ls1088a misc: pci_endpoint_test: Add LS1088a in pci_device_id table .../devicetree/bindings/pci/layerscape-pci.txt | 2 + arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 31 +++ drivers/misc/pci_endpoint_test.c | 2 + drivers/pci/controller/dwc/pci-layerscape-ep.c | 100 ++++++-- drivers/pci/controller/dwc/pcie-designware-ep.c | 255 +++++++++++++++++---- drivers/pci/controller/dwc/pcie-designware.c | 59 +++-- drivers/pci/controller/dwc/pcie-designware.h | 48 +++- 7 files changed, 404 insertions(+), 93 deletions(-) -- 2.9.5