Date: Thu, 1 Feb 2018 14:26:27 +0000 (UTC) From: Andrew Turner <andrew@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328658 - head/sys/arm64/arm64 Message-ID: <201802011426.w11EQRjR051312@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andrew Date: Thu Feb 1 14:26:26 2018 New Revision: 328658 URL: https://svnweb.freebsd.org/changeset/base/328658 Log: Only promote userspace mappings to superpages. This was dropped in r328510, however due to the break-before-make requirement on arm64 is is currently unsafe to promote kernel pages. Sponsored by: DARPA, AFRL Modified: head/sys/arm64/arm64/pmap.c Modified: head/sys/arm64/arm64/pmap.c ============================================================================== --- head/sys/arm64/arm64/pmap.c Thu Feb 1 13:17:42 2018 (r328657) +++ head/sys/arm64/arm64/pmap.c Thu Feb 1 14:26:26 2018 (r328658) @@ -3076,12 +3076,13 @@ validate: } #if VM_NRESERVLEVEL > 0 - if ((mpte == NULL || mpte->wire_count == NL3PG) && - pmap_superpages_enabled() && - (m->flags & PG_FICTITIOUS) == 0 && - vm_reserv_level_iffullpop(m) == 0) { - pmap_promote_l2(pmap, pde, va, &lock); - } + if (pmap != pmap_kernel() && + (mpte == NULL || mpte->wire_count == NL3PG) && + pmap_superpages_enabled() && + (m->flags & PG_FICTITIOUS) == 0 && + vm_reserv_level_iffullpop(m) == 0) { + pmap_promote_l2(pmap, pde, va, &lock); + } #endif if (lock != NULL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011426.w11EQRjR051312>