Testing pci_mvebu.c with Kirkwood SoCs

Pali Rohár pali at kernel.org
Tue Nov 9 16:08:35 CET 2021


On Monday 08 November 2021 22:34:51 Tony Dinh wrote:
> The above log was the build with the following configs:
> CONFIG_CMD_PCI=y
> CONFIG_PCI=y
> CONFIG_PCI_MVEBU=y
> CONFIG_PCI_PNP=y
> CONFIG_USB_XHCI_HCD=y
> CONFIG_USB_XHCI_PCI=y
> CONFIG_USB_XHCI_MVEBU=y
> CONFIG_PCI_INIT_R=y
> CONFIG_SYS_EARLY_PCI_INIT=y
> 
> 
> Any idea how to debug this? there must be some differences between the
> pci_init call early on, and much later with "pci enum".

Hello! The only difference is when pci_init() function is called. So it
looks like that it needs to be called later (perhaps because PCIe needs
some other steps for initialization?).

Could you try to disable CONFIG_SYS_EARLY_PCI_INIT option if it helps?

And could you try to put pci_init() into board_early_init_r() and
disable both CONFIG_SYS_EARLY_PCI_INIT and CONFIG_PCI_INIT_R if it
helps?


More information about the U-Boot mailing list