public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@nabladev.com>
To: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	Jakub Kicinski <kuba@kernel.org>
Cc: netdev@vger.kernel.org, stable@vger.kernel.org,
	"David S. Miller" <davem@davemloft.net>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	Eric Dumazet <edumazet@google.com>,
	Nicolai Buchwitz <nb@tipi-net.de>,
	Paolo Abeni <pabeni@redhat.com>,
	Ronald Wahl <ronald.wahl@raritan.com>,
	Yicong Hui <yiconghui@gmail.com>,
	linux-kernel@vger.kernel.org, Thomas Gleixner <tglx@kernel.org>
Subject: Re: [net,PATCH v2] net: ks8851: Reinstate disabling of BHs around IRQ handler
Date: Tue, 14 Apr 2026 12:07:00 +0200	[thread overview]
Message-ID: <e2956a79-8f26-45f4-84e2-16932b4542cd@nabladev.com> (raw)
In-Reply-To: <20260413161000.P_SLxmZl@linutronix.de>

On 4/13/26 6:10 PM, Sebastian Andrzej Siewior wrote:

>> TBH changing the driver feels like a workaround / invitation for a
>> whack-a-mole game. I'd prefer to fix the skb allocation.
> 
> The problem is that _irq() implicitly disables bh processing but this
> does not happen. Forcing this is possible but expensive.
> However, I did remove lock from bh_disable() on RT.
> 
> Marek: from which kernel version was this backtrace?
That was v6.12.79-rt17-rebase where it was easy to trigger , here is a 
fresh one from next-20260413 with b44596ffe1b4 ("ARM: Allow to enable 
RT") from stable-rt added on top:

"
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu:     Tasks blocked on level-0 rcu_node (CPUs 0-1): P127/5:b..l
rcu:     (detected by 1, t=2102 jiffies, g=-503, q=1 ncpus=2)
task:irq/68-eth1     state:D stack:0     pid:127   tgid:127   ppid:2 
  task_flags:0x4208040 flags:0x00000000
Call trace:
  __schedule from schedule_rtlock+0x1c/0x34
  schedule_rtlock from rtlock_slowlock_locked+0x548/0x904
  rtlock_slowlock_locked from rt_spin_lock+0x60/0x9c
  rt_spin_lock from ks8851_start_xmit_par+0x74/0x1a8
  ks8851_start_xmit_par from netdev_start_xmit+0x20/0x44
  netdev_start_xmit from dev_hard_start_xmit+0xd0/0x188
  dev_hard_start_xmit from sch_direct_xmit+0xb8/0x25c
  sch_direct_xmit from __qdisc_run+0x1f8/0x4ec
  __qdisc_run from qdisc_run+0x1c/0x28
  qdisc_run from net_tx_action+0x1f0/0x268
  net_tx_action from handle_softirqs+0x1a4/0x270
  handle_softirqs from __local_bh_enable_ip+0xcc/0xe0
  __local_bh_enable_ip from __alloc_skb+0xd8/0x128
  __alloc_skb from __netdev_alloc_skb+0x3c/0x19c
  __netdev_alloc_skb from ks8851_irq+0x388/0x4d4
  ks8851_irq from irq_thread_fn+0x24/0x64
  irq_thread_fn from irq_thread+0x178/0x28c
  irq_thread from kthread+0x12c/0x138
  kthread from ret_from_fork+0x14/0x28
Exception stack(0xf4c99fb0 to 0xf4c99ff8)
9fa0:                                     00000000 00000000 00000000 
00000000
9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
00000000
9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
"


  reply	other threads:[~2026-04-14 10:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-08 16:24 [net,PATCH v2] net: ks8851: Reinstate disabling of BHs around IRQ handler Marek Vasut
2026-04-09  6:52 ` Nicolai Buchwitz
2026-04-09 15:26   ` Marek Vasut
2026-04-10  7:29     ` Nicolai Buchwitz
2026-04-12 16:01 ` Jakub Kicinski
2026-04-12 16:27   ` Marek Vasut
2026-04-12 17:51     ` Jakub Kicinski
2026-04-13 12:57       ` Sebastian Andrzej Siewior
2026-04-13 15:31         ` Marek Vasut
2026-04-13 16:03           ` Sebastian Andrzej Siewior
2026-04-14  8:55             ` Sebastian Andrzej Siewior
2026-04-14 10:26               ` Marek Vasut
2026-04-13 15:44         ` Jakub Kicinski
2026-04-13 16:10           ` Sebastian Andrzej Siewior
2026-04-14 10:07             ` Marek Vasut [this message]
2026-04-14 10:48       ` Sebastian Andrzej Siewior

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=e2956a79-8f26-45f4-84e2-16932b4542cd@nabladev.com \
    --to=marex@nabladev.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=bigeasy@linutronix.de \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nb@tipi-net.de \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=ronald.wahl@raritan.com \
    --cc=stable@vger.kernel.org \
    --cc=tglx@kernel.org \
    --cc=yiconghui@gmail.com \
    /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