MrBr-github / lshca

GNU General Public License v3.0
9 stars 6 forks source link

Add rshim interface to DPU view #85

Closed MrBr-github closed 2 years ago

MrBr-github commented 2 years ago

Add to device level, same as driver

If Dev_name has PCI address, attach to relevant DPU

If Dev_name has USB address, send error message

root@hpc-c....05:~# cat /dev/rshim0/misc
DISPLAY_LEVEL   0 (0:basic, 1:advanced, 2:log)
BOOT_MODE       1 (0:rshim, 1:emmc, 2:emmc-boot-swap)
BOOT_TIMEOUT    150 (seconds)
DROP_MODE       0 (0:normal, 1:drop)
SW_RESET        0 (1: reset)
DEV_NAME        pcie-0000:ca:00.2
DEV_INFO        BlueField-2(Rev 1)
OPN_STR         N/A

From https://github.com/Mellanox/rshim-user-space

cat /dev/rshim<N>/misc
  DISPLAY_LEVEL   0 (0:basic, 1:advanced, 2:log)
  BOOT_MODE       1 (0:rshim, 1:emmc, 2:emmc-boot-swap)
  BOOT_TIMEOUT    100 (seconds)
  SW_RESET        0 (1: reset)
  DEV_NAME        usb-3.3