Skip to content

Instantly share code, notes, and snippets.

@ptpt52
Created February 21, 2021 08:02
Show Gist options
  • Save ptpt52/8d1c4ad151efbdc141b17d29aba8dde2 to your computer and use it in GitHub Desktop.
Save ptpt52/8d1c4ad151efbdc141b17d29aba8dde2 to your computer and use it in GitHub Desktop.
on device 1: (good)
/#dmesg | grep pci
[ 0.282831] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe1
[ 0.282872] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe2
[ 0.514811] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 0.514825] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 0.514839] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.514855] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.514905] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 0.514954] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 0.515019] pci 0000:00:00.0: supports D1
[ 0.515032] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.515266] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.515412] pci 0000:01:00.0: [14c3:7915] type 00 class 0x000280
[ 0.515483] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 0.515517] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 0.515551] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 0.515654] pci 0000:01:00.0: supports D1 D2
[ 0.515666] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.515852] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.515872] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.515926] pci 0000:00:00.0: BAR 9: assigned [mem 0x60000000-0x601fffff pref]
[ 0.515940] pci 0000:00:00.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[ 0.515963] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit pref]
[ 0.515994] pci 0000:01:00.0: BAR 2: assigned [mem 0x60100000-0x60103fff 64bit pref]
[ 0.516025] pci 0000:01:00.0: BAR 4: assigned [mem 0x60104000-0x60104fff 64bit pref]
[ 0.516055] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.516074] pci 0000:00:00.0: bridge window [mem 0x60000000-0x601fffff pref]
[ 4.607579] ohci-pci: OHCI PCI platform driver
[ 22.614738] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 43.771087] SURE: pci_unregister_driver start
[ 43.849165] SURE: pci_unregister_driver end
[ 43.853375] SURE: pci_register_driver start
[ 43.980296] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 43.987022] SURE: pci_register_driver end
[ 45.086580] ChipI=7915, Value=0, pcie_aspm in profile=0
[ 45.438479] pci_driver_own_by_port: success to clear p=0 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
/#
/#
/#
/#[ 1475.896355] mt753x gsw: Port 2 Link is Down
on device 2: (bad)
/#dmesg | grep pci
[ 0.282745] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe1
[ 0.282784] mt7621-pci 1e140000.pcie: Failed to get gpio for PCIe2
[ 0.513464] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 0.513486] pci_bus 0000:00: root bus resource [io 0x1e160000-0x1e16ffff]
[ 0.513511] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.513530] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.513582] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 0.513634] pci 0000:00:00.0: reg 0x14: [mem 0x60400000-0x6040ffff]
[ 0.513700] pci 0000:00:00.0: supports D1
[ 0.513713] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.513963] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 0.514030] pci 0000:00:01.0: reg 0x14: [mem 0x60410000-0x6041ffff]
[ 0.514102] pci 0000:00:01.0: supports D1
[ 0.514115] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 0.514568] pci 0000:01:00.0: [14c3:7916] type 00 class 0x000280
[ 0.514667] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 0.514708] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 0.514742] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 0.514849] pci 0000:01:00.0: supports D1 D2
[ 0.514861] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.515078] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.515300] pci 0000:02:00.0: [14c3:7915] type 00 class 0x000280
[ 0.515395] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit pref]
[ 0.515441] pci 0000:02:00.0: reg 0x18: [mem 0x00000000-0x00003fff 64bit pref]
[ 0.515475] pci 0000:02:00.0: reg 0x20: [mem 0x00000000-0x00000fff 64bit pref]
[ 0.515581] pci 0000:02:00.0: supports D1 D2
[ 0.515593] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[ 0.515791] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 0.515826] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 02
[ 0.515925] pci 0000:00:00.0: BAR 9: assigned [mem 0x60000000-0x601fffff pref]
[ 0.515943] pci 0000:00:01.0: BAR 9: assigned [mem 0x60200000-0x603fffff pref]
[ 0.515957] pci 0000:00:00.0: BAR 1: assigned [mem 0x60400000-0x6040ffff]
[ 0.515975] pci 0000:00:01.0: BAR 1: assigned [mem 0x60410000-0x6041ffff]
[ 0.515998] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x600fffff 64bit pref]
[ 0.516030] pci 0000:01:00.0: BAR 2: assigned [mem 0x60100000-0x60103fff 64bit pref]
[ 0.516061] pci 0000:01:00.0: BAR 4: assigned [mem 0x60104000-0x60104fff 64bit pref]
[ 0.516090] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.516109] pci 0000:00:00.0: bridge window [mem 0x60000000-0x601fffff pref]
[ 0.516130] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x602fffff 64bit pref]
[ 0.516161] pci 0000:02:00.0: BAR 2: assigned [mem 0x60300000-0x60303fff 64bit pref]
[ 0.516192] pci 0000:02:00.0: BAR 4: assigned [mem 0x60304000-0x60304fff 64bit pref]
[ 0.516220] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 0.516236] pci 0000:00:01.0: bridge window [mem 0x60200000-0x603fffff pref]
[ 4.616260] ohci-pci: OHCI PCI platform driver
[ 22.625277] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 22.674168] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 43.711695] SURE: pci_unregister_driver start
[ 43.800425] SURE: pci_unregister_driver end
[ 43.804692] SURE: pci_register_driver start
[ 43.829022] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 43.961394] <-- pci_alloc_tx_rx_ring_mem, Status=0
[ 43.967874] SURE: pci_register_driver end
[ 45.062818] ChipI=7915, Value=0, pcie_aspm in profile=0
[ 45.448353] pci_driver_own_by_port: success to clear p=0 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
[ 45.459658] pci_driver_own_by_port: success to clear p=1 fw own, from(1): 1 is interrupt mode, 2 is polling mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment