Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- From: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 06 Mar 2008 11:03:31 +1100
Yes, we are - it's the semaphore rewrite which is doing this in
start_kernel(). It's being discussed.
Enabling interrupts too early on powerpc was discovered to be fatal on
powerpc years ago. It looks like that remains the case.
Regarding these issues. I could make it non fatal and just WARN_ON,
provided that I have a way to differentiate legal vs. illegal calls
to local_irq_enable(). We already have that function mostly out of
line in C code due to our lazy irq disabling scheme, so the overhead of
testing some global kernel state would be minimum here.
However, I don't see anything around init/main.c:start_kernel() that I
can use. What do you reckon here we should do ? Add some kind of global
we set before calling local_irq_enable() ? Or make early_boot_irqs_on()
do that generically
It's currently defined as an empty inline without CONFIG_TRACE_IRQFLAGS
but we could make it set a flag instead.
I'm pretty sure other archs have similar problems, especially in the
embedded world where you are booted with random junk firmwares that may
leave devices, interrupt controllers etc... in random state, and
enabling incoming IRQs before the arch code properly initializes the
main interrupt controller can be fatal. I know at least of an ARM board
I worked on a while ago that had a similar issues.
On ppc32, unfortunately, our local_irq_enable/restore are nice inlines
that whack the appropriate MSR bits directly, thus adding a test for a
global flag would add some bloat/overhead that I'd like to avoid, at
least until we decide to also do lazy disabling on those, if ever...
Cheers,
Ben.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- From: Andrew Morton
- Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- References:
- 2.6.25-rc3-mm1
- From: Andrew Morton
- [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- From: Kamalesh Babulal
- Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- From: Michael Neuling
- Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- From: Andrew Morton
- 2.6.25-rc3-mm1
- Prev by Date: Re: [PATCH] Make /proc/net a symlink on /proc/self/net
- Next by Date: [PATCH -mm] send_group_sigqueue: don't take tasklist_lock
- Previous by thread: Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- Next by thread: Re: [BUG] 2.6.25-rc3-mm1 kernel panic while bootup on powerpc ()
- Index(es):
Relevant Pages
|
Loading