The branch stable/13 has been updated by bdragon:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=908d607bd100a96b416483975e8abfec636e85d1

commit 908d607bd100a96b416483975e8abfec636e85d1
Author:     Brandon Bergren <[email protected]>
AuthorDate: 2021-03-28 01:41:45 +0000
Commit:     Brandon Bergren <[email protected]>
CommitDate: 2021-04-11 15:52:23 +0000

    [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
    
    (cherry picked from commit bd94c8ab29c3162bbb43973ee77ce245fe157fef)
---
 sys/powerpc/powernv/platform_powernv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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",
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to