This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5K2E04: PCIE host controller detection error wrong type

Part Number: AM5K2E04

Tool/software: Linux

Hello,

I have a customer board.

Until now I have used linux kernel 3.10.69 but now I want tu use kernel 4.4.19

Under kernel 3.10.69 the PCIe bridge works but under kernel 4.4.19 I get following error message.

[    0.306441] PCI host bridge /soc/pcie@21800000 ranges:
[    0.306451]   No bus range found for /soc/pcie@21800000, using [bus 00-ff]
[    0.306466]   MEM 0x50000000..0x5fffffff -> 0x50000000
[    0.508110] keystone-pcie 21801000.pcie: phy link never came up
[    0.508268] keystone-pcie 21801000.pcie: PCI host bridge to bus 0000:00
[    0.508278] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.508288] pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
[    0.508320] pci 0000:00:00.0: [104c:b009] type 00 class 0x060400
[    0.508339] pci 0000:00:00.0: ignoring class 0x060400 (doesn't match header type 00)
[    0.508533] PCI: bus0: Fast back to back transfers disabled
[    0.508976] PCI host bridge /soc/pcie@21020000 ranges:
[    0.508984]   No bus range found for /soc/pcie@21020000, using [bus 00-ff]
[    0.508999]   MEM 0x60000000..0x6fffffff -> 0x60000000
[    0.711764] keystone-pcie 21021000.pcie: phy link never came up
[    0.711920] keystone-pcie 21021000.pcie: PCI host bridge to bus 0001:00
[    0.711931] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.711939] pci_bus 0001:00: root bus resource [mem 0x60000000-0x6fffffff]
[    0.712005] pci 0001:00:00.0: [104c:b009] type 00 class 0x060400
[    0.712024] pci 0001:00:00.0: ignoring class 0x060400 (doesn't match header type 00)
[    0.712220] PCI: bus0: Fast back to back transfers disabled

At the moment the interesting part of the message is:

[    0.508320] pci 0000:00:00.0: [104c:b009] type 00 class 0x060400
[    0.508339] pci 0000:00:00.0: ignoring class 0x060400 (doesn't match header type 00)

It should be type 01.

Do you have any idea why is the type 00?0804.dmesg_output.txt