public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Seems like a race or unhandled situation with ksoftirqd scheduling/management
       [not found] <3CEA8742.2040308@yahoo.com.suse.lists.linux.kernel>
@ 2002-05-21 18:22 ` Andi Kleen
  2002-05-21 19:00   ` Seems like a race or unhandled situation with ksoftirqd scheduling/management - Oops missed the control flow in the generic irq.c as most targets use their own irq.c C Hanish Menon
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2002-05-21 18:22 UTC (permalink / raw)
  To: C Hanish Menon; +Cc: linux-kernel

C Hanish Menon <hanishkvc@yahoo.com> writes:

>    According to the comment in cpu_raise_softirq it doesn't 
> wakeup_softirqd in irq context because on returning from a irq
> softirqd will be run,  but it doesn't seem to be valid in any
> architectures (have varified x86, mips). Because on returning
> from irq context, just the scheduler gets called, but as
> the ksoftirqd is not in the run queue, it won't get scheduled.

At least i386 runs the softirqs at the end of do_IRQ.

ksoftirqd is just supposed to be a fallback mechanism for the case
of soft irqs eating excessive runtime or one softirq triggering another
(common case is networking and serial softirq for BH). It is not
the primary way to run softirqs.

-Andi

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

* Re: Seems like a race or unhandled situation with ksoftirqd scheduling/management - Oops missed the control flow in the generic irq.c as most targets use their own irq.c
  2002-05-21 18:22 ` Seems like a race or unhandled situation with ksoftirqd scheduling/management Andi Kleen
@ 2002-05-21 19:00   ` C Hanish Menon
  0 siblings, 0 replies; 2+ messages in thread
From: C Hanish Menon @ 2002-05-21 19:00 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-kernel, Alan Cox, Linus Torvalds

Hi Andi

Andi Kleen wrote:
> At least i386 runs the softirqs at the end of do_IRQ.
> 
> ksoftirqd is just supposed to be a fallback mechanism for the case
> of soft irqs eating excessive runtime or one softirq triggering another
> (common case is networking and serial softirq for BH). It is not
> the primary way to run softirqs.

Oops, You are right, i386 and also the generic mips irq.c has code in
do_IRQ to call do_softirq.

But most of the target specific irq.c in mips, don't seem to follow this 
convention. Even when I started my port, I had based my interrupt 
subsystem after looking into some of these target specific irq.c's.

So I was expecting this call to softirqs occuring from within 
kernel/entry.S after ret_from_irq. And as there is no code there to this
end, I came to my flawed conclusion.

Sorry about this wrong assumption.
I have got the solution to my problem. However have to check out with 
the mips target guys has to how they are taking care of softirqs. When
they aren't calling do_softirq from do_IRQ or any other part of 
interrupt subsystem.

Keep :-)
HanishKVC



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

end of thread, other threads:[~2002-05-21 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3CEA8742.2040308@yahoo.com.suse.lists.linux.kernel>
2002-05-21 18:22 ` Seems like a race or unhandled situation with ksoftirqd scheduling/management Andi Kleen
2002-05-21 19:00   ` Seems like a race or unhandled situation with ksoftirqd scheduling/management - Oops missed the control flow in the generic irq.c as most targets use their own irq.c C Hanish Menon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox