Skip to content

Commit

Permalink
net: hns3: log and clear hardware error after reset complete
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jian Shen authored and David S. Miller committed Oct 21, 2019
1 parent 7fda3a9 commit 4fdd0bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 4fdd0bc

Please sign in to comment.