From: Jian Shen Date: Sat, 19 Oct 2019 08:03:56 +0000 (+0800) Subject: net: hns3: log and clear hardware error after reset complete X-Git-Tag: Ubuntu-5.3.0-40.32~279 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b458e15b952bbebc5c0caae3e769fab94f202869;p=mirror_ubuntu-eoan-kernel.git net: hns3: log and clear hardware error after reset complete BugLink: https://bugs.launchpad.net/bugs/1860490 [ Upstream commit 4fdd0bca6152aa201898454e63cbb255a18ae6e9 ] 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 Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Kamal Mostafa Signed-off-by: Khalid Elmously --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 65b53ec1d9ca..6ca1f5f52f08 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -8964,6 +8964,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. */