首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >dmidecode与lspci不同

dmidecode与lspci不同
EN

Unix & Linux用户
提问于 2016-08-30 19:21:45
回答 1查看 1.7K关注 0票数 1

第一,规则lscpi

代码语言:javascript
复制
lspci | grep Non-Volatile
03:00.0 Non-Volatile memory controller ...

它被解释为(域0)、总线03、设备00、函数0。

dmidecode的相关部分:

代码语言:javascript
复制
dmidecode -t slot
Handle 0x0026, DMI type 9, 17 bytes
System Slot Information
        Designation: PCIE3
        Type: x16 PCI Express 3 x16
        Current Usage: In Use
        Length: Long
        Characteristics:
                3.3 V is provided
                Opening is shared
                PME signal is supported
        Bus Address: 0000:03:02.0

显示域0,总线3,设备2,函数0。

现在,在那里有一座桥,从lspci树中可以看到:

代码语言:javascript
复制
lspci -tv | grep -C 3 Non-Volatile
\-[0000:00]-+-00.0  Intel Corporation Xeon E5/Core i7 DMI2
            +-01.0-[01]--
            +-01.1-[02]--
            +-02.0-[03]----00.0  Non-Volatile memory controller ...

桥是总线0上的设备2,但是dmidecode认为插槽是3总线上的设备2有点奇怪。

EN

回答 1

Unix & Linux用户

发布于 2016-08-30 20:43:02

man dmidecode

代码语言:javascript
复制
...
dmidecode  is  a tool for dumping a computer's DMI (some say
SMBIOS) table contents in a human-readable format.
...
While this is a good point in terms of report speed and safeness,
this also makes the presented information possibly unreliable.
...

Linux内核知道它使用的地址。所以我会依赖sysfs和lspci。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/306759

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档