pcie info - majianpeng/majianpeng.github.io GitHub Wiki

deidecode -type 9

domain:bus:device.func

  • domain:domains are numbered from 0 to ffff
  • bus: 0 to ff
  • device: 0 to 1f
  • functiin: 0 to 7

lspci

-PP : Identify PCI devices by path through each bridge, showing the bus number as well as the device number.

-tvDPP

+-[0000:b0]-+-00.0 Intel Corporation Device 09a2
| +-00.1 Intel Corporation Device 09a4
| +-00.2 Intel Corporation Device 09a3
| +-00.4 Intel Corporation Device 0998
| -02.0-[b1-b2]--+-00.0 Intel Corporation Ethernet Controller E810-C for QSFP
| -00.1 Intel Corporation Ethernet Controller E810-C for QSFP
b1:00.0 Ethernet controller: Intel Corporation Ethernet Controller E810-C for QSFP (rev 02)
b1:00.1 Ethernet controller: Intel Corporation Ethernet Controller E810-C for QSFP (rev 02)
这两个设备是在PCIE Brige 后面。但是给出了global namespace: bus是b1.
不知道为什么给出b2

brige

  • -02.0-[b1-b2
  • -02.0-[65] 类似于这在说明这个设备是brige。后面是分配在这个brige的全局的bus信息:有的分配一个bus,有的分配两个。不知道什么原因?

设备的带宽,已经目前连接的带宽

LnkCap2: Supported Link Speeds: 2.5-16GT/s

设备支持的PCIE1-4.

case1

LnkCap: Port #4, Speed 8GT/s, Width x1, ASPM not supported
LnkSta: Speed 5GT/s (downgraded), Width x1 (ok)

  • 设备应该用PCIE 3.但是实际接到PCIE 2

case 2

LnkCap: Port #11, Speed 8GT/s, Width x4, ASPM L1, Exit Latency L1 <16us
LnkSta: Speed 2.5GT/s (downgraded), Width x0 (downgraded)

case 3

LnkCap: Port #13, Speed 16GT/s, Width x16, ASPM not supported
LnkSta: Speed 8GT/s (downgraded), Width x4 (downgraded)

如何看双scoket CPU 的PCIE的组织结构