Answers:
使用lspci -vv
,您可以获取传输率并将其与为修订版指定的传输率进行比较。输出示例如下:
# lspci -vv | grep -E 'PCI bridge|LnkCap'
00:02.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 [Normal decode])
LnkCap: Port #2, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <4us
00:03.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 [Normal decode])
LnkCap: Port #1, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <4us
00:04.0 PCI bridge: NVIDIA Corporation C51 PCI Express Bridge (rev a1) (prog-if 00 [Normal decode])
LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <512ns, L1 <4us
00:10.0 PCI bridge: NVIDIA Corporation MCP51 PCI Bridge (rev a2) (prog-if 01 [Subtractive decode])
这表明此处的速度为2.5GT / s,对应于PCIe1.x。
lspci
静默打印Capabilities: <access denied>
,然后由删除grep
。
#
手段。
您可以使用“ dmidecode”命令提供系统上所有硬件的详细列表,然后进行查看。我执行了一个“快速又肮脏”的命令,以显示相关的位,如下所示:
dmidecode | grep "PCI"
哪个回来了
PCI is supported
Type: x16 PCI Express 2 x8
Type: x8 PCI Express 2 x4
Type: x8 PCI Express 2 x4
Type: x8 PCI Express 2 x4
Type: 32-bit PCI
dmidecode --type 9
也可以在保留其余信息的同时进行过滤。