Many devices such as network
and video cards are attached to the PCI bus. It is important that the operating system load the correct driver for each device so that the proper device settings are configured. For example, if your server contains
a Gigabit network card
connected to a Gigabit network
switch, you can use a few simple Linux utilities
to verify and, if necessary,
change the transfer
rate of the NIC.
To list all the PCI buses on the system and all the devices attached to them, use the lspci utility from the pciutils package. Install this package via Red Hat Network.
If run with no command-line options, the output includes one line per PCI device with
basic information such as the vendor and product name as shown
Sample lspci Output
00:00.0 Host bridge:
Intel Corporation 82975X
Memory Controller Hub
00:01.0 PCI bridge:
Intel Corporation 82975X PCI Express
Root Port
00:1b.0 Audio device:
Intel Corporation 82801G
(ICH7 Family) High Definition
Audio Controller (rev 01)
00:1c.0 PCI bridge:
Intel Corporation 82801G
(ICH7 Family) PCI Express
Port 1 (rev 01)
00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7
Family) PCI Express Port 5 (rev 01)
00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7
Family) PCI Express Port 6 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family)
USB UHCI #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family)
USB UHCI #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family)
USB UHCI #3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family)
USB UHCI #4 (rev 01)
00:1d.7 USB
Controller: Intel Corporation 82801G (ICH7 Family)
USB2 EHCI Controller (rev 01)
00:1e.0 PCI
bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge:
Intel Corporation 82801GH
(ICH7DH) LPC Interface
Bridge (rev ➥01)
00:1f.1 IDE interface:
Intel Corporation 82801G (ICH7 Family) IDE Controller (rev ➥01)
00:1f.2 IDE interface: Intel
Corporation 82801GB/GR/GH (ICH7
Family) Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus:
Intel Corporation 82801G
(ICH7 Family) SMBus Controller (rev 01)
01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT]
(rev ➥a1)
04:00.0 Ethernet
controller: Intel Corporation 82573L Gigabit Ethernet
Controller
05:04.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000
➥Controller (PHY/Link)
05:05.0 RAID bus controller: Silicon Image, Inc.
SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
To display more verbose information about the devices such as the amount of internal memory, use the command lspci -v.
Verbose lpsci Output
05:05.0 RAID bus controller: Silicon Image, Inc.
SiI 3114
[SATALink/SATARaid] Serial ATA Controller (rev 02)
Subsystem: Intel Corporation Unknown device 7114
Flags: bus master,
66MHz, medium devsel,
latency 32, IRQ 17
I/O ports at 1018 [size=8]
I/O ports at 1024 [size=4]
I/O ports at 1010 [size=8]
I/O ports at 1020 [size=4]
I/O ports at 1000 [size=16]
Memory at 92004800
(32-bit, non-prefetchable) [size=1K]
Expansion ROM at fff80000 [disabled] [size=512K]
Capabilities: [60] Power Management version
2
To display everything the system knows about the devices,
use the command lspci -vv.
Even More Verbose lspci Output
05:05.0 RAID bus controller: Silicon Image, Inc.
SiI 3114 [SATALink/SATARaid]
Serial ATA Controller (rev 02)
Subsystem: Intel Corporation Unknown device 7114
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF-
FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort-
<MAbort- >SERR- <PERR-
Latency: 32, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 17
Region 0: I/O ports at 1018 [size=8]
Region 1: I/O ports at 1024 [size=4]
Region 2: I/O ports at 1010 [size=8]
Region 3: I/O ports at 1020 [size=4]
Region 4: I/O ports at 1000 [size=16]
Region 5: Memory at 92004800
(32-bit, non-prefetchable) [size=1K]
Expansion ROM at fff80000 [disabled] [size=512K]
Capabilities: [60] Power Management version
2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
The lspci utility works by probing the device for its PCI ID.
Then, this ID number is cross-referenced with the /usr/share/hwdata/pci.ids file from the hwdata package. This file contains the vendor, device, subvendor, subdevice, and class identifiers for all known PCI IDs.
0 comments:
Post a Comment