Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/powerpc disable the MULTIPROCESSOR case in ...



details:   https://anonhg.NetBSD.org/src/rev/db613e107f58
branches:  trunk
changeset: 322681:db613e107f58
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri May 11 22:23:33 2018 +0000

description:
disable the MULTIPROCESSOR case in pmap_syncicache() because:
- __syncicache() wants a virtual address, not a pa
- this crashes on G5 SMP
- the rest of the function does the same as __syncicache() except it turns
  the MMU off first so physical addresses work
with this, my PCIe G5 boots SMP

diffstat:

 sys/arch/powerpc/powerpc/pmap_subr.c |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r f47e4cb09153 -r db613e107f58 sys/arch/powerpc/powerpc/pmap_subr.c
--- a/sys/arch/powerpc/powerpc/pmap_subr.c      Fri May 11 20:19:25 2018 +0000
+++ b/sys/arch/powerpc/powerpc/pmap_subr.c      Fri May 11 22:23:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap_subr.c,v 1.27 2012/02/01 09:54:03 matt Exp $      */
+/*     $NetBSD: pmap_subr.c,v 1.28 2018/05/11 22:23:33 macallan Exp $  */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.27 2012/02/01 09:54:03 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap_subr.c,v 1.28 2018/05/11 22:23:33 macallan Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_altivec.h"
@@ -425,7 +425,14 @@
 void
 pmap_syncicache(paddr_t pa, psize_t len)
 {
-#ifdef MULTIPROCESSOR
+
+/* 
+ * XXX
+ * disabling the MULTIPROCESSOR case because:
+ * - _syncicache() takes a virtual addresses
+ * - this causes crashes on G5
+ */
+#ifdef MULTIPROCESSOR__
        __syncicache((void *)pa, len);
 #else
        const size_t linewidth = curcpu()->ci_ci.icache_line_size;



Home | Main Index | Thread Index | Old Index