powerpc/8xx: Fix early debug when SMC1 is relocated
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 4 Dec 2020 10:11:34 +0000 (10:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:16 +0000 (11:54 +0100)
commita8b871dfacfb4d5c3a10599d418520ca8a44ddb3
tree461634325d1b486dad95f3f640b4b6eb452c72ea
parent8bc125f596d166005f90835314d07c2fd735f6d6
powerpc/8xx: Fix early debug when SMC1 is relocated

commit 1e78f723d6a52966bfe3804209dbf404fdc9d3bb upstream.

When SMC1 is relocated and early debug is selected, the
board hangs is ppc_md.setup_arch(). This is because ones
the microcode has been loaded and SMC1 relocated, early
debug writes in the weed.

To allow smooth continuation, the SMC1 parameter RAM set up
by the bootloader have to be copied into the new location.

Fixes: 43db76f41824 ("powerpc/8xx: Add microcode patch to move SMC parameter RAM.")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/b2f71f39eca543f1e4ec06596f09a8b12235c701.1607076683.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/cpm1.h
arch/powerpc/platforms/8xx/micropatch.c