Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/sys/arch/evbarm/rpi Pull up following revision(s) (reques...



details:   https://anonhg.NetBSD.org/src/rev/c16da54eaf66
branches:  netbsd-8
changeset: 434839:c16da54eaf66
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Apr 08 06:12:53 2018 +0000

description:
Pull up following revision(s) (requested by mlelstv in ticket #704):
        sys/arch/evbarm/rpi/rpi_machdep.c: 1.81
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 df7cd863a738 -r c16da54eaf66 sys/arch/evbarm/rpi/rpi_machdep.c
--- a/sys/arch/evbarm/rpi/rpi_machdep.c Sun Apr 08 06:11:41 2018 +0000
+++ b/sys/arch/evbarm/rpi/rpi_machdep.c Sun Apr 08 06:12:53 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rpi_machdep.c,v 1.70.8.2 2017/06/21 17:50:08 snj Exp $ */
+/*     $NetBSD: rpi_machdep.c,v 1.70.8.3 2018/04/08 06:12:53 snj 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.70.8.2 2017/06/21 17:50:08 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rpi_machdep.c,v 1.70.8.3 2018/04/08 06:12:53 snj Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -578,6 +578,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