AR# 34806: Design Assistant for PCI Express - Software that Displays PCI Express Devices In System
AR# 34806
|
Design Assistant for PCI Express - Software that Displays PCI Express Devices In System
描述
This Answer Record describes three different software applications available to help diagnose problems with the PCI Express device in the system. NOTE:This Answer Record is part of the Xilinx Solution Center for PCI Express (Xilinx Answer 34536).The Xilinx Solution Center for PCI Express is available to address all questions related to PCIe.Whether you are starting a new design with PCIe or troubleshooting a problem, use the Solution Center for PCIe to guide you to the right information.
解决方案
LSPCI (Linux) LSPCI is available on Linux platforms and allows users to view the PCI Express device configuration space. LSPCI is usually found in the /sbin directory. LSPCI displays a list of devices on the PCI buses in the system. See the LSPCI manual for all command options.
Some useful commands for debugging include:
lspci -x -d [< vendor >]:[< device >]
This displays the first 64 bytes of configuration space in hexadecimal form for the device with vendor and device ID specified (omit the -d option to display information for all devices). The default Vendor/Device ID for Xilinx cores is 10EE:6012. Below is a sample of a read of the configuration space of a Xilinx device:
Included in this section of the configuration space are the Device ID, Vendor ID, Class Code, Status and Command registers, and Base Address Registers. lspci -xxxx -d [< vendor >]:[< device >]
This displays the extended configuration space of the device. It might be useful to read the extended configuration space on the root and look for the Advanced Error Reporting (AER) registers. These registers provide more information on why the device has flagged an error (for example, it might show that a correctable error was issued because of a replay timer time-out). lspci -k
Shows kernel drivers handling each device
PCItree (Windows)
PCItree can be downloaded at www.pcitree.de and allows the user to view the PCI Express device configuration space and perform 1 DWORD memory writes and reads to the aperture. The configuration space is displayed by default in the lower right corner when the device is selected, as shown in here. PCItree will not show you the PCI Express extended configuration space.
HWDirect(Windows)
HWDIRECT can be purchased at www.eprotek.com and allows the user to view the PCI Express device configuration space as well as the extended configuration space (including the AER registers on the root).