diff options
author | Leandro Lupori <luporl@FreeBSD.org> | 2021-10-14 16:13:27 +0000 |
---|---|---|
committer | Leandro Lupori <luporl@FreeBSD.org> | 2021-10-14 16:13:27 +0000 |
commit | 8ecf9a8bab608c26cb100f393b24e883a706ff03 (patch) | |
tree | 5ac18fdf99491b17f9691fc93f4f60a2057ad3c9 /sys/powerpc/aim | |
parent | 168b579a4884ab44833b758d9e770c87a37025fc (diff) | |
download | src-8ecf9a8bab608c26cb100f393b24e883a706ff03.tar.gz src-8ecf9a8bab608c26cb100f393b24e883a706ff03.zip |
powerpc64: make radix with superpages default
As Radix MMU with superpages enabled is now stable, make it the
default choice on supported hardware (POWER9 and above), since its
performance is greater than that of HPT MMU.
Reviewed by: alfredo, jhibbits
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D30797
Diffstat (limited to 'sys/powerpc/aim')
-rw-r--r-- | sys/powerpc/aim/aim_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/powerpc/aim/aim_machdep.c b/sys/powerpc/aim/aim_machdep.c index 914296440104..c5f84675ebd3 100644 --- a/sys/powerpc/aim/aim_machdep.c +++ b/sys/powerpc/aim/aim_machdep.c @@ -586,8 +586,10 @@ pmap_early_io_map_init(void) { if ((cpu_features2 & PPC_FEATURE2_ARCH_3_00) == 0) radix_mmu = 0; - else + else { + radix_mmu = 1; TUNABLE_INT_FETCH("radix_mmu", &radix_mmu); + } /* * When using Radix, set the start and end of kva early, to be able to |