Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp286793pxa; Tue, 11 Aug 2020 03:02:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxHC+RngZUf+lT4jwWLwV3ZaveGsFpr4wgbf5XzkDlGt1Qx757UE3ESHkJUUx9SmIrIl1O X-Received: by 2002:a17:907:2115:: with SMTP id qn21mr26650029ejb.157.1597140177131; Tue, 11 Aug 2020 03:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597140177; cv=none; d=google.com; s=arc-20160816; b=wvVN/PJz5uMnWy8iFx54lzsupbG5QvURpUJUvEBFvF14hAH1OK7CRHU3JLfm+PH+Tj ScczHO/d56e8vCroBXZAd8HRqIjGl9vUoFDHLcRuN1C3LQc9MrM44NHQuZKU7DsRFS8G 1kzpnJpbctjHfZiBQakFu634FvURa63ZGTHwuvifNtKPNwhIdE2hyeEff+CZi3BckE5R ncr5QsdxENJa2qCii8aU2JJWmhV5ZNzZ0psP0uEEAavT3aFBLyQSfMYfQKPDoNLPfBbQ M9jqSeNl9tqVw0BK3NfFDW4PgT5Um/xC069ujJDAf+qfhWJGF5kDo0zwwiK3zWbDs3cb 0+OA== 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=HzBj2lPh/tZde9xWVxBCawYqq17VIJK8w7xAv7cEG7w=; b=SC769rqLynYnATqEZ/Y3Af+aAN1RRkzNl9n3tIlD7YpSSJTkO9Nts8X3+RRPtXnR7/ DnM0S88e96Cwp3J8lvhQgqybivRuv3lOvyvftFXiwJPGUUdKKPW80zd8Bk+YXiuOPRVs lmnCGInVTpyvYKkuGtuScLB3iUIVzXU5kO1zMLAkLdeaiwuMW6QZQOpl4qslIp+D0i3e cs2HJKe6zHrQixn0Bkf/2DnZSMnOgcRWZtlEa2B/OhWokKSsuBCkRabesMo03B/ZTNDh 8DEATGgvZcz1mrLj72wz/sf081xegDxCuWeC2WzMt1Zmt//0beHf3gQRrd0g89o92aid Rdeg== 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bu23si12130637edb.440.2020.08.11.03.02.32; Tue, 11 Aug 2020 03:02:57 -0700 (PDT) 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728409AbgHKKCB (ORCPT + 99 others); Tue, 11 Aug 2020 06:02:01 -0400 Received: from inva021.nxp.com ([92.121.34.21]:41462 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728265AbgHKKCB (ORCPT ); Tue, 11 Aug 2020 06:02:01 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AA0C8201EED; Tue, 11 Aug 2020 12:01:59 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C2059201E80; Tue, 11 Aug 2020 12:01:52 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id EF188402DD; Tue, 11 Aug 2020 12:01:43 +0200 (CEST) From: Zhiqiang Hou To: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, robh+dt@kernel.org, bhelgaas@google.com, lorenzo.pieralisi@arm.com, shawnguo@kernel.org, leoyang.li@nxp.com, kishon@ti.com, gustavo.pimentel@synopsys.com, roy.zang@nxp.com, jingoohan1@gmail.com, andrew.murray@arm.com Cc: mingkai.hu@nxp.com, minghuan.Lian@nxp.com, Hou Zhiqiang Subject: [PATCHv7 00/12]PCI: dwc: Add the multiple PF support for DWC and Layerscape Date: Tue, 11 Aug 2020 17:54:29 +0800 Message-Id: <20200811095441.7636-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 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 From: Hou Zhiqiang Add the PCIe EP multiple PF support for DWC and Layerscape, and use a list to manage the PFs of each PCIe controller; add the doorbell MSIX function for DWC; and refactor the Layerscape EP driver due to some difference in Layercape platforms PCIe integration. Hou Zhiqiang (1): misc: pci_endpoint_test: Add driver data for Layerscape PCIe controllers 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 .../bindings/pci/layerscape-pci.txt | 2 + .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 31 +++ drivers/misc/pci_endpoint_test.c | 8 +- .../pci/controller/dwc/pci-layerscape-ep.c | 100 +++++-- .../pci/controller/dwc/pcie-designware-ep.c | 258 ++++++++++++++---- drivers/pci/controller/dwc/pcie-designware.c | 59 ++-- drivers/pci/controller/dwc/pcie-designware.h | 48 +++- 7 files changed, 410 insertions(+), 96 deletions(-) -- 2.17.1