Received: by 10.223.164.202 with SMTP id h10csp297432wrb; Tue, 14 Nov 2017 15:43:20 -0800 (PST) X-Google-Smtp-Source: AGs4zMbV4R9njJQz+snZAW0HBp2KiX+BpwKGVEc9IN8+w7N505skEvQ6gTJXReLLkO4Wj67c09Ju X-Received: by 10.159.211.65 with SMTP id g1mr14306178plp.312.1510703000880; Tue, 14 Nov 2017 15:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510703000; cv=none; d=google.com; s=arc-20160816; b=ywBsba4fVF1NGRM623ug5N/JzOJt9T0H0bM5XpJ7kyNVZtAbMRgIfXzRrZDImFBWFm KqGlrUG+B6M5D/eE3DF9ht267sk9fLjotBOIYQuVPWRjM95vBS5FP8EbiufcOePsU1bZ H97GsP1QOZU6u4TKFIs7fzoZzFb6hQ8pjND2kbP0XIvJNN/oWoktW9zEZY+lj73dZzEr mRSRKT5RLZeg01gK9W6DJ71c9MWhBJ3pg9J10b4K6pqnn7rnHoXhZoUxNjQHx3Nd5BjR B6dptP5uRaqQe1yK9OrDhwgzRgFgiywNIDYdXhKAmpfPHS4JDUlVhUg5IuNWPl0M8ZyV kjgg== 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 :arc-authentication-results; bh=4i+Oco0aR7UmnzzyMQpVEx6qmYZn/oHaOd5/I5JBgak=; b=TYhztnXu7I4EnNegcygTWAxJ0oDhNXcpM//ExYVl1klyWxp0DsK9qcmv4G72miX78p sc4jDIP23CEtmqLFFmO9tneC7qG+qq++T0x2TLtUHyBrBzXqon3/ojUTmPoJAzGDQaBZ VUxpZz7A80pxPOa2qPHvMry6lFTnGVlqVkTfX1BR/TJohpMuZdxtLBfF/bFULXEaK76o zeFsUwa5ZaO6/196ZPoGhZdiA2m6AfJshL9FcaS1sWFyJ5ZEWtmQvlBeoDALaib9Yz45 Mj35lEmqWkDuHYhbEP9BveEH3r/BSGf8Ygqer0iUjwBS3V1CXmFeHjZX4j5091Fs+4Sp S+HA== 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si15407891plo.542.2017.11.14.15.43.09; Tue, 14 Nov 2017 15:43:20 -0800 (PST) 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756545AbdKNWM4 (ORCPT + 87 others); Tue, 14 Nov 2017 17:12:56 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:58270 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbdKNWMr (ORCPT ); Tue, 14 Nov 2017 17:12:47 -0500 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.224.233]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 3090130C011; Tue, 14 Nov 2017 14:12:46 -0800 (PST) Received: from stbsrv-and-3.and.broadcom.com (stbsrv-and-3.and.broadcom.com [10.28.16.21]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id 6444881EAD; Tue, 14 Nov 2017 14:12:43 -0800 (PST) From: Jim Quinlan To: linux-kernel@vger.kernel.org, Bjorn Helgaas , Catalin Marinas , Will Deacon , Rob Herring , Brian Norris , Russell King , Robin Murphy , Christoph Hellwig , Florian Fainelli , Jonas Gorski Cc: linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Gregory Fong , Kevin Cernekee , Mark Rutland , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, Ralf Baechle , Jim Quinlan Subject: [PATCH v3 0/8] PCI: brcmstb: Add Broadcom Settopbox PCIe support (V3) Date: Tue, 14 Nov 2017 17:12:04 -0500 Message-Id: <1510697532-32828-1-git-send-email-jim2101024@gmail.com> X-Mailer: git-send-email 1.9.0.138.g2de3478 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds support for the Broadcom Settopbox PCIe host controller. It is targeted to Broadcom Settopbox chips running on ARM, ARM64, and MIPS platforms. V3 Changes: - Fold pcie-brcmstb-msi.c into pcie-brcmstb.c - Use PCI_XXX constants for PCIe capability registers - Removal of any unused constants - Change s/pci/pcie/ for filenames, comment text - Config space access now uses 8/16/32 read/writes - Use proper multi-line comment style - Use function names, structure that are common in other host drivers - DT binding 'brcm,ssc' is now 'brcm,enable-ssc' - Dropped DT binding 'xyz-supply' - Not setting CRS support as Linux does it if it is advertised. - Removed code that was considered "debug code". - Use of_get_pcie_domain_nr() - Variable 'bridge_setup_done' removed. V2 Changes: * Patch brcmstb-add-memory-API: - fix DT_PROP_DATA_TO_U32 macro. - dropped one EXPORT_SYMBOL, changed the other to GPL. * Patch DT-docs-for-Brcmstb-PCIe: - change 'brcm,gen' prop to standard 'max-link-speed'. - rewrite bindings commit to omit standard prop defs. - change props "supplies", "supply-names" to "xyz-supply" * Patch removed: export-symbol-arch_setup_dma_ops [4/9] * Patch brcmstb-add-dma-ranges: - use get_dma_ops(); also use a const dma_map_ops structure. - rewrite map_sg(), unmap_sg(), other calls like syng_sg_*() - omit brcm_mapping_error(), but added code in brcm_dma_supported() - put all of the notifier code in one compilation unit. Florian Fainelli (1): SOC: brcmstb: add memory API Jim Quinlan (7): dt-bindings: pci: Add DT docs for Brcmstb PCIe device PCI: brcmstb: Add Broadcom STB PCIe host controller driver PCI: brcmstb: Add dma-range mapping for inbound traffic PCI/MSI: Enable PCI_MSI_IRQ_DOMAIN support for MIPS PCI: brcmstb: Add MSI capability MIPS: BMIPS: Add PCI bindings for 7425, 7435 MIPS: BMIPS: Enable PCI .../devicetree/bindings/pci/brcmstb-pcie.txt | 59 + arch/mips/Kconfig | 3 + arch/mips/boot/dts/brcm/bcm7425.dtsi | 26 + arch/mips/boot/dts/brcm/bcm7435.dtsi | 27 + arch/mips/boot/dts/brcm/bcm97425svmb.dts | 4 + arch/mips/boot/dts/brcm/bcm97435svmb.dts | 4 + arch/mips/include/asm/Kbuild | 1 + drivers/pci/Kconfig | 2 +- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 3 + drivers/pci/host/pcie-brcmstb-dma.c | 319 ++++ drivers/pci/host/pcie-brcmstb.c | 1591 ++++++++++++++++++++ drivers/pci/host/pcie-brcmstb.h | 22 + drivers/soc/bcm/brcmstb/Makefile | 2 +- drivers/soc/bcm/brcmstb/memory.c | 172 +++ include/soc/brcmstb/memory_api.h | 25 + 16 files changed, 2267 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/brcmstb-pcie.txt create mode 100644 drivers/pci/host/pcie-brcmstb-dma.c create mode 100644 drivers/pci/host/pcie-brcmstb.c create mode 100644 drivers/pci/host/pcie-brcmstb.h create mode 100644 drivers/soc/bcm/brcmstb/memory.c create mode 100644 include/soc/brcmstb/memory_api.h -- 1.9.0.138.g2de3478 From 1584081768398774718@xxx Tue Nov 14 22:21:37 +0000 2017 X-GM-THRID: 1583955914450238490 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread