Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/rpi Firmware after May 8, 2017 places APs in...
details: https://anonhg.NetBSD.org/src/rev/534073585b72
branches: trunk
changeset: 357296:534073585b72
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 04 14:47:06 2017 +0000
description:
Firmware after May 8, 2017 places APs in WFE state at boot. Add a "sev"
after writing the start vector, otherwise secondary CPUs will not boot.
diffstat:
sys/arch/evbarm/rpi/rpi_machdep.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 7eff2e6d7e8e -r 534073585b72 sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Sat Nov 04 14:20:12 2017 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Sat Nov 04 14:47:06 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpi_machdep.c,v 1.80 2017/08/16 20:54:19 jmcneill Exp $ */
+/* $NetBSD: rpi_machdep.c,v 1.81 2017/11/04 14:47:06 jmcneill Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.80 2017/08/16 20:54:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.81 2017/11/04 14:47:06 jmcneill Exp $");
#include "opt_arm_debug.h"
#include "opt_bcm283x.h"
@@ -660,6 +660,9 @@
}
}
+ /* Wake up APs in case firmware has placed them in WFE state */
+ __asm __volatile("sev");
+
for (int loop = 0; loop < 16; loop++) {
if (arm_cpu_hatched == __BITS(arm_cpu_max - 1, 1))
break;
Home |
Main Index |
Thread Index |
Old Index