The following content is about my PCIe devices/drivers and the lspci command results.
$ cd /sys/bus/pci_express/drivers
$ ls -al
drwxr-xr-x 2 root root 0 7月 6 15:33 aer/
drwxr-xr-x 2 root root 0 7月 6 15:33 pciehp/
drwxr-xr-x 2 root root 0 7月 6 15:33 pcie_pme/
$ cd pcie_pme
$ ls -al
$ lspci | grep 00:1c
Or
$ cd /sys/bus/pci_express/devices
$ ls -al
$ cd 0000:00:1c.0:pcie01
$ ls -al
total 0
drwxr-xr-x 3 root root 0 7月 5 08:56 ./
drwxr-xr-x 6 root root 0 7月 5 08:56 ../
lrwxrwxrwx 1 root root 0 7月 6 15:51 driver -> ../../../../bus/pci_express/drivers/pcie_pme/
drwxr-xr-x 2 root root 0 7月 6 15:51 power/
lrwxrwxrwx 1 root root 0 7月 6 15:51 subsystem -> ../../../../bus/pci_express/
-rw-r--r-- 1 root root 4096 7月 5 08:56 uevent
$ cd /proc/driver/nvidia
$ ll
total 0
dr-xr-xr-x 5 root root 0 7月 6 15:58 ./
dr-xr-xr-x 4 root root 0 7月 6 15:58 ../
dr-xr-xr-x 10 root root 0 7月 6 15:58 gpus/
-r--r--r-- 1 root root 0 7月 6 15:58 params
dr-xr-xr-x 2 root root 0 7月 6 15:58 patches/
-rw-r--r-- 1 root root 0 7月 6 15:58 registry
-r--r--r-- 1 root root 0 7月 6 15:58 version
dr-xr-xr-x 2 root root 0 7月 6 15:58 warnings/
ubuntu@ubuntu-desktop:/proc/driver/nvidia$ cd gpus/
ubuntu@ubuntu-desktop:/proc/driver/nvidia/gpus$ ll
total 0
dr-xr-xr-x 10 root root 0 7月 6 15:58 ./
dr-xr-xr-x 5 root root 0 7月 6 15:58 ../
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:04:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:05:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:08:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:09:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:83:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:84:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:87:00.0/
dr-xr-xr-x 2 root root 0 7月 6 15:58 0000:88:00.0/
$ cd 0000\:04\:00.0/
$ ll
total 0
dr-xr-xr-x 2 root root 0 7月 6 15:58 ./
dr-xr-xr-x 10 root root 0 7月 6 15:58 ../
-r--r--r-- 1 root root 0 7月 6 15:58 information
-rw-r--r-- 1 root root 0 7月 6 15:58 registry
$ hexdump -C registry
00000000 42 69 6e 61 72 79 3a 20 22 22 0a |Binary: "".|
0000000b
$ lspci -vvvxxxx -s 02:00.0
02:00.0 PCI bridge: PLX Technology, Inc. PEX 8747 48-Lane, 5-Port PCI Express Gen 3 (8.0 GT/s) Switch (rev ca) (prog-if 00 [Normal decode])
Physical Slot: 0
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
Region 0: Memory at c5100000 (32-bit, non-prefetchable) [size=256K]
Bus: primary=02, secondary=03, subordinate=05, sec-latency=0
I/O behind bridge: 00003000-00004fff
Memory behind bridge: c2000000-c50fffff
Prefetchable memory behind bridge: 000002ffb0000000-000002ffe1ffffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR+ NoISA- VGA- MAbort- >Reset- FastB2B-
PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-
Capabilities: <access denied>
Kernel driver in use: pcieport
00: b5 10 47 87 07 05 10 00 ca 00 04 06 08 00 01 00
10: 00 00 10 c5 00 00 00 00 02 03 05 00 31 41 00 00
20: 00 c2 00 c5 01 b0 f1 e1 ff 02 00 00 ff 02 00 00
30: 00 00 00 00 40 00 00 00 00 00 00 00 0b 01 12 00
No comments:
Post a Comment