From 28943ea5d8afe937cbad9b55a46d9a750cfa32d2 Mon Sep 17 00:00:00 2001 From: Dean Sanner Date: Fri, 1 Jul 2016 21:11:58 -0500 Subject: VPO updates for constrained mem, hbbl, simics Change-Id: I2302776822f9aa599adb3d134514149c4468f32e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26577 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Prachi Gupta Reviewed-by: Marshall J. Wilks Reviewed-by: William G. Hoffa --- src/include/kernel/cpumgr.H | 4 ++++ src/include/kernel/pagemgr.H | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/include/kernel') diff --git a/src/include/kernel/cpumgr.H b/src/include/kernel/cpumgr.H index 2c3449fa0..fc562521d 100644 --- a/src/include/kernel/cpumgr.H +++ b/src/include/kernel/cpumgr.H @@ -35,7 +35,11 @@ class CpuManager public: enum { +#ifdef CONFIG_P9_VPO_COMPILE // VPO has constrained mem env -> check sooner + CPU_PERIODIC_CHECK_MEMORY = 64, +#else CPU_PERIODIC_CHECK_MEMORY = 128, // Is this even needed anymore? +#endif CPU_PERIODIC_FLUSH_PAGETABLE = 256, CPU_PERIODIC_DEFRAG = 949, // TODO Any bigger not currently hit }; diff --git a/src/include/kernel/pagemgr.H b/src/include/kernel/pagemgr.H index 95bb2fb65..c842a9360 100644 --- a/src/include/kernel/pagemgr.H +++ b/src/include/kernel/pagemgr.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2015 */ +/* Contributors Listed Below - COPYRIGHT 2010,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -185,7 +185,11 @@ class PageManager { KERNEL_HEAP_RESERVED_PAGES = 4, +#ifdef CONFIG_P9_VPO_COMPILE // VPO has constrained mem env -> higher threshold + LOWMEM_NORM_LIMIT = 32, +#else LOWMEM_NORM_LIMIT = 16, +#endif LOWMEM_CRIT_LIMIT = 5, }; -- cgit v1.2.3