]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: panic if we can't instantiate RTAS
authorAnton Blanchard <anton@samba.org>
Mon, 14 Nov 2011 12:55:47 +0000 (12:55 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 16 Nov 2011 03:47:54 +0000 (14:47 +1100)
commitcbb7259a591cf0787d6f043db14298d868b88eba
treecfd29b7c7ca3d50f23070b31e2b3093112286a2b
parent93954fb22086d867e087f7e59ab2b3b50fc174c3
powerpc: panic if we can't instantiate RTAS

I had to debug a strange situation where all manner of things were
failing. SMT threads, storage and network were all completely broken.

The root cause was we couldn't find enough memory to instantiate RTAS -
this was a network install so the initrd was huge.

Instead of limping along and failing in mysterious ways we should just
panic up front if RTAS exists and we can't allocate space for it.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/prom_init.c