[Patch V5 net 03/11] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem

2018-10-30 Thread Huazhong Tan
, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[Patch V5 net 01/11] net: hns3: add error handler for hns3_nic_init_vector_data()

2018-10-30 Thread Huazhong Tan
When hns3_nic_init_vector_data() fails to map ring to vector, it should cancel the netif_napi_add() that has been successfully done and then exits. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- V5: Fixes comment

[Patch V5 net 08/11] net: hns3: fix incorrect return value/type of some functions

2018-10-30 Thread Huazhong Tan
e lost problem when resetting") Signed-off-by: Huazhong Tan --- V2: Fixes the compilation error reported by kbuild test robot --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 80 +++--- drivers/net/ethernet/hi

[Patch V5 net 10/11] net: hns3: bugfix for rtnl_lock's range in the hclge_reset()

2018-10-30 Thread Huazhong Tan
t;) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index f3212c9..ffdd960 100644 --- a/d

[Patch V5 net 11/11] net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

2018-10-30 Thread Huazhong Tan
/ring mgmt layer") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ind

[Patch V5 net 02/11] net: hns3: bugfix for buffer not free problem during resetting

2018-10-30 Thread Huazhong Tan
HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- V5: Fixes comments from Sergei Shtylyov add error handler for hns3_get_vector_ring_chain() --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletion

[Patch V5 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-30 Thread Huazhong Tan
, otherwise it may cause queue not being reset to working state problem. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- V4: Fixes comments from Sergei Shtylyov V3: Fixes comments from Sergei Shtylyov --- drivers/ne

[Patch V5 net 07/11] net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read

2018-10-30 Thread Huazhong Tan
never send command queue message to IMP when reset) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisi

[Patch V5 net 04/11] net: hns3: bugfix for the initialization of command queue's spin lock

2018-10-30 Thread Huazhong Tan
: 3efb960f056d ("net: hns3: Refactor the initialization of command queue") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[Patch V5 net 09/11] net: hns3: bugfix for handling mailbox while the command queue reinitialized

2018-10-30 Thread Huazhong Tan
is not available and needs to be reinitialized. Therefore, when the mailbox handler recognizes this flag, it should not process the command. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Huazhong Tan --- V3: Fixes comments from Sergei Shtylyov --- drivers/ne

[Patch V5 net 06/11] net: hns3: bugfix for is_valid_csq_clean_head()

2018-10-30 Thread Huazhong Tan
in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[Patch V5 net 00/11] Bugfix for the HNS3 driver

2018-10-30 Thread Huazhong Tan
the compilation break reported by kbuild test robot http://patchwork.ozlabs.org/patch/989818/ Huazhong Tan (11): net: hns3: add error handler for hns3_nic_init_vector_data() net: hns3: bugfix for buffer not free problem during resetting net: hns3: bugfix for reporting unknown vector0 in

[Patch V4 net 01/11] net: hns3: add error handler for hns3_nic_init_vector_data()

2018-10-29 Thread Huazhong Tan
When hns3_nic_init_vector_data() fails to map ring to vector, it should cancel the netif_napi_add() that has been successfully done and then exits. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/ne

[Patch V4 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-29 Thread Huazhong Tan
, otherwise it may cause queue not being reset to working state problem. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- V4: Fixes comments from Sergei Shtylyov V3: Fixes comments from Sergei Shtylyov --- drivers/ne

[Patch V4 net 04/11] net: hns3: bugfix for the initialization of command queue's spin lock

2018-10-29 Thread Huazhong Tan
: 3efb960f056d ("net: hns3: Refactor the initialization of command queue") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[Patch V4 net 00/11] Bugfix for the HNS3 driver

2018-10-29 Thread Huazhong Tan
http://patchwork.ozlabs.org/patch/989818/ Huazhong Tan (11): net: hns3: add error handler for hns3_nic_init_vector_data() net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem net: hns

[Patch V4 net 06/11] net: hns3: bugfix for is_valid_csq_clean_head()

2018-10-29 Thread Huazhong Tan
in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[Patch V4 net 03/11] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem

2018-10-29 Thread Huazhong Tan
, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[Patch V4 net 08/11] net: hns3: fix incorrect return value/type of some functions

2018-10-29 Thread Huazhong Tan
e lost problem when resetting") Signed-off-by: Huazhong Tan --- V2: Fixes the compilation error reported by kbuild test robot --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 80 +++--- drivers/net/ethernet/hi

[Patch V4 net 02/11] net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring

2018-10-29 Thread Huazhong Tan
pport of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/h

[Patch V4 net 09/11] net: hns3: bugfix for handling mailbox while the command queue reinitialized

2018-10-29 Thread Huazhong Tan
is not available and needs to be reinitialized. Therefore, when the mailbox handler recognizes this flag, it should not process the command. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Huazhong Tan --- V3: Fixes comments from Sergei Shtylyov --- drivers/ne

[Patch V4 net 11/11] net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

2018-10-29 Thread Huazhong Tan
/ring mgmt layer") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ind

[Patch V4 net 07/11] net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read

2018-10-29 Thread Huazhong Tan
never send command queue message to IMP when reset) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisi

[Patch V4 net 10/11] net: hns3: bugfix for rtnl_lock's range in the hclge_reset()

2018-10-29 Thread Huazhong Tan
t;) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index f3212c9..ffdd960 100644 --- a/d

[Patch V3 net 11/11] net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

2018-10-27 Thread Huazhong Tan
/ring mgmt layer") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ind

[Patch V3 net 06/11] net: hns3: bugfix for is_valid_csq_clean_head()

2018-10-27 Thread Huazhong Tan
in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[Patch V3 net 09/11] net: hns3: bugfix for handling mailbox while the command queue reinitialized

2018-10-27 Thread Huazhong Tan
is not available and needs to be reinitialized. Therefore, when the mailbox handler recognizes this flag, it should not process the command. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Huazhong Tan --- V3: Fixes comments from Sergei Shtylyov --- drivers/ne

[Patch V3 net 10/11] net: hns3: bugfix for rtnl_lock's range in the hclge_reset()

2018-10-27 Thread Huazhong Tan
t;) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index f3212c9..ffdd960 100644 --- a/d

[Patch V3 net 00/11] Bugfix for the HNS3 driver

2018-10-27 Thread Huazhong Tan
This patch series include bugfix for the HNS3 ethernet controller driver. Change log: V2->V3: Fixes comments from Sergei Shtylyov V1->V2: Fixes the compilation break reported by kbuild test robot http://patchwork.ozlabs.org/patch/989818/ Huazhong Tan (11): net

[Patch V3 net 01/11] net: hns3: add error handler for hns3_nic_init_vector_data()

2018-10-27 Thread Huazhong Tan
When hns3_nic_init_vector_data() failed for mapping ring to vector, it should cancel the netif_napi_add() that have been successfully done and then exit. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/ne

[Patch V3 net 03/11] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem

2018-10-27 Thread Huazhong Tan
, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[Patch V3 net 07/11] net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read

2018-10-27 Thread Huazhong Tan
never send command queue message to IMP when reset) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisi

[Patch V3 net 08/11] net: hns3: fix incorrect return value/type of some functions

2018-10-27 Thread Huazhong Tan
e lost problem when resetting") Signed-off-by: Huazhong Tan --- V2: Fixes the compilation error reported by kbuild test robot --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 80 +++--- drivers/net/ethernet/hi

[Patch V3 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-27 Thread Huazhong Tan
, otherwise it may cause queue not be reset to working state problem. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- V3: Fixes comments from Sergei Shtylyov --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

[Patch V3 net 02/11] net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring

2018-10-27 Thread Huazhong Tan
pport of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/h

[Patch V3 net 04/11] net: hns3: bugfix for the initialization of command queue's spin lock

2018-10-27 Thread Huazhong Tan
: 3efb960f056d ("net: hns3: Refactor the initialization of command queue") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[Patch V2 net 01/11] net: hns3: add error handler for hns3_nic_init_vector_data()

2018-10-27 Thread Huazhong Tan
When hns3_nic_init_vector_data() failed for mapping ring to vector, it should cancel the netif_napi_add() that have been successfully done and then exit. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/ne

[Patch V2 net 04/11] net: hns3: bugfix for the initialization of command queue's spin lock

2018-10-27 Thread Huazhong Tan
: 3efb960f056d ("net: hns3: Refactor the initialization of command queue") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[Patch V2 net 02/11] net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring

2018-10-27 Thread Huazhong Tan
pport of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/h

[Patch V2 net 10/11] net: hns3: bugfix for rtnl_lock's range in the hclge_reset()

2018-10-27 Thread Huazhong Tan
t;) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index f3212c9..ffdd960 100644 --- a/d

[Patch V2 net 00/11] Bugfix for the HNS3 driver

2018-10-27 Thread Huazhong Tan
This patch series include bugfix for the HNS3 ethernet controller driver. Change log: V1->V2: Fixes the compilation break reported by kbuild test robot http://patchwork.ozlabs.org/patch/989818/ Huazhong Tan (11): net: hns3: add error handler for hns3_nic_init_vector_d

[Patch V2 net 03/11] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem

2018-10-27 Thread Huazhong Tan
, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[Patch V2 net 07/11] net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read

2018-10-27 Thread Huazhong Tan
never send command queue message to IMP when reset) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisi

[Patch V2 net 08/11] net: hns3: fix incorrect return value/type of some functions

2018-10-27 Thread Huazhong Tan
e lost problem when resetting") Signed-off-by: Huazhong Tan --- V2: Fix the compilation error reported by kbuild test robot --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 80 +++--- drivers/net/ethernet/hi

[Patch V2 net 06/11] net: hns3: bugfix for is_valid_csq_clean_head()

2018-10-27 Thread Huazhong Tan
in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[Patch V2 net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-27 Thread Huazhong Tan
reset, otherwise it may cause queue not be resetted to working state problem. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 --- drivers/net/ethernet/hisi

[Patch V2 net 09/11] net: hns3: bugfix for handling mailbox while the command queue reinitialized

2018-10-27 Thread Huazhong Tan
is not available and needs to be reinitialized. Therefore, when the mailbox hanlder recognizes this flag, it should not process the command. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 6

[Patch V2 net 11/11] net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

2018-10-27 Thread Huazhong Tan
/ring mgmt layer") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ind

[Patch net 03/11] net: hns3: bugfix for reporting unknown vector0 interrupt repeatly problem

2018-10-26 Thread Huazhong Tan
, the driver enables the vector0 interrupt after clearing the known type of interrupt source. Other conditions are not enabled. Fixes: cd8c5c269b1d ("net: hns3: Fix for hclge_reset running repeatly problem") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hc

[Patch net 01/11] net: hns3: add error handler for hns3_nic_init_vector_data()

2018-10-26 Thread Huazhong Tan
When hns3_nic_init_vector_data() failed for mapping ring to vector, it should cancel the netif_napi_add() that have been successfully done and then exit. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/ne

[Patch net 00/11] Bugfix for the HNS3 driver

2018-10-26 Thread Huazhong Tan
This patch series include bugfix for the HNS3 ethernet controller driver. Huazhong Tan (11): net: hns3: add error handler for hns3_nic_init_vector_data() net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring net: hns3: bugfix for reporting unknown vector0 interrupt

[Patch net 06/11] net: hns3: bugfix for is_valid_csq_clean_head()

2018-10-26 Thread Huazhong Tan
in this function is unreadable, so give them a more readable one. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-)

[Patch net 11/11] net: hns3: bugfix for rtnl_lock's range in the hclgevf_reset()

2018-10-26 Thread Huazhong Tan
/ring mgmt layer") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index 552b70

[Patch net 09/11] net: hns3: bugfix for handling mailbox while the command queue reinitialized

2018-10-26 Thread Huazhong Tan
is not available and needs to be reinitialized. Therefore, when the mailbox hanlder recognizes this flag, it should not process the command. Fixes: dde1a86e93ca ("net: hns3: Add mailbox support to PF driver") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c | 6

[Patch net 10/11] net: hns3: bugfix for rtnl_lock's range in the hclge_reset()

2018-10-26 Thread Huazhong Tan
t;) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index a0c2834..394f797 100644 --- a/d

[Patch net 05/11] net: hns3: remove unnecessary queue reset in the hns3_uninit_all_ring()

2018-10-26 Thread Huazhong Tan
reset, otherwise it may cause queue not be resetted to working state problem. Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 --- drivers/net/ethernet/hisi

[Patch net 08/11] net: hns3: fix incorrect return value/type of some functions

2018-10-26 Thread Huazhong Tan
e lost problem when resetting") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 6 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c| 81 +++--- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h| 2 +- .../ethernet/hisilicon/

[Patch net 02/11] net: hns3: add error handler for hns3_get_ring_config/hns3_queue_to_ring

2018-10-26 Thread Huazhong Tan
pport of HNS3 Ethernet Driver for hip08 SoC") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/h

[Patch net 04/11] net: hns3: bugfix for the initialization of command queue's spin lock

2018-10-26 Thread Huazhong Tan
: 3efb960f056d ("net: hns3: Refactor the initialization of command queue") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclg

[Patch net 07/11] net: hns3: bugfix for hclge_mdio_write and hclge_mdio_read

2018-10-26 Thread Huazhong Tan
never send command queue message to IMP when reset) Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c b/drivers/net/ethernet/hisi

[Patch net 2/2] net: hns3: modify variable type in hns3_nic_reuse_page

2018-08-22 Thread Huazhong Tan
'truesize' is supposed to be u32, not int, so fix it. Signed-off-by: Huazhong tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net

[Patch net 0/2] net: hns3: bug fix & optimization for HNS3 driver

2018-08-22 Thread Huazhong Tan
This patchset presents a bug fix found out when CONFIG_ARM64_64K_PAGES enable and an optimization for HNS3 driver. Huazhong Tan (2): net: hns3: fix page_offset overflow when CONFIG_ARM64_64K_PAGES net: hns3: modify variable type in hns3_nic_reuse_page drivers/net/ethernet/hisilicon/hns3

[Patch net 1/2] net: hns3: fix page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-08-22 Thread Huazhong Tan
r for hip08 SoC") Signed-off-by: Huazhong Tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.h b/drivers/net/ethernet/hisilicon/hns3/hns3

[Patch net 0/4] net: hns: bug fixes & optimization for HNS driver

2018-08-22 Thread Huazhong Tan
This patchset presents some bug fixes found out when CONFIG_ARM64_64K_PAGES enable and an optimization for HNS driver. Huazhong Tan (4): net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES net: hns: modify variable type in hns_nic_reuse_page net: hns: fix skb

[Patch net 4/4] net: hns: use eth_get_headlen interface instead of hns_nic_get_headlen

2018-08-22 Thread Huazhong Tan
Update hns to drop the hns_nic_get_headlen function in favour of eth_get_headlen, and hence also removes now redundant hns_nic_get_headlen. Signed-off-by: Huazhong Tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 103 +- 1 file changed

[Patch net 3/4] net: hns: fix skb->truesize underestimation

2018-08-22 Thread Huazhong Tan
ire buffer into turesize. Fixes: 9cbe9fd5214e ("net: hns: optimize XGE capability by reducing cpu usage") Signed-off-by: Huazhong tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[Patch net 2/4] net: hns: modify variable type in hns_nic_reuse_page

2018-08-22 Thread Huazhong Tan
'truesize' is supposed to be u32, not int, so fix it. Signed-off-by: Huazhong tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net

[Patch net 1/4] net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES

2018-08-22 Thread Huazhong Tan
When enable the config item "CONFIG_ARM64_64K_PAGES", the size of PAGE_SIZE is 65536(64K). But the type of length and page_offset are u16, they will overflow. So change them to u32. Fixes: 6fe6611ff275 ("net: add Hisilicon Network Subsystem hnae framework support") Signed-

[Patch net-next V2] net: hns3: fix return value error while hclge_cmd_csq_clean failed

2018-08-01 Thread Huazhong Tan
of 0, and HCLGE_STATE_CMD_DISABLE needs to be set to prevent sending command again. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 +

[Patch net-next] net: hns3: fix return value error while hclge_cmd_csq_clean failed

2018-08-01 Thread Huazhong Tan
an error code instead of 0, and HCLGE_STATE_CMD_DISABLE needs to be set to prevent sending command again. Fixes: 3ff504908f95 ("net: hns3: fix a dead loop in hclge_cmd_csq_clean") Signed-off-by: Huazhong Tan wq --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 12 +--- 1 fi

[PATCH net-next] net: hns: Fix for variable may be used uninitialized warnings

2018-01-17 Thread Huazhong Tan
When !CONFIG_REGMAP hns throws compiler warnings since dsaf_read_syscon ignores the return result from regmap_read, which allows val to be uninitialized. Fixes: 86897c960b49 ("net: hns: add syscon operation for dsaf") Reported-by: Jason Gunthorpe <j...@ziepe.ca> Signed-off-