MVEBU - Clearfog PCIe struggles


Heisath
 Share

1 1

Recommended Posts

Armbianmonitor:

Hello all, 

 

it is this time of the year again. The pcie struggles with certain devices have returned with LK5.10 and are unfortunately not magically gone with LK5.13 :)

As interest around clearfog is not that high, I am not expecting quick solutions here. But will post my findings and perhaps solution. If you have ideas welcome to chime in.

 

pcie especially with wifi cards has been troublesome on clearfog (maybe even linux on the whole) forever(?). In LK5.4 we had it at a point where multiple different ones ran fine. Even "higher performance" ones as QCA988X (WLE600). We also list them as "supported hardware" on the download page... Now starting from LK5.10 they are making problems again. QCA988X is not booting while older one Intel Centrino N2200 works fine. I will try to figure this out...

 

Below are relevant 'dmesg' extracts from the boot. All kernel versions have been booted from the same uboot2018 armbian is using for mvebu/clearfog.

 

Working good LK4.19

Spoiler
LK 4.19.167-mvebu
http://ix.io/3AlL


[    1.881163] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.881168] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.881172] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.881175] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.881178] pci_bus 0000:00: scanning bus
[    1.881302] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.881444] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400
[    1.882442] pci_bus 0000:00: fixups for bus
[    1.882448] PCI: bus0: Fast back to back transfers disabled
[    1.882452] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.882456] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.882461] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.882464] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.882468] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.882504] pci_bus 0000:01: scanning bus
[    1.882522] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[    1.882548] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.882572] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.882634] pci 0000:01:00.0: supports D1 D2
[    1.883705] pci_bus 0000:01: fixups for bus
[    1.883710] PCI: bus1: Fast back to back transfers disabled
[    1.883713] pci_bus 0000:01: bus scan returning with max=01
[    1.883717] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.883723] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 1
[    1.883762] pci_bus 0000:02: scanning bus
[    1.884756] pci_bus 0000:02: fixups for bus
[    1.884758] PCI: bus2: Fast back to back transfers enabled
[    1.884761] pci_bus 0000:02: bus scan returning with max=02
[    1.884764] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.884768] pci_bus 0000:00: bus scan returning with max=02
[    1.884786] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    1.884792] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[    1.884802] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[    1.884806] pci 0000:00:02.0: PCI bridge to [bus 01]
[    1.884810] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    1.884815] pci 0000:00:03.0: PCI bridge to [bus 02]


[    6.693469] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.761303] systemd[1]: Finished Raise network interfaces.
[    6.774501] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.848202] PKCS#7 signature not signed with a trusted key
[    6.848213] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.862199] ath10k_pci 0000:01:00.0: assign IRQ: got 80
[    6.866856] systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    6.871638] pci 0000:00:02.0: enabling device (0140 -> 0142)
[    6.871655] pci 0000:00:02.0: enabling bus mastering
[    6.871662] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[    6.871671] ath10k_pci 0000:01:00.0: enabling bus mastering
[    6.871920] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    7.068348] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[    7.068355] ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
[    7.068894] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258
[    7.106317] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08

 

 

Working good LK5.4

Spoiler
LK 5.4.149-mvebu
http://ix.io/3AlL

[    1.903720] mvebu-pcie soc:pcie: /soc/pcie/pcie@2,0: reset gpio is active low
[    1.903925] mvebu-pcie soc:pcie: /soc/pcie/pcie@3,0: reset gpio is active low
[    1.904430] mmc0: new high speed SDHC card at address aaaa
[    1.904726] mmcblk0: mmc0:aaaa ACLCD 29.7 GiB
[    1.906798]  mmcblk0: p1
[    2.083351] ata1: SATA link down (SStatus 0 SControl 300)
[    2.083371] ata2: SATA link down (SStatus 0 SControl 300)
[    2.091349] ata4: SATA link down (SStatus 0 SControl 300)
[    2.091363] ata3: SATA link down (SStatus 0 SControl 300)
[    2.117318] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    2.117324] pci_bus 0000:00: root bus resource [bus 00-ff]
[    2.117328] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    2.117332] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    2.117336] pci_bus 0000:00: scanning bus
[    2.117448] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    2.117462] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    2.117595] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400
[    2.117605] pci 0000:00:03.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    2.118385] pci_bus 0000:00: fixups for bus
[    2.118391] PCI: bus0: Fast back to back transfers disabled
[    2.118395] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    2.118399] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.118404] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 0
[    2.118408] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.118413] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    2.118455] pci_bus 0000:01: scanning bus
[    2.118474] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[    2.118500] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    2.118524] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    2.118591] pci 0000:01:00.0: supports D1 D2
[    2.119429] pci_bus 0000:01: fixups for bus
[    2.119435] PCI: bus1: Fast back to back transfers disabled
[    2.119438] pci_bus 0000:01: bus scan returning with max=01
[    2.119443] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.119449] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 1
[    2.119490] pci_bus 0000:02: scanning bus
[    2.120260] pci_bus 0000:02: fixups for bus
[    2.120262] PCI: bus2: Fast back to back transfers enabled
[    2.120265] pci_bus 0000:02: bus scan returning with max=02
[    2.120269] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.120274] pci_bus 0000:00: bus scan returning with max=02
[    2.120293] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    2.120298] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0300000-0xe03007ff pref]
[    2.120302] pci 0000:00:03.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    2.120308] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[    2.120317] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[    2.120321] pci 0000:00:02.0: PCI bridge to [bus 01]
[    2.120326] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    2.120331] pci 0000:00:03.0: PCI bridge to [bus 02]


[    6.675948] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.690769] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.708861] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.729342] systemd[1]: Finished Raise network interfaces.
[    6.836270] systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    6.841362] ath10k_pci 0000:01:00.0: assign IRQ: got 81
[    6.841721] pci 0000:00:02.0: enabling device (0140 -> 0142)
[    6.841735] pci 0000:00:02.0: enabling bus mastering
[    6.841741] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[    6.841750] ath10k_pci 0000:01:00.0: enabling bus mastering
[    6.841920] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    7.050902] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[    7.050909] ath10k_pci 0000:01:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
[    7.051434] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258
[    7.087755] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08

 

 

Breaking LK5.10

Spoiler
LK 5.10.60-mvebu
http://ix.io/3AlL

[    1.762421] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    1.762431] mvebu-pcie soc:pcie: Parsing ranges property...
[    1.762447] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    1.762460] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    1.762472] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    1.762494] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    1.762507] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.762518] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.762529] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.762540] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.762551] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    1.762562] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    1.762573] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    1.762580] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    1.762620] mvebu-pcie soc:pcie: /soc/pcie/pcie@2,0: reset gpio is active low
[    1.762824] mvebu-pcie soc:pcie: /soc/pcie/pcie@3,0: reset gpio is active low
[    1.788078] mmc0: new high speed SDHC card at address aaaa
[    1.788385] mmcblk0: mmc0:aaaa ACLCD 29.7 GiB 
[    1.790341]  mmcblk0: p1
[    1.977439] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.977446] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.977452] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    1.977457] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    1.977461] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    1.977466] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    1.977469] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.977473] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.977477] pci_bus 0000:00: scanning bus
[    1.977601] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.977611] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    1.977823] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400
[    1.977834] pci 0000:00:03.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    1.978843] pci_bus 0000:00: fixups for bus
[    1.978851] PCI: bus0: Fast back to back transfers disabled
[    1.978857] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.978861] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.978867] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.978871] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.978876] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.978919] pci_bus 0000:01: scanning bus
[    1.978947] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[    1.978965] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.978989] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.979062] pci 0000:01:00.0: supports D1 D2
[    1.979149] pci 0000:00:02.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    1.999532] ata4: SATA link down (SStatus 0 SControl 300)
[    1.999535] ata2: SATA link down (SStatus 0 SControl 300)
[    1.999568] ata1: SATA link down (SStatus 0 SControl 300)
[    1.999571] ata3: SATA link down (SStatus 0 SControl 300)
[    2.013354] pci 0000:00:02.0: up support 3 enabled 0
[    2.013358] pci 0000:00:02.0: dn support 0 enabled 0
[    2.014320] pci_bus 0000:01: fixups for bus
[    2.014324] PCI: bus1: Fast back to back transfers enabled
[    2.014328] pci_bus 0000:01: bus scan returning with max=01
[    2.014333] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.014340] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 1
[    2.014390] pci_bus 0000:02: scanning bus
[    2.015336] pci_bus 0000:02: fixups for bus
[    2.015339] PCI: bus2: Fast back to back transfers enabled
[    2.015342] pci_bus 0000:02: bus scan returning with max=02
[    2.015346] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    2.015351] pci_bus 0000:00: bus scan returning with max=02
[    2.015374] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    2.015380] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0300000-0xe03007ff pref]
[    2.015387] pci 0000:00:03.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    2.015393] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[    2.015399] pci 0000:01:00.0: BAR 0: error updating (0xe0000004 != 0xffffffff)
[    2.015403] pci 0000:01:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)
[    2.015408] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[    2.015412] pci 0000:00:02.0: PCI bridge to [bus 01]
[    2.015418] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    2.015423] pci 0000:00:03.0: PCI bridge to [bus 02]


[    6.137823] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.175339] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.235642] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.294554] systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    6.321527] ath10k_pci 0000:01:00.0: of_irq_parse_pci: failed with rc=134
[    6.321535] ath10k_pci 0000:01:00.0: assign IRQ: got 0
[    6.322234] pci 0000:00:02.0: enabling device (0140 -> 0142)
[    6.322249] pci 0000:00:02.0: enabling bus mastering
[    6.322255] ath10k_pci 0000:01:00.0: can't change power state from D3hot to D0 (config space inaccessible)
[    6.352438] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    6.356213] ath10k_pci 0000:01:00.0: disabling bus mastering
[    6.356343] ath10k_pci: probe of 0000:01:00.0 failed with error -110

 

 

Still broken LK5.13

Spoiler
LK 5.13.19-mvebu
http://ix.io/3AlL

[    1.524358] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    1.524378] mvebu-pcie soc:pcie: Parsing ranges property...
[    1.524394] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    1.524410] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    1.524425] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    1.524439] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    1.524453] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.524466] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    1.524480] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.524493] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    1.524506] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    1.524519] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    1.524533] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    1.524542] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    1.524580] mvebu-pcie soc:pcie: /soc/pcie/pcie@2,0: reset gpio is active low
[    1.524799] mvebu-pcie soc:pcie: /soc/pcie/pcie@3,0: reset gpio is active low
[    1.548105] mmc0: new high speed SDHC card at address aaaa
[    1.548421] mmcblk0: mmc0:aaaa ACLCD 29.7 GiB 
[    1.550417]  mmcblk0: p1
[    1.737513] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.737521] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.737529] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    1.737536] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    1.737542] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    1.737549] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    1.737554] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.737559] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.737565] pci_bus 0000:00: scanning bus
[    1.737692] pci 0000:00:02.0: [11ab:6828] type 01 class 0x060400
[    1.737706] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    1.737898] pci 0000:00:03.0: [11ab:6828] type 01 class 0x060400
[    1.737910] pci 0000:00:03.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    1.738874] pci_bus 0000:00: fixups for bus
[    1.738882] PCI: bus0: Fast back to back transfers disabled
[    1.738888] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.738894] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.738901] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 0
[    1.738907] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.738913] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.738962] pci_bus 0000:01: scanning bus
[    1.738990] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[    1.739010] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    1.739037] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.739111] pci 0000:01:00.0: supports D1 D2
[    1.739204] pci 0000:00:02.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    1.755536] ata1: SATA link down (SStatus 0 SControl 300)
[    1.755561] ata2: SATA link down (SStatus 0 SControl 300)
[    1.763587] ata3: SATA link down (SStatus 0 SControl 300)
[    1.763608] ata4: SATA link down (SStatus 0 SControl 300)
[    1.773427] pci 0000:00:02.0: up support 3 enabled 0
[    1.773433] pci 0000:00:02.0: dn support 0 enabled 0
[    1.774362] pci_bus 0000:01: fixups for bus
[    1.774367] PCI: bus1: Fast back to back transfers enabled
[    1.774372] pci_bus 0000:01: bus scan returning with max=01
[    1.774377] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.774386] pci 0000:00:03.0: scanning [bus 00-00] behind bridge, pass 1
[    1.774436] pci_bus 0000:02: scanning bus
[    1.775348] pci_bus 0000:02: fixups for bus
[    1.775352] PCI: bus2: Fast back to back transfers enabled
[    1.775356] pci_bus 0000:02: bus scan returning with max=02
[    1.775361] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.775369] pci_bus 0000:00: bus scan returning with max=02
[    1.775392] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0000000-0xe02fffff]
[    1.775401] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0300000-0xe03007ff pref]
[    1.775410] pci 0000:00:03.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    1.775418] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[    1.775425] pci 0000:01:00.0: BAR 0: error updating (0xe0000004 != 0xffffffff)
[    1.775432] pci 0000:01:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)
[    1.775439] pci 0000:01:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[    1.775445] pci 0000:00:02.0: PCI bridge to [bus 01]
[    1.775451] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    1.775459] pci 0000:00:03.0: PCI bridge to [bus 02]

[    6.181887] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.198802] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.236001] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.265871] systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    6.400151] ath10k_pci 0000:01:00.0: of_irq_parse_pci: failed with rc=134
[    6.400164] ath10k_pci 0000:01:00.0: assign IRQ: got 0
[    6.401115] pci 0000:00:02.0: enabling device (0140 -> 0142)
[    6.401135] pci 0000:00:02.0: enabling bus mastering
[    6.401141] ath10k_pci 0000:01:00.0: can't change power state from D3cold to D0 (config space inaccessible)
[    6.431325] ath10k_pci 0000:01:00.0: failed to wake up device : -110
[    6.435003] ath10k_pci 0000:01:00.0: disabling bus mastering
[    6.435134] ath10k_pci: probe of 0000:01:00.0 failed with error -110

 

 

All bootlogs etc. are also in the armbianmonitor link attached to this post.

 

 

From a first glance there are some errors assigning the pci memory regions, and the main problem seems to be the power state not changing.  I try to figure out breaking version.

 

 

Greetings,

Heisath

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Hello @Heisath! This is known problem. QCA98xx wifi chips are buggy, have timing and detection issues related to PCIe, which Qualcomm confirmed. Qualcomm recommendation is to increase PCIe pulse detection and for some (x86) motherboards, vendors released a new BIOS which do it. To make it worse, Marvell A38x SoC has also buggy PCIe which cause other issues and therefore combination of QCA98xx and A38x cause even more issues.

 

I'm preparing patches for pci-mvebu.c kernel driver to fix some issues, but they are not ready yet.

 

For QCA98xx I have prepared patch which are currently on linux-pci mailing list: https://lore.kernel.org/linux-pci/20210505163357.16012-1-pali@kernel.org/

 

Could you test it and check if it helps with new kernel versions?

Edited by Pali
WIP v3 patch
Link to post
Share on other sites

Hi @Pali, thanks for linking me to that mailing list topic and providing the patches.

 

I have tested v3 on Clearfogpro with LK5.10 (based on Armbian build). Works perfectly!   I'll integrate the patch into Armbian in the next days, if it's ok for you.

 

[    6.093263] systemd[1]: Finished Raise network interfaces.
[    6.113471] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.137862] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[    6.259786] ath10k_pci 0000:01:00.0: assign IRQ: got 89
[    6.271951] pci 0000:00:02.0: enabling device (0140 -> 0142)
[    6.271966] pci 0000:00:02.0: enabling bus mastering
[    6.271973] ath10k_pci 0000:01:00.0: enabling device (0140 -> 0142)
[    6.271983] ath10k_pci 0000:01:00.0: enabling bus mastering
[    6.272152] ath10k_pci 0000:01:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    6.292488] systemd[1]: Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[    6.463645] ath10k_pci 0000:01:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000
[    6.463653] ath10k_pci 0000:01:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    6.464176] ath10k_pci 0000:01:00.0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258
[    6.501127] ath10k_pci 0000:01:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08


00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 6828 (rev 0a)
00:03.0 PCI bridge: Marvell Technology Group Ltd. Device 6828 (rev 0a)
01:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

1 1