aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/powernv/platform_powernv.c
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2021-03-28 01:41:45 +0000
committerBrandon Bergren <bdragon@FreeBSD.org>2021-03-28 01:42:49 +0000
commitbd94c8ab29c3162bbb43973ee77ce245fe157fef (patch)
tree9aca4848baf8f488bb17c24224f3e4f77841515a /sys/powerpc/powernv/platform_powernv.c
parent3c065eeaa7a5ebb56991f5c8123e343a83bf0f0d (diff)
downloadsrc-bd94c8ab29c3162bbb43973ee77ce245fe157fef.tar.gz
src-bd94c8ab29c3162bbb43973ee77ce245fe157fef.zip
[PowerPC] Fix NUMA checking for powernv
At this point in startup, vm_ndomains has not been initialized. Switch to checking kenv instead. Fixes incorrect NUMA information being set on multi-domain systems like Talos II. Submitted by: jhibbits MFC after: 2 weeks
Diffstat (limited to 'sys/powerpc/powernv/platform_powernv.c')
-rw-r--r--sys/powerpc/powernv/platform_powernv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/powernv/platform_powernv.c b/sys/powerpc/powernv/platform_powernv.c
index 434b642a66a8..d7acc544c2ed 100644
--- a/sys/powerpc/powernv/platform_powernv.c
+++ b/sys/powerpc/powernv/platform_powernv.c
@@ -532,7 +532,9 @@ powernv_node_numa_domain(platform_t platform, phandle_t node)
#ifndef NUMA
return (0);
#endif
- if (vm_ndomains == 1)
+ i = 0;
+ TUNABLE_INT_FETCH("vm.numa.disabled", &i);
+ if (i)
return (0);
res = OF_getencprop(node, "ibm,associativity",