Dell S5148F-ON Open Networking Hardware Diagnostic Guide December 2021 - Page 58
pcitool, Set the Offset
View all Dell S5148F-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 58 highlights
pcitool To scan and access devices on the PCI bus, use the pcitool. The pcitool checks for missing devices and that the present devices are the proper type. The pcitool scans the PCI bus for present devices and displays them and the BAR information it decodes. The tool does not handle endianess. The pcitool reads the configuration file and then iterates across all devices in the configuration file. It checks the vendor/ product ID to see that the correct device is at the correct address. The tool does not compare all the configuration space. The tool reads all 256 bytes of the configuration file. 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=# --dev=# --func=#} (or) pcitool -x {-B # -D # -F #} Read 8-bit config register for bus:dev.func:= pcitool --read {--bus=# --dev=# --func=# --offset= -count=} (or) pcitool -r {-B # -D # -F # -O -C } Write 8-bit config register for bus:dev.func:= pcitool --write {--bus=# --dev=# --func=# --offset= -val=} (or) pcitool -w {-B # -D # -F # -O -V } Execute repeatedly command by count:= pcitool --iteration=max/ [option1] [option2]... (or) pcitool -I max/ [option1] [option2]... Syntax: pcitool -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- -D, --dev= Device -F, --func= Func -O, --offset= Set the Offset -C, --count= Count -V, --val= Value to be set 58 Dell EMC DAIG-OS tools