]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc: Fix the NUMA domain list on powernv
authorjhibbits <jhibbits@FreeBSD.org>
Sat, 18 Jan 2020 01:26:54 +0000 (01:26 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sat, 18 Jan 2020 01:26:54 +0000 (01:26 +0000)
commit62b4e61451024f96818a1fe13ee0d17fa6d90863
tree0b5e947ebc138a8ef0a53e1295488f687fc515e1
parent902de5ce5d91e529724ea65926b054a436e2a435
powerpc: Fix the NUMA domain list on powernv

Summary:
Consolidate the NUMA associativity handling into a platform function.
Non-NUMA platforms will just fall back to the default (0).  Currently
only implemented for powernv, which uses a lookup table to map the
device tree associativity into a system NUMA domain.

Fixes hangs on powernv after r356534, and corrects a fairly longstanding
bug in powernv's NUMA handling, which ended up using domains 1 and 2 for
devices and memory on power9, while CPUs were bound to domains 0 and 1.

Reviewed by: bdragon, luporl
Differential Revision: https://reviews.freebsd.org/D23220
sys/powerpc/include/ofw_machdep.h
sys/powerpc/include/platform.h
sys/powerpc/ofw/ofw_machdep.c
sys/powerpc/ofw/ofw_pcibus.c
sys/powerpc/powernv/platform_powernv.c
sys/powerpc/powerpc/platform.c
sys/powerpc/powerpc/platform_if.m