提交 997350e5 编写于 作者: Y yuzhitao 提交者: Xie XiuQi

net: hns3: solve imp reset fail because of err hw resting

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This commit is dedicated to solve the reset failure when the driver
misidentifies the chip reset status.
The modification is strongly associated with the one on the function
"hclge_get_hw_reset_stat" in hns3/hns3pf/hclge_main.c
Signed-off-by: Nyuzhitao <yuzhitao@huawei.com>
Reviewed-by: Nliyongxin1 <liyongxin1@huawei.com>
Reviewed-by: Ndengweiwei <dengweiwei@huawei.com>
Reviewed-by: Nzhongzhaohui <zhongzhaohui@huawei.com>
Reviewed-by: Nchenjunxin <chenjunxin1@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 a71781ce
...@@ -120,7 +120,7 @@ void hclge_reset_event_it(struct pci_dev *pdev, struct hnae3_handle *handle) ...@@ -120,7 +120,7 @@ void hclge_reset_event_it(struct pci_dev *pdev, struct hnae3_handle *handle)
else if (time_after(jiffies, (hdev->last_reset_time + 4 * 5 * HZ))) else if (time_after(jiffies, (hdev->last_reset_time + 4 * 5 * HZ)))
hdev->reset_level = HNAE3_FUNC_RESET; hdev->reset_level = HNAE3_FUNC_RESET;
dev_info(&hdev->pdev->dev, "received reset event , reset type is %d", dev_info(&hdev->pdev->dev, "IT received reset event, reset type is %d",
hdev->reset_level); hdev->reset_level);
if (hdev->ppu_poison_ras_err && nic_event_call) { if (hdev->ppu_poison_ras_err && nic_event_call) {
...@@ -146,13 +146,13 @@ bool hclge_reset_done_it(struct hnae3_handle *handle, bool done) ...@@ -146,13 +146,13 @@ bool hclge_reset_done_it(struct hnae3_handle *handle, bool done)
netdev = hdev->vport[0].nic.netdev; netdev = hdev->vport[0].nic.netdev;
if (done) { if (done) {
dev_info(&hdev->pdev->dev, "Report Reset DONE!\n"); dev_info(&hdev->pdev->dev, "IT Report Reset DONE!\n");
if (nic_event_call) if (nic_event_call)
nic_call_event(netdev, HNAE3_RESET_DONE_CUSTOM); nic_call_event(netdev, HNAE3_RESET_DONE_CUSTOM);
} }
if (hdev->reset_fail_cnt >= HCLGE_RESET_MAX_FAIL_CNT) { if (hdev->reset_fail_cnt >= HCLGE_RESET_MAX_FAIL_CNT) {
dev_err(&hdev->pdev->dev, "Report Reset fail!\n"); dev_err(&hdev->pdev->dev, "IT Report Reset fail!\n");
if (nic_event_call) { if (nic_event_call) {
if (hdev->reset_type == HNAE3_FUNC_RESET) if (hdev->reset_type == HNAE3_FUNC_RESET)
nic_call_event(netdev, nic_call_event(netdev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册