linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: How many Interrupts at the same time?
  2002-01-07 20:04 How many Interrupts at the same time? Frank Haverkamp
@ 2002-01-07 19:15 ` mod+linuxppc-embedded
  0 siblings, 0 replies; 2+ messages in thread
From: mod+linuxppc-embedded @ 2002-01-07 19:15 UTC (permalink / raw)
  To: linuxppc-embedded


>What options do we have?

do_IRQ() keeps asking your get_irq()
routine which irq to serice.  Couldn't your
get_irq() keep reporting pending requests
until all (currently known) requests were
satisfied?  It isn't necessary to actually
commence a nested instance of exception
handling for every request, right?


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* How many Interrupts at the same time?
@ 2002-01-07 20:04 Frank Haverkamp
  2002-01-07 19:15 ` mod+linuxppc-embedded
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Haverkamp @ 2002-01-07 20:04 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

we have a custom made 403 based board with up to 128 interrupts which
may occur simultaniously. After reading the interrupt handling code, we
came to the
conclusion that when too many interrupts are stacked, the kernel stack
will overflow.

When the first interrupt is handled the kernel leaves do_IRQ and returns
to the assembly code
in entry.S where in do_soft_irq() the interrupts are reenabled due to
issuing sti(). When
EE in the MSR is enabled the system will execute the next exception and
store another sizeof
(struct pt_regs) bytes on the stack plus some additional data
(stackframe, link reg., etc.).
 This sums up to 184 bytes each. This leaves room for 30-40 interrupts
until we will get an
 overflow. But we need in worst case space for 128 interrupts.

 Is there a mistake in our analysis? Do other people have the same
problem and probably already
a solution? What options do we have?

 Frank Haverkamp
 & Joern Engel


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-01-07 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-07 20:04 How many Interrupts at the same time? Frank Haverkamp
2002-01-07 19:15 ` mod+linuxppc-embedded

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