Commit 1c2b4a4c2bcb for kernel

commit 1c2b4a4c2bcb950f182eeeb33d94b565607608cf
Merge: 61e629596fab dff645f564c3
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Wed Feb 11 17:20:38 2026 -0800

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

    Pull PCI updates from Bjorn Helgaas:
     "Enumeration:

       - Don't try to enable Extended Tags on VFs since that bit is Reserved
         and causes misleading log messages (Håkon Bugge)

       - Initialize Endpoint Read Completion Boundary to match Root Port,
         regardless of ACPI _HPX (Håkon Bugge)

       - Apply _HPX PCIe Setting Record only to AER configuration, and only
         when OS owns PCIe hotplug but not AER, to avoid clobbering Extended
         Tag and Relaxed Ordering settings (Håkon Bugge)

      Resource management:

       - Move CardBus code to setup-cardbus.c and only build it when
         CONFIG_CARDBUS is set (Ilpo Järvinen)

       - Fix bridge window alignment with optional resources, where
         additional alignment requirement was previously lost (Ilpo
         Järvinen)

       - Stop over-estimating bridge window size since they are now assigned
         without any gaps between them (Ilpo Järvinen)

       - Increase resource MAX_IORES_LEVEL to avoid /proc/iomem flattening
         for nested bridges and endpoints (Ilpo Järvinen)

       - Add pbus_mem_size_optional() to handle sizes of optional resources
         (SR-IOV VF BARs, expansion ROMs, bridge windows) (Ilpo Järvinen)

       - Don't claim disabled bridge windows to avoid spurious claim
         failures (Ilpo Järvinen)

      Driver binding:

       - Fix device reference leak in pcie_port_remove_service() (Uwe
         Kleine-König)

       - Move pcie_port_bus_match() and pcie_port_bus_type to PCIe-specific
         portdrv.c (Uwe Kleine-König)

       - Convert portdrv to use pcie_port_bus_type.probe() and .remove()
         callbacks so .probe() and .remove() can eventually be removed from
         struct device_driver (Uwe Kleine-König)

      Error handling:

       - Clear stale errors on reporting agents upon probe so they don't
         look like recent errors (Lukas Wunner)

       - Add generic RAS tracepoint for hotplug events (Shuai Xue)

       - Add RAS tracepoint for link speed changes (Shuai Xue)

      Power management:

       - Avoid redundant delay on transition from D3hot to D3cold if the
         device was already in D3hot (Brian Norris)

       - Prevent runtime suspend until devices are fully initialized to
         avoid saving incompletely configured device state (Brian Norris)

      Power control:

       - Add power_on/off callbacks with generic signature to pwrseq,
         tc9563, and slot drivers so they can be used by pwrctrl core
         (Manivannan Sadhasivam)

       - Add PCIe M.2 connector support to the slot pwrctrl driver
         (Manivannan Sadhasivam)

       - Switch to pwrctrl interfaces to create, destroy, and power on/off
         devices, calling them from host controller drivers instead of the
         PCI core (Manivannan Sadhasivam)

       - Drop qcom .assert_perst() callbacks since this is now done by the
         controller driver instead of the pwrctrl driver (Manivannan
         Sadhasivam)

      Virtualization:

       - Remove an incorrect unlock in pci_slot_trylock() error handling
         (Jinhui Guo)

       - Lock the bridge device for slot reset (Keith Busch)

       - Enable ACS after IOMMU configuration on OF platforms so ACS is
         enabled an all devices; previously the first device enumerated
         (typically a Root Port) didn't have ACS enabled (Manivannan
         Sadhasivam)

       - Disable ACS Source Validation for IDT 0x80b5 and 0x8090 switches to
         work around hardware erratum; previously ACS SV was only
         temporarily disabled, which worked for enumeration but not after
         reset (Manivannan Sadhasivam)

      Peer-to-peer DMA:

       - Release per-CPU pgmap ref when vm_insert_page() fails to avoid hang
         when removing the PCI device (Hou Tao)

       - Remove incorrect p2pmem_alloc_mmap() warning about page refcount
         (Hou Tao)

      Endpoint framework:

       - Add configfs sub-groups synchronously to avoid NULL pointer
         dereference when racing with removal (Liu Song)

       - Fix swapped parameters in pci_{primary/secondary}_epc_epf_unlink()
         functions (Manikanta Maddireddy)

      ASPEED PCIe controller driver:

       - Add ASPEED Root Complex DT binding and driver (Jacky Chou)

      Freescale i.MX6 PCIe controller driver:

       - Add DT binding and driver support for an optional external refclock
         in addition to the refclock from the internal PLL (Richard Zhu)

       - Fix CLKREQ# control so host asserts it during enumeration and
         Endpoints can use it afterwards to exit the L1.2 link state
         (Richard Zhu)

      NVIDIA Tegra PCIe controller driver:

       - Export irq_domain_free_irqs() to allow PCI/MSI drivers that tear
         down MSI domains to be built as modules (Aaron Kling)

       - Allow pci-tegra to be built as a module (Aaron Kling)

      NVIDIA Tegra194 PCIe controller driver:

       - Relax Kconfig so tegra194 can be built for platforms beyond
         Tegra194 (Vidya Sagar)

      Qualcomm PCIe controller driver:

       - Merge SC8180x DT binding into SM8150 (Krzysztof Kozlowski)

       - Move SDX55, SDM845, QCS404, IPQ5018, IPQ6018, IPQ8074 Gen3,
         IPQ8074, IPQ4019, IPQ9574, APQ8064, MSM8996, APQ8084 to dedicated
         schema (Krzysztof Kozlowski)

       - Add DT binding and driver support for SA8255p Endpoint being
         configured by firmware (Mrinmay Sarkar)

       - Parse PERST# from all PCIe bridge nodes for future platforms that
         will have PERST# in Switch Downstream Ports as well as in Root
         Ports (Manivannan Sadhasivam)

      Renesas RZ/G3S PCIe controller driver:

       - Use pci_generic_config_write() since the writability provided by
         the custom wrapper is unnecessary (Claudiu Beznea)

      SOPHGO PCIe controller driver:

       - Disable ASPM L0s and L1 on Sophgo 2044 PCIe Root Ports (Inochi
         Amaoto)

      Synopsys DesignWare PCIe controller driver:

       - Extend PCI_FIND_NEXT_CAP() and PCI_FIND_NEXT_EXT_CAP() to return a
         pointer to the preceding Capability, to allow removal of
         Capabilities that are advertised but not fully implemented (Qiang
         Yu)

       - Remove MSI and MSI-X Capabilities in platforms that can't support
         them, so the PCI core automatically falls back to INTx (Qiang Yu)

       - Add ASPM L1.1 and L1.2 Substates context to debugfs ltssm_status
         for drivers that support this (Shawn Lin)

       - Skip PME_Turn_Off broadcast and L2/L3 transition during suspend if
         link is not up to avoid an unnecessary timeout (Manivannan
         Sadhasivam)

       - Revert dw-rockchip, qcom, and DWC core changes that used link-up
         IRQs to trigger enumeration instead of waiting for link to be up
         because the PCI core doesn't allocate bus number space for
         hierarchies that might be attached (Niklas Cassel)

       - Make endpoint iATU entry for MSI permanent instead of programming
         it dynamically, which is slow and racy with respect to other
         concurrent traffic, e.g., eDMA (Koichiro Den)

       - Use iMSI-RX MSI target address when possible to fix endpoints using
         32-bit MSI (Shawn Lin)

       - Allow DWC host controller driver probe to continue if device is not
         found or found but inactive; only fail when there's an error with
         the link (Manivannan Sadhasivam)

       - For controllers like NXP i.MX6QP and i.MX7D, where LTSSM registers
         are not accessible after PME_Turn_Off, simply wait 10ms instead of
         polling for L2/L3 Ready (Richard Zhu)

       - Use multiple iATU entries to map large bridge windows and DMA
         ranges when necessary instead of failing (Samuel Holland)

       - Add EPC dynamic_inbound_mapping feature bit for Endpoint
         Controllers that can update BAR inbound address translation without
         requiring EPF driver to clear/reset the BAR first, and advertise it
         for DWC-based Endpoints (Koichiro Den)

       - Add EPC subrange_mapping feature bit for Endpoint Controllers that
         can map multiple independent inbound regions in a single BAR,
         implement subrange mapping, advertise it for DWC-based Endpoints,
         and add Endpoint selftests for it (Koichiro Den)

       - Make resizable BARs work for Endpoint multi-PF configurations;
         previously it only worked for PF 0 (Aksh Garg)

       - Fix Endpoint non-PF 0 support for BAR configuration, ATU mappings,
         and Address Match Mode (Aksh Garg)

       - Set up iATU when ECAM is enabled; previously IO and MEM outbound
         windows weren't programmed, and ECAM-related iATU entries weren't
         restored after suspend/resume, so config accesses failed (Krishna
         Chaitanya Chundru)

      Miscellaneous:

       - Use system_percpu_wq and WQ_PERCPU to explicitly request per-CPU
         work so WQ_UNBOUND can eventually be removed (Marco Crivellari)"

    * tag 'pci-v7.0-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci: (176 commits)
      PCI/bwctrl: Disable BW controller on Intel P45 using a quirk
      PCI: Disable ACS SV for IDT 0x8090 switch
      PCI: Disable ACS SV for IDT 0x80b5 switch
      PCI: Cache ACS Capabilities register
      PCI: Enable ACS after configuring IOMMU for OF platforms
      PCI: Add ACS quirk for Pericom PI7C9X2G404 switches [12d8:b404]
      PCI: Add ACS quirk for Qualcomm Hamoa & Glymur
      PCI: Use device_lock_assert() to verify device lock is held
      PCI: Use lockdep_assert_held(pci_bus_sem) to verify lock is held
      PCI: Fix pci_slot_lock () device locking
      PCI: Fix pci_slot_trylock() error handling
      PCI: Mark Nvidia GB10 to avoid bus reset
      PCI: Mark ASM1164 SATA controller to avoid bus reset
      PCI: host-generic: Avoid reporting incorrect 'missing reg property' error
      PCI/PME: Replace RMW of Root Status register with direct write
      PCI/AER: Clear stale errors on reporting agents upon probe
      PCI: Don't claim disabled bridge windows
      PCI: rzg3s-host: Fix device node reference leak in rzg3s_pcie_host_parse_port()
      PCI: dwc: Fix missing iATU setup when ECAM is enabled
      PCI: dwc: Clean up iATU index usage in dw_pcie_iatu_setup()
      ...

diff --cc drivers/pci/controller/dwc/pcie-qcom.c
index 5a318487b2b3,546236198549..67a16af69ddc
--- a/drivers/pci/controller/dwc/pcie-qcom.c
+++ b/drivers/pci/controller/dwc/pcie-qcom.c
@@@ -1312,12 -1311,13 +1310,14 @@@ static int qcom_pcie_host_init(struct d
  	if (pcie->cfg->ops->post_init) {
  		ret = pcie->cfg->ops->post_init(pcie);
  		if (ret)
- 			goto err_disable_phy;
+ 			goto err_pwrctrl_power_off;
  	}

 +	qcom_pcie_clear_aspm_l0s(pcie->pci);
+ 	dw_pcie_remove_capability(pcie->pci, PCI_CAP_ID_MSIX);
+ 	dw_pcie_remove_ext_capability(pcie->pci, PCI_EXT_CAP_ID_DPC);

- 	qcom_ep_reset_deassert(pcie);
+ 	qcom_pcie_perst_deassert(pcie);

  	if (pcie->cfg->ops->config_sid) {
  		ret = pcie->cfg->ops->config_sid(pcie);
diff --cc drivers/pci/pci.c
index a0ba42ae7ee0,f7630fb30928..f3244630bfd0
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@@ -13,7 -13,7 +13,8 @@@
  #include <linux/delay.h>
  #include <linux/dmi.h>
  #include <linux/init.h>
 +#include <linux/iommu.h>
+ #include <linux/lockdep.h>
  #include <linux/msi.h>
  #include <linux/of.h>
  #include <linux/pci.h>
diff --cc drivers/pci/setup-bus.c
index a61d38777cdc,69abb11b7e47..32aa72456a44
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@@ -2570,9 -2372,10 +2388,9 @@@ restore
  			pci_release_resource(dev, i);
  		}

- 		restore_dev_resource(dev_res);
+ 		pci_dev_res_restore(dev_res);

 -		ret = pci_claim_resource(dev, i);
 -		if (ret)
 +		if (pci_claim_resource(dev, i))
  			continue;

  		if (i < PCI_BRIDGE_RESOURCES) {