zoukankan      html  css  js  c++  java
  • PCIe相关的操作命令

    1、lspci        --显示列举系统目前的pcie设备

       43:00.0 Class 0004: Device 104c:b800 (rev 01)    //netra设备
    设备编号    class        vendor_id  device_id  __
    2)后缀用法   
       -s          #--后面跟随设备编号
       -v              Be verbose (-vv for very verbose)
       -x              Show hex-dump of the standard part of the config space
       -xxx            Show hex-dump of the whole config space (dangerous; root only)
       -xxxx           Show hex-dump of the 4096-byte extended config space (root only)
    注:显示设备的信息,使用方法:  
    lspci -s 33:00.0 -vx
    lspci -s 33:00.0 -vxxx        //x越多,显示的信息越详细
     
    2、setpci      --写EP的配置空间(不是应用寄存器空间,而是配置寄存器空间)
        
    1)setpci -s 00:00.0 0x地址.L=0x值        --修改设备地址的数值,一次修改4个字节
       setpci       是修改设备属性的命令。
       -s              表示接下来输入的是设备的地址。
       00:00.0      设备地址(<总线>:<接口>.<功能>)。
       0x地址       要修改的地址
       .L               修改的长度(B应该是字节(Byte),还有w(应该是Word,两个字节)、L(应该是Long,4个字节))。
     
       0x值           要修改的数值
  • 相关阅读:
    Python3 爬取验证代理
    Python每天学一点之Threading和queue
    Python每天学一点之argparse
    [安恒月赛]反序列化字符逃逸
    $AFO$
    洛谷$P3647 [APIO2014]$连珠线 换根$dp$
    线性基学习笔记
    $vjudge CSP-S$专题专练题解
    $POJ2942 Knights of the Round Table$ 图论
    $tarjan$简要学习笔记
  • 原文地址:https://www.cnblogs.com/FarmPick/p/6434280.html
Copyright © 2011-2022 走看看