]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: hns3: log and clear hardware error after reset complete
authorJian Shen <shenjian15@huawei.com>
Sat, 19 Oct 2019 08:03:56 +0000 (16:03 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 6 Jan 2020 14:16:01 +0000 (08:16 -0600)
commit33dc5e5d22ddcf31bc92f6b1fe2115e56add1b23
tree60f322a8419f5a9787cdde027f5eedfbc055236f
parent6d6eb75ae32d571ead7c75772fd30f342675c185
net: hns3: log and clear hardware error after reset complete

BugLink: https://bugs.launchpad.net/bugs/1858428
[ 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 <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c