Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 add highly experimental NUMA suppor...



details:   https://anonhg.NetBSD.org/src/rev/4c550e4d3037
branches:  trunk
changeset: 967968:4c550e4d3037
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Dec 30 06:54:31 2019 +0000

description:
add highly experimental NUMA support for US-IIIi machines

diffstat:

 sys/arch/sparc64/sparc64/cpu.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 067f80c2f9fc -r 4c550e4d3037 sys/arch/sparc64/sparc64/cpu.c
--- a/sys/arch/sparc64/sparc64/cpu.c    Mon Dec 30 05:37:19 2019 +0000
+++ b/sys/arch/sparc64/sparc64/cpu.c    Mon Dec 30 06:54:31 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.136 2019/10/01 18:00:08 chs Exp $ */
+/*     $NetBSD: cpu.c,v 1.137 2019/12/30 06:54:31 macallan Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.136 2019/10/01 18:00:08 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.137 2019/12/30 06:54:31 macallan Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -556,7 +556,15 @@
                    (u_int)GETVER_CPU_IMPL(),
                    (u_int)GETVER_CPU_MASK());
        }
-
+#ifdef NUMA
+       if (CPU_IS_USIIIi()) {
+               uint64_t start = ci->ci_cpuid;
+               start <<= 36;
+               ci->ci_numa_id = ci->ci_cpuid;
+               printf("NUMA bucket %d %016lx\n", ci->ci_cpuid, start);
+               uvm_page_numa_load(start, 0x1000000000, ci->ci_cpuid);
+       }
+#endif
        if (ci->ci_system_clockrate[0] != 0) {
                aprint_normal_dev(dev, "system tick frequency %s MHz\n",
                    clockfreq(ci->ci_system_clockrate[0]));



Home | Main Index | Thread Index | Old Index