• Y
    net: hns3: refactor dump reg of debugfs · d96b0e59
    Yufeng Mo 提交于
    Currently, the debugfs command for reg is implemented by
    "echo xxxx > cmd", and record the information in dmesg. It's
    unnecessary and heavy. To improve it, create some files
    "bios_common/ssu/igu_egu/rpu/ncsi/rtc/ppp/rcb/tqp/mac" for it,
    and query it by command "cat xxx", return the result to
    userspace, rather than record in dmesg.
    
    The display style is below:
    $ cat bios_common
    BP_CPU_STATE: 0x0
    DFX_MSIX_INFO_NIC_0: 0xc000
    DFX_MSIX_INFO_NIC_1: 0x0
    DFX_MSIX_INFO_NIC_2: 0x0
    DFX_MSIX_INFO_NIC_3: 0x0
    DFX_MSIX_INFO_ROC_0: 0xc000
    DFX_MSIX_INFO_ROC_1: 0x0
    DFX_MSIX_INFO_ROC_2: 0x0
    DFX_MSIX_INFO_ROC_3: 0x0
    Signed-off-by: NYufeng Mo <moyufeng@huawei.com>
    Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    d96b0e59
hclge_debugfs.c 58.3 KB