Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt re-apply r1.26. but only #if !defined(AARCH...



details:   https://anonhg.NetBSD.org/src/rev/06b7debb841c
branches:  trunk
changeset: 460722:06b7debb841c
user:      bad <bad%NetBSD.org@localhost>
date:      Fri Nov 01 12:44:54 2019 +0000

description:
re-apply r1.26. but only #if !defined(AARCH64).

not necessary on armv8 and cache ops are not available that early there.

diffstat:

 sys/arch/arm/fdt/cpu_fdt.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r b8456f79cfc8 -r 06b7debb841c sys/arch/arm/fdt/cpu_fdt.c
--- a/sys/arch/arm/fdt/cpu_fdt.c        Fri Nov 01 12:01:09 2019 +0000
+++ b/sys/arch/arm/fdt/cpu_fdt.c        Fri Nov 01 12:44:54 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_fdt.c,v 1.28 2019/10/19 18:04:26 jmcneill Exp $ */
+/* $NetBSD: cpu_fdt.c,v 1.29 2019/11/01 12:44:54 bad Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -30,7 +30,7 @@
 #include "psci_fdt.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.28 2019/10/19 18:04:26 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_fdt.c,v 1.29 2019/11/01 12:44:54 bad Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -347,6 +347,14 @@
 
        fdtbus_get_reg64(phandle, 0, &mpidr, NULL);
 
+#if !defined(AARCH64)
+       /*
+        * not necessary on AARCH64. besids there it hangs the sysmte
+        * because cache ops are only functional after cpu_attach()
+        * was called.
+        */
+       cpu_dcache_wbinv_all();
+#endif
        ret = psci_cpu_on(mpidr, cpu_fdt_mpstart_pa(), 0);
        if (ret != PSCI_SUCCESS)
                return EIO;



Home | Main Index | Thread Index | Old Index