mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bert Karwatzki <spasswolf@web.de>
To: linux-kernel@vger.kernel.org, Rafal Ostrowski <rafal.ostrowski@amd.com>
Cc: linux-next@vger.kernel.org, linux-rt-devel@lists.linux.dev,
	 amd-gfx@lists.freedesktop.org,
	Alex Deucher <alexander.deucher@amd.com>,
	 Mario Limonciello <mario.limonciello@amd.com>,
	Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Thomas Gleixner	 <tglx@linutronix.de>,
	spasswolf@web.de
Subject: Re: [Re] kernel panic during shutdown in  next-20260722
Date: Fri, 24 Jul 2026 17:08:49 +0200	[thread overview]
Message-ID: <3c1be47abfcc907e7c1f9696cb25a24c93415a28.camel@web.de> (raw)
In-Reply-To: <4d7c2dd588cd77d1d112da473f2a262d22051d57.camel@web.de>

Am Freitag, dem 24.07.2026 um 00:51 +0200 schrieb Bert Karwatzki:
> Am Donnerstag, dem 23.07.2026 um 18:17 +0200 schrieb Bert Karwatzki:
> > Am Donnerstag, dem 23.07.2026 um 15:23 +0200 schrieb Bert Karwatzki:
> > > Am Donnerstag, dem 23.07.2026 um 15:10 +0200 schrieb Bert Karwatzki:
> > > > I was able to gather the panic error message from a failed shutdown via netconsole,
> > > > this time the kernel used was v7.2-rc3:
> > > > #
> > > > Bert Karwatzki
> > > 
> > > Unfortunatetly I can now reproduce these kernel panics in v7.1:
> > > 
> > > 
> > > So now I'm going to use memtest86+ on my machine and then look at the changes I had in
> > > my userspace as the first error occured on 22.7.2026. Let's hope this does not escalate ...
> > > 
> > > Bert Karwatzki
> > 
> > 
> > But I found out an exciting thing:
> > I can only reproduce the crashes in v7.2-rc4 when watching the reboot via netconsole,
> > without netconsole no crash occurs!(This also explains why I had not seen this crashes before ...) 
> > 
> Actually this is not cause by netconsole, but by rebooting right after a crash. Some
> broken state seems to be preserved across reboots. Switching off the power supply after
> a crash or even a ~30s wait after switching off the crashed machine seems to be enough
> to get around this.
>  Also the hang when rebooting next-20260722 also occurs when compiling without PREEMPT_RT.
> 
> Bert Karwatzki

There are actually several errors here:
1) The shutdown hang wich occurs in next-20260722+ (PREMPT_RT or not)
This error is caused by (I'll open a separate thread for this):

commit 13b7e6a96a005c656d38f3da51581deaf9866375
Author: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Date:   Wed Jul 8 16:43:47 2026 +0200

    wifi: mt76: Disable napi when removing device
    
    Unloading the mt7915e module with a MT7916 triggers multiples WARN in
    __netif_napi_del_locked() and in page_pool_disable_direct_recycling()
    because the driver does not disable the napi before destroying it.
    
    This is troublesome since on MT7916 it is required to unload the module
    and reinsert it with a different enable_6ghz parameter to change the
    frequency.  The system generally becomes unstable after reinserting the
    module.
    
    Fix it by disabling napi before deleting it.  Also, do not delete napi
    on WED queues since napi is neither used nor initialized on them.
    
    Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets")
    Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
    Link: https://patch.msgid.link/20260708144615.24092-1-nicolas.cavallari@green-communications.fr
    Signed-off-by: Felix Fietkau <nbd@nbd.name>

diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c
index f8c2fe5f2f58..322041859217 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/dma.c
@@ -1189,7 +1189,10 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
        mt76_for_each_q_rx(dev, i) {
                struct mt76_queue *q = &dev->q_rx[i];
 
-               netif_napi_del(&dev->napi[i]);
+               if (!mt76_queue_is_wed_rro(q)) {
+                       napi_disable(&dev->napi[i]);
+                       netif_napi_del(&dev->napi[i]);
+               }
                mt76_dma_rx_cleanup(dev, q);
 
                page_pool_destroy(q->page_pool);


2) The "scheduling while atomic" errors which occur in v7.2-rc4 and earlier, once I figure out
these I'll contiue here (v6.19 is free from these errors)

Bert Karwatzki

  reply	other threads:[~2026-07-24 15:09 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-23 12:34 kernel panic during shutdown in v7.2-rc4 and next-20260722 with PREEMPT_RT Bert Karwatzki
2026-07-23 12:43 ` [Re] " Bert Karwatzki
2026-07-23 13:10   ` [Re] kernel panic during shutdown in v7.2-rc{3,4} " Bert Karwatzki
2026-07-23 13:23     ` Bert Karwatzki
2026-07-23 16:17       ` Bert Karwatzki
2026-07-23 22:51         ` [Re] kernel panic during shutdown in next-20260722 Bert Karwatzki
2026-07-24 15:08           ` Bert Karwatzki [this message]
2026-07-25 19:58             ` Bert Karwatzki
2026-07-25 23:16               ` Bert Karwatzki
2026-07-26 18:47                 ` Bert Karwatzki
2026-07-26 22:52                   ` Bert Karwatzki
2026-07-27 10:06                     ` [Re] kernel panic during shutdown in v7.1+ with PREEMPT_RT Bert Karwatzki
2026-07-27 10:35                       ` Ostrowski, Rafal
2026-07-27 10:50                         ` [PATCH] drm/amd/display: fix usage of DC_FPU_{BEGIN,END} " Bert Karwatzki
2026-07-27 11:11                           ` sashiko-bot
2026-07-28  0:51                           ` mikhail.v.gavrilov
2026-07-29 12:35                             ` Bert Karwatzki
2026-07-29 14:39                               ` Mikhail Gavrilov
2026-07-29 17:46                                 ` Bert Karwatzki
2026-08-01  7:17                                   ` Bert Karwatzki
2026-08-01  7:35                                     ` sashiko-bot
2026-08-01 10:17                                     ` Mikhail Gavrilov
2026-08-07 12:58                                       ` Bert Karwatzki
2026-08-07 13:31                                         ` sashiko-bot
2026-08-06  3:47                                     ` kernel test robot
2026-08-06  4:29                                     ` kernel test robot
2026-08-07 12:49                                       ` [PATCH v7.2-rc6] " Bert Karwatzki
2026-08-07 13:13                                         ` sashiko-bot
2026-08-07 14:00                                         ` Greg KH
2026-08-27 12:49                                         ` Sebastian Andrzej Siewior
2026-08-27 21:07                                           ` Bert Karwatzki
2026-08-28  9:55                                             ` Sebastian Andrzej Siewior
2026-09-01 14:01                                               ` Bert Karwatzki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3c1be47abfcc907e7c1f9696cb25a24c93415a28.camel@web.de \
    --to=spasswolf@web.de \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bigeasy@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=mario.limonciello@amd.com \
    --cc=rafal.ostrowski@amd.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®