[PATCH net 0/2][pull request] Intel Wired LAN Driver Updates 2021-12-13

STALE1768d

4 messages, 2 authors, 2021-12-14 · open the first message on its own page

[PATCH net 0/2][pull request] Intel Wired LAN Driver Updates 2021-12-13

From: Tony Nguyen <anthony.l.nguyen@intel.com>
Date: 2021-12-13 23:38:49

This series contains updates to iavf driver only.

Dan Carpenter fixes some missing mutex unlocking.

Stefan Assmann restores stopping watchdog from overriding to reset state.

The following are changes since commit 884d2b845477cd0a18302444dc20fe2d9a01743e:
  net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability
and are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 40GbE

Dan Carpenter (1):
  iavf: missing unlocks in iavf_watchdog_task()

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

 drivers/net/ethernet/intel/iavf/iavf_main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

-- 
2.31.1

[PATCH net 1/2] iavf: missing unlocks in iavf_watchdog_task()

From: Tony Nguyen <anthony.l.nguyen@intel.com>
Date: 2021-12-13 23:38:50

From: Dan Carpenter <redacted>

This code was re-organized and there some unlocks missing now.

Fixes: 898ef1cb1cb2 ("iavf: Combine init and watchdog state machines")
Signed-off-by: Dan Carpenter <redacted>
Tested-by: Konrad Jankowski <redacted>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
 drivers/net/ethernet/intel/iavf/iavf_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c
index cfdbf8c08d18..884a19c51543 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_main.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
@@ -2046,6 +2046,7 @@ static void iavf_watchdog_task(struct work_struct *work)
 		}
 		adapter->aq_required = 0;
 		adapter->current_op = VIRTCHNL_OP_UNKNOWN;
+		mutex_unlock(&adapter->crit_lock);
 		queue_delayed_work(iavf_wq,
 				   &adapter->watchdog_task,
 				   msecs_to_jiffies(10));
@@ -2076,9 +2077,8 @@ static void iavf_watchdog_task(struct work_struct *work)
 			iavf_detect_recover_hung(&adapter->vsi);
 		break;
 	case __IAVF_REMOVE:
-		mutex_unlock(&adapter->crit_lock);
-		return;
 	default:
+		mutex_unlock(&adapter->crit_lock);
 		return;
 	}
 
-- 
2.31.1

[PATCH net 2/2] iavf: do not override the adapter state in the watchdog task (again)

From: Tony Nguyen <anthony.l.nguyen@intel.com>
Date: 2021-12-13 23:38:50

From: Stefan Assmann <redacted>

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 commit 22c8fd71d3a5 ("iavf: do not override the adapter
state in the watchdog task") but the problem was reintroduced by the
recent code refactoring in commit 45eebd62999d ("iavf: Refactor iavf
state machine tracking").

Fixes: 45eebd62999d ("iavf: Refactor iavf state machine tracking")
Signed-off-by: Stefan Assmann <redacted>
Tested-by: Konrad Jankowski <redacted>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
---
 drivers/net/ethernet/intel/iavf/iavf_main.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/iavf/iavf_main.c b/drivers/net/ethernet/intel/iavf/iavf_main.c
index 884a19c51543..4e7c04047f91 100644
--- a/drivers/net/ethernet/intel/iavf/iavf_main.c
+++ b/drivers/net/ethernet/intel/iavf/iavf_main.c
@@ -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;
-- 
2.31.1

Re: [PATCH net 0/2][pull request] Intel Wired LAN Driver Updates 2021-12-13

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-12-14 12:50:11

Hello:

This series was applied to netdev/net.git (master)
by Tony Nguyen [off-list ref]:

On Mon, 13 Dec 2021 15:37:48 -0800 you wrote:
This series contains updates to iavf driver only.

Dan Carpenter fixes some missing mutex unlocking.

Stefan Assmann restores stopping watchdog from overriding to reset state.

The following are changes since commit 884d2b845477cd0a18302444dc20fe2d9a01743e:
  net: stmmac: Add GFP_DMA32 for rx buffers if no 64 capability
and are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue 40GbE

[...]
Here is the summary with links:
  - [net,1/2] iavf: missing unlocks in iavf_watchdog_task()
    https://git.kernel.org/netdev/net/c/bc2f39a6252e
  - [net,2/2] iavf: do not override the adapter state in the watchdog task (again)
    https://git.kernel.org/netdev/net/c/fe523d7c9a83

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help