Bug 215540 - mvebu: no pcie devices detected on turris omnia (5.16.3 regression)
Summary: mvebu: no pcie devices detected on turris omnia (5.16.3 regression)
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: PCI (show other bugs)
Hardware: ARM Linux
: P1 normal
Assignee: drivers_pci@kernel-bugs.osdl.org
URL: https://lore.kernel.org/r/20220127234...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-27 22:52 UTC by Jan Palus
Modified: 2022-02-01 00:03 UTC (History)
1 user (show)

See Also:
Kernel Version: 5.16.3
Tree: Mainline
Regression: Yes


Attachments

Description Jan Palus 2022-01-27 22:52:43 UTC
After kernel upgrade from 5.16.1 to 5.16.3 Turris Omnia (Armada 385) no longer detects pcie devices (wifi/msata). Haven't tried 5.16.2 but it doesn't seem to have any relevant changes, while 5.16.3 carries a few.

5.16.3:
$ dmesg|grep -i pci 
[    0.075893] PCI: CLS 0 bytes, default 64
[    0.127393] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 
[    0.127679] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    0.127723] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    0.127743] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    0.127760] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    0.127775] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    0.127790] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.127804] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.127819] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.127833] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.127847] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.127861] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.127875] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    0.127886] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    0.128145] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.128162] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.128174] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    0.128183] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    0.128191] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    0.128199] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    0.128206] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.128212] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.128354] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    0.128634] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    0.128866] pci 0000:00:03.0: [11ab:6820] type 01 class 0x060400
[    0.129958] PCI: bus0: Fast back to back transfers disabled
[    0.129979] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.129994] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.130004] pci 0000:00:03.0: bridge configuration invalid ([bus 01-00]), reconfiguring
[    0.131172] PCI: bus1: Fast back to back transfers enabled
[    0.131198] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.131363] pci 0000:02:00.0: [11ab:6820] type 00 class 0x058000
[    0.131386] pci 0000:02:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff]
[    0.131401] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x7fffffff]
[    0.131459] pci 0000:02:00.0: supports D1 D2
[    0.132655] PCI: bus2: Fast back to back transfers disabled
[    0.132681] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.132831] pci 0000:03:00.0: [11ab:6820] type 00 class 0x058000
[    0.132853] pci 0000:03:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff]
[    0.132868] pci 0000:03:00.0: reg 0x18: [mem 0x00000000-0x7fffffff]
[    0.132926] pci 0000:03:00.0: supports D1 D2
[    0.134166] PCI: bus3: Fast back to back transfers disabled
[    0.134194] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    0.134303] pci 0000:00:02.0: BAR 14: no space for [mem size 0xc0000000]
[    0.134318] pci 0000:00:02.0: BAR 14: failed to assign [mem size 0xc0000000]
[    0.134329] pci 0000:00:03.0: BAR 14: no space for [mem size 0xc0000000]
[    0.134337] pci 0000:00:03.0: BAR 14: failed to assign [mem size 0xc0000000]
[    0.134348] pci 0000:00:01.0: PCI bridge to [bus 01] 
[    0.134364] pci 0000:02:00.0: BAR 2: no space for [mem size 0x80000000]
[    0.134372] pci 0000:02:00.0: BAR 2: failed to assign [mem size 0x80000000]
[    0.134379] pci 0000:02:00.0: BAR 0: no space for [mem size 0x00100000]
[    0.134385] pci 0000:02:00.0: BAR 0: failed to assign [mem size 0x00100000]
[    0.134393] pci 0000:00:02.0: PCI bridge to [bus 02] 
[    0.134406] pci 0000:03:00.0: BAR 2: no space for [mem size 0x80000000]
[    0.134413] pci 0000:03:00.0: BAR 2: failed to assign [mem size 0x80000000]
[    0.134420] pci 0000:03:00.0: BAR 0: no space for [mem size 0x00100000]
[    0.134426] pci 0000:03:00.0: BAR 0: failed to assign [mem size 0x00100000]
[    0.134433] pci 0000:00:03.0: PCI bridge to [bus 03] 

5.16.1:
[    0.127673] mvebu-pcie soc:pcie: host bridge /soc/pcie ranges:
[    0.127717] mvebu-pcie soc:pcie:      MEM 0x00f1080000..0x00f1081fff -> 0x0000080000
[    0.127737] mvebu-pcie soc:pcie:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    0.127753] mvebu-pcie soc:pcie:      MEM 0x00f1044000..0x00f1045fff -> 0x0000044000
[    0.127768] mvebu-pcie soc:pcie:      MEM 0x00f1048000..0x00f1049fff -> 0x0000048000
[    0.127783] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.127798] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.127812] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.127826] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    0.127839] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.127853] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0300000000
[    0.127867] mvebu-pcie soc:pcie:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    0.127877] mvebu-pcie soc:pcie:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0400000000
[    0.128140] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.128157] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.128170] pci_bus 0000:00: root bus resource [mem 0xf1080000-0xf1081fff] (bus address [0x00080000-0x00081fff])
[    0.128179] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    0.128187] pci_bus 0000:00: root bus resource [mem 0xf1044000-0xf1045fff] (bus address [0x00044000-0x00045fff])
[    0.128196] pci_bus 0000:00: root bus resource [mem 0xf1048000-0xf1049fff] (bus address [0x00048000-0x00049fff])
[    0.128203] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.128210] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.128341] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    0.128362] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    0.128631] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    0.128655] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    0.128871] pci 0000:00:03.0: [11ab:6820] type 01 class 0x060400
[    0.128893] pci 0000:00:03.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    0.129975] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.129989] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.129999] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.131184] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.131344] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[    0.131375] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.131408] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.131507] pci 0000:02:00.0: supports D1
[    0.131515] pci 0000:02:00.0: PME# supported from D0 D1 D3hot
[    0.131734] pci 0000:00:02.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    0.131753] pci 0000:00:02.0: ASPM: Bridge does not support changing Link Speed to 2.5 GT/s
[    0.131759] pci 0000:00:02.0: ASPM: Retrain Link at higher speed is disallowed by quirk
[    0.131765] pci 0000:00:02.0: ASPM: Could not configure common clock
[    0.132832] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.132993] pci 0000:03:00.0: [168c:002e] type 00 class 0x028000
[    0.133027] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit]
[    0.133152] pci 0000:03:00.0: supports D1
[    0.133161] pci 0000:03:00.0: PME# supported from D0 D1 D3hot
[    0.133396] pci 0000:00:03.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    0.133413] pci 0000:00:03.0: ASPM: Bridge does not support changing Link Speed to 2.5 GT/s
[    0.133421] pci 0000:00:03.0: ASPM: Retrain Link at higher speed is disallowed by quirk
[    0.133427] pci 0000:00:03.0: ASPM: Could not configure common clock
[    0.134545] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    0.134655] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0000000-0xe02fffff]
[    0.134673] pci 0000:00:03.0: BAR 14: assigned [mem 0xe0300000-0xe03fffff]
[    0.134685] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    0.134696] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0500000-0xe05007ff pref]
[    0.134706] pci 0000:00:03.0: BAR 6: assigned [mem 0xe0600000-0xe06007ff pref]
[    0.134717] pci 0000:00:01.0: PCI bridge to [bus 01] 
[    0.134737] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[    0.134755] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0200000-0xe020ffff pref]
[    0.134764] pci 0000:00:02.0: PCI bridge to [bus 02] 
[    0.134772] pci 0000:00:02.0:   bridge window [mem 0xe0000000-0xe02fffff]
[    0.134784] pci 0000:03:00.0: BAR 0: assigned [mem 0xe0300000-0xe030ffff 64bit]
[    0.134798] pci 0000:00:03.0: PCI bridge to [bus 03] 
[    0.134806] pci 0000:00:03.0:   bridge window [mem 0xe0300000-0xe03fffff]
[    0.134997] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    0.135084] pcieport 0000:00:03.0: enabling device (0140 -> 0142)
Comment 1 Jan Palus 2022-02-01 00:03:03 UTC
It appears that first breaking commit is:

commit	7cde9bf0731688896831f90da9fe755f44a6d5e0
author	Pali Rohár <pali@kernel.org>
PCI: mvebu: Fix configuring secondary bus of PCIe Root Port via emulated bridge
[ Upstream commit 91a8d79fc797d3486ae978beebdfc55261c7d65b ]

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-5.16.y&id=7cde9bf0731688896831f90da9fe755f44a6d5e0

Note You need to log in before you can comment on or make changes to this bug.