Skip to content

Instantly share code, notes, and snippets.

@BlackMoonWolf
Last active April 3, 2020 04:50
Show Gist options
  • Save BlackMoonWolf/b440dd45f8023729964f12e0180f692e to your computer and use it in GitHub Desktop.
Save BlackMoonWolf/b440dd45f8023729964f12e0180f692e to your computer and use it in GitHub Desktop.
FIRST:
-----------------------------------------------------------------------
root@freenas:~ # dmidecode -t 9
OR
root@freenas:~ # dmidecode -t slot
# dmidecode 3.1
Scanning /dev/mem for entry point.
SMBIOS 2.6 present.
Handle 0x0900, DMI type 9, 17 bytes
System Slot Information
Designation: PCI1
Type: x4 PCI Express 2 x8
Current Usage: In Use
Length: Long
ID: 1
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:06:00.0
Handle 0x0901, DMI type 9, 17 bytes
System Slot Information
Designation: PCI2
Type: x4 PCI Express 2 x8
Current Usage: In Use
Length: Long
ID: 2
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:04:00.0
Handle 0x0902, DMI type 9, 17 bytes
System Slot Information
Designation: PCI3
Type: x8 PCI Express 2
Current Usage: In Use
Length: Long
ID: 3
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:0a:00.0
Handle 0x0903, DMI type 9, 17 bytes
System Slot Information
Designation: PCI4
Type: x8 PCI Express 2
Current Usage: In Use
Length: Long
ID: 4
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:07:00.0
-----------------------------------------------------------------------
THEN:
-----------------------------------------------------------------------
root@freenas:~ # lspci -tvnn
-[0000:00]-+-00.0 Intel Corporation 5520 I/O Hub to ESI Port [8086:3406]
+-01.0-[01]--+-00.0 Broadcom Limited NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639]
| \-00.0 Broadcom Limited NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639]
+-03.0-[02]--+-00.0 Broadcom Limited NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639]
| \-00.0 Broadcom Limited NetXtreme II BCM5709 Gigabit Ethernet [14e4:1639]
+-04.0-[03]--
+-05.0-[04-05]--+-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| +-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| +-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| \-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
+-06.0-[06]----00.0 ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612]
+-07.0-[07-09]--+-00.0 Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb]
| \-00.0 Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb]
+-09.0-[0a]----00.0 LSI Logic / Symbios Logic SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087]
+-14.0 Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers [8086:3422]
+-14.0 Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers [8086:342e]
+-14.0 Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers [8086:3423]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:342c]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:3431]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:3432]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:3433]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:3429]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:342a]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:342b]
+-16.0 Intel Corporation 5520/5500/X58 Chipset QuickData Technology Device [8086:3430]
+-1a.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 [8086:2938]
+-1a.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 [8086:2937]
+-1a.0 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 [8086:293c]
+-1d.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 [8086:2935]
+-1d.0 Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 [8086:2934]
+-1d.0 Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 [8086:293a]
+-1e.0-[0b]----03.0 Matrox Electronics Systems Ltd. MGA G200eW WPCM450 [102b:0532]
+-1f.0 Intel Corporation 82801IB (ICH9) LPC Interface Controller [8086:2918]
\-1f.0 Intel Corporation 82801IB (ICH9) 2 port SATA Controller [IDE mode] [8086:2921]
-----------------------------------------------------------------------
Map the [SLOT] in LSPCI output to "Bus Address" in DMIDECODE:
(NOTE: "ID" refers to the actual, physical slot number as noted
on the rear of a DELL chassis.)
-----------------------------------------------------------------------
-----------------------------------------------------------
+-06.0-[06]----00.0 ASMedia Technology Inc. ASM1062 Serial ATA Controller [1b21:0612]
-----------------------------------------------------------
System Slot Information
Designation: PCI1
Type: x4 PCI Express 2 x8
Current Usage: In Use
Length: Long
ID: 1
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:06:00.0
-----------------------------------------------------------
+-05.0-[04-05]--+-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| +-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| +-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
| \-00.0 Intel Corporation I350 Gigabit Network Connection [8086:1521]
-----------------------------------------------------------
Handle 0x0901, DMI type 9, 17 bytes
System Slot Information
Designation: PCI2
Type: x4 PCI Express 2 x8
Current Usage: In Use
Length: Long
ID: 2
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:04:00.0
-----------------------------------------------------------
+-09.0-[0a]----00.0 LSI Logic / Symbios Logic SAS2308 PCI-Express Fusion-MPT SAS-2 [1000:0087]
-----------------------------------------------------------
Handle 0x0902, DMI type 9, 17 bytes
System Slot Information
Designation: PCI3
Type: x8 PCI Express 2
Current Usage: In Use
Length: Long
ID: 3
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:0a:00.0
-----------------------------------------------------------
+-07.0-[07-09]--+-00.0 Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb]
| \-00.0 Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection [8086:10fb]
-----------------------------------------------------------
Handle 0x0903, DMI type 9, 17 bytes
System Slot Information
Designation: PCI4
Type: x8 PCI Express 2
Current Usage: In Use
Length: Long
ID: 4
Characteristics:
3.3 V is provided
PME signal is supported
Bus Address: 0000:07:00.0```
Additional info about the hardware:
root@freenas[~]# lspci | grep Mellanox
06:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
07:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
root@freenas[~]# lspci -vv -s 06:00.0
06:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
Subsystem: Hewlett-Packard Company InfiniBand FDR/EN 10/40Gb Dual Port 544QSFP 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: 64 bytes
Interrupt: pin A routed to IRQ 35
Region 0: Memory at df700000 (64-bit, non-prefetchable)
Region 2: Memory at 40000000 (64-bit, prefetchable)
Expansion ROM at df600000 [disabled]
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] Vital Product Data
Not readable
Capabilities: [9c] MSI-X: Enable+ Count=128 Masked-
Vector table: BAR=0 offset=0007c000
PBA: BAR=0 offset=0007d000
Capabilities: [60] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <64ns, L1 unlimited
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 116.000W
DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+ Unsupported+
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
LnkCap: Port #8, Speed 8GT/s, Width x8, ASPM L0s, Exit Latency L0s unlimited
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR-, OBFF Not Supported
DevCtl2: Completion Timeout: 65ms to 210ms, 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: [c0] Vendor Specific Information: Len=18 <?>
Capabilities: [100 v1] Alternative Routing-ID Interpretation (ARI)
ARICap: MFVC- ACS-, Next Function: 0
ARICtl: MFVC- ACS-, Function Group: 0
Capabilities: [148 v1] Device Serial Number 24-be-05-ff-ff-b4-70-70
Capabilities: [108 v1] Single Root I/O Virtualization (SR-IOV)
IOVCap: Migration-, Interrupt Message Number: 000
IOVCtl: Enable- Migration- Interrupt- MSE- ARIHierarchy+
IOVSta: Migration-
Initial VFs: 16, Total VFs: 16, Number of VFs: 16, Function Dependency Link: 00
VF offset: 1, stride: 1, Device ID: 1004
Supported Page Size: 000007ff, System Page Size: 00000001
Region 2: Memory at 0000000000000000 (64-bit, prefetchable)
VF Migration: offset: 00000000, BIR: 0
Capabilities: [154 v2] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt+ UnxCmplt+ RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP+ FCP+ CmpltTO+ CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC+ UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
CEMsk: RxErr+ BadTLP+ BadDLLP+ Rollover+ Timeout+ NonFatalErr+
AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 00000000 00000000 00000000 00000000
Capabilities: [18c v1] #19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment