Reference Guide

Tests
The pcitool reads from the configuration file the devices it expects to find and reports any devices that it cannot find or if the device is
not correct. The tool supports second-source parts; therefore, they are not flagged as false errors. If a mismatch occurs, the device lists
with the expected value and the read value. Populate the configuration file with -u numbers so the device can quickly identify the failing
device.
CLI options
DellEmc Diag - PCI Tool
version 1.5, x.xx.x.x-x
build, 2017/05/23,
Usage:
To scan all PCI drivers and optionally show all config data :=
pcitool --
scan[=all] (or)
pcitool -S[=all]
To test using default PCI config-file :=
pcitool --
test (or)
pcitool -t
Show confic data for specific bus:dev.func:=
pcitool --show {--bus=<bus># --dev=<dev># --
func=<func>#} (or)
pcitool -x {-B <bus># -D <dev># -F <func>#}
Read 8-bit config register for bus:dev.func:=
pcitool --read {--bus=<bus># --dev=<dev># --func=<func># --offset=<offset> --
count=<count>} (or)
pcitool -r {-B <bus># -D <dev># -F <func># -O <offset> -C <count>}
Write 8-bit config register for bus:dev.func:=
pcitool --write {--bus=<bus># --dev=<dev># --func=<func># --offset=<offset> --
val=<value>} (or)
pcitool -w {-B <bus># -D <dev># -F <func># -O <offset> -V <value>}
Execute repeatedly command by count:=
pcitool --iteration=max/<count> [option1]
[option2]... (or)
pcitool -I max/<count> [option1] [option2]...
Syntax: pcitool <option>
-h, --h Show the help text
-S, --scan Scan operation
-t, --test Test using the pre-programmed configuration or use supplied config
-x, --show Show operation
-r, --read Read operation
-w, --write Write operation
-I, --iteration= Iteration command execution
-B, --bus= To specify the i2c bus e.g.: /dev/i2c-<bus number>
-D, --dev= Device
-F, --func= Func
-O, --offset= Set the Offset
-C, --count= Count
-V, --val= Value to be set
Output
scan output
root@dell-diag-os:~# pcitool --scan
Acquiring PCI device name database
Device#01: bus:dev.fn 00:00.0 - ID=0x1f0c8086, Intel Atom Processor SoC Transaction Router
Device#02: bus:dev.fn 00:01.0 - ID=0x1f108086, Intel Atom Processor PCIe Root Port 1
Device#03: bus:dev.fn 00:02.0 - ID=0x1f118086, Intel Atom Processor PCIe Root Port 2
Device#04: bus:dev.fn 00:03.0 - ID=0x1f128086, Intel Atom Processor PCIe Root Port 3
Dell EMC DIAG OS tools
41