linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Pending interrupts not always replayed
@ 2010-04-18  3:34 Guillaume Knispel
  2010-04-18 14:46 ` Guillaume Knispel
  0 siblings, 1 reply; 4+ messages in thread
From: Guillaume Knispel @ 2010-04-18  3:34 UTC (permalink / raw)
  To: linux-kernel, Linuxppc-dev
  Cc: Lars-Peter Clausen, Bartlomiej Zolnierkiewicz, Peter Zijlstra,
	Michael Buesch, Ingo Molnar, Linus Torvalds, Thomas Gleixner

Hi,

=46rom reading the code (kernel/irq stuffs), it seems that at least some
handle_edge_irq based interrupts are not replayed when enabling if
desc->chip->retrigger =3D=3D NULL and on a platform where
CONFIG_HARDIRQS_SW_RESEND is not set (which for now is only defined for
(some?) arm and avr32). Depending on the pic this problem might
be masked if multiple interrupts are received between disable_irq and
enable_irq (maybe other conditions exist with controllers i don't know).

I happen to program a PPC SoC (MPC8555E to be precise), using some edge
interrupts on the PortC of the CPM2 pic (arch/powerpc/sysdev/cpm2_pic.c)
in a driver that does some enable_irq/disable_irq while various
patterns of interrupts are received and i think i've hit the problem.

Is the behavior intended (not always replaying edge triggered interrupts)
or is it just a bug to fix?

Anybody knows if it's safe to activate CONFIG_HARDIRQS_SW_RESEND for a
powerpc or are there some known dangerous interactions?
(I'll give it a try on my side in the meantime anyway)

Cheers!
--=20
Guillaume Knispel

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

end of thread, other threads:[~2010-04-19 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18  3:34 Pending interrupts not always replayed Guillaume Knispel
2010-04-18 14:46 ` Guillaume Knispel
2010-04-18 19:14   ` Thomas Gleixner
2010-04-19 13:09     ` Guillaume Knispel

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