summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorDean Sanner <dsanner@us.ibm.com>2017-02-23 08:41:00 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-27 09:26:20 -0500
commitec0476878770d601b40cf75528fe07e5ab1beb53 (patch)
tree117253ba2bf799d307889e54ff235ebe68421bc7 /src/include
parent2e7f87d72580caac7cfb3e96e80764a94b430df5 (diff)
downloadtalos-hostboot-ec0476878770d601b40cf75528fe07e5ab1beb53.tar.gz
talos-hostboot-ec0476878770d601b40cf75528fe07e5ab1beb53.zip
Reduce memory fragmentation during SBE updates
- Original code was repeatedly allocating/freeing 256K chunks of heap memory - Other tasks in the background fragmented the allocations and could lead to out of memory conditions on large core number parts - Fix is to allocation one large chunk up front and use that for all operations Change-Id: Ie6df7eb9ebce526d87480425e842f8d1be8d78d4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36920 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/usr/vmmconst.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/usr/vmmconst.h b/src/include/usr/vmmconst.h
index 538cb2aba..17d8815b0 100644
--- a/src/include/usr/vmmconst.h
+++ b/src/include/usr/vmmconst.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2016 */
+/* Contributors Listed Below - COPYRIGHT 2011,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -100,7 +100,7 @@
/** SBE Update process is at 3GB, uses 512KB */
#define VMM_VADDR_SBE_UPDATE (3 * GIGABYTE)
-#define VMM_SBE_UPDATE_SIZE (512 * KILOBYTE)
+#define VMM_SBE_UPDATE_SIZE (900 * KILOBYTE)
#define VMM_VADDR_SBE_UPDATE_END (VMM_VADDR_SBE_UPDATE + VMM_SBE_UPDATE_SIZE)
/** Attribute Resource Provider */
OpenPOWER on IntegriCloud