From: Markos Chandras Date: Mon, 21 Jul 2014 13:35:56 +0000 (+0100) Subject: MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores X-Git-Tag: v5.15~17216^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56d2960958f81db9cfd488e530d2206edede5f8f;p=platform%2Fkernel%2Flinux-starfive.git MIPS: CPS: Initialize EVA before bringing up VPEs from secondary cores The CPS code is doing several memory loads when configuring the VPEs from secondary cores, so the segmentation control registers must be initialized in time otherwise the kernel will crash with strange TLB exceptions. Reviewed-by: Paul Burton Signed-off-by: Markos Chandras Patchwork: http://patchwork.linux-mips.org/patch/7424/ Signed-off-by: James Hogan --- diff --git a/arch/mips/kernel/cps-vec.S b/arch/mips/kernel/cps-vec.S index 6f4f739..e6e97d2 100644 --- a/arch/mips/kernel/cps-vec.S +++ b/arch/mips/kernel/cps-vec.S @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -166,6 +167,9 @@ dcache_done: 1: jal mips_cps_core_init nop + /* Do any EVA initialization if necessary */ + eva_init + /* * Boot any other VPEs within this core that should be online, and * deactivate this VPE if it should be offline.