mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
168b579a48
commit
8ecf9a8bab
|
@ -232,10 +232,10 @@ ppc64_cas(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (radix_mmu && (var = getenv("radix_mmu")) != NULL && var[0] != '0')
|
||||
ov5[OV5_MMU_INDEX] = OV5_MMU_RADIX;
|
||||
else
|
||||
if ((var = getenv("radix_mmu")) != NULL && var[0] == '0')
|
||||
radix_mmu = 0;
|
||||
if (radix_mmu)
|
||||
ov5[OV5_MMU_INDEX] = OV5_MMU_RADIX;
|
||||
|
||||
inst = OF_open("/");
|
||||
if (inst == -1) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -83,7 +83,7 @@ int vm_level_0_order = 9;
|
|||
|
||||
SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
|
||||
|
||||
int superpages_enabled = 0;
|
||||
int superpages_enabled = 1;
|
||||
SYSCTL_INT(_vm_pmap, OID_AUTO, superpages_enabled, CTLFLAG_RDTUN,
|
||||
&superpages_enabled, 0, "Enable support for transparent superpages");
|
||||
|
||||
|
|
Loading…
Reference in a new issue