OSDN Git Service

net: hns3: add the RAS compatibility adaptation solution
authorJiaran Zhang <zhangjiaran@huawei.com>
Tue, 8 Jun 2021 13:08:28 +0000 (21:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jun 2021 21:43:30 +0000 (14:43 -0700)
commit2e2deee7618b062efe3aba9fcb017dadcf148819
tree9ae5d5c225a936965375dca2dc3c21ff4a178728
parent17f59244029bf9c0673725efdd0386ed95e127a7
net: hns3: add the RAS compatibility adaptation solution

To adapt to hardware modification and ensure that the driver is
compatible with the original error handling content, we need to add the
RAS compatibility adaptation solution.

Add a processing branch to the driver during error handling. In the new
processing branch, NIC fault information is integrated by the IMP. An
interaction command is added between the driver and IMP to query
and clear the fault source and interrupt source. The IMP integrates
error information and reports the highest reset level to the driver.

Signed-off-by: Jiaran Zhang <zhangjiaran@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c