linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* problems with chained IRQ handlers
@ 2015-08-18  1:41 Brian Silverman
  2015-12-11 16:23 ` Sebastian Andrzej Siewior
  0 siblings, 1 reply; 2+ messages in thread
From: Brian Silverman @ 2015-08-18  1:41 UTC (permalink / raw)
  To: rt-users

Hi,

Chained IRQ handlers are always marked IRQ_NOTHREAD, which means
forced threading doesn't apply to them. I think this means they can't
safely use non-raw spinlocks under CONFIG_PREEMPT_RT_FULL. Is this
correct?

I have an ARM system with a CONFIG_PREEMPT_RT_FULL kernel which prints
lockdep warnings from many places because of this. It also locks up
under moderate load, which I think is related to this issue. Any
suggestions?

Thanks,
Brian Silverman

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

* Re: problems with chained IRQ handlers
  2015-08-18  1:41 problems with chained IRQ handlers Brian Silverman
@ 2015-12-11 16:23 ` Sebastian Andrzej Siewior
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Andrzej Siewior @ 2015-12-11 16:23 UTC (permalink / raw)
  To: Brian Silverman; +Cc: rt-users

* Brian Silverman | 2015-08-17 18:41:55 [-0700]:

>Chained IRQ handlers are always marked IRQ_NOTHREAD, which means
>forced threading doesn't apply to them. I think this means they can't
>safely use non-raw spinlocks under CONFIG_PREEMPT_RT_FULL. Is this
>correct?
yes,

>I have an ARM system with a CONFIG_PREEMPT_RT_FULL kernel which prints
>lockdep warnings from many places because of this. It also locks up
>under moderate load, which I think is related to this issue. Any
>suggestions?

Use raw locks there. The chain handler usually implement a irq chip
something like gpio controller which can also act as an interrupt
controller. If this is the case then the lock should be a raw-lock.
You should not do anything time consuming while holding the lock. It is
usually just held while masking/unmasking bits in the registers.

>Thanks,
>Brian Silverman

Sebastia

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

end of thread, other threads:[~2015-12-11 16:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-18  1:41 problems with chained IRQ handlers Brian Silverman
2015-12-11 16:23 ` Sebastian Andrzej Siewior

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).