[patch] mmu_context_init needs to run earlier

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Nov 2 15:47:23 EST 2004


On Mon, 2004-11-01 at 20:47 -0600, Nathan Lynch wrote:
> Hi-
> 
> I am seeing "kernel BUG in mmu_context_init at arch/ppc64/mm/init.c:528"
> in latest 2.6 bk kernels.  It looks as if arch_initcall is not early
> enough for mmu_context_init -- I inserted printk's in that function and
> init_new_context, and indeed, init_new_context is being called before
> mmu_context_init.
> 
> Not sure this is the best fix, or that this completely eliminates the
> races, but I didn't see any other obvious solution.  Boot-tested on a
> p630.

Do you have a backtrace of who is trying to get a context that
early ?

If it's some call of usermode helpers, I doubt it's very sane to do that
before the arch initcalls have run ! It would be interesting to know who
is triggering it.

Ben.





More information about the Linuxppc64-dev mailing list