[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20080304113458.23298d37.sfr@canb.auug.org.au>
Date: Tue, 4 Mar 2008 11:34:58 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: "Tony Luck" <tony.luck@...el.com>
Cc: "Ard -kwaak- van Breemen" <ard@...egraafnet.nl>,
"Andrew Morton" <akpm@...l.org>, "Greg KH" <greg@...ah.com>,
"Zhang, Yanmin" <yanmin.zhang@...el.com>,
"Chuck Ebbert" <76306.1226@...puserve.com>,
"Yinghai Lu" <yinghai.lu@....com>, take@...ero.it,
agalanin@...a.ru, linux-kernel@...r.kernel.org,
bugme-daemon@...zilla.kernel.org,
"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: Re: [PATCH 2.6.20-rc2-git1] start_kernel: Test if irq's got enabled
early, barf, and disable them again
Hi Tony,
On Mon, 3 Mar 2008 14:46:52 -0800 "Tony Luck" <tony.luck@...el.com> wrote:
>
> > + printk(KERN_WARNING "start_kernel(): bug: interrupts were enabled *very* early, fixing it\n");
>
> I built and booted the next-20080303 tag from linux-next and
> found the above warning in my console log on ia64 (this is
> new ... I've never seen this message before, even though
> this patch was applied January 2007).
>
> Hunting this down, I found the enabler was the lock_kernel() call
> on line 536 of init/main.c ... doesn't than happen to other archs
> too? We get into the first call to lock_kernel() with current->lock_depth
> set to -1, so we call down(&kernel_sem) ... which does spin_lock_irq()
> and then spin_unlock_irq() ... leaving interrupts enabled.
>
> What else changed to make this suddenly kick out now? It
> doesn't happen from a build from Linus' tree.
This is Willy's generic semaphore code that is included in linux-next.
It is being discussed in another thread "linux-next: Tree for Feb 29:
WARNING: at kernel/lockdep.c:2024 trace_hardirqs_on" on the
linux-next@...r.kernel.org mailing list (archived at
http://marc.info/?l=linux-next&m=120440556729954&w=2).
--
Cheers,
Stephen Rothwell sfr@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists