freebsd-nq/sys/powerpc
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 [PowerPC64] fix crash when using machdep.moea64_bpvo_pool_size tunable 2020-01-19 21:17:57 +00:00
amigaone powerpc: Add AmigaOne platform, a subclass of MPC85xx 2019-10-16 00:38:50 +00:00
booke [PowerPC] Fix Book-E direct map for >=16G ram on e5500 2020-01-18 01:22:54 +00:00
conf [PowerPC64] Enable virtio drivers 2020-01-16 11:33:15 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Partially revert r356640 2020-01-13 23:09:00 +00:00
ofw powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
powerpc Add a 'SINGLETON' directive to kobj interface definition 2020-01-18 02:39:38 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries Enable use of ofwcons for early debug 2019-12-09 13:40:23 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00