aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2019-10-19 16:03:56 +0800
committerDavid S. Miller <davem@davemloft.net>2019-10-21 09:22:10 -0700
commit4fdd0bca6152aa201898454e63cbb255a18ae6e9 (patch)
tree99c7ce25485421e8e85c8da441f6b782d446c8f2 /drivers/net/ethernet/hisilicon/hns3/hns3pf
parentnet: hns3: do not allocate linear data for fraglist skb (diff)
downloadlinux-dev-4fdd0bca6152aa201898454e63cbb255a18ae6e9.tar.xz
linux-dev-4fdd0bca6152aa201898454e63cbb255a18ae6e9.zip
net: hns3: log and clear hardware error after reset complete
When device is resetting, the CMDQ service may be stopped until reset completed. If a new RAS error occurs at this moment, it will no be able to clear the RAS source. This patch fixes it by clear the RAS source after reset complete. Signed-off-by: Jian Shen <shenjian15@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/hns3pf')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
index ad8e1797eb04..bf6bca26c337 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
@@ -9800,6 +9800,9 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev)
return ret;
}
+ /* Log and clear the hw errors those already occurred */
+ hclge_handle_all_hns_hw_errors(ae_dev);
+
/* Re-enable the hw error interrupts because
* the interrupts get disabled on global reset.
*/