aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
diff options
context:
space:
mode:
authorYufeng Mo <moyufeng@huawei.com>2021-05-20 10:21:30 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-20 15:01:03 -0700
commitd96b0e59468dcbd61417b7dd31985a700e58d3b2 (patch)
tree244eec2d1adae2d7f1933ee6a0392d187049e423 /drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
parentmISDN: Remove obsolete PIPELINE_DEBUG debugging information (diff)
downloadlinux-dev-d96b0e59468dcbd61417b7dd31985a700e58d3b2.tar.xz
linux-dev-d96b0e59468dcbd61417b7dd31985a700e58d3b2.zip
net: hns3: refactor dump reg of debugfs
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: Yufeng Mo <moyufeng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
index a7af9277ae69..6060bfc21850 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.h
@@ -29,6 +29,7 @@ enum hns3_dbg_dentry_type {
HNS3_DBG_DENTRY_TX_BD,
HNS3_DBG_DENTRY_RX_BD,
HNS3_DBG_DENTRY_MAC,
+ HNS3_DBG_DENTRY_REG,
HNS3_DBG_DENTRY_COMMON,
};