freebsd-skq/sys/powerpc/aim
Justin Hibbits caef3e1280 powerpc/pmap: NUMA-ize vm_page_array on powerpc
Summary:
This matches r351198 from amd64.  This only applies to AIM64 and Book-E.
On AIM64 it short-circuits with one domain, to behave similar to
existing.  Otherwise it will allocate 16MB huge pages to hold the page
array, across all NUMA domains.  On the first domain it will shift the
page array base up, to "upper-align" the page array in that domain, so
as to reduce the number of pages from the next domain appearing in this
domain.  After the first domain, subsequent domains will be allocated in
full 16MB pages, until the final domain, which can be short.  This means
some inner domains may have pages accounted in earlier domains.

On Book-E the page array is setup at MMU bootstrap time so that it's
always mapped in TLB1, on both 32-bit and 64-bit.  This reduces the TLB0
overhead for touching the vm_page_array, which reduces up to one TLB
miss per array access.

Since page_range (vm_page_startup()) is no longer used on Book-E but is on
32-bit AIM, mark the variable as potentially unused, rather than using a
nasty #if defined() list.

Reviewed by:	luporl
Differential Revision:	https://reviews.freebsd.org/D21449
2019-12-07 03:34:03 +00:00
..
aim_machdep.c powerpc: Add POWER8NVL definition 2019-04-27 02:33:49 +00:00
locore32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore64.S [PPC64] Fix trapstk overflow 2019-10-31 11:59:00 +00:00
locore.S
mmu_oea64.c powerpc/pmap: NUMA-ize vm_page_array on powerpc 2019-12-07 03:34:03 +00:00
mmu_oea64.h [PPC64] Initial kernel minidump implementation 2019-10-14 13:04:04 +00:00
mmu_oea.c Clear PGA_WRITEABLE in moea_pvo_remove(). 2019-10-16 15:50:12 +00:00
moea64_if.m
moea64_native.c powerpc64: Don't guard ISA 3.0 partition table setup with hw_direct_map 2019-11-13 02:22:00 +00:00
mp_cpudep.c powerpc: Initialize the Hardware Interrupt Offset Register (HIOR) earlier for ppc970 2019-05-10 19:36:14 +00:00
slb.c powerpc/pmap: NUMA-ize vm_page_array on powerpc 2019-12-07 03:34:03 +00:00
trap_subr32.S powerpc: Kernel fixes for ppc32 and powerpcspe w/ lld 2019-11-14 04:34:17 +00:00
trap_subr64.S powerpc/aim: Fix comment typo 2019-10-19 02:47:32 +00:00