Skip to content

Failing builds due to missing changes from backported commit in qcom-6.18.y: "pci: pwrctrl: rename pci-pwrctrl-slot as generic" #441

@sbach

Description

@sbach

Using the default defconfig file to build qcom-6.18.y currently produces the following errors:

aarch64-oe-linux-ld.bfd: Unexpected GOT/PLT entries detected!
aarch64-oe-linux-ld.bfd: Unexpected run-time procedure linkages detected!
aarch64-oe-linux-ld.bfd: drivers/pci/controller/dwc/pcie-qcom.o: in function `qcom_pcie_host_deinit':
  /usr/src/kernel/drivers/pci/controller/dwc/pcie-qcom.c:1363:(.text+0x1b4c): undefined reference to `pci_pwrctrl_power_off_devices'
aarch64-oe-linux-ld.bfd: drivers/pci/controller/dwc/pcie-qcom.o: in function `qcom_pcie_host_init':
  /usr/src/kernel/drivers/pci/controller/dwc/pcie-qcom.c:1311:(.text+0x2038): undefined reference to `pci_pwrctrl_create_devices'
aarch64-oe-linux-ld.bfd: /usr/src/kernel/drivers/pci/controller/dwc/pcie-qcom.c:1315:(.text+0x2080): undefined reference to `pci_pwrctrl_power_on_devices'
aarch64-oe-linux-ld.bfd: /usr/src/kernel/drivers/pci/controller/dwc/pcie-qcom.c:1340:(.text+0x2164): undefined reference to `pci_pwrctrl_power_off_devices'
aarch64-oe-linux-ld.bfd: /usr/src/kernel/drivers/pci/controller/dwc/pcie-qcom.c:1343:(.text+0x2174): undefined reference to `pci_pwrctrl_destroy_devices'

This seems caused by commit fc4a55d (qcom-6.18.y-20260220-19-gfc4a55d58781), missing changes. You can see the proper commit: ff124bb, in another branch.

The forgotten changes are thus:

diff --git a/drivers/pci/controller/dwc/Kconfig b/drivers/pci/controller/dwc/Kconfig
index d0aa031397fa..4bd36e133ca6 100644
--- a/drivers/pci/controller/dwc/Kconfig
+++ b/drivers/pci/controller/dwc/Kconfig
@@ -309,7 +309,7 @@ config PCIE_QCOM
        select CRC8
        select PCIE_QCOM_COMMON
        select PCI_HOST_COMMON
-       select PCI_PWRCTRL_SLOT
+       select PCI_PWRCTRL_GENERIC
        help
          Say Y here to enable PCIe controller support on Qualcomm SoCs. The
          PCIe controller uses the DesignWare core plus Qualcomm-specific
@@ -431,7 +431,7 @@ config PCIE_SPACEMIT_K1
        depends on ARCH_SPACEMIT || COMPILE_TEST
        depends on HAS_IOMEM
        select PCIE_DW_HOST
-       select PCI_PWRCTRL_SLOT
+       select PCI_PWRCTRL_GENERIC
        default ARCH_SPACEMIT
        help
          Enables support for the DesignWare based PCIe controller in

I can validate the build functions again with the above (after adapting it), or by setting CONFIG_PCI_PWRCTRL_GENERIC=y through the Kconfig.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions