freebsd-skq/sys/powerpc/aim
Justin Hibbits 10d0cdfc6e Add support for powernv POWER9 MMU initialization
The POWER9 MMU (PowerISA 3.0) is slightly different from current
configurations, using a partition table even for hypervisor mode, and
dropping the SDR1 register.  Key off the newly early-enabled CPU features
flags for the new architecture, and configure the MMU appropriately.

The POWER9 MMU ignores the "PSIZ" field in the PTCR, and expects a 64kB
table.  As we are enabled for powernv (hypervisor mode, no VMs), only
initialize partition table entry 0, and zero out the rest.  The actual
contents of the register are identical to SDR1 from previous architectures.

Along with this, fix a bug in the page table allocation with very large
memory.  The table can be allocated on any 256k boundary.  The
bootstrap_alloc alignment argument is an int, and with large amounts of
memory passing the size of the table as the alignment will overflow an
integer.  Hard-code the alignment at 256k as wider alignment is not
necessary.

Reviewed by:	nwhitehorn
Tested by:	Breno Leitao
Relnotes:	Yes
2018-05-05 16:00:02 +00:00
..
aim_machdep.c powerpc64: Set n_slbs = 32 for POWER9 2018-04-20 03:23:19 +00:00
locore32.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
locore64.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
locore.S Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
mmu_oea64.c Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
mmu_oea64.h Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
mmu_oea.c vm_wait() rework. 2018-02-20 10:13:13 +00:00
moea64_if.m
moea64_native.c Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
mp_cpudep.c Add POWER9 to the POWER8 bootstrap case blocks 2018-05-05 15:42:58 +00:00
slb.c Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
trap_subr32.S Use the explicit expanded form of cmp. 2017-01-18 03:42:21 +00:00
trap_subr64.S Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00