Skip to contentSkip to conversation

Revert "igb: Disable threaded IRQ for igb_msix_other"

PATCH In review Wander Lairson Costa 6 participants 12 messages Nov 6, 2024 – Nov 13, 2024

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

PATCH v2 1/4 Revert "igb: Disable threaded IRQ for igb_msix_other"

This reverts commit 338c4d3902feb5be49bfda530a72c7ab860e2c9f.

Sebastian noticed the ISR indirectly acquires spin_locks, which are sleeping locks under PREEMPT_RT, which leads to kernel splats.

Fixes 338c4d3902feb ("igb: Disable threaded IRQ for igb_msix_other")

---

Changelog:

v2: Add the Fixes tag

---
 drivers/net/ethernet/intel/igb/igb_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
index b83df5f94b1f5..f1d0881687233 100644
@@ -907,7 +907,7 @@ static int igb_request_msix(struct igb_adapter *adapter)
 	int i, err = 0, vector = 0, free_vector = 0;
 
 	err = request_irq(adapter->msix_entries[vector].vector,
-			  igb_msix_other, IRQF_NO_THREAD, netdev->name, adapter);
+			  igb_msix_other, 0, netdev->name, adapter);
 	if (err)
 		goto err_out;
 
Signature · 1 line
2.47.0
maintainer Reviewed-by on v2 1/4
#1 lore raw
Quoted 8 lines · Wander Lairson Costa

This reverts commit 338c4d3902feb5be49bfda530a72c7ab860e2c9f.

Sebastian noticed the ISR indirectly acquires spin_locks, which are sleeping locks under PREEMPT_RT, which leads to kernel splats.

Fixes 338c4d3902feb ("igb: Disable threaded IRQ for igb_msix_other")

This is the only patch.

Sebastian

#2 lore raw
Quoted 7 lines · Sebastian Andrzej Siewior
Quoted 5 lines · Wander Lairson Costa

This reverts commit 338c4d3902feb5be49bfda530a72c7ab860e2c9f.

Sebastian noticed the ISR indirectly acquires spin_locks, which are sleeping locks under PREEMPT_RT, which leads to kernel splats.

Quoted 7 lines
Quoted 3 lines
Fixes 338c4d3902feb ("igb: Disable threaded IRQ for igb_msix_other")

This is the only patch.

Hrm, I had other unrelated .patch files in my directory, git-send-email might have gotten confused because of that.

Quoted 3 lines

Sebastian

maintainer
#3 lore raw
In reply to Wander Lairson Costa
Quoted 4 lines · Wander Lairson Costa

This reverts commit 338c4d3902feb5be49bfda530a72c7ab860e2c9f.

Sebastian noticed the ISR indirectly acquires spin_locks, which are sleeping locks under PREEMPT_RT, which leads to kernel splats.

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

Quoted 28 lines
Fixes 338c4d3902feb ("igb: Disable threaded IRQ for igb_msix_other")

---

Changelog:

v2: Add the Fixes tag

---
  drivers/net/ethernet/intel/igb/igb_main.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/igb/igb_main.c +1 -1
index b83df5f94b1f5..f1d0881687233 100644
@@ -907,7 +907,7 @@ static int igb_request_msix(struct igb_adapter *adapter)
  	int i, err = 0, vector = 0, free_vector = 0;
 
  	err = request_irq(adapter->msix_entries[vector].vector,
-			  igb_msix_other, IRQF_NO_THREAD, netdev->name, adapter);
+			  igb_msix_other, 0, netdev->name, adapter);
  	if (err)
  		goto err_out;
 
#4 lore raw
Quoted 2 lines · Przemek Kitszel

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

I don't have a splat, I just reviewed the original patch. Please do delay this.

Sebastian

maintainer
#5 lore raw
Quoted 8 lines · Sebastian Andrzej Siewior
Quoted 2 lines · Przemek Kitszel

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

I don't have a splat, I just reviewed the original patch. Please do delay this.

Sebastian

Rafal,
you have provided your Tested-by tag for the original (not reverted) patch, could you please re-test it on RT kernel?

Przemek

#6 lore raw
In reply to Sebastian Andrzej Siewior
Quoted 8 lines · Sebastian Andrzej Siewior
Quoted 2 lines · Przemek Kitszel

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

I don't have a splat, I just reviewed the original patch. Please do delay this.

Sebastian

It will definitely splat on RT kernels at some point, if there is a spinlock.

#7 lore raw
Quoted 9 lines · Jacob Keller
Quoted 6 lines · Sebastian Andrzej Siewior
Quoted 2 lines · Przemek Kitszel

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

I don't have a splat, I just reviewed the original patch. Please do delay this.

this clearly lacks a `not'

Quoted 4 lines
Quoted 1 line

Sebastian

It will definitely splat on RT kernels at some point, if there is a spinlock.

exactly my point.

Sebastian

maintainer Acked-by
#8 lore raw
Quoted 4 lines · Sebastian Andrzej Siewior
Quoted 3 lines · Jacob Keller

On 11/8/2024 4:28 AM, Sebastian Andrzej Siewior wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines · Przemek Kitszel
Quoted 2 lines

I don't like to slow things down, but it would be great to have a Link:
to the report, and the (minified) splat attached.

I don't have a splat, I just reviewed the original patch. Please do delay this.

this clearly lacks a `not'

sorry for the slowdown then,

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Sebastian

It will definitely splat on RT kernels at some point, if there is a spinlock.

exactly my point.

still would be great to add some basic RT tests in our VAL, but it's unrelated to this patch

maintainer
#9 lore raw
Quoted 1 line · On Tue, 12 Nov 2024 15:52:34 +0100 Przemek Kitszel wrote:

Do you want us to take this directly?
To be clear - we only treat an ack from the maintainer who usually sends us patches as implicit "please take this directly".

maintainer
#10 lore raw
Quoted 6 lines · Jakub Kicinski
Quoted 1 line · On Tue, 12 Nov 2024 15:52:34 +0100 Przemek Kitszel wrote:

Do you want us to take this directly?
To be clear - we only treat an ack from the maintainer who usually sends us patches as implicit "please take this directly".

Please take this one directly, Tony is OOO today, same for Jake that could've provided also his RB otherwise.

I usually don't Ack intel-only series to avoid such ambiguities.

for this particular patch I wanted to say "fine for me, on behalf of Intel", especially that this time I didn't provided meaningful feedback on the code (put in that way to be nice for myself); we have a track record of discussions preventing application to the iwl*/dev-queue (as for this patch).

#11 lore raw
In reply to Wander Lairson Costa
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Wed, 6 Nov 2024 08:14:26 -0300 you wrote:

This reverts commit 338c4d3902feb5be49bfda530a72c7ab860e2c9f.

Sebastian noticed the ISR indirectly acquires spin_locks, which are sleeping locks under PREEMPT_RT, which leads to kernel splats.

Fixes 338c4d3902feb ("igb: Disable threaded IRQ for igb_msix_other")

[...]

Here is the summary with links:
- [v2,1/4] Revert "igb: Disable threaded IRQ for igb_msix_other"

    https://git.kernel.org/netdev/net/c/50d325bb05ce

You are awesome, thank you!

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