Nvme硬盘的pci bus number信息查看

vmd enable的下

[root@localhost ~]# ll /sys/block
total 0
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 dm-0 -> ../devices/virtual/block/dm-0
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 dm-1 -> ../devices/virtual/block/dm-1
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 dm-2 -> ../devices/virtual/block/dm-2
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 dm-3 -> ../devices/virtual/block/dm-3
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 dm-4 -> ../devices/virtual/block/dm-4
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 nvme0n1 -> ../devices/pci0000:05/0000:05:05.5/pci10000:00/10000:00:00.0/10000:01:00.0/10000:02:02.0/10000:05:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 nvme0n2 -> ../devices/pci0000:05/0000:05:05.5/pci10000:00/10000:00:00.0/10000:01:00.0/10000:02:02.0/10000:05:00.0/nvme/nvme0/nvme0n2
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 sda -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:0:13/0:0:13:0/block/sda
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 sdb -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:0/0:2:0:0/block/sdb
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 sdc -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:2/0:2:2:0/block/sdc
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 sdd -> ../devices/pci0000:00/0000:00:1c.6/0000:03:00.0/ata15/host15/target15:0:0/15:0:0:0/block/sdd
lrwxrwxrwx. 1 root root 0 Jan 11 03:54 sr0 -> ../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4:1.0/host18/target18:0:0/18:0:0:0/block/sr0
[root@localhost ~]# lspci -vvv |grep "Non-Volatile"
pcilib: sysfs_read_vpd: read failed: Input/output error
10000:05:00.0 Non-Volatile memory controller: Intel Corporation NVMe Datacenter SSD [3DNAND, Beta Rock Controller] (prog-if 02 [NVM Express])
[root@localhost ~]# lspci -vvv |grep "nvme"
pcilib: sysfs_read_vpd: read failed: Input/output error
Kernel driver in use: nvme
Kernel modules: nvme
[root@localhost ~]# lspci |grep -i "nvme"
0000:05:05.5 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller (rev 07)
0000:85:05.5 RAID bus controller: Intel Corporation Volume Management Device NVMe RAID Controller (rev 07)
10000:05:00.0 Non-Volatile memory controller: Intel Corporation NVMe Datacenter SSD [3DNAND, Beta Rock Controller]

vmd disable
[root@localhost ~]# ll /sys/block
total 0
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-0 -> ../devices/virtual/block/dm-0
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-1 -> ../devices/virtual/block/dm-1
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-2 -> ../devices/virtual/block/dm-2
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-3 -> ../devices/virtual/block/dm-3
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-4 -> ../devices/virtual/block/dm-4
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 nvme0n1 -> ../devices/pci0000:05/0000:05:00.0/0000:06:00.0/0000:07:02.0/0000:0a:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 nvme0n2 -> ../devices/pci0000:05/0000:05:00.0/0000:06:00.0/0000:07:02.0/0000:0a:00.0/nvme/nvme0/nvme0n2
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sda -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:0:13/0:0:13:0/block/sda
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdb -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:0/0:2:0:0/block/sdb
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdc -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:2/0:2:2:0/block/sdc
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdd -> ../devices/pci0000:00/0000:00:1c.6/0000:03:00.0/ata15/host15/target15:0:0/15:0:0:0/block/sdd
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sr0 -> ../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4:1.0/host18/target18:0:0/18:0:0:0/block/sr0

[root@localhost ~]# lspci -s 0a:00.0 -vvv |more
0a:00.0 Non-Volatile memory controller: Intel Corporation NVMe Datacenter SSD [3DNAND, Beta Rock Controller] (prog-if 02 [NVM Express])
Subsystem: Lenovo Thinksystem U.2 P4510 NVMe SSD
Physical Slot: 70-1
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 293
[root@localhost ~]# lspci |grep -i nvme
0a:00.0 Non-Volatile memory controller: Intel Corporation NVMe Datacenter SSD [3DNAND, Beta Rock Controller]
[root@localhost ~]#

[root@localhost ~]# lspci -s 0c:00.0 -vvv |more
0c:00.0 System peripheral: Broadcom / LSI Virtual Endpoint on PCIe Switch (rev b0)
Subsystem: Lenovo ThinkSystem 1610-4P NVMe Switch Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
NUMA node: 0
Region 0: Memory at d9400000 (32-bit, non-prefetchable) [size=4M]
Expansion ROM at d9800000 [disabled] [size=128K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [48] MSI-X: Enable+ Count=1 Masked-
Vector table: BAR=0 offset=003ffc00
PBA: BAR=0 offset=003ffdf0
Capabilities: [68] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <64ns, L1 <1us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 256 bytes, MaxReadReq 128 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #4, Speed 8GT/s, Width x16, ASPM not supported
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (downgraded), Width x8 (downgraded)
TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis-, NROPrPrP-, LTR-
10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS-, TPHComp-, ExtTPHComp-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
AtomicOpsCtl: ReqEn-
LnkCtl2: Target Link Speed: 8GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [e0] Vendor Specific Information: Len=20 <?>
Capabilities: [100 v1] Device Serial Number 00-0e-df-10-b5-10-08-b0
Capabilities: [b70 v1] Vendor Specific Information: ID=0001 Rev=0 Len=014 <?> Kernel driver in use: mpt3sas
Kernel modules: mpt3sas

[root@localhost ~]# ll /sys/block
total 0
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-0 -> ../devices/virtual/block/dm-0
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-1 -> ../devices/virtual/block/dm-1
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-2 -> ../devices/virtual/block/dm-2
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-3 -> ../devices/virtual/block/dm-3
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 dm-4 -> ../devices/virtual/block/dm-4
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 nvme0n1 -> ../devices/pci0000:05/0000:05:00.0/0000:06:00.0/0000:07:02.0/0000:0a:00.0/nvme/nvme0/nvme0n1
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 nvme0n2 -> ../devices/pci0000:05/0000:05:00.0/0000:06:00.0/0000:07:02.0/0000:0a:00.0/nvme/nvme0/nvme0n2
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sda -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:0:13/0:0:13:0/block/sda
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdb -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:0/0:2:0:0/block/sdb
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdc -> ../devices/pci0000:57/0000:57:00.0/0000:58:00.0/host0/target0:2:2/0:2:2:0/block/sdc
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sdd -> ../devices/pci0000:00/0000:00:1c.6/0000:03:00.0/ata15/host15/target15:0:0/15:0:0:0/block/sdd
lrwxrwxrwx. 1 root root 0 Jan 11 04:51 sr0 -> ../devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1.4/1-1.4:1.0/host18/target18:0:0/18:0:0:0/block/sr0

[root@localhost ~]# lspci -s 05:00.0|more
05:00.0 PCI bridge: Intel Corporation Sky Lake-E PCI Express Root Port A (rev 07)

[root@localhost ~]# lspci -s 06:00.0 -vv|more
06:00.0 PCI bridge: PLX Technology, Inc. PEX 9733 33-lane, 9-port PCI Express Gen 3 (8.0 GT/s) Switch (rev b0) (prog-if 00 [Normal decode])
Physical Slot: 3
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
NUMA node: 0
Bus: primary=06, secondary=07, subordinate=0c, sec-latency=0
I/O behind bridge: [disabled]
Memory behind bridge: d9400000-d9dfffff [size=10M]
Prefetchable memory behind bridge: 0000021000000000-0000021000bfffff [size=12M]
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity+ SERR+ NoISA- VGA- VGA16+ MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [68] Express (v2) Upstream Port, MSI 00

[root@localhost ~]#lspci -t
+-[0000:05]-+-00.0-[06-0c]----00.0-[07-0c]--+-00.0-[08]----00.0
| | +-01.0-[09]----00.0
| | +-02.0-[0a]----00.0
| | +-03.0-[0b]----00.0
| | -1d.0-[0c]----00.0

[root@localhost ~]# lspci -s 07:00.0 -vvv |grep -i slot
Capabilities: [68] Express (v2) Downstream Port (Slot+), MSI 00
TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-
Slot #68, PowerLimit 25.000W; Interlock- NoCompl+
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
[root@localhost ~]# lspci -s 07:01.0 -vvv |grep -i slot
Capabilities: [68] Express (v2) Downstream Port (Slot+), MSI 00
TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-
Slot #69, PowerLimit 25.000W; Interlock- NoCompl+
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
[root@localhost ~]# lspci -s 07:02.0 -vvv |grep -i slot
Capabilities: [68] Express (v2) Downstream Port (Slot+), MSI 00
TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-
Slot #70, PowerLimit 25.000W; Interlock- NoCompl+
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
[root@localhost ~]# lspci -s 07:03.0 -vvv |grep -i slot
Capabilities: [68] Express (v2) Downstream Port (Slot+), MSI 00
TrErr- Train- SlotClk- DLActive+ BWMgmt- ABWMgmt-
Slot #71, PowerLimit 25.000W; Interlock- NoCompl+
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
[root@localhost ~]# lspci -s 0a:00.0 -v
0a:00.0 Non-Volatile memory controller: Intel Corporation NVMe Datacenter SSD [3DNAND, Beta Rock Controller] (prog-if 02 [NVM Express])
Subsystem: Lenovo Thinksystem U.2 P4510 NVMe SSD
Physical Slot: 70-1
Flags: bus master, fast devsel, latency 0, IRQ 293, NUMA node 0
Memory at d9b10000 (64-bit, non-prefetchable) [size=16K]
Expansion ROM at d9b00000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI-X: Enable+ Count=129 Masked-
Capabilities: [60] Express Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Advanced Error Reporting
Capabilities: [150] Virtual Channel
Capabilities: [180] Power Budgeting <?>
Capabilities: [190] Alternative Routing-ID Interpretation (ARI)
Capabilities: [270] Device Serial Number 55-cd-2e-41-52-38-13-5c
Capabilities: [2a0] Secondary PCI Express
Capabilities: [2d0] Latency Tolerance Reporting
Capabilities: [310] L1 PM Substates
Kernel driver in use: nvme
Kernel modules: nvme

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 217,657评论 6 505
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,889评论 3 394
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,057评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,509评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,562评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,443评论 1 302
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,251评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,129评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,561评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,779评论 3 335
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,902评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,621评论 5 345
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,220评论 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,838评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,971评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,025评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,843评论 2 354

推荐阅读更多精彩内容