文章详情

ID: 6976
实例类型: faq
分类: PCIe
相关:
产品系列: All FPGA

搜索答案数据库

Search Text Image

PCIe: How to view the PCIe configuration space on a specific domain in Linux machine?

Description: The users have to use lspci command.
To get more information about the command list, invoke sudo lspci -h.

Solution:
From the example scenario below.
-x is used to display the standard part of the configuration.
-s is used to display the configuration of the specified domain.
sudo lspci -xs [bus number]:[device number].[function number]
The bus number, device number and function number can be found on the left portion of the specified Endpoint.
In this example: 09:00.0 ATA controller: Lattice Semiconductor Corporation Device is used.
sudo lspci -xs 09:00.0
Note: Always use sudo as the command need root permission.