Skip to content
  1. Oct 21, 2018
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/tools' · 663569db
      Bjorn Helgaas authored
        - Convert pcitest build process to that used by other tools (iio, perf,
          etc) (Gustavo Pimentel)
      
      * remotes/lorenzo/pci/tools:
        tools: PCI: Change pcitest compiling process
        tools: PCI: Fix compilation warnings
      663569db
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/vmd' · 7e4e9589
      Bjorn Helgaas authored
        - Detach VMD resources after stopping root bus to prevent orphan
          resources (Jon Derrick)
      
      * remotes/lorenzo/pci/vmd:
        PCI: vmd: Detach resources after stopping root bus
      7e4e9589
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/mediatek' · 4dd4d996
      Bjorn Helgaas authored
        - Fix Mediatek unchecked return value from devm_pci_remap_iospace()
          (Gustavo A. R. Silva)
      
        - Fix Mediatek endpoint/port matching logic (Honghui Zhang)
      
        - Change Mediatek Root Port Class Code to PCI_CLASS_BRIDGE_PCI (Honghui
          Zhang)
      
        - Remove redundant Mediatek PM domain check (Honghui Zhang)
      
        - Convert Mediatek to pci_host_probe() (Honghui Zhang)
      
        - Fix Mediatek MSI enablement (Honghui Zhang)
      
        - Add Mediatek system PM support for MT2712 and MT7622 (Honghui Zhang)
      
        - Add Mediatek loadable module support (Honghui Zhang)
      
      * remotes/lorenzo/pci/mediatek:
        PCI: mediatek: Add loadable kernel module support
        PCI: mediatek: Add system PM support for MT2712 and MT7622
        PCI: mediatek: Fixup MSI enablement logic by enabling MSI before clocks
        PCI: mediatek: Convert to use pci_host_probe()
        PCI: mediatek: Remove the redundant dev->pm_domain check
        PCI: mediatek: Fix class type for MT7622 to PCI_CLASS_BRIDGE_PCI
        PCI: mediatek: Fix mtk_pcie_find_port() endpoint/port matching logic
        PCI: mediatek: Fix unchecked return value
      4dd4d996
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/keystone' · fc23af0c
      Bjorn Helgaas authored
        - Quirk Keystone K2G to limit MRRS to 256 (Kishon Vijay Abraham I)
      
        - Update Keystone to use MRRS quirk for host bridge instead of open
          coding (Kishon Vijay Abraham I)
      
        - Refactor Keystone link establishment (Kishon Vijay Abraham I)
      
        - Simplify and speed up Keystone link training (Kishon Vijay Abraham I)
      
        - Remove unused Keystone host_init argument (Kishon Vijay Abraham I)
      
        - Merge Keystone driver files into one (Kishon Vijay Abraham I)
      
        - Remove redundant Keystone platform_set_drvdata() (Kishon Vijay Abraham
          I)
      
        - Rename Keystone functions for uniformity (Kishon Vijay Abraham I)
      
        - Add Keystone device control module DT binding (Kishon Vijay Abraham I)
      
        - Use SYSCON API to get Keystone control module device IDs (Kishon Vijay
          Abraham I)
      
        - Clean up Keystone PHY handling (Kishon Vijay Abraham I)
      
        - Use runtime PM APIs to enable Keystone clock (Kishon Vijay Abraham I)
      
        - Clean up Keystone config space access checks (Kishon Vijay Abraham I)
      
        - Get Keystone outbound window count from DT (Kishon Vijay Abraham I)
      
        - Clean up Keystone outbound window configuration (Kishon Vijay Abraham
          I)
      
        - Clean up Keystone DBI setup (Kishon Vijay Abraham I)
      
        - Clean up Keystone ks_pcie_link_up() (Kishon Vijay Abraham I)
      
        - Fix Keystone IRQ status checking (Kishon Vijay Abraham I)
      
        - Add debug messages for all Keystone errors (Kishon Vijay Abraham I)
      
        - Clean up Keystone includes and macros (Kishon Vijay Abraham I)
      
      * remotes/lorenzo/pci/keystone:
        PCI: keystone: Cleanup macros defined in pci-keystone.c
        PCI: keystone: Reorder header file in alphabetical order
        PCI: keystone: Add debug error message for all errors
        PCI: keystone: Use ERR_IRQ_STATUS instead of ERR_IRQ_STATUS_RAW to get interrupt status
        PCI: keystone: Cleanup ks_pcie_link_up()
        PCI: keystone: Cleanup set_dbi_mode() and get_dbi_mode()
        PCI: keystone: Cleanup outbound window configuration
        PCI: keystone: Get number of outbound windows from DT
        PCI: keystone: Cleanup configuration space access
        PCI: keystone: Invoke runtime PM APIs to enable clock
        PCI: keystone: Cleanup PHY handling
        PCI: keystone: Use SYSCON APIs to get device ID from control module
        dt-bindings: PCI: keystone: Add bindings to get device control module
        PCI: keystone: Use uniform function naming convention
        PCI: keystone: Remove redundant platform_set_drvdata() invocation
        PCI: keystone: Merge pci-keystone-dw.c and pci-keystone.c
        PCI: keystone: Remove unused argument from ks_dw_pcie_host_init()
        PCI: keystone: Do not initiate link training multiple times
        PCI: keystone: Move dw_pcie_setup_rc() out of ks_pcie_establish_link()
        PCI: keystone: Use quirk to set MRRS for PCI host bridge
        PCI: keystone: Use quirk to limit MRRS for K2G
      fc23af0c
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/iproc' · deab1f26
      Bjorn Helgaas authored
        - Remove iproc PAXC slot check to allow VF support (Jitendra Bhivare)
      
      * remotes/lorenzo/pci/iproc:
        PCI: iproc: Remove PAXC slot check to allow VF support
      deab1f26
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/dwc' · 525fde07
      Bjorn Helgaas authored
        - Support 100MHz/200MHz refclocks for i.MX6 (Lucas Stach)
      
        - Add initial power management for i.MX7 (Leonard Crestez)
      
        - Add PME_Turn_Off support for i.MX7 (Leonard Crestez)
      
        - Fix qcom runtime power management error handling (Bjorn Andersson)
      
        - Update TI dra7xx unaligned access errata workaround for host mode as
          well as endpoint mode (Vignesh R)
      
        - Fix kirin section mismatch warning (Nathan Chancellor)
      
      * remotes/lorenzo/pci/dwc:
        PCI: imx: Add PME_Turn_Off support
        ARM: dts: imx7d: Add turnoff reset
        dt-bindings: imx6q-pcie: Add turnoff reset for imx7d
        reset: imx7: Add PCIE_CTRL_APPS_TURNOFF
        PCI: kirin: Fix section mismatch warning
        PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode
        dt-bindings: PCI: dra7xx: Add bindings for unaligned access in host mode
        PCI: qcom: Fix error handling in runtime PM support
        PCI: imx: Initial imx7d pm support
        PCI: imx6: Support MPLL reconfiguration for 100MHz and 200MHz refclock
      525fde07
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/controller-misc' · b7c18dc0
      Bjorn Helgaas authored
        - Remove redundant controller tests for "device_type == pci" (Rob
          Herring)
      
        - Document R-Car E3 (R8A77990) bindings (Tho Vu)
      
        - Add device tree support for R-Car r8a7744 (Biju Das)
      
        - Drop unused mvebu PCIe capability code (Thomas Petazzoni)
      
        - Add shared PCI bridge emulation code (Thomas Petazzoni)
      
        - Convert mvebu to use shared PCI bridge emulation (Thomas Petazzoni)
      
        - Add aardvark Root Port emulation (Thomas Petazzoni)
      
      * remotes/lorenzo/pci/controller-misc:
        PCI: aardvark: Implement emulated root PCI bridge config space
        PCI: mvebu: Convert to PCI emulated bridge config space
        PCI: mvebu: Drop unused PCI express capability code
        PCI: Introduce PCI bridge emulated config space common logic
        dt-bindings: PCI: rcar: Add device tree support for r8a7744
        dt-bindings: PCI: rcar: Add device tree support for r8a7744
        DT: pci: rcar-pci: document R8A77990 bindings
        PCI: Remove unnecessary check of device_type == pci
      b7c18dc0
    • Bjorn Helgaas's avatar
      Merge branch 'remotes/lorenzo/pci/cadence' · 61ce5809
      Bjorn Helgaas authored
        - Fix Cadence PHY handling during probe (Alan Douglas)
      
        - Signal Cadence Endpoint interrupts via AXI region 0 instead of last
          region (Alan Douglas)
      
        - Write Cadence Endpoint MSI interrupts with 32 bits of data (Alan
          Douglas)
      
      * remotes/lorenzo/pci/cadence:
        PCI: cadence: Write MSI data with 32bits
        PCI: cadence: Use AXI region 0 to signal interrupts from EP
        PCI: cadence: Correct probe behaviour when failing to get PHY
      61ce5809
    • Bjorn Helgaas's avatar
      Merge branch 'pci/host-vmd' · 6aa0459e
      Bjorn Helgaas authored
        - Fix VMD AERSID quirk Device ID matching (Jon Derrick)
      
      * pci/host-vmd:
        x86/PCI: Apply VMD's AERSID fixup generically
      6aa0459e
    • Bjorn Helgaas's avatar
      Merge branch 'pci/virtualization' · eff81b6f
      Bjorn Helgaas authored
        - Cache VF config space size to optimize enumeration of many VFs
          (KarimAllah Ahmed)
      
        - Remove unnecessary <linux/pci-ats.h> include (Bjorn Helgaas)
      
      * pci/virtualization:
        PCI/IOV: Remove unnecessary include of <linux/pci-ats.h>
        PCI/IOV: Use VF0 cached config space size for other VFs
      eff81b6f
    • Bjorn Helgaas's avatar
      Merge branch 'pci/peer-to-peer' · 17347154
      Bjorn Helgaas authored
        - Add PCI support for peer-to-peer DMA (Logan Gunthorpe)
      
        - Add sysfs group for PCI peer-to-peer memory statistics (Logan
          Gunthorpe)
      
        - Add PCI peer-to-peer DMA scatterlist mapping interface (Logan
          Gunthorpe)
      
        - Add PCI configfs/sysfs helpers for use by peer-to-peer users (Logan
          Gunthorpe)
      
        - Add PCI peer-to-peer DMA driver writer's documentation (Logan
          Gunthorpe)
      
        - Add block layer flag to indicate driver support for PCI peer-to-peer
          DMA (Logan Gunthorpe)
      
        - Map Infiniband scatterlists for peer-to-peer DMA if they contain P2P
          memory (Logan Gunthorpe)
      
        - Register nvme-pci CMB buffer as PCI peer-to-peer memory (Logan
          Gunthorpe)
      
        - Add nvme-pci support for PCI peer-to-peer memory in requests (Logan
          Gunthorpe)
      
        - Use PCI peer-to-peer memory in nvme (Stephen Bates, Steve Wise,
          Christoph Hellwig, Logan Gunthorpe)
      
      * pci/peer-to-peer:
        nvmet: Optionally use PCI P2P memory
        nvmet: Introduce helper functions to allocate and free request SGLs
        nvme-pci: Add support for P2P memory in requests
        nvme-pci: Use PCI p2pmem subsystem to manage the CMB
        IB/core: Ensure we map P2P memory correctly in rdma_rw_ctx_[init|destroy]()
        block: Add PCI P2P flag for request queue
        PCI/P2PDMA: Add P2P DMA driver writer's documentation
        docs-rst: Add a new directory for PCI documentation
        PCI/P2PDMA: Introduce configfs/sysfs enable attribute helpers
        PCI/P2PDMA: Add PCI p2pmem DMA mappings to adjust the bus offset
        PCI/P2PDMA: Add sysfs group to display p2pmem stats
        PCI/P2PDMA: Support peer-to-peer memory
      17347154
    • Bjorn Helgaas's avatar
      Merge branch 'pci/msi' · 0af61663
      Bjorn Helgaas authored
        - Avoid panic when drivers enable MSI/MSI-X twice (Tonghao Zhang)
      
      * pci/msi:
        PCI/MSI: Warn and return error if driver enables MSI/MSI-X twice
      0af61663
    • Bjorn Helgaas's avatar
      Merge branch 'pci/misc' · ee8360fd
      Bjorn Helgaas authored
        - Remove unused Netronome NFP32xx Device IDs (Jakub Kicinski)
      
        - Use bitmap_zalloc() for dma_alias_mask (Andy Shevchenko)
      
        - Add switch fall-through annotations (Gustavo A. R. Silva)
      
        - Remove unused Switchtec quirk variable (Joshua Abraham)
      
        - Fix pci.c kernel-doc warning (Randy Dunlap)
      
        - Remove trivial PCI wrappers for DMA APIs (Christoph Hellwig)
      
        - Add Intel GPU device IDs to spurious interrupt quirk (Bin Meng)
      
        - Run Switchtec DMA aliasing quirk only on NTB endpoints to avoid useless
          dmesg errors (Logan Gunthorpe)
      
        - Update Switchtec NTB documentation (Wesley Yung)
      
        - Remove redundant "default n" from Kconfig (Bartlomiej Zolnierkiewicz)
      
      * pci/misc:
        PCI: pcie: Remove redundant 'default n' from Kconfig
        NTB: switchtec_ntb: Update switchtec documentation with prerequisites for NTB
        PCI: Fix Switchtec DMA aliasing quirk dmesg noise
        PCI: Add macro for Switchtec quirk declarations
        PCI: Add Device IDs for Intel GPU "spurious interrupt" quirk
        PCI: Remove pci_set_dma_max_seg_size()
        PCI: Remove pci_set_dma_seg_boundary()
        PCI: Remove pci_unmap_addr() wrappers for DMA API
        PCI / ACPI: Mark expected switch fall-through
        PCI: Remove set but unused variable
        PCI: Fix pci.c kernel-doc parameter warning
        PCI: Allocate dma_alias_mask with bitmap_zalloc()
        PCI: Remove unused NFP32xx IDs
      ee8360fd
    • Bjorn Helgaas's avatar
      Merge branch 'pci/hotplug' · 20634dc3
      Bjorn Helgaas authored
        - Differentiate between pciehp surprise and safe removal (Lukas Wunner)
      
        - Remove unnecessary pciehp includes (Lukas Wunner)
      
        - Drop pciehp hotplug_slot_ops wrappers (Lukas Wunner)
      
        - Tolerate PCIe Slot Presence Detect being hardwired to zero to
          workaround broken hardware, e.g., the Wilocity switch/wireless device
          (Lukas Wunner)
      
        - Unify pciehp controller & slot structs (Lukas Wunner)
      
        - Constify hotplug_slot_ops (Lukas Wunner)
      
        - Drop hotplug_slot_info (Lukas Wunner)
      
        - Embed hotplug_slot struct into users instead of allocating it
          separately (Lukas Wunner)
      
        - Initialize PCIe port service drivers directly instead of relying on
          initcall ordering (Keith Busch)
      
        - Restore PCI config state after a slot reset (Keith Busch)
      
        - Save/restore DPC config state along with other PCI config state (Keith
          Busch)
      
        - Reference count devices during AER handling to avoid race issue with
          concurrent hot removal (Keith Busch)
      
        - If an Upstream Port reports ERR_FATAL, don't try to read the Port's
          config space because it is probably unreachable (Keith Busch)
      
        - During error handling, use slot-specific reset instead of secondary
          bus reset to avoid link up/down issues on hotplug ports (Keith Busch)
      
        - Restore previous AER/DPC handling that does not remove and re-enumerate
          devices on ERR_FATAL (Keith Busch)
      
        - Notify all drivers that may be affected by error recovery resets (Keith
          Busch)
      
        - Always generate error recovery uevents, even if a driver doesn't have
          error callbacks (Keith Busch)
      
        - Make PCIe link active reporting detection generic (Keith Busch)
      
        - Support D3cold in PCIe hierarchies during system sleep and runtime,
          including hotplug and Thunderbolt ports (Mika Westerberg)
      
        - Handle hpmemsize/hpiosize kernel parameters uniformly, whether slots
          are empty or occupied (Jon Derrick)
      
        - Remove duplicated include from pci/pcie/err.c and unused variable from
          cpqphp (YueHaibing)
      
        - Remove driver pci_cleanup_aer_uncorrect_error_status() calls (Oza
          Pawandeep)
      
        - Uninline PCI bus accessors for better ftracing (Keith Busch)
      
        - Remove unused AER Root Port .error_resume method (Keith Busch)
      
        - Use kfifo in AER instead of a local version (Keith Busch)
      
        - Use threaded IRQ in AER bottom half (Keith Busch)
      
        - Use managed resources in AER core (Keith Busch)
      
        - Reuse pcie_port_find_device() for AER injection (Keith Busch)
      
        - Abstract AER interrupt handling to disconnect error injection (Keith
          Busch)
      
        - Refactor AER injection callbacks to simplify future improvments (Keith
          Busch)
      
      * pci/hotplug:
        PCI/AER: Refactor error injection fallbacks
        PCI/AER: Abstract AER interrupt handling
        PCI/AER: Reuse existing pcie_port_find_device() interface
        PCI/AER: Use managed resource allocations
        PCI/AER: Use threaded IRQ for bottom half
        PCI/AER: Use kfifo_in_spinlocked() to insert locked elements
        PCI/AER: Use kfifo for tracking events instead of reimplementing it
        PCI/AER: Remove error source from AER struct aer_rpc
        PCI/AER: Remove unused aer_error_resume()
        PCI: Uninline PCI bus accessors for better ftracing
        PCI/AER: Remove pci_cleanup_aer_uncorrect_error_status() calls
        PCI: pnv_php: Use kmemdup()
        PCI: cpqphp: Remove set but not used variable 'physical_slot'
        PCI/ERR: Remove duplicated include from err.c
        PCI: Equalize hotplug memory and io for occupied and empty slots
        PCI / ACPI: Whitelist D3 for more PCIe hotplug ports
        ACPI / property: Allow multiple property compatible _DSD entries
        PCI/PME: Implement runtime PM callbacks
        PCI: pciehp: Implement runtime PM callbacks
        PCI/portdrv: Add runtime PM hooks for port service drivers
        PCI/portdrv: Resume upon exit from system suspend if left runtime suspended
        PCI: pciehp: Do not handle events if interrupts are masked
        PCI: pciehp: Disable hotplug interrupt during suspend
        PCI / ACPI: Enable wake automatically for power managed bridges
        PCI: Do not skip power-managed bridges in pci_enable_wake()
        PCI: Make link active reporting detection generic
        PCI: Unify device inaccessible
        PCI/ERR: Always report current recovery status for udev
        PCI/ERR: Simplify broadcast callouts
        PCI/ERR: Run error recovery callbacks for all affected devices
        PCI/ERR: Handle fatal error recovery
        PCI/ERR: Use slot reset if available
        PCI/AER: Don't read upstream ports below fatal errors
        PCI/AER: Take reference on error devices
        PCI/DPC: Save and restore config state
        PCI: portdrv: Restore PCI config state on slot reset
        PCI: portdrv: Initialize service drivers directly
        PCI: hotplug: Document TODOs
        PCI: hotplug: Embed hotplug_slot
        PCI: hotplug: Drop hotplug_slot_info
        PCI: hotplug: Constify hotplug_slot_ops
        PCI: pciehp: Reshuffle controller struct for clarity
        PCI: pciehp: Rename controller struct members for clarity
        PCI: pciehp: Unify controller and slot structs
        PCI: pciehp: Tolerate Presence Detect hardwired to zero
        PCI: pciehp: Drop hotplug_slot_ops wrappers
        PCI: pciehp: Drop unnecessary includes
        PCI: pciehp: Differentiate between surprise and safe removal
        PCI: Simplify disconnected marking
      20634dc3
    • Bjorn Helgaas's avatar
      Merge branch 'pci/enumeration' · de468b75
      Bjorn Helgaas authored
        - Remove x86 and arm64 node-local allocation for host bridge structures
          (Punit Agrawal)
      
        - Pay attention to device-specific _PXM node values (Jonathan Cameron)
      
        - Support new Immediate Readiness bit (Felipe Balbi)
      
      * pci/enumeration:
        PCI: Add support for Immediate Readiness
        ACPI/PCI: Pay attention to device-specific _PXM node values
        x86/PCI: Remove node-local allocation when initialising host controller
        arm64: PCI: Remove node-local allocations when initialising host controller
      de468b75
    • Bjorn Helgaas's avatar
      Merge branch 'pci/aspm' · b1801bf0
      Bjorn Helgaas authored
        - Fix ASPM link_state teardown on removal (Lukas Wunner)
      
        - Fix misleading _OSC ASPM message (Sinan Kaya)
      
        - Make _OSC optional for PCI (Sinan Kaya)
      
        - Don't initialize ASPM link state when ACPI_FADT_NO_ASPM is set (Patrick
          Talbert)
      
      * pci/aspm:
        PCI/ASPM: Do not initialize link state when aspm_disabled is set
        PCI/ACPI: Allow _OSC presence to be optional for PCI
        PCI/ACPI: Correct error message for ASPM disabling
        PCI/ASPM: Fix link_state teardown on device removal
      b1801bf0
  2. Oct 19, 2018
  3. Oct 18, 2018
  4. Oct 17, 2018