mstreg can't access registers while mlxreg can
kcgthb opened this issue · 1 comments
kcgthb commented
Hi!
Trying to use mstreg
, which as far as I understand is the mstflint port or MFT's mlxreg
, I noticed that it doesn't seem to be working the same way:
For instance, trying to get PAOS registers from a MQM8790 switch fails with mstreg
:
# ./mlxreg/mstreg -d /dev/mst/SW_MT54000_sh03-isw-c03_lid-0x0010 --reg_name PAOS --get
-E- FW burnt on device does not support generic access register
while it works fine with the mlxreg
version from MFT:
# mlxreg -d /dev/mst/SW_MT54000_sh03-isw-c03_lid-0x0010 --show_reg PAOS
Field Name | Address (Bytes) | Offset (Bits) | Size (Bits) | Access
=========================================================================
oper_status | 0x00000000 | 0 | 4 | RO
admin_status | 0x00000000 | 8 | 4 | RW
local_port | 0x00000000 | 16 | 8 | INDEX
swid | 0x00000000 | 24 | 8 | INDEX
e | 0x00000004 | 0 | 2 | RW
ee | 0x00000004 | 30 | 1 | WO
ase | 0x00000004 | 31 | 1 | WO
=========================================================================
This is with mstflint version 4.14.0:
# ./mlxreg/mstreg -v
mstreg, mstflint 4.14.0, built on Apr 16 2020, 10:29:00. Git SHA Hash: N/A
Is this expected?
Thanks!
ahmadawwad commented
mstflint does not support IB devices
it is an opensource tool to work over pci device
if you need to work with IB devices [mst ib add functions] , please work with MFT