Skip to contentSkip to conversation

iavf: do not override the adapter state in the watchdog task (again)

PATCH In review Stefan Assmann 2 participants 2 messages Dec 1, 2021 – Dec 13, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iavf: do not override the adapter state in the watchdog task (again)

The watchdog task incorrectly changes the state to __IAVF_RESETTING, instead of letting the reset task take care of that. This was already resolved by
22c8fd71d3a5 iavf: do not override the adapter state in the watchdog task but the problem was reintroduced by the recent code refactoring in 45eebd62999d.

Fixes 45eebd62999d ("iavf: Refactor iavf state machine tracking")
---
 drivers/net/ethernet/intel/iavf/iavf_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/iavf/iavf_main.c +0 -1
index 14934a7a13ef..360dfb7594cb 100644
@@ -2085,7 +2085,6 @@ static void iavf_watchdog_task(struct work_struct *work)
 	/* check for hw reset */
 	reg_val = rd32(hw, IAVF_VF_ARQLEN1) & IAVF_VF_ARQLEN1_ARQENABLE_MASK;
 	if (!reg_val) {
-		iavf_change_state(adapter, __IAVF_RESETTING);
 		adapter->flags |= IAVF_FLAG_RESET_PENDING;
 		adapter->aq_required = 0;
 		adapter->current_op = VIRTCHNL_OP_UNKNOWN;
Signature · 1 line
2.31.1
Tested-by on v1 1/1
#1 lore raw

drivers/net/ethernet/intel/iavf/iavf_main.c static void iavf_watchdog_task(struct work_struct

Quoted 32 lines

-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Stefan Assmann
Sent: ?roda, 1 grudnia 2021 09:15
To: intel-wired-lan at lists.osuosl.org
Cc: netdev at vger.kernel.org; sassmann at kpanic.de; Palczewski, Mateusz <[email protected]>
Subject: [Intel-wired-lan] [PATCH net] iavf: do not override the adapter state in the watchdog task (again)

The watchdog task incorrectly changes the state to __IAVF_RESETTING, instead of letting the reset task take care of that. This was already resolved by
22c8fd71d3a5 iavf: do not override the adapter state in the watchdog task but the problem was reintroduced by the recent code refactoring in 45eebd62999d.

Fixes 45eebd62999d ("iavf: Refactor iavf state machine tracking")
---
 drivers/net/ethernet/intel/iavf/iavf_main.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/intel/iavf/iavf_main.c +0 -0
index 14934a7a13ef..360dfb7594cb 100644
@@ -2085,7 +2085,6 @@ static void iavf_watchdog_task(struct work_struct