netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kernel panic with b44 and netifd
@ 2024-04-03 14:13 Peter Münster
  2024-04-03 14:53 ` Michael Chan
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2024-04-03 14:13 UTC (permalink / raw)
  To: Michael Chan; +Cc: netdev

Hi,

Unfortunately linux-5.15.153 crashes on my router when netifd is
running.

Further information and a patch are here:
https://github.com/openwrt/openwrt/issues/13789#issuecomment-1944799389

Could you please fix b44.c in linux-5.15?

Thanks in advance for your efforts. Kind regards,
-- 
           Peter

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel panic with b44 and netifd
  2024-04-03 14:13 kernel panic with b44 and netifd Peter Münster
@ 2024-04-03 14:53 ` Michael Chan
  2024-04-03 15:50   ` Peter Münster
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Chan @ 2024-04-03 14:53 UTC (permalink / raw)
  To: Peter Münster; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

On Wed, Apr 3, 2024 at 7:13 AM Peter Münster <pm@a16n.net> wrote:
>
> Hi,
>
> Unfortunately linux-5.15.153 crashes on my router when netifd is
> running.
>
> Further information and a patch are here:
> https://github.com/openwrt/openwrt/issues/13789#issuecomment-1944799389
>
> Could you please fix b44.c in linux-5.15?
>
Since you already have the patch, please post the patch to netdev for
review.  After the patch is accepted, it can then be back ported to
the stable trees.  Thanks.

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4209 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel panic with b44 and netifd
  2024-04-03 14:53 ` Michael Chan
@ 2024-04-03 15:50   ` Peter Münster
  2024-04-03 22:00     ` Florian Fainelli
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2024-04-03 15:50 UTC (permalink / raw)
  To: Michael Chan; +Cc: netdev


[-- Attachment #1.1: Type: text/plain, Size: 285 bytes --]

On Wed, Apr 03 2024, Michael Chan wrote:

> please post the patch to netdev for review.

Ok, please find it here attached.

And please consider also KanjiMonster’s comment here:
https://github.com/openwrt/openwrt/issues/13789#issuecomment-2034601851

-- 
           Peter

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: b44.patch --]
[-- Type: text/x-patch, Size: 831 bytes --]

--- build_dir/target-mipsel_mips32_musl/linux-bcm47xx_legacy/linux-5.15.153/drivers/net/ethernet/broadcom/b44.c~	2024-04-03 10:04:09.177021530 +0200
+++ build_dir/target-mipsel_mips32_musl/linux-bcm47xx_legacy/linux-5.15.153/drivers/net/ethernet/broadcom/b44.c	2024-04-03 10:46:42.267884445 +0200
@@ -2056,12 +2056,14 @@
 		bp->flags |= B44_FLAG_TX_PAUSE;
 	else
 		bp->flags &= ~B44_FLAG_TX_PAUSE;
-	if (bp->flags & B44_FLAG_PAUSE_AUTO) {
-		b44_halt(bp);
-		b44_init_rings(bp);
-		b44_init_hw(bp, B44_FULL_RESET);
-	} else {
-		__b44_set_flow_ctrl(bp, bp->flags);
+	if (netif_running(dev)) {
+		if (bp->flags & B44_FLAG_PAUSE_AUTO) {
+			b44_halt(bp);
+			b44_init_rings(bp);
+			b44_init_hw(bp, B44_FULL_RESET);
+		} else {
+			__b44_set_flow_ctrl(bp, bp->flags);
+		}
 	}
 	spin_unlock_irq(&bp->lock);
 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: kernel panic with b44 and netifd
  2024-04-03 15:50   ` Peter Münster
@ 2024-04-03 22:00     ` Florian Fainelli
  0 siblings, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2024-04-03 22:00 UTC (permalink / raw)
  To: Peter Münster, Michael Chan; +Cc: netdev

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

On 4/3/24 08:50, Peter Münster wrote:
> On Wed, Apr 03 2024, Michael Chan wrote:
> 
>> please post the patch to netdev for review.
> 
> Ok, please find it here attached.
> 
> And please consider also KanjiMonster’s comment here:
> https://github.com/openwrt/openwrt/issues/13789#issuecomment-2034601851
> 

This is not the proper way to post the patch, please follow the 
guidelines documented here:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst

and here:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/maintainer-netdev.rst
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-03 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-03 14:13 kernel panic with b44 and netifd Peter Münster
2024-04-03 14:53 ` Michael Chan
2024-04-03 15:50   ` Peter Münster
2024-04-03 22:00     ` Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).