ixgbevf: avoid checking hang when performing hardware
Subsystems (3)
PATCH v2 1/1 ixgbevf: avoid checking hang when performing hardware
v1->v2:
Follow the advice from Donald, replacing read directly from RSTD and RSTI register with a state variable __IXGBEVF_HW_RESETTING;
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev
_______________________________________________
E1000-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/e1000-devel
To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
PATCH 1/1 ixgbevf: avoid checking hang when performing hardware reset
From: Zhu Yanjun <[email protected]>
When performing hardware reset, it is not necessary to check hang. Or else, the call trace will appear.
--- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 1 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 5 +++-- drivers/net/ethernet/intel/ixgbevf/vf.c | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h +1 -0
@@ -446,6 +446,7 @@ enum ixbgevf_state_t { __IXGBEVF_SERVICE_INITED, __IXGBEVF_RESET_REQUESTED, __IXGBEVF_QUEUE_RESET_REQUESTED, + __IXGBEVF_HW_RESETTING, }; enum ixgbevf_boards {
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +3 -2
@@ -2795,9 +2795,10 @@ static void ixgbevf_check_hang_subtask(struct ixgbevf_adapter *adapter)u32 eics =0 ;int i; -/* If we're down or resetting, just bail */ +/* If we're down, resetting or hw resetting, just bail */ if (test_bit (__IXGBEVF_DOWN, &adapter->state) || -test_bit (__IXGBEVF_RESETTING, &adapter->state)) +test_bit (__IXGBEVF_RESETTING, &adapter->state) || +test_bit (__IXGBEVF_HW_RESETTING, &adapter->state))return ;/* Force detection of hung controller */
drivers/net/ethernet/intel/ixgbevf/vf.c +5 -0
@@ -80,6 +80,9 @@ static s32 ixgbevf_reset_hw_vf(struct ixgbe_hw *hw)s32 ret_val =IXGBE_ERR_INVALID_MAC_ADDR ;u32 msgbuf[IXGBE_VF_PERMADDR_MSG_LEN ];u8 *addr = (u8 *)(&msgbuf[1 ]); +struct ixgbevf_adapter *adapter = hw->back; + +set_bit (__IXGBEVF_HW_RESETTING, &adapter->state);/* Call adapter stop to disable tx/rx and clear interrupts */ hw->mac.ops.stop_adapter (hw);
@@ -128,6 +131,8 @@ static s32 ixgbevf_reset_hw_vf(struct ixgbe_hw *hw) hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD ]; +clear_bit (__IXGBEVF_HW_RESETTING, &adapter->state); +return 0 ; }
Signature · 14 lines
2.7.4 ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired