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/e2337fbdd840
branches:  netbsd-8
changeset: 851575:e2337fbdd840
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 3fbd31632963 -r e2337fbdd840 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