mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Sverdlin, Alexander" <alexander.sverdlin@siemens.com>
To: "o.rempel@pengutronix.de" <o.rempel@pengutronix.de>,
	"bigeasy@linutronix.de" <bigeasy@linutronix.de>
Cc: "mingo@kernel.org" <mingo@kernel.org>,
	"peterz@infradead.org" <peterz@infradead.org>,
	"rostedt@goodmis.org" <rostedt@goodmis.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"paulmck@kernel.org" <paulmck@kernel.org>,
	"torvalds@linux-foundation.org" <torvalds@linux-foundation.org>,
	"joel@joelfernandes.org" <joel@joelfernandes.org>,
	"will@kernel.org" <will@kernel.org>
Subject: Re: [PATCH 6/9] lockdep: Introduce wait-type checks
Date: Mon, 17 Nov 2025 15:28:39 +0000	[thread overview]
Message-ID: <73527658125791c2faed1fdfc47dca37e1860493.camel@siemens.com> (raw)
In-Reply-To: <20251117151314.xwLAZrWY@linutronix.de>

Hi Sebstian,

On Mon, 2025-11-17 at 16:13 +0100, bigeasy@linutronix.de wrote:
> > > > > >   counter_push_event+0x68/0x430 [counter]
> > > > > >   interrupt_cnt_isr+0x40/0x78 [interrupt_cnt]
> > > > > >   __handle_irq_event_percpu+0xa4/0x398
> …
> > > Does that help?
> > 
> > Mmm. Not yet... Does this mean we are not allowed to use "spinlock_t" in
> > IRQs any longer? Where has this been announced? This probably means that
> > the majority of IRQ handlers were already converted tree-wide?
> > 
> > This also would mean that spin_lock_irqsave() shall not exist at all
> > so that we are forced to use raw_spin_lock_irqsave()?
> 
> As I tried to explain, if you use IRQF_NO_THREAD then the handler will
> not be threaded. Looking at drivers/counter/interrupt-cnt.c, it does
> 
> >          irq_set_status_flags(priv->irq, IRQ_NOAUTOEN);
> >          ret = devm_request_irq(dev, priv->irq, interrupt_cnt_isr,
> >                                 IRQF_TRIGGER_RISING | IRQF_NO_THREAD,
> >                                 dev_name(dev), counter);
> >          if (ret)
> 
> So the irq-core does not thread the handler as requested. So it must not
> use spinlock_t in such a case.
> And judging from the code, that IRQF_NO_THREAD should be removed. Not
> sure why you are the only seeing that splat.

thanks for looking into that! I've totally missed IRQF_NO_THREAD!
I'll post a patch removing it...

-- 
Alexander Sverdlin
Siemens AG
www.siemens.com

  reply	other threads:[~2025-11-17 15:28 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 17:46 [PATCH 0/9] Lock ordering documentation and annotation for lockdep Sebastian Andrzej Siewior
2020-03-13 17:46 ` [PATCH 1/9] Documentation: Add lock ordering and nesting documentation Sebastian Andrzej Siewior
2020-03-14 22:57   ` Randy Dunlap
2020-03-16 10:34     ` Sebastian Andrzej Siewior
2020-03-16 15:13       ` Randy Dunlap
2020-03-13 17:46 ` [PATCH 2/9] timekeeping: Split jiffies seqlock Sebastian Andrzej Siewior
2020-03-13 17:46 ` [PATCH 3/9] pci/switchtec: Don't abuse completion wait queue for poll Sebastian Andrzej Siewior
2020-03-13 18:11   ` Logan Gunthorpe
2020-03-14  0:23     ` Thomas Gleixner
2020-03-14  6:01       ` Logan Gunthorpe
2020-03-16 18:52         ` Thomas Gleixner
2020-03-16 19:24           ` Logan Gunthorpe
2020-03-16 19:34     ` Thomas Gleixner
2020-03-16 21:53       ` Logan Gunthorpe
2020-03-17  0:17         ` Thomas Gleixner
2020-03-17  1:15           ` Logan Gunthorpe
2020-03-13 19:31   ` Peter Zijlstra
2020-03-13 17:46 ` [PATCH 4/9] sched/swait: Prepare usage in completions Sebastian Andrzej Siewior
2020-03-14  0:26   ` Thomas Gleixner
2020-03-13 17:46 ` [PATCH 5/9] completion: Use simple wait queues Sebastian Andrzej Siewior
2020-03-14 15:40   ` Linus Torvalds
2020-03-16 18:55     ` Thomas Gleixner
2020-03-13 17:46 ` [PATCH 6/9] lockdep: Introduce wait-type checks Sebastian Andrzej Siewior
2020-03-31 13:25   ` Geert Uytterhoeven
2020-03-31 13:42     ` Sebastian Andrzej Siewior
2020-03-31 14:55     ` Peter Zijlstra
2020-03-31 15:28       ` Peter Zijlstra
2020-03-31 15:37         ` Frederic Weisbecker
2025-11-17 13:42   ` Sverdlin, Alexander
2025-11-17 13:55     ` bigeasy
2025-11-17 14:23       ` Sverdlin, Alexander
2025-11-17 14:37         ` Paul E. McKenney
2025-11-17 14:59           ` Sverdlin, Alexander
2025-11-17 15:13             ` bigeasy
2025-11-17 15:28               ` Sverdlin, Alexander [this message]
2020-03-13 17:46 ` [PATCH 7/9] lockdep: Add hrtimer context tracing bits Sebastian Andrzej Siewior
2020-03-13 17:47 ` [PATCH 8/9] lockdep: Annotate irq_work Sebastian Andrzej Siewior
2020-03-13 17:47 ` [PATCH 9/9] lockdep: Add posixtimer context tracing bits 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=73527658125791c2faed1fdfc47dca37e1860493.camel@siemens.com \
    --to=alexander.sverdlin@siemens.com \
    --cc=bigeasy@linutronix.de \
    --cc=joel@joelfernandes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=o.rempel@pengutronix.de \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    --cc=torvalds@linux-foundation.org \
    --cc=will@kernel.org \
    /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®