svn commit: r304750 - head/sys/arm64/arm64
Andrew Turner
andrew at FreeBSD.org
Wed Aug 24 13:00:52 UTC 2016
Author: andrew
Date: Wed Aug 24 13:00:50 2016
New Revision: 304750
URL: https://svnweb.freebsd.org/changeset/base/304750
Log:
Allow superpages on arm64 to be enabled. It is disabled for now to allow
for more testing across more hardware.
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/arm64/arm64/pmap.c
Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c Wed Aug 24 12:57:40 2016 (r304749)
+++ head/sys/arm64/arm64/pmap.c Wed Aug 24 13:00:50 2016 (r304750)
@@ -242,7 +242,7 @@ extern pt_entry_t pagetable_dmap[];
static SYSCTL_NODE(_vm, OID_AUTO, pmap, CTLFLAG_RD, 0, "VM/pmap parameters");
-static int superpages_enabled = 1;
+static int superpages_enabled = 0;
SYSCTL_INT(_vm_pmap, OID_AUTO, superpages_enabled,
CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &superpages_enabled, 0,
"Are large page mappings enabled?");
@@ -2939,15 +2939,12 @@ validate:
if ((pmap != pmap_kernel()) && (pmap == &curproc->p_vmspace->vm_pmap))
cpu_icache_sync_range(va, PAGE_SIZE);
- /* XXX: Not yet, not all demotions are handled */
-#if 0
if ((mpte == NULL || mpte->wire_count == NL3PG) &&
pmap_superpages_enabled() && (m->flags & PG_FICTITIOUS) == 0 &&
vm_reserv_level_iffullpop(m) == 0) {
KASSERT(lvl == 2, ("Invalid pde level %d", lvl));
pmap_promote_l2(pmap, pde, va, &lock);
}
-#endif
if (lock != NULL)
rw_wunlock(lock);
More information about the svn-src-head
mailing list