Commit d8e5f9fe authored by Kurt Martin's avatar Kurt Martin Committed by Ralf Baechle

MIPS: SMTC: Move cross VPE writes to after a TC is assigned to VPE.

Signed-off-by: default avatarChris Dearman <chris@mips.com>
Signed-off-by: default avatarRaghu Gandham <raghu@mips.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 008ee96f
...@@ -465,11 +465,8 @@ void smtc_prepare_cpus(int cpus) ...@@ -465,11 +465,8 @@ void smtc_prepare_cpus(int cpus)
smtc_configure_tlb(); smtc_configure_tlb();
for (tc = 0, vpe = 0 ; (vpe < nvpe) && (tc < ntc) ; vpe++) { for (tc = 0, vpe = 0 ; (vpe < nvpe) && (tc < ntc) ; vpe++) {
/* if (tcpervpe[vpe] == 0)
* Set the MVP bits. continue;
*/
settc(tc);
write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() | VPECONF0_MVP);
if (vpe != 0) if (vpe != 0)
printk(", "); printk(", ");
printk("VPE %d: TC", vpe); printk("VPE %d: TC", vpe);
...@@ -487,6 +484,12 @@ void smtc_prepare_cpus(int cpus) ...@@ -487,6 +484,12 @@ void smtc_prepare_cpus(int cpus)
tc++; tc++;
} }
if (vpe != 0) { if (vpe != 0) {
/*
* Allow this VPE to control others.
*/
write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() |
VPECONF0_MVP);
/* /*
* Clear any stale software interrupts from VPE's Cause * Clear any stale software interrupts from VPE's Cause
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment