Commit 3e0f7cc
net: hns3: fixed reset failure issues caused by the incorrect reset type
When a reset type that is not supported by the driver is input, a reset
pending flag bit of the HNAE3_NONE_RESET type is generated in
reset_pending. The driver does not have a mechanism to clear this type
of error. As a result, the driver considers that the reset is not
complete. This patch provides a mechanism to clear the
HNAE3_NONE_RESET flag and the parameter of
hnae3_ae_ops.set_default_reset_request is verified.
The error message:
hns3 0000:39:01.0: cmd failed -16
hns3 0000:39:01.0: hclge device re-init failed, VF is disabled!
hns3 0000:39:01.0: failed to reset VF stack
hns3 0000:39:01.0: failed to reset VF(4)
hns3 0000:39:01.0: prepare reset(2) wait done
hns3 0000:39:01.0 eth4: already uninitialized
Use the crash tool to view struct hclgevf_dev:
struct hclgevf_dev {
...
default_reset_request = 0x20,
reset_level = HNAE3_NONE_RESET,
reset_pending = 0x100,
reset_type = HNAE3_NONE_RESET,
...
};
Fixes: 720bd58 ("net: hns3: add set_default_reset_request in the hnae3_ae_ops")
Signed-off-by: Hao Lan <[email protected]>
Signed-off-by: Jijie Shao <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>1 parent f2c1489 commit 3e0f7cc
File tree
2 files changed
+61
-10
lines changed- drivers/net/ethernet/hisilicon/hns3
- hns3pf
- hns3vf
2 files changed
+61
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3584 | 3584 | | |
3585 | 3585 | | |
3586 | 3586 | | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3587 | 3598 | | |
3588 | 3599 | | |
3589 | 3600 | | |
| |||
3604 | 3615 | | |
3605 | 3616 | | |
3606 | 3617 | | |
3607 | | - | |
| 3618 | + | |
3608 | 3619 | | |
3609 | 3620 | | |
3610 | 3621 | | |
| |||
3614 | 3625 | | |
3615 | 3626 | | |
3616 | 3627 | | |
3617 | | - | |
| 3628 | + | |
3618 | 3629 | | |
3619 | 3630 | | |
3620 | 3631 | | |
| |||
4062 | 4073 | | |
4063 | 4074 | | |
4064 | 4075 | | |
4065 | | - | |
| 4076 | + | |
4066 | 4077 | | |
4067 | 4078 | | |
4068 | 4079 | | |
| |||
4096 | 4107 | | |
4097 | 4108 | | |
4098 | 4109 | | |
| 4110 | + | |
| 4111 | + | |
4099 | 4112 | | |
4100 | 4113 | | |
4101 | 4114 | | |
| |||
4237 | 4250 | | |
4238 | 4251 | | |
4239 | 4252 | | |
4240 | | - | |
| 4253 | + | |
4241 | 4254 | | |
4242 | 4255 | | |
4243 | 4256 | | |
| |||
4480 | 4493 | | |
4481 | 4494 | | |
4482 | 4495 | | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
4483 | 4500 | | |
4484 | 4501 | | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
4485 | 4510 | | |
4486 | 4511 | | |
4487 | 4512 | | |
| |||
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
1398 | 1409 | | |
1399 | 1410 | | |
1400 | 1411 | | |
| |||
1544 | 1555 | | |
1545 | 1556 | | |
1546 | 1557 | | |
1547 | | - | |
| 1558 | + | |
1548 | 1559 | | |
1549 | 1560 | | |
1550 | 1561 | | |
| |||
1664 | 1675 | | |
1665 | 1676 | | |
1666 | 1677 | | |
| 1678 | + | |
| 1679 | + | |
1667 | 1680 | | |
1668 | 1681 | | |
1669 | 1682 | | |
| |||
1673 | 1686 | | |
1674 | 1687 | | |
1675 | 1688 | | |
1676 | | - | |
1677 | | - | |
1678 | 1689 | | |
1679 | 1690 | | |
1680 | 1691 | | |
1681 | 1692 | | |
1682 | 1693 | | |
1683 | 1694 | | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
1684 | 1698 | | |
1685 | 1699 | | |
1686 | 1700 | | |
| |||
1691 | 1705 | | |
1692 | 1706 | | |
1693 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
1694 | 1713 | | |
1695 | 1714 | | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1696 | 1722 | | |
1697 | 1723 | | |
1698 | 1724 | | |
| |||
1849 | 1875 | | |
1850 | 1876 | | |
1851 | 1877 | | |
1852 | | - | |
| 1878 | + | |
1853 | 1879 | | |
1854 | 1880 | | |
1855 | 1881 | | |
1856 | 1882 | | |
1857 | 1883 | | |
1858 | 1884 | | |
1859 | | - | |
| 1885 | + | |
1860 | 1886 | | |
1861 | 1887 | | |
1862 | 1888 | | |
| |||
1979 | 2005 | | |
1980 | 2006 | | |
1981 | 2007 | | |
1982 | | - | |
| 2008 | + | |
1983 | 2009 | | |
1984 | 2010 | | |
1985 | 2011 | | |
| |||
0 commit comments