All of lore.kernel.org
 help / color / mirror / Atom feed
* Policy for interrupts detected whilst disable_irq() in force
@ 2008-03-19 12:11 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2008-03-19 12:11 UTC (permalink / raw)
  To: linux-arch-u79uwXL29TY76Z2rM5mHXA; +Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA


What's the policy for interrupts that are detected by the interrupt controller
on a channel that has disable_irq() in force?  Should the device driver expect
the interrupts to be lost?  Or can it expect that they'll be remembered and
that the CPU will process them when the IRQ channel is enabled?

Furthermore, what about an interrupt that is already pending when
disable_irq() is called?  Is it okay for that to be discarded?  Or must that
be processed upon enable_irq()?

MEI queried me about mn10300_cpupic_disable() in the MN10300 arch.  It clears
the channel enable bit and also clears the request and detect bits, thus losing
any pending interrupt.  Possibly I should introduce a separate shutdown()
method that discards any pending interrupt and modify disable() to merely clear
the enablement flag.

I would guess, however, that some hardware may not remember interrupts that
come in on disabled channels, in which case the driver cannot assume that
interrupts won't be lost.

Any thoughts?

David
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2008-03-19 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-19 12:11 Policy for interrupts detected whilst disable_irq() in force David Howells
2008-03-19 12:11 ` David Howells

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.