opnsense-src/sys/powerpc/aim
Justin Hibbits 95a8fce118 [PowerPC64] fix crash when using machdep.moea64_bpvo_pool_size tunable
Summary:
This fixes kernel crashing when tunable "machdep.moea64_bpvo_pool_size" is
set to a value higher then 327680 (default value).  Function
moea64_mid_bootstrap() relies on moea64_bpvo_pool_size, but at time of the
use the variable wan't yet updated with the new value provided by user.

Problem was detected after trying to use a VM with 64GB of RAM, and default
moea64_bpvo_pool_size is insufficient (kernel boot used more than 470000) .
I think default value must be discussed to address this use case, or find a
way to calculate pool size automatically based on amount of memory detected.

Test Plan: Tested on QEMU VM with 64GB of RAM using "set
machdep.moea64_bpvo_pool_size=655360" on loader prompt

Submitted by:	Alfredo Dal'Ava Júnior (alfredo.junior_eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D23233
2020-01-19 21:17:57 +00:00
..
aim_machdep.c D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00
locore.S Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46: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
mmu_oea.c powerpc: Prevent infinite loop in moea_sync_icache() 2020-01-10 04:13:16 +00:00
mmu_oea64.c [PowerPC64] fix crash when using machdep.moea64_bpvo_pool_size tunable 2020-01-19 21:17:57 +00:00
mmu_oea64.h powerpc64/pmap: micro-optimize some PVO-PTE logic 2019-12-08 04:17:04 +00:00
moea64_if.m Add a 'SINGLETON' directive to kobj interface definition 2020-01-18 02:39:38 +00:00
moea64_native.c powerpc64/pmap: micro-optimize some PVO-PTE logic 2019-12-08 04:17:04 +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 D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00
trap_subr64.S D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00