]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Dec 2020 06:00:54 +0000 (17:00 +1100)
commit5ca9e5b60acb02483dee34ab374fcf36a43c885f
tree59ed02d67294023f2f69712a627821f477000979
parent7ca819dd65d17b3b017d7f80098a9c92160ba5d0
powerpc/8xx: Fix early debug when SMC1 is relocated

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: 5e76bc60c614 ("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
arch/powerpc/include/asm/cpm1.h
arch/powerpc/platforms/8xx/micropatch.c