projects/linux·commit 3719a04a

Merge tag 'pci-v6.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci

3719a04a · Linus Torvalds <[email protected]> · 2025-06-04 11:26:17 -07:00

Pull pci updates from Bjorn Helgaas:
 "Enumeration:

   - Print the actual delay time in pci_bridge_wait_for_secondary_bus()
     instead of assuming it was 1000ms (Wilfred Mallawa)

   - Revert 'iommu/amd: Prevent binding other PCI drivers to IOMMU PCI
     devices', which broke resume from system sleep on AMD platforms and
     has been fixed by other commits (Lukas Wunner)

  Resource management:

   - Remove mtip32xx use of pcim_iounmap_regions(), which is deprecated
     and unnecessary (Philipp Stanner)

   - Remove pcim_iounmap_regions() and pcim_request_region_exclusive()
     and related flags since all uses have been removed (Philipp
     Stanner)

   - Rework devres 'request' functions so they are no longer 'hybrid',
     i.e., their behavior no longer depends on whether
     pcim_enable_device or pci_enable_device() was used, and remove
     related code (Philipp Stanner)

   - Warn (not BUG()) about failure to assign optional resources (Ilpo
     Järvinen)

  Error handling:

   - Log the DPC Error Source ID only when it's actually valid (when
     ERR_FATAL or ERR_NONFATAL was received from a downstream device)
     and decode into bus/device/function (Bjorn Helgaas)

   - Determine AER log level once and save it so all related messages
     use the same level (Karolina Stolarek)

   - Use KERN_WARNING, not KERN_ERR, when logging PCIe Correctable
     Errors (Karolina Stolarek)

   - Ratelimit PCIe Correctable and Non-Fatal error logging, with sysfs
     controls on interval and burst count, to avoid flooding logs and
     RCU stall warnings (Jon Pan-Doh)

  Power management:

   - Increment PM usage counter when probing reset methods so we don't
     try to read config space of a powered-off device (Alex Williamson)

   - Set all devices to D0 during enumeration to ensure ACPI opregion is
     connected via _REG (Mario Limonciello)

  Power control:

   - Rename pwrctrl Kconfig symbols from 'PWRCTL' to 'PWRCTRL' to match
     the filename paths. Retain old deprecated symbols for
     compatibility, except for the pwrctrl slot driver
     (PCI_PWRCTRL_SLOT) (Johan Hovold)

   - When unregistering pwrctrl, cancel outstanding rescan work before
     cleaning up data structures to avoid use-after-free issues (Brian
     Norris)

  Bandwidth control:

   - Simplify link bandwidth controller by replacing the count of Link
     Bandwidth Management Status (LBMS) events with a PCI_LINK_LBMS_SEEN
     flag (Ilpo Järvinen)

   - Update the Link Speed after retraining, since the Link Speed may
     have changed (Ilpo Järvinen)

  PCIe native device hotplug:

   - Ignore Presence Detect Changed caused by DPC.

     pciehp already ignores Link Down/Up events caused by DPC, but on
     slots using in-band presence detect, DPC causes a spurious Presence
     Detect Changed event (Lukas Wunner)

   - Ignore Link Down/Up caused by Secondary Bus Reset.

     On hotplug ports using in-band presence detect, the reset causes a
     Presence Detect Changed event, which mistakenly caused teardown and
     re-enumeration of the device. Drivers may need to annotate code
     that resets their device (Lukas Wunner)

  Virtualization:

   - Add an ACS quirk for Loongson Root Ports that don't advertise ACS
     but don't allow peer-to-peer transactions between Root Ports; the
     quirk allows each Root Port to be in a separate IOMMU group (Huacai
     Chen)

  Endpoint framework:

   - For fixed-size BARs, retain both the actual size and the possibly
     larger size allocated to accommodate iATU alignment requirements
     (Jerome Brunet)

   - Simplify ctrl/SPAD space allocation and avoid allocating more space
     than needed (Jerome Brunet)

   - Correct MSI-X PBA offset calculations for DesignWare and Cadence
     endpoint controllers (Niklas Cassel)

   - Align the return value (number of interrupts) encoding for
     pci_epc_get_msi()/pci_epc_ops::get_msi() and
     pci_epc_get_msix()/pci_epc_ops::get_msix() (Niklas Cassel)

   - Align the nr_irqs parameter encoding for
     pci_epc_set_msi()/pci_epc_ops::set_msi() and
     pci_epc_set_msix()/pci_epc_ops::set_msix() (Niklas Cassel)

  Common host controller library:

   - Convert pci-host-common to a library so platforms that don't need
     native host controller drivers don't need to include these helper
     functions (Manivannan Sadhasivam)

  Apple PCIe controller driver:

   - Extract ECAM bridge creation helper from pci_host_common_probe() to
     separate driver-specific things like MSI from PCI things (Marc
     Zyngier)

   - Dynamically allocate RID-to_SID bitmap to prepare for SoCs with
     varying capabilities (Marc Zyngier)

   - Skip ports disabled in DT when setting up ports (Janne Grunau)

   - Add t6020 compatible string (Alyssa Rosenzweig)

   - Add T602x PCIe support (Hector Martin)

   - Directly set/clear INTx mask bits because T602x dropped the
     accessors that could do this without locking (Marc Zyngier)

   - Move port PHY registers to their own reg items to accommodate
     T602x, which moves them around; retain default offsets for existing
     DTs that lack phy%d entries with the reg offsets (Hector Martin)

   - Stop polling for core refclk, which doesn't work on T602x and the
     bootloader has already done anyway (Hector Martin)

   - Use gpiod_set_value_cansleep() when asserting PERST# in probe
     because we're allowed to sleep there (Hector Martin)

  Cadence PCIe controller driver:

   - Drop a runtime PM 'put' to resolve a runtime atomic count underflow
     (Hans Zhang)

   - Make the cadence core buildable as a module (Kishon Vijay Abraham I)

   - Add cdns_pcie_host_disable() and cdns_pcie_ep_disable() for use by
     loadable drivers when they are removed (Siddharth Vadapalli)

  Freescale i.MX6 PCIe controller driver:

   - Apply link training workaround only on IMX6Q, IMX6SX, IMX6SP
     (Richard Zhu)

   - Remove redundant dw_pcie_wait_for_link() from
     imx_pcie_start_link(); since the DWC core does this, imx6 only
     needs it when retraining for a faster link speed (Richard Zhu)

   - Toggle i.MX95 core reset to align with PHY powerup (Richard Zhu)

   - Set SYS_AUX_PWR_DET to work around i.MX95 ERR051624 erratum: in
     some cases, the controller can't exit 'L23 Ready' through Beacon or
     PERST# deassertion (Richard Zhu)

   - Clear GEN3_ZRXDC_NONCOMPL to work around i.MX95 ERR051586 erratum:
     controller can't meet 2.5 GT/s ZRX-DC timing when operating at 8
     GT/s, causing timeouts in L1 (Richard Zhu)

   - Wait for i.MX95 PLL lock before enabling controller (Richard Zhu)

   - Save/restore i.MX95 LUT for suspend/resume (Richard Zhu)

  Mobiveil PCIe controller driver:

   - Return bool (not int) for link-up check in
     mobiveil_pab_ops.link_up() and layerscape-gen4, mobiveil (Hans
     Zhang)

  NVIDIA Tegra194 PCIe controller driver:

   - Create debugfs directory for 'aspm_state_cnt' only when
     CONFIG_PCIEASPM is enabled, since there are no other entries (Hans
     Zhang)

  Qualcomm PCIe controller driver:

   - Add OF support for parsing DT 'eq-presets-<N>gts' property for lane
     equalization presets (Krishna Chaitanya Chundru)

   - Read Maximum Link Width from the Link Capabilities register if DT
     lacks 'num-lanes' property (Krishna Chaitanya Chundru)

   - Add Physical Layer 64 GT/s Capability ID and register offsets for
     8, 32, and 64 GT/s lane equalization registers (Krishna Chaitanya
     Chundru)

   - Add generic dwc support for configuring lane equalization presets
     (Krishna Chaitanya Chundru)

   - Add DT and driver support for PCIe on IPQ5018 SoC (Nitheesh Sekar)

  Renesas R-Car PCIe controller driver:

   - Describe endpoint BAR 4 as being fixed size (Jerome Brunet)

   - Document how to obtain R-Car V4H (r8a779g0) controller firmware
     (Yoshihiro Shimoda)

  Rockchip PCIe controller driver:

   - Reorder rockchip_pci_core_rsts because
     reset_control_bulk_deassert() deasserts in reverse order, to fix a
     link training regression (Jensen Huang)

   - Mark RK3399 as being capable of raising INTx interrupts (Niklas
     Cassel)

  Rockchip DesignWare PCIe controller driver:

   - Check only PCIE_LINKUP, not LTSSM status, to determine whether the
     link is up (Shawn Lin)

   - Increase N_FTS (used in L0s->L0 transitions) and enable ASPM L0s
     for Root Complex and Endpoint modes (Shawn Lin)

   - Hide the broken ATS Capability in rockchip_pcie_ep_init() instead
     of rockchip_pcie_ep_pre_init() so it stays hidden after PERST#
     resets non-sticky registers (Shawn Lin)

   - Call phy_power_off() before phy_exit() in rockchip_pcie_phy_deinit()
     (Diederik de Haas)

  Synopsys DesignWare PCIe controller driver:

   - Set PORT_LOGIC_LINK_WIDTH to one lane to make initial link training
     more robust; this will not affect the intended link width if all
     lanes are functional (Wenbin Yao)

   - Return bool (not int) for link-up check in dw_pcie_ops.link_up()
     and armada8k, dra7xx, dw-rockchip, exynos, histb, keembay,
     keystone, kirin, meson, qcom, qcom-ep, rcar_gen4, spear13xx,
     tegra194, uniphier, visconti (Hans Zhang)

   - Add debugfs support for exposing DWC device-specific PTM context
     (Manivannan Sadhasivam)

  TI J721E PCIe driver:

   - Make j721e buildable as a loadable and removable module (Siddharth
     Vadapalli)

   - Fix j721e host/endpoint dependencies that result in link failures
     in some configs (Arnd Bergmann)

  Device tree bindings:

   - Add qcom DT binding for 'global' interrupt (PCIe controller and
     link-specific events) for ipq8074, ipq8074-gen3, ipq6018, sa8775p,
     sc7280, sc8180x sdm845, sm8150, sm8250, sm8350 (Manivannan
     Sadhasivam)

   - Add qcom DT binding for 8 MSI SPI interrupts for msm8998, ipq8074,
     ipq8074-gen3, ipq6018 (Manivannan Sadhasivam)

   - Add dw rockchip DT binding for rk3576 and rk3562 (Kever Yang)

   - Correct indentation and style of examples in brcm,stb-pcie,
     cdns,cdns-pcie-ep, intel,keembay-pcie-ep, intel,keembay-pcie,
     microchip,pcie-host, rcar-pci-ep, rcar-pci-host, xilinx-versal-cpm
     (Krzysztof Kozlowski)

   - Convert Marvell EBU (dove, kirkwood, armada-370, armada-xp) and
     armada8k from text to schema DT bindings (Rob Herring)

   - Remove obsolete .txt DT bindings for content that has been moved to
     schemas (Rob Herring)

   - Add qcom DT binding for MHI registers in IPQ5332, IPQ6018, IPQ8074
     and IPQ9574 (Varadarajan Narayanan)

   - Convert v3,v360epc-pci from text to DT schema binding (Rob Herring)

   - Change microchip,pcie-host DT binding to be 'dma-noncoherent' since
     PolarFire may be configured that way (Conor Dooley)

  Miscellaneous:

   - Drop 'pci' suffix from intel_mid_pci.c filename to match similar
     files (Andy Shevchenko)

   - All platforms with PCI have an MMU, so add PCI Kconfig dependency
     on MMU to simplify build testing and avoid inadvertent build
     regressions (Arnd Bergmann)

   - Update Krzysztof Wilczyński's email address in MAINTAINERS
     (Krzysztof Wilczyński)

   - Update Manivannan Sadhasivam's email address in MAINTAINERS
     (Manivannan Sadhasivam)"

* tag 'pci-v6.16-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: (147 commits)
  MAINTAINERS: Update Manivannan Sadhasivam email address
  PCI: j721e: Fix host/endpoint dependencies
  PCI: j721e: Add support to build as a loadable module
  PCI: cadence-ep: Introduce cdns_pcie_ep_disable() helper for cleanup
  PCI: cadence-host: Introduce cdns_pcie_host_disable() helper for cleanup
  PCI: cadence: Add support to build pcie-cadence library as a kernel module
  MAINTAINERS: Update Krzysztof Wilczyński email address
  PCI: Remove unnecessary linesplit in __pci_setup_bridge()
  PCI: WARN (not BUG()) when we fail to assign optional resources
  PCI: Remove unused pci_printk()
  PCI: qcom: Replace PERST# sleep time with proper macro
  PCI: dw-rockchip: Replace PERST# sleep time with proper macro
  PCI: host-common: Convert to library for host controller drivers
  PCI/ERR: Remove misleading TODO regarding kernel panic
  PCI: cadence: Remove duplicate message code definitions
  PCI: endpoint: Align pci_epc_set_msix(), pci_epc_ops::set_msix() nr_irqs encoding
  PCI: endpoint: Align pci_epc_set_msi(), pci_epc_ops::set_msi() nr_irqs encoding
  PCI: endpoint: Align pci_epc_get_msix(), pci_epc_ops::get_msix() return value encoding
  PCI: endpoint: Align pci_epc_get_msi(), pci_epc_ops::get_msi() return value encoding
  PCI: cadence-ep: Correct PBA offset in .set_msix() callback
  ...
Commit
3719a04a80caf660f899a462cd8f3973bcfa676e
Parents
1af80d00 · 3de91486

Merge commit. Changes below are compared with the first parent: 1af80d00.

Changes

148 files changed · +3402 −2221

FileStatusAddDelContent
.mailmapmodified+3−0View file
Documentation/ABI/testing/debugfs-pcie-ptmadded+70−0View file
Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats → Documentation/ABI/testing/sysfs-bus-pci-devices-aerrenamed+44−0View file
Documentation/PCI/controller/index.rstadded+10−0View file
Documentation/PCI/controller/rcar-pcie-firmware.rstadded+32−0View file
Documentation/PCI/endpoint/pci-nvme-function.rstmodified+1−1View file
Documentation/PCI/index.rstmodified+1−0View file
Documentation/PCI/pcieaer-howto.rstmodified+16−1View file
Documentation/devicetree/bindings/pci/apple,pcie.yamlmodified+26−7View file
Documentation/devicetree/bindings/pci/brcm,stb-pcie.yamlmodified+43−44View file
Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yamlmodified+8−8View file
Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yamlmodified+13−13View file
Documentation/devicetree/bindings/pci/intel,keembay-pcie.yamlmodified+19−19View file
Documentation/devicetree/bindings/pci/marvell,armada8k-pcie.yamladded+100−0View file
Documentation/devicetree/bindings/pci/marvell,kirkwood-pcie.yamladded+277−0View file
Documentation/devicetree/bindings/pci/microchip,pcie-host.yamlmodified+28−28View file
Documentation/devicetree/bindings/pci/mvebu-pci.txtdeleted+0−310View before deletion
Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie-ep.yamlmodified+1−1View file
Documentation/devicetree/bindings/pci/pci-armada8k.txtdeleted+0−48View before deletion
Documentation/devicetree/bindings/pci/pci-iommu.txtdeleted+0−171View before deletion
Documentation/devicetree/bindings/pci/pci-msi.txtdeleted+0−220View before deletion
Documentation/devicetree/bindings/pci/pci.txtdeleted+0−84View before deletion
Documentation/devicetree/bindings/pci/qcom,pcie-sa8775p.yamlmodified+7−3View file
Documentation/devicetree/bindings/pci/qcom,pcie-sc7280.yamlmodified+6−3View file
Documentation/devicetree/bindings/pci/qcom,pcie-sc8180x.yamlmodified+7−3View file
Documentation/devicetree/bindings/pci/qcom,pcie-sm8150.yamlmodified+6−3View file
Documentation/devicetree/bindings/pci/qcom,pcie-sm8250.yamlmodified+6−3View file
Documentation/devicetree/bindings/pci/qcom,pcie-sm8350.yamlmodified+6−3View file
Documentation/devicetree/bindings/pci/qcom,pcie.yamlmodified+60−5View file
Documentation/devicetree/bindings/pci/rcar-pci-ep.yamlmodified+17−17View file
Documentation/devicetree/bindings/pci/rcar-pci-host.yamlmodified+23−23View file
Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yamlmodified+8−2View file
Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yamlmodified+54−6View file
Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yamlmodified+1−1View file
Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yamlmodified+2−1View file
Documentation/devicetree/bindings/pci/snps,dw-pcie.yamlmodified+3−1View file
Documentation/devicetree/bindings/pci/v3,v360epc-pci.yamladded+100−0View file
Documentation/devicetree/bindings/pci/v3-v360epc-pci.txtdeleted+0−76View before deletion
Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yamlmodified+57−59View file
Documentation/driver-api/driver-model/devres.rstmodified+1−2View file
MAINTAINERSmodified+26−24View file
arch/arm64/Kconfig.platformsmodified+1−1View file
arch/x86/pci/Makefilemodified+3−3View file
arch/x86/pci/intel_mid_pci.c → arch/x86/pci/intel_mid.crenamed+0−0View file
drivers/accel/qaic/Kconfigmodified+0−1View file
drivers/block/mtip32xx/mtip32xx.cmodified+2−5View file
drivers/firewire/Kconfigmodified+1−1View file
drivers/gpu/drm/Kconfigmodified+1−1View file
drivers/gpu/drm/amd/amdgpu/Kconfigmodified+1−2View file
drivers/gpu/drm/ast/Kconfigmodified+1−1View file
drivers/gpu/drm/gma500/Kconfigmodified+1−1View file
drivers/gpu/drm/hisilicon/hibmc/Kconfigmodified+0−1View file
drivers/gpu/drm/loongson/Kconfigmodified+1−1View file
drivers/gpu/drm/mgag200/Kconfigmodified+1−1View file
drivers/gpu/drm/nouveau/Kconfigmodified+1−2View file
drivers/gpu/drm/qxl/Kconfigmodified+1−1View file
drivers/gpu/drm/radeon/Kconfigmodified+1−1View file
drivers/gpu/drm/tiny/Kconfigmodified+1−1View file
drivers/gpu/drm/vmwgfx/Kconfigmodified+1−1View file
drivers/gpu/drm/xe/Kconfigmodified+1−1View file
drivers/iommu/amd/init.cmodified+0−3View file
drivers/net/ethernet/broadcom/Kconfigmodified+0−1View file
drivers/net/wireless/ath/ath11k/Kconfigmodified+1−1View file
drivers/net/wireless/ath/ath12k/Kconfigmodified+1−1View file
drivers/pci/Kconfigmodified+1−0View file
drivers/pci/bus.cmodified+3−1View file
drivers/pci/controller/Kconfigmodified+4−4View file
drivers/pci/controller/cadence/Kconfigmodified+8−8View file
drivers/pci/controller/cadence/pci-j721e.cmodified+32−8View file
drivers/pci/controller/cadence/pcie-cadence-ep.cmodified+27−9View file
drivers/pci/controller/cadence/pcie-cadence-host.cmodified+114−10View file
drivers/pci/controller/cadence/pcie-cadence.cmodified+12−0View file
drivers/pci/controller/cadence/pcie-cadence.hmodified+12−13View file
drivers/pci/controller/dwc/pci-dra7xx.cmodified+2−2View file
drivers/pci/controller/dwc/pci-exynos.cmodified+2−2View file
drivers/pci/controller/dwc/pci-imx6.cmodified+182−31View file
drivers/pci/controller/dwc/pci-keystone.cmodified+2−3View file
drivers/pci/controller/dwc/pci-meson.cmodified+3−3View file
drivers/pci/controller/dwc/pcie-armada8k.cmodified+3−3View file
drivers/pci/controller/dwc/pcie-designware-debugfs.cmodified+251−1View file
drivers/pci/controller/dwc/pcie-designware-ep.cmodified+15−15View file
drivers/pci/controller/dwc/pcie-designware-host.cmodified+80−1View file
drivers/pci/controller/dwc/pcie-designware.cmodified+24−5View file
drivers/pci/controller/dwc/pcie-designware.hmodified+28−4View file
drivers/pci/controller/dwc/pcie-dw-rockchip.cmodified+63−39View file
drivers/pci/controller/dwc/pcie-hisi.cmodified+1−0View file
drivers/pci/controller/dwc/pcie-histb.cmodified+3−6View file
drivers/pci/controller/dwc/pcie-keembay.cmodified+1−1View file
drivers/pci/controller/dwc/pcie-kirin.cmodified+2−5View file
drivers/pci/controller/dwc/pcie-qcom-ep.cmodified+9−1View file
drivers/pci/controller/dwc/pcie-qcom.cmodified+4−3View file
drivers/pci/controller/dwc/pcie-rcar-gen4.cmodified+2−1View file
drivers/pci/controller/dwc/pcie-spear13xx.cmodified+2−5View file
drivers/pci/controller/dwc/pcie-tegra194.cmodified+12−11View file
drivers/pci/controller/dwc/pcie-uniphier.cmodified+1−1View file
drivers/pci/controller/dwc/pcie-visconti.cmodified+2−2View file
drivers/pci/controller/mobiveil/pcie-layerscape-gen4.cmodified+3−9View file
drivers/pci/controller/mobiveil/pcie-mobiveil.hmodified+1−1View file
drivers/pci/controller/pci-host-common.cmodified+20−10View file
drivers/pci/controller/pci-host-common.hadded+20−0View file
drivers/pci/controller/pci-host-generic.cmodified+2−0View file
drivers/pci/controller/pci-mvebu.cmodified+9−17View file
drivers/pci/controller/pci-thunder-ecam.cmodified+2−0View file
drivers/pci/controller/pci-thunder-pem.cmodified+1−0View file
drivers/pci/controller/pcie-apple.cmodified+176−67View file
drivers/pci/controller/pcie-rcar-ep.cmodified+4−4View file
drivers/pci/controller/pcie-rockchip-ep.cmodified+6−4View file
drivers/pci/controller/pcie-rockchip.hmodified+4−3View file
drivers/pci/controller/plda/pcie-microchip-host.cmodified+1−0View file
drivers/pci/devres.cmodified+26−189View file
drivers/pci/ecam.cmodified+2−0View file
drivers/pci/endpoint/functions/pci-epf-vntb.cmodified+3−23View file
drivers/pci/endpoint/pci-epc-core.cmodified+10−16View file
drivers/pci/endpoint/pci-epf-core.cmodified+15−7View file
drivers/pci/hotplug/pci_hotplug_core.cmodified+69−4View file
drivers/pci/hotplug/pciehp.hmodified+1−0View file
drivers/pci/hotplug/pciehp_core.cmodified+0−29View file
drivers/pci/hotplug/pciehp_ctrl.cmodified+1−1View file
drivers/pci/hotplug/pciehp_hpc.cmodified+51−27View file
drivers/pci/iomap.cmodified+0−16View file
drivers/pci/of.cmodified+44−0View file
drivers/pci/pci-acpi.cmodified+13−10View file
drivers/pci/pci-driver.cmodified+1−7View file
drivers/pci/pci-sysfs.cmodified+4−0View file
drivers/pci/pci.cmodified+33−55View file
drivers/pci/pci.hmodified+58−17View file
drivers/pci/pcie/aer.cmodified+311−131View file
drivers/pci/pcie/bwctrl.cmodified+19−67View file
drivers/pci/pcie/dpc.cmodified+44−31View file
drivers/pci/pcie/err.cmodified+0−1View file
drivers/pci/pcie/ptm.cmodified+300−0View file
drivers/pci/pcie/tlp.cmodified+4−2View file
drivers/pci/probe.cmodified+1−2View file
drivers/pci/pwrctrl/Kconfigmodified+16−6View file
drivers/pci/pwrctrl/Makefilemodified+4−4View file
drivers/pci/pwrctrl/core.cmodified+2−0View file
drivers/pci/quirks.cmodified+26−7View file
drivers/pci/setup-bus.cmodified+9−7View file
drivers/pcmcia/cardbus.cmodified+0−1View file
drivers/scsi/bnx2fc/Kconfigmodified+0−1View file
drivers/scsi/bnx2i/Kconfigmodified+0−1View file
drivers/vfio/pci/Kconfigmodified+1−1View file
include/linux/pci-ecam.hmodified+0−6View file
include/linux/pci-epc.hmodified+5−6View file
include/linux/pci-epf.hmodified+3−0View file
include/linux/pci.hmodified+54−10View file
include/linux/pm_runtime.hmodified+2−0View file
include/uapi/linux/pci_regs.hmodified+11−1View file

Only the first 600 diff lines are shown. Download the complete patch.

.mailmap

View file
diff --git a/.mailmap b/.mailmap
index 9ad9869..0f2fe42 100644
--- a/.mailmap
+++ b/.mailmap
@@ -419,6 +419,8 @@ Krishna Manikandan <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
Krzysztof Kozlowski <[email protected]> <[email protected]>
+Krzysztof Wilczyński <[email protected]> <[email protected]>
+Krzysztof Wilczyński <[email protected]> <[email protected]>
Kuninori Morimoto <[email protected]>
@@ -461,6 +463,7 @@ Maheshwar Ajja <[email protected]> <[email protected]>
Manikanta Pubbisetty <[email protected]> <[email protected]>
Manivannan Sadhasivam <[email protected]> <[email protected]>
+Manivannan Sadhasivam <[email protected]> <[email protected]>
Marcin Nowakowski <[email protected]> <[email protected]>

Documentation/ABI/testing/debugfs-pcie-ptm

View file
diff --git a/Documentation/ABI/testing/debugfs-pcie-ptm b/Documentation/ABI/testing/debugfs-pcie-ptm
new file mode 100644
index 0000000..602d413
--- /dev/null
+++ b/Documentation/ABI/testing/debugfs-pcie-ptm
@@ -0,0 +1,70 @@
+What: /sys/kernel/debug/pcie_ptm_*/local_clock
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM local clock in nanoseconds. Applicable for both Root
+ Complex and Endpoint controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/master_clock
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM master clock in nanoseconds. Applicable only for
+ Endpoint controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/t1
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM T1 timestamp in nanoseconds. Applicable only for
+ Endpoint controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/t2
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM T2 timestamp in nanoseconds. Applicable only for
+ Root Complex controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/t3
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM T3 timestamp in nanoseconds. Applicable only for
+ Root Complex controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/t4
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RO) PTM T4 timestamp in nanoseconds. Applicable only for
+ Endpoint controllers.
+
+What: /sys/kernel/debug/pcie_ptm_*/context_update
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RW) Control the PTM context update mode. Applicable only for
+ Endpoint controllers.
+
+ Following values are supported:
+
+ * auto = PTM context auto update trigger for every 10ms
+
+ * manual = PTM context manual update. Writing 'manual' to this
+ file triggers PTM context update (default)
+
+What: /sys/kernel/debug/pcie_ptm_*/context_valid
+Date: May 2025
+Contact: Manivannan Sadhasivam <[email protected]>
+Description:
+ (RW) Control the PTM context validity (local clock timing).
+ Applicable only for Root Complex controllers. PTM context is
+ invalidated by hardware if the Root Complex enters low power
+ mode or changes link frequency.
+
+ Following values are supported:
+
+ * 0 = PTM context invalid (default)
+
+ * 1 = PTM context valid

Documentation/ABI/testing/sysfs-bus-pci-devices-aer

View file
diff --git a/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats b/Documentation/ABI/testing/sysfs-bus-pci-devices-aer
similarity index 84%
rename from Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats
rename to Documentation/ABI/testing/sysfs-bus-pci-devices-aer
index d1f67bb..5ed2845 100644
--- a/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats
+++ b/Documentation/ABI/testing/sysfs-bus-pci-devices-aer
@@ -117,3 +117,47 @@ Date: July 2018
KernelVersion: 4.19.0
Description: Total number of ERR_NONFATAL messages reported to rootport.
+
+PCIe AER ratelimits
+-------------------
+
+These attributes show up under all the devices that are AER capable.
+They represent configurable ratelimits of logs per error type.
+
+See Documentation/PCI/pcieaer-howto.rst for more info on ratelimits.
+
+What: /sys/bus/pci/devices/<dev>/aer/correctable_ratelimit_interval_ms
+Date: May 2025
+KernelVersion: 6.16.0
+Description: Writing 0 disables AER correctable error log ratelimiting.
+ Writing a positive value sets the ratelimit interval in ms.
+ Default is DEFAULT_RATELIMIT_INTERVAL (5000 ms).
+
+What: /sys/bus/pci/devices/<dev>/aer/correctable_ratelimit_burst
+Date: May 2025
+KernelVersion: 6.16.0
+Description: Ratelimit burst for correctable error logs. Writing a value
+ changes the number of errors (burst) allowed per interval
+ before ratelimiting. Reading gets the current ratelimit
+ burst. Default is DEFAULT_RATELIMIT_BURST (10).
+
+What: /sys/bus/pci/devices/<dev>/aer/nonfatal_ratelimit_interval_ms
+Date: May 2025
+KernelVersion: 6.16.0
+Description: Writing 0 disables AER non-fatal uncorrectable error log
+ ratelimiting. Writing a positive value sets the ratelimit
+ interval in ms. Default is DEFAULT_RATELIMIT_INTERVAL
+ (5000 ms).
+
+What: /sys/bus/pci/devices/<dev>/aer/nonfatal_ratelimit_burst
+Date: May 2025
+KernelVersion: 6.16.0
+Description: Ratelimit burst for non-fatal uncorrectable error logs.
+ Writing a value changes the number of errors (burst)
+ allowed per interval before ratelimiting. Reading gets the
+ current ratelimit burst. Default is DEFAULT_RATELIMIT_BURST
+ (10).

Documentation/PCI/controller/index.rst

View file
diff --git a/Documentation/PCI/controller/index.rst b/Documentation/PCI/controller/index.rst
new file mode 100644
index 0000000..c2ce9cc
--- /dev/null
+++ b/Documentation/PCI/controller/index.rst
@@ -0,0 +1,10 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+===========================================
+PCI Native Host Bridge and Endpoint Drivers
+===========================================
+
+.. toctree::
+ :maxdepth: 2
+
+ rcar-pcie-firmware

Documentation/PCI/controller/rcar-pcie-firmware.rst

View file
diff --git a/Documentation/PCI/controller/rcar-pcie-firmware.rst b/Documentation/PCI/controller/rcar-pcie-firmware.rst
new file mode 100644
index 0000000..67d3bf6
--- /dev/null
+++ b/Documentation/PCI/controller/rcar-pcie-firmware.rst
@@ -0,0 +1,32 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=================================================
+Firmware of PCIe controller for Renesas R-Car V4H
+=================================================
+
+Renesas R-Car V4H (r8a779g0) has a PCIe controller, requiring a specific
+firmware download during startup.
+
+However, Renesas currently cannot distribute the firmware free of charge.
+
+The firmware file "104_PCIe_fw_addr_data_ver1.05.txt" (note that the file name
+might be different between different datasheet revisions) can be found in the
+datasheet encoded as text, and as such, the file's content must be converted
+back to binary form. This can be achieved using the following example script:
+
+.. code-block:: sh
+
+ $ awk '/^\s*0x[0-9A-Fa-f]{4}\s+0x[0-9A-Fa-f]{4}/ { print substr($2,5,2) substr($2,3,2) }' \
+ 104_PCIe_fw_addr_data_ver1.05.txt | \
+ xxd -p -r > rcar_gen4_pcie.bin
+
+Once the text content has been converted into a binary firmware file, verify
+its checksum as follows:
+
+.. code-block:: sh
+
+ $ sha1sum rcar_gen4_pcie.bin
+ 1d0bd4b189b4eb009f5d564b1f93a79112994945 rcar_gen4_pcie.bin
+
+The resulting binary file called "rcar_gen4_pcie.bin" should be placed in the
+"/lib/firmware" directory before the driver runs.

Documentation/PCI/endpoint/pci-nvme-function.rst

View file
diff --git a/Documentation/PCI/endpoint/pci-nvme-function.rst b/Documentation/PCI/endpoint/pci-nvme-function.rst
index df57b8e..a680153 100644
--- a/Documentation/PCI/endpoint/pci-nvme-function.rst
+++ b/Documentation/PCI/endpoint/pci-nvme-function.rst
@@ -8,6 +8,6 @@ PCI NVMe Function
The PCI NVMe endpoint function implements a PCI NVMe controller using the NVMe
subsystem target core code. The driver for this function resides with the NVMe
-subsystem as drivers/nvme/target/nvmet-pciep.c.
+subsystem as drivers/nvme/target/pci-epf.c.
See Documentation/nvme/nvme-pci-endpoint-target.rst for more details.

Documentation/PCI/index.rst

View file
diff --git a/Documentation/PCI/index.rst b/Documentation/PCI/index.rst
index 5e7c4e6..5d720d2 100644
--- a/Documentation/PCI/index.rst
+++ b/Documentation/PCI/index.rst
@@ -17,5 +17,6 @@ PCI Bus Subsystem
pci-error-recovery
pcieaer-howto
endpoint/index
+ controller/index
boot-interrupts
tph

Documentation/PCI/pcieaer-howto.rst

View file
diff --git a/Documentation/PCI/pcieaer-howto.rst b/Documentation/PCI/pcieaer-howto.rst
index f013f3b..4b71e2f 100644
--- a/Documentation/PCI/pcieaer-howto.rst
+++ b/Documentation/PCI/pcieaer-howto.rst
@@ -85,12 +85,27 @@ In the example, 'Requester ID' means the ID of the device that sent
the error message to the Root Port. Please refer to PCIe specs for other
fields.
+AER Ratelimits
+--------------
+
+Since error messages can be generated for each transaction, we may see
+large volumes of errors reported. To prevent spammy devices from flooding
+the console/stalling execution, messages are throttled by device and error
+type (correctable vs. non-fatal uncorrectable). Fatal errors, including
+DPC errors, are not ratelimited.
+
+AER uses the default ratelimit of DEFAULT_RATELIMIT_BURST (10 events) over
+DEFAULT_RATELIMIT_INTERVAL (5 seconds).
+
+Ratelimits are exposed in the form of sysfs attributes and configurable.
+See Documentation/ABI/testing/sysfs-bus-pci-devices-aer.
+
AER Statistics / Counters
-------------------------
When PCIe AER errors are captured, the counters / statistics are also exposed
in the form of sysfs attributes which are documented at
-Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats
+Documentation/ABI/testing/sysfs-bus-pci-devices-aer.
Developer Guide
===============

Documentation/devicetree/bindings/pci/apple,pcie.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/apple,pcie.yaml b/Documentation/devicetree/bindings/pci/apple,pcie.yaml
index c8775f9..c0852be 100644
--- a/Documentation/devicetree/bindings/pci/apple,pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/apple,pcie.yaml
@@ -17,6 +17,10 @@ description: |
implements its root ports. But the ATU found on most DesignWare
PCIe host bridges is absent.
+ On systems derived from T602x, the PHY registers are in a region
+ separate from the port registers. In that case, there is one PHY
+ register range per port register range.
+
All root ports share a single ECAM space, but separate GPIOs are
used to take the PCI devices on those ports out of reset. Therefore
the standard "reset-gpios" and "max-link-speed" properties appear on
@@ -30,16 +34,18 @@ description: |
properties:
compatible:
- items:
- - enum:
- - apple,t8103-pcie
- - apple,t8112-pcie
- - apple,t6000-pcie
- - const: apple,pcie
+ oneOf:
+ - items:
+ - enum:
+ - apple,t8103-pcie
+ - apple,t8112-pcie
+ - apple,t6000-pcie
+ - const: apple,pcie
+ - const: apple,t6020-pcie
reg:
minItems: 3
- maxItems: 6
+ maxItems: 10
reg-names:
minItems: 3
@@ -50,6 +56,10 @@ properties:
- const: port1
- const: port2
- const: port3
+ - const: phy0
+ - const: phy1
+ - const: phy2
+ - const: phy3
ranges:
minItems: 2
@@ -98,6 +108,15 @@ allOf:
maxItems: 5
interrupts:
maxItems: 3
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: apple,t6020-pcie
+ then:
+ properties:
+ reg-names:
+ minItems: 10
examples:
- |

Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml
index 29f0e1e..c4f9674 100644
--- a/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/brcm,stb-pcie.yaml
@@ -186,49 +186,48 @@ examples:
#include <dt-bindings/interrupt-controller/arm-gic.h>
scb {
- #address-cells = <2>;
- #size-cells = <1>;
- pcie0: pcie@7d500000 {
- compatible = "brcm,bcm2711-pcie";
- reg = <0x0 0x7d500000 0x9310>;
- device_type = "pci";
- #address-cells = <3>;
- #size-cells = <2>;
- #interrupt-cells = <1>;
- interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "pcie", "msi";
- interrupt-map-mask = <0x0 0x0 0x0 0x7>;
- interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH
- 0 0 0 2 &gicv2 GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH
- 0 0 0 3 &gicv2 GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH
- 0 0 0 4 &gicv2 GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
-
- msi-parent = <&pcie0>;
- msi-controller;
- ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 0x0 0x04000000>;
- dma-ranges = <0x42000000 0x1 0x00000000 0x0 0x40000000 0x0 0x80000000>,
- <0x42000000 0x1 0x80000000 0x3 0x00000000 0x0 0x80000000>;
- brcm,enable-ssc;
- brcm,scb-sizes = <0x0000000080000000 0x0000000080000000>;
-
- /* PCIe bridge, Root Port */
- pci@0,0 {
- #address-cells = <3>;
- #size-cells = <2>;
- reg = <0x0 0x0 0x0 0x0 0x0>;
- compatible = "pciclass,0604";
- device_type = "pci";
- vpcie3v3-supply = <&vreg7>;
- ranges;
-
- /* PCIe endpoint */
- pci-ep@0,0 {
- assigned-addresses =
- <0x82010000 0x0 0xf8000000 0x6 0x00000000 0x0 0x2000>;
- reg = <0x0 0x0 0x0 0x0 0x0>;
- compatible = "pci14e4,1688";
- };
- };
+ #address-cells = <2>;
+ #size-cells = <1>;
+ pcie0: pcie@7d500000 {
+ compatible = "brcm,bcm2711-pcie";
+ reg = <0x0 0x7d500000 0x9310>;
+ device_type = "pci";
+ #address-cells = <3>;
+ #size-cells = <2>;
+ #interrupt-cells = <1>;
+ interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "pcie", "msi";
+ interrupt-map-mask = <0x0 0x0 0x0 0x7>;
+ interrupt-map = <0 0 0 1 &gicv2 GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH
+ 0 0 0 2 &gicv2 GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH
+ 0 0 0 3 &gicv2 GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH
+ 0 0 0 4 &gicv2 GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>;
+
+ msi-parent = <&pcie0>;
+ msi-controller;
+ ranges = <0x02000000 0x0 0xf8000000 0x6 0x00000000 0x0 0x04000000>;
+ dma-ranges = <0x42000000 0x1 0x00000000 0x0 0x40000000 0x0 0x80000000>,
+ <0x42000000 0x1 0x80000000 0x3 0x00000000 0x0 0x80000000>;
+ brcm,enable-ssc;
+ brcm,scb-sizes = <0x0000000080000000 0x0000000080000000>;
+
+ /* PCIe bridge, Root Port */
+ pci@0,0 {
+ #address-cells = <3>;
+ #size-cells = <2>;
+ reg = <0x0 0x0 0x0 0x0 0x0>;
+ compatible = "pciclass,0604";
+ device_type = "pci";
+ vpcie3v3-supply = <&vreg7>;
+ ranges;
+
+ /* PCIe endpoint */
+ pci-ep@0,0 {
+ assigned-addresses = <0x82010000 0x0 0xf8000000 0x6 0x00000000 0x0 0x2000>;
+ reg = <0x0 0x0 0x0 0x0 0x0>;
+ compatible = "pci14e4,1688";
+ };
};
+ };
};

Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yaml
index 98651ab..8735293 100644
--- a/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yaml
+++ b/Documentation/devicetree/bindings/pci/cdns,cdns-pcie-ep.yaml
@@ -37,14 +37,14 @@ examples:
#size-cells = <2>;
pcie-ep@fc000000 {
- compatible = "cdns,cdns-pcie-ep";
- reg = <0x0 0xfc000000 0x0 0x01000000>,
- <0x0 0x80000000 0x0 0x40000000>;
- reg-names = "reg", "mem";
- cdns,max-outbound-regions = <16>;
- max-functions = /bits/ 8 <8>;
- phys = <&pcie_phy0>;
- phy-names = "pcie-phy";
+ compatible = "cdns,cdns-pcie-ep";
+ reg = <0x0 0xfc000000 0x0 0x01000000>,
+ <0x0 0x80000000 0x0 0x40000000>;
+ reg-names = "reg", "mem";
+ cdns,max-outbound-regions = <16>;
+ max-functions = /bits/ 8 <8>;
+ phys = <&pcie_phy0>;
+ phy-names = "pcie-phy";
};
};
...

Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yaml b/Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yaml
index 730e63f..b19f61a 100644
--- a/Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yaml
+++ b/Documentation/devicetree/bindings/pci/intel,keembay-pcie-ep.yaml
@@ -53,17 +53,17 @@ examples:
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
pcie-ep@37000000 {
- compatible = "intel,keembay-pcie-ep";
- reg = <0x37000000 0x00001000>,
- <0x37100000 0x00001000>,
- <0x37300000 0x00001000>,
- <0x36000000 0x01000000>,
- <0x37800000 0x00000200>;
- reg-names = "dbi", "dbi2", "atu", "addr_space", "apb";
- interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 108 IRQ_TYPE_EDGE_RISING>,
- <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "pcie", "pcie_ev", "pcie_err", "pcie_mem_access";
- num-lanes = <2>;
+ compatible = "intel,keembay-pcie-ep";
+ reg = <0x37000000 0x00001000>,
+ <0x37100000 0x00001000>,
+ <0x37300000 0x00001000>,
+ <0x36000000 0x01000000>,
+ <0x37800000 0x00000200>;
+ reg-names = "dbi", "dbi2", "atu", "addr_space", "apb";
+ interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 108 IRQ_TYPE_EDGE_RISING>,
+ <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "pcie", "pcie_ev", "pcie_err", "pcie_mem_access";
+ num-lanes = <2>;
};

Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml b/Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml
index 1fd5575..dd71e3d 100644
--- a/Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml
+++ b/Documentation/devicetree/bindings/pci/intel,keembay-pcie.yaml
@@ -75,23 +75,23 @@ examples:
#define KEEM_BAY_A53_PCIE
#define KEEM_BAY_A53_AUX_PCIE
pcie@37000000 {
- compatible = "intel,keembay-pcie";
- reg = <0x37000000 0x00001000>,
- <0x37300000 0x00001000>,
- <0x36e00000 0x00200000>,
- <0x37800000 0x00000200>;
- reg-names = "dbi", "atu", "config", "apb";
- #address-cells = <3>;
- #size-cells = <2>;
- device_type = "pci";
- ranges = <0x02000000 0 0x36000000 0x36000000 0 0x00e00000>;
- interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "pcie", "pcie_ev", "pcie_err";
- clocks = <&scmi_clk KEEM_BAY_A53_PCIE>,
- <&scmi_clk KEEM_BAY_A53_AUX_PCIE>;
- clock-names = "master", "aux";
- reset-gpios = <&pca2 9 GPIO_ACTIVE_LOW>;
- num-lanes = <2>;
+ compatible = "intel,keembay-pcie";
+ reg = <0x37000000 0x00001000>,
+ <0x37300000 0x00001000>,
+ <0x36e00000 0x00200000>,
+ <0x37800000 0x00000200>;
+ reg-names = "dbi", "atu", "config", "apb";
+ #address-cells = <3>;
+ #size-cells = <2>;
+ device_type = "pci";
+ ranges = <0x02000000 0 0x36000000 0x36000000 0 0x00e00000>;
+ interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "pcie", "pcie_ev", "pcie_err";
+ clocks = <&scmi_clk KEEM_BAY_A53_PCIE>,
+ <&scmi_clk KEEM_BAY_A53_AUX_PCIE>;
+ clock-names = "master", "aux";
+ reset-gpios = <&pca2 9 GPIO_ACTIVE_LOW>;
+ num-lanes = <2>;
};

Documentation/devicetree/bindings/pci/marvell,armada8k-pcie.yaml

View file
diff --git a/Documentation/devicetree/bindings/pci/marvell,armada8k-pcie.yaml b/Documentation/devicetree/bindings/pci/marvell,armada8k-pcie.yaml
new file mode 100644
index 0000000..f3ba923
--- /dev/null
+++ b/Documentation/devicetree/bindings/pci/marvell,armada8k-pcie.yaml
@@ -0,0 +1,100 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pci/marvell,armada8k-pcie.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Armada 7K/8K PCIe interface
+
+maintainers:
+ - Thomas Petazzoni <[email protected]>
+
+description:
+ This PCIe host controller is based on the Synopsys DesignWare PCIe IP.
+
+select:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - marvell,armada8k-pcie
+ required:
+ - compatible
+
+allOf:
+ - $ref: snps,dw-pcie.yaml#
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - marvell,armada8k-pcie
+ - const: snps,dw-pcie
+
+ reg:
+ maxItems: 2
+
+ reg-names:
+ items:
+ - const: ctrl
+ - const: config
+
+ clocks:
+ minItems: 1
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: core
+ - const: reg
+
+ interrupts:
+ maxItems: 1
+
+ msi-parent:
+ maxItems: 1
+
+ phys:
+ minItems: 1

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/marvell,kirkwood-pcie.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/microchip,pcie-host.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/mvebu-pci.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/nvidia,tegra194-pcie-ep.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/pci-armada8k.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/pci-iommu.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/pci-msi.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/pci.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sa8775p.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sc7280.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sc8180x.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sm8150.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sm8250.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie-sm8350.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/qcom,pcie.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/rcar-pci-ep.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/rcar-pci-host.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/rockchip-dw-pcie-common.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/rockchip-dw-pcie.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/snps,dw-pcie-common.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/snps,dw-pcie.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/v3,v360epc-pci.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/v3-v360epc-pci.txt

View before deletion

This diff is incomplete. Download the complete patch.

Documentation/devicetree/bindings/pci/xilinx-versal-cpm.yaml

View file

This diff is incomplete. Download the complete patch.

Documentation/driver-api/driver-model/devres.rst

View file

This diff is incomplete. Download the complete patch.

MAINTAINERS

View file

This diff is incomplete. Download the complete patch.

arch/arm64/Kconfig.platforms

View file

This diff is incomplete. Download the complete patch.

arch/x86/pci/Makefile

View file

This diff is incomplete. Download the complete patch.

arch/x86/pci/intel_mid.c

View file

This diff is incomplete. Download the complete patch.

drivers/accel/qaic/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/block/mtip32xx/mtip32xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/firewire/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/amd/amdgpu/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/ast/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/gma500/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/hisilicon/hibmc/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/loongson/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/mgag200/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/nouveau/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/qxl/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/radeon/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/tiny/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/vmwgfx/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/gpu/drm/xe/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/iommu/amd/init.c

View file

This diff is incomplete. Download the complete patch.

drivers/net/ethernet/broadcom/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/net/wireless/ath/ath11k/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/net/wireless/ath/ath12k/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/pci/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/pci/bus.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/pci-j721e.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/pcie-cadence-ep.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/pcie-cadence-host.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/pcie-cadence.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/cadence/pcie-cadence.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pci-dra7xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pci-exynos.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pci-imx6.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pci-keystone.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pci-meson.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-armada8k.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-designware-debugfs.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-designware-ep.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-designware-host.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-designware.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-designware.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-dw-rockchip.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-hisi.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-histb.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-keembay.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-kirin.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-qcom-ep.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-qcom.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-rcar-gen4.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-spear13xx.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-tegra194.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-uniphier.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/dwc/pcie-visconti.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/mobiveil/pcie-mobiveil.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-host-common.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-host-common.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-host-generic.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-mvebu.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-thunder-ecam.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pci-thunder-pem.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pcie-apple.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pcie-rcar-ep.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pcie-rockchip-ep.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/pcie-rockchip.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/controller/plda/pcie-microchip-host.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/devres.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/ecam.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/endpoint/functions/pci-epf-vntb.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/endpoint/pci-epc-core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/endpoint/pci-epf-core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/hotplug/pci_hotplug_core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/hotplug/pciehp.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/hotplug/pciehp_core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/hotplug/pciehp_ctrl.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/hotplug/pciehp_hpc.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/iomap.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/of.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci-acpi.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci-driver.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci-sysfs.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci.h

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/aer.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/bwctrl.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/dpc.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/err.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/ptm.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pcie/tlp.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/probe.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pwrctrl/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pwrctrl/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pwrctrl/core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/quirks.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/setup-bus.c

View file

This diff is incomplete. Download the complete patch.

drivers/pcmcia/cardbus.c

View file

This diff is incomplete. Download the complete patch.

drivers/scsi/bnx2fc/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/scsi/bnx2i/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/vfio/pci/Kconfig

View file

This diff is incomplete. Download the complete patch.

include/linux/pci-ecam.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pci-epc.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pci-epf.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pci.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pm_runtime.h

View file

This diff is incomplete. Download the complete patch.

include/uapi/linux/pci_regs.h

View file

This diff is incomplete. Download the complete patch.