Re: linux-next: Tree for Jul 30 (pci/controller/cadence/)

From: Randy Dunlap

Date: Fri Jul 31 2026 - 20:12:21 EST




On 7/31/26 2:41 PM, Bjorn Helgaas wrote:
> On Thu, Jul 30, 2026 at 07:27:42PM -0500, Bjorn Helgaas wrote:
>> [+cc authors of everything on pci/controller/cadence; I haven't
>> triaged this at all, sorry, and don't have time right now to drop that
>> branch from pci/next]
>>
>> On Thu, Jul 30, 2026 at 04:06:44PM -0700, Randy Dunlap wrote:
>>>
>>>
>>> On 7/30/26 8:02 AM, Mark Brown wrote:
>>>> Hi all,
>>>>
>>>> Changes since 20260729:
>>>>
>>>
>>> (1) /usr/bin/ld.bfd: drivers/pci/controller/cadence/pcie-cadence-plat.o: in function `cdns_plat_pcie_probe':
>>> pcie-cadence-plat.c:(.text+0x2f8): undefined reference to `cdns_pcie_ep_setup'
>>>
>>> In this case, a builtin driver attempts to call into a loadable module:
>>>
>>> #
>>> # Cadence-based PCIe controllers
>>> #
>>> CONFIG_PCIE_CADENCE=y
>>> # CONFIG_PCIE_CADENCE_DEBUGFS is not set
>>> CONFIG_PCIE_CADENCE_HOST=y
>>> CONFIG_PCIE_CADENCE_EP=m
>>> CONFIG_PCIE_CADENCE_PLAT=y
>>> CONFIG_PCIE_CADENCE_PLAT_HOST=y
>>> CONFIG_PCIE_CADENCE_PLAT_EP=m
>>> # end of Cadence-based PCIe controllers
>
> I was unable to reproduce this issue, so I didn't do anything. I
> didn't figure out how to make CONFIG_PCIE_CADENCE_EP=m; the config I
> used was:
>
> CONFIG_PCIE_CADENCE=y
> # CONFIG_PCIE_CADENCE_DEBUGFS is not set
> CONFIG_PCIE_CADENCE_HOST=y
> CONFIG_PCIE_CADENCE_EP=y
> CONFIG_PCIE_CADENCE_PLAT=y
> CONFIG_PCIE_CADENCE_PLAT_HOST=y
> CONFIG_PCIE_CADENCE_PLAT_EP=m
>
>>> (2) /usr/bin/ld.bfd: drivers/pci/controller/cadence/pcie-cadence-plat.o: in function `cdns_plat_pcie_probe':
>>> pcie-cadence-plat.c:(.text+0x11f): undefined reference to `cdns_pcie_host_setup'
>>>
>>>
>>> This is similar, just a different driver is =m in the failure case.
>>>
>>> #
>>> # Cadence-based PCIe controllers
>>> #
>>> CONFIG_PCIE_CADENCE=y
>>> CONFIG_PCIE_CADENCE_DEBUGFS=y
>>> CONFIG_PCIE_CADENCE_HOST=m
>>> CONFIG_PCIE_CADENCE_EP=y
>>> CONFIG_PCIE_CADENCE_PLAT=y
>>> CONFIG_PCIE_CADENCE_PLAT_HOST=m
>>> CONFIG_PCIE_CADENCE_PLAT_EP=y

I have reproduced it several times in cases that were
generated by 'make randconfig'.
I am attaching the 2 failing randconfig files (both for x86_64
and linux-next).

--
~Randy

Attachment: config-r1495.gz
Description: application/gzip

Attachment: config-r1453.gz
Description: application/gzip