powerpc/85xx: Move ePAPR paravirt initialization earlier
authorLaurentiu TUDOR <Laurentiu.Tudor@freescale.com>
Wed, 3 Jul 2013 14:13:15 +0000 (17:13 +0300)
committerScott Wood <scottwood@freescale.com>
Wed, 7 Aug 2013 23:38:06 +0000 (18:38 -0500)
commit4e21b94c9c644c43223878f4c848e852743e789c
tree70671b6571cb5c92752264d26a174cbc0d9034b8
parentf31dd9443afd35696a833c2a32d584a9257abd40
powerpc/85xx: Move ePAPR paravirt initialization earlier

At console init, when the kernel tries to flush the log buffer
the ePAPR byte-channel based console write fails silently,
losing the buffered messages.
This happens because The ePAPR para-virtualization init isn't
done early enough so that the hcall instruction to be set,
causing the byte-channel write hcall to be a nop.
To fix, change the ePAPR para-virt init to use early device
tree functions and move it in early init.

Signed-off-by: Laurentiu Tudor <Laurentiu.Tudor@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/include/asm/epapr_hcalls.h
arch/powerpc/kernel/epapr_paravirt.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c