Skip to contentSkip to conversation

Intel Wired LAN Driver Updates 2021-12-13

GIT PULL New Tony Nguyen 2 participants 4 messages Dec 13, 2021 – Dec 14, 2021

Subsystems (3)
lore
Share & tools
lore

Tony Nguyen

author maintainer
#0 lore raw

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(-)
Signature · 1 line
2.31.1
author maintainer
#1 lore raw

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

From: Dan Carpenter <[email protected]>

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

Fixes 898ef1cb1cb2 ("iavf: Combine init and watchdog state machines")
---
 drivers/net/ethernet/intel/iavf/iavf_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/intel/iavf/iavf_main.c +2 -2
index cfdbf8c08d18..884a19c51543 100644
@@ -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;
 	}
 
Signature · 1 line
2.31.1
author maintainer
#2 lore raw

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

In reply to Tony Nguyen

From: Stefan Assmann <[email protected]>

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")
---
 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 884a19c51543..4e7c04047f91 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
#3 lore raw
In reply to Tony Nguyen
This series was applied to netdev/net.git (master) by Tony Nguyen <[email protected]>:

Hello:

This series was applied to netdev/net.git (master) by Tony Nguyen <[email protected]>:

Quoted 4 lines · 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.

Quoted 8 lines

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!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html