Skip to content

Commit 6521d9a

Browse files
Markos Chandrasralfbaechle
authored andcommitted
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 <[email protected]> Signed-off-by: Markos Chandras <[email protected]> Patchwork: http://patchwork.linux-mips.org/patch/7424/ Signed-off-by: James Hogan <[email protected]>
1 parent ca4d24f commit 6521d9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/mips/kernel/cps-vec.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <asm/asm-offsets.h>
1414
#include <asm/asmmacro.h>
1515
#include <asm/cacheops.h>
16+
#include <asm/eva.h>
1617
#include <asm/mipsregs.h>
1718
#include <asm/mipsmtregs.h>
1819
#include <asm/pm.h>
@@ -166,6 +167,9 @@ dcache_done:
166167
1: jal mips_cps_core_init
167168
nop
168169

170+
/* Do any EVA initialization if necessary */
171+
eva_init
172+
169173
/*
170174
* Boot any other VPEs within this core that should be online, and
171175
* deactivate this VPE if it should be offline.

0 commit comments

Comments
 (0)