]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: hibmcge: Add support for BMC diagnose feature
authorJijie Shao <shaojijie@huawei.com>
Fri, 28 Feb 2025 11:54:10 +0000 (19:54 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Mar 2025 12:45:33 +0000 (13:45 +0100)
commit7a5d60dcf9981a5cc7b676e2d7472e10e0c1b681
tree3720477efbaa4072caeef033fbd7d3e246a47ecc
parente0306637e85da84a0695452f42dc29a552051402
net: hibmcge: Add support for BMC diagnose feature

The MAC hardware is on the BMC side, and the driver is on the host side.
When the driver is abnormal, the BMC cannot directly detect the
exception cause.
Therefore, this patch implements the BMC diagnosis feature.

When users query driver diagnosis information on the BMC, the driver
detects the query request in the scheduled task and reports
driver statistics and link status to the BMC through the bar space.
The BMC collects logs to analyze exception causes.

Currently, the scheduled task is executed every 30 seconds
To quickly respond to user query requests,
this patch changes the scheduled task to once every second.

Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hibmcge/Makefile
drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
drivers/net/ethernet/hisilicon/hibmcge/hbg_diagnose.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_diagnose.h [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c
drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h