1. 12 Jul, 2019 13 commits
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/rcar' · e3a9d569
      Bjorn Helgaas authored
        - Add R-Car device tree support for r8a774a1 (Biju Das)
      
      * remotes/lorenzo/pci/rcar:
        dt-bindings: PCI: rcar: Add device tree support for r8a774a1
      e3a9d569
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/qcom' · 757410bd
      Bjorn Helgaas authored
        - Move qcom driver to bulk clock API (Bjorn Andersson)
      
        - Add Qualcomm QCS404 PCIe controller support (Bjorn Andersson)
      
        - Ensure Qualcomm PERST is asserted for at least 100ms (Niklas Cassel)
      
      * remotes/lorenzo/pci/qcom:
        PCI: qcom: Ensure that PERST is asserted for at least 100 ms
        PCI: qcom: Add QCS404 PCIe controller support
        dt-bindings: PCI: qcom: Add QCS404 to the binding
        PCI: qcom: Use clk bulk API for 2.4.0 controllers
      757410bd
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/mobiveil' · 3d663fc0
      Bjorn Helgaas authored
        - Unify mobiveil register accessors (Hou Zhiqiang)
      
        - Remove MSI_FLAG_MULTI_PCI_MSI since mobiveil hardware doesn't support
          Multiple MSI (Hou Zhiqiang)
      
        - Program outbound windows with base address from DT instead of assuming
          zero (Hou Zhiqiang)
      
        - Skip "safe" list traversal when it's unnecessary (Hou Zhiqiang)
      
        - Initialize WIN_NUM_0 explicitly for CFG outbound transactions (Hou
          Zhiqiang)
      
        - Use WIN_NUM_0 for MEM inbound transactions (Hou Zhiqiang)
      
        - Fix up mobiveil Class Code to PCI_CLASS_BRIDGE_PCI (Hou Zhiqiang)
      
        - Wait for link-up before enumerating devices, not while initializing
          host (Hou Zhiqiang)
      
        - Move IRQ chained handler setup out of DT code (Hou Zhiqiang)
      
        - Set primary/secondary/subordinate bus numbers (Hou Zhiqiang)
      
        - Fix "valid device" check to allow root bus device 0 to be
          multi-function (Hou Zhiqiang)
      
        - Make DT "gpio_slave" and "apb_csr" properties optional (Hou Zhiqiang)
      
        - Refactor MEM/IO outbound window initialization (Hou Zhiqiang)
      
        - Fix validity check for inbound/outbound window programming (Hou
          Zhiqiang)
      
        - Initialize and preserve window control bits (Hou Zhiqiang)
      
        - Fix 64-bit outbound window setup (both CPU and PCI addresses) (Hou
          Zhiqiang)
      
        - Move IO port setup to host init (Hou Zhiqiang)
      
        - Fix infinite loop in INTx ISR (Hou Zhiqiang)
      
        - Fix INTx interrupt clearing to avoid missed interrupts (Hou Zhiqiang)
      
      * remotes/lorenzo/pci/mobiveil:
        PCI: mobiveil: Fix INTx interrupt clearing in mobiveil_pcie_isr()
        PCI: mobiveil: Fix infinite-loop in the INTx handling function
        PCI: mobiveil: Move PCIe PIO enablement out of inbound window routine
        PCI: mobiveil: Add upper 32-bit PCI base address setup in inbound window
        PCI: mobiveil: Add upper 32-bit CPU base address setup in outbound window
        PCI: mobiveil: Mask out hardcoded bits in inbound/outbound windows setup
        PCI: mobiveil: Clear the control fields before updating it
        PCI: mobiveil: Add configured inbound windows counter
        PCI: mobiveil: Fix the valid check for inbound and outbound windows
        PCI: mobiveil: Clean-up program_{ib/ob}_windows()
        PCI: mobiveil: Remove an unnecessary return value check
        PCI: mobiveil: Fix error return values
        PCI: mobiveil: Refactor the MEM/IO outbound window initialization
        PCI: mobiveil: Make some register updates more readable
        PCI: mobiveil: Reformat the code for readability
        dt-bindings: PCI: mobiveil: Change gpio_slave and apb_csr to optional
        PCI: mobiveil: Fix devfn check in mobiveil_pcie_valid_device()
        PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers
        PCI: mobiveil: Move IRQ chained handler setup out of DT parse
        PCI: mobiveil: Move the link up waiting out of mobiveil_host_init()
        PCI: mobiveil: Fix the Class Code field
        PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions
        PCI: mobiveil: Use WIN_NUM_0 explicitly for CFG outbound window
        PCI: mobiveil: Update the resource list traversal function
        PCI: mobiveil: Fix PCI base address in MEM/IO outbound windows
        PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI
        PCI: mobiveil: Unify register accessors
      3d663fc0
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/hv' · caa98440
      Bjorn Helgaas authored
        - Fix Hyper-V use-after-free in eject path (Dexuan Cui)
      
      * remotes/lorenzo/pci/hv:
        PCI: hv: Fix a use-after-free bug in hv_eject_device_work()
      caa98440
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/dwc' · 6c90132f
      Bjorn Helgaas authored
        - Add dwc API support to de-initialize host (Vidya Sagar)
      
        - Clean up dwc DBI,ATU read and write APIs (Vidya Sagar)
      
        - Export dwc APIs to support .remove() so drivers can be modular (Vidya
          Sagar)
      
        - Simplify imx6 Kconfig dependencies (Leonard Crestez)
      
        - Fix dra7xx build error when !CONFIG_GPIOLIB (YueHaibing)
      
      * remotes/lorenzo/pci/dwc:
        PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB
        PCI: imx6: Simplify Kconfig depends on
        PCI: dwc: Export APIs to support .remove() implementation
        PCI: dwc: Cleanup DBI,ATU read and write APIs
        PCI: dwc: Add API support to de-initialize host
      6c90132f
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/armada' · 8e7bc41c
      Bjorn Helgaas authored
        - Add Armada8k PHYs support (Miquel Raynal)
      
      * remotes/lorenzo/pci/armada:
        PCI: armada8k: Add PHYs support
      8e7bc41c
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/altera' · b32fb024
      Bjorn Helgaas authored
        - Allow building Altera host bridge driver as a module (Ley Foon Tan)
      
        - Fix Altera Stratix 10 Type 1 to Type 0 config access conversion (Ley
          Foon Tan)
      
      * remotes/lorenzo/pci/altera:
        PCI: altera: Fix configuration type based on secondary number
        PCI: altera-msi: Allow building as module
        PCI: altera: Allow building as module
      b32fb024
    • Bjorn Helgaas's avatar
      Merge branch 'pci/virtualization' · 55ab3ecb
      Bjorn Helgaas authored
        - Fix problem with caching VF config space size (Alex Williamson)
      
      * pci/virtualization:
        PCI/IOV: Assume SR-IOV VFs support extended config space.
        Revert "PCI/IOV: Use VF0 cached config space size for other VFs"
      55ab3ecb
    • Bjorn Helgaas's avatar
      Merge branch 'pci/resource' · 8c6af6f0
      Bjorn Helgaas authored
        - Evaluate ACPI "PCI Boot Configuration"_DSM (Benjamin Herrenschmidt)
      
        - Don't auto-realloc if we're preserving firmware config (Benjamin
          Herrenschmidt)
      
        - Allow arm64 to reallocate resources if necessary (Benjamin
          Herrenschmidt)
      
        - Preserve firmware config on arm64 when desired (Benjamin Herrenschmidt)
      
        - Simplify resource distribution to hotplug bridges (Nicholas Johnson)
      
      * pci/resource:
        PCI: Skip resource distribution when no hotplug bridges
        PCI: Simplify pci_bus_distribute_available_resources()
        arm64: PCI: Preserve firmware configuration when desired
        arm64: PCI: Allow resource reallocation if necessary
        PCI: Don't auto-realloc if we're preserving firmware config
        PCI/ACPI: Evaluate PCI Boot Configuration _DSM
      8c6af6f0
    • Bjorn Helgaas's avatar
      Merge branch 'pci/peer-to-peer' · 3306e99e
      Bjorn Helgaas authored
        - Prevent drivers that use dma_virt_ops from using peer-to-peer DMA
          (Logan Gunthorpe)
      
      * pci/peer-to-peer:
        PCI/P2PDMA: Fix missing check for dma_virt_ops
      3306e99e
    • Bjorn Helgaas's avatar
      Merge branch 'pci/misc' · e0997728
      Bjorn Helgaas authored
        - Generalize multi-function power dependency device links (Abhishek Sahu)
      
        - Add NVIDIA GPU multi-function power dependencies (Abhishek Sahu)
      
        - Optimize /proc/bus/pci/devices by using seq_puts() instead of
          seq_printf() (Markus Elfring)
      
        - Enable NVIDIA HDA controllers if BIOS didn't (Lukas Wunner)
      
      * pci/misc:
        PCI: Enable NVIDIA HDA controllers
        PCI: Use seq_puts() instead of seq_printf() in show_device()
        PCI: Add NVIDIA GPU multi-function power dependencies
        PCI: Generalize multi-function power dependency device links
      e0997728
    • Bjorn Helgaas's avatar
      Merge branch 'pci/enumeration' · 8cf80c5c
      Bjorn Helgaas authored
        - If user prevents VF probing, return error instead of pretending a
          driver has claimed the VF (Alex Williamson)
      
        - Always allow probing with driver_override (Alex Williamson)
      
        - Decode PCIe 32 GT/s link speed (Gustavo Pimentel)
      
        - Ignore lockdep for sysfs remove to avoid lockdep false positive (Marek
          Vasut)
      
      * pci/enumeration:
        PCI: sysfs: Ignore lockdep for remove attribute
        PCI: Decode PCIe 32 GT/s link speed
        PCI: Always allow probing with driver_override
        PCI: Return error if cannot probe VF
      8cf80c5c
    • Bjorn Helgaas's avatar
      Merge branch 'pci/docs' · b6a001c0
      Bjorn Helgaas authored
        - Convert docs to reST (Changbin Du)
      
        - Convert PM docs to reST (Mauro Carvalho Chehab)
      
      * pci/docs:
        docs: power: convert docs to ReST and rename to *.rst
        Documentation: PCI: convert endpoint/pci-test-howto.txt to reST
        Documentation: PCI: convert endpoint/pci-test-function.txt to reST
        Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST
        Documentation: PCI: convert endpoint/pci-endpoint.txt to reST
        Documentation: PCI: convert pcieaer-howto.txt to reST
        Documentation: PCI: convert pci-error-recovery.txt to reST
        Documentation: PCI: convert acpi-info.txt to reST
        Documentation: PCI: convert MSI-HOWTO.txt to reST
        Documentation: PCI: convert pci-iov-howto.txt to reST
        Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST
        Documentation: PCI: convert pci.txt to reST
        Documentation: add Linux PCI to Sphinx TOC tree
      b6a001c0
  2. 11 Jul, 2019 1 commit
    • Lukas Wunner's avatar
      PCI: Enable NVIDIA HDA controllers · b516ea58
      Lukas Wunner authored
      Many NVIDIA GPUs can be configured as either a single-function video device
      or a multi-function device with video at function 0 and an HDA audio
      controller at function 1.  The HDA controller can be enabled or disabled by
      a bit in the function 0 config space.
      
      Some BIOSes leave the HDA disabled, which means the HDMI connector from the
      NVIDIA GPU may not work.  Sometimes the BIOS enables the HDA if an HDMI
      cable is connected at boot time, but that doesn't handle hotplug cases.
      
      Enable the HDA controller on device enumeration and resume and re-read the
      header type, which tells us whether the GPU is a multi-function device.
      
      This quirk is limited to NVIDIA PCI devices with the VGA Controller device
      class.  This is expected to correspond to product configurations where the
      NVIDIA GPU has connectors attached.  Other products where the device class
      is 3D Controller are expected to correspond to configurations where the
      NVIDIA GPU is dedicated (dGPU) and has no connectors.  See original post
      (URL below) for more details.
      
      This commit takes inspiration from an earlier patch by Daniel Drake.
      
      Link: https://lore.kernel.org/r/20190708051744.24039-1-drake@endlessm.com v2
      Link: https://lore.kernel.org/r/20190613063514.15317-1-drake@endlessm.com v1
      Link: https://devtalk.nvidia.com/default/topic/1024022
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75985Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarDaniel Drake <drake@endlessm.com>
      [bhelgaas: commit log, log message, return early if already enabled]
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      Cc: Aaron Plattner <aplattner@nvidia.com>
      Cc: Peter Wu <peter@lekensteyn.nl>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: Karol Herbst <kherbst@redhat.com>
      Cc: Maik Freudenberg <hhfeuer@gmx.de>
      b516ea58
  3. 09 Jul, 2019 1 commit
    • YueHaibing's avatar
      PCI: dwc: pci-dra7xx: Fix compilation when !CONFIG_GPIOLIB · 381ed79c
      YueHaibing authored
      If CONFIG_GPIOLIB is not selected the compilation results in the
      following build errors:
      
      drivers/pci/controller/dwc/pci-dra7xx.c:
       In function dra7xx_pcie_probe:
      drivers/pci/controller/dwc/pci-dra7xx.c:777:10:
       error: implicit declaration of function devm_gpiod_get_optional;
       did you mean devm_regulator_get_optional? [-Werror=implicit-function-declaration]
      
        reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH);
      
      drivers/pci/controller/dwc/pci-dra7xx.c:778:45: error: ‘GPIOD_OUT_HIGH’
      undeclared (first use in this function); did you mean ‘GPIOF_INIT_HIGH’?
        reset = devm_gpiod_get_optional(dev, NULL, GPIOD_OUT_HIGH);
                                                   ^~~~~~~~~~~~~~
                                                   GPIOF_INIT_HIGH
      
      Fix them by including the appropriate header file.
      Reported-by: default avatarHulk Robot <hulkci@huawei.com>
      Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
      [lorenzo.pieralisi@arm.com: commit log]
      Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
      Acked-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
      381ed79c
  4. 08 Jul, 2019 25 commits