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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市赶诊,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌掘殴,老刑警劉巖舆乔,帶你破解...
    沈念sama閱讀 219,427評論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡茎杂,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,551評論 3 395
  • 文/潘曉璐 我一進店門纫雁,熙熙樓的掌柜王于貴愁眉苦臉地迎上來煌往,“玉大人,你說我怎么就攤上這事」舨保” “怎么了羞海?”我有些...
    開封第一講書人閱讀 165,747評論 0 356
  • 文/不壞的土叔 我叫張陵,是天一觀的道長曲管。 經(jīng)常有香客問我却邓,道長,這世上最難降的妖魔是什么院水? 我笑而不...
    開封第一講書人閱讀 58,939評論 1 295
  • 正文 為了忘掉前任腊徙,我火速辦了婚禮,結(jié)果婚禮上檬某,老公的妹妹穿的比我還像新娘撬腾。我一直安慰自己,他們只是感情好橙喘,可當我...
    茶點故事閱讀 67,955評論 6 392
  • 文/花漫 我一把揭開白布时鸵。 她就那樣靜靜地躺著,像睡著了一般厅瞎。 火紅的嫁衣襯著肌膚如雪饰潜。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 51,737評論 1 305
  • 那天和簸,我揣著相機與錄音彭雾,去河邊找鬼。 笑死锁保,一個胖子當著我的面吹牛薯酝,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播爽柒,決...
    沈念sama閱讀 40,448評論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼吴菠,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了浩村?” 一聲冷哼從身側(cè)響起做葵,我...
    開封第一講書人閱讀 39,352評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎心墅,沒想到半個月后酿矢,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,834評論 1 317
  • 正文 獨居荒郊野嶺守林人離奇死亡怎燥,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,992評論 3 338
  • 正文 我和宋清朗相戀三年瘫筐,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片铐姚。...
    茶點故事閱讀 40,133評論 1 351
  • 序言:一個原本活蹦亂跳的男人離奇死亡策肝,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情驳糯,我是刑警寧澤篇梭,帶...
    沈念sama閱讀 35,815評論 5 346
  • 正文 年R本政府宣布,位于F島的核電站酝枢,受9級特大地震影響恬偷,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜帘睦,卻給世界環(huán)境...
    茶點故事閱讀 41,477評論 3 331
  • 文/蒙蒙 一袍患、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧竣付,春花似錦诡延、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,022評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至逸绎,卻和暖如春惹恃,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背棺牧。 一陣腳步聲響...
    開封第一講書人閱讀 33,147評論 1 272
  • 我被黑心中介騙來泰國打工巫糙, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人颊乘。 一個月前我還...
    沈念sama閱讀 48,398評論 3 373
  • 正文 我出身青樓参淹,卻偏偏與公主長得像,于是被迫代替她去往敵國和親乏悄。 傳聞我的和親對象是個殘疾皇子浙值,可洞房花燭夜當晚...
    茶點故事閱讀 45,077評論 2 355

推薦閱讀更多精彩內(nèi)容