freebsd-skq/sys/powerpc/include
jhibbits a0a74f77de 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
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Do not include float interfaces when using libsa. 2018-02-23 04:04:25 +00:00
altivec.h
asm.h
atomic.h
bat.h
bus_dma.h
bus.h
clock.h
counter.h
cpu.h Fix the build post r332859 2018-04-22 03:58:04 +00:00
cpufunc.h
db_machdep.h No need to force md code to define a macro that's the same as 2018-04-16 13:52:23 +00:00
dbdma.h
dump.h
efi.h
elf.h
endian.h
exec.h
float.h
floatingpoint.h
fpu.h
frame.h
gdb_machdep.h amd64: Protect the kernel text, data, and BSS by setting the RW/NX bits 2018-03-06 14:28:37 +00:00
hid.h
ieee.h
ieeefp.h
in_cksum.h
intr_machdep.h
kdb.h
limits.h
machdep.h
md_var.h Break out the cpu_features setup to its own function, to be run earlier 2018-05-05 15:48:39 +00:00
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h
openpicreg.h
openpicvar.h
param.h
pcb.h powerpc64: Add DSCR support 2018-04-20 03:19:44 +00:00
pcpu.h
pio.h
platform.h Remove platform_cpu_idle() and platform_cpu_idle_wakeup() interfaces 2018-02-24 01:46:56 +00:00
platformvar.h
pmap.h
pmc_mdep.h
proc.h
profile.h
psl.h
pte.h Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
ptrace.h
reg.h Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h
sigframe.h
signal.h
slb.h
smp.h
spr.h Add support for powernv POWER9 MMU initialization 2018-05-05 16:00:02 +00:00
sr.h Move the powerpc64 direct map base address from zero to high memory. This 2018-03-07 17:08:07 +00:00
stack.h
stdarg.h
sysarch.h
tlb.h
trap.h
ucontext.h
vdso.h
vm.h
vmparam.h Add support for a pmap direct map for 64-bit Book-E 2018-04-03 00:45:38 +00:00