summaryrefslogtreecommitdiffstats
path: root/src/kernel/basesegment.C
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-01-10 11:07:59 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-01-15 22:36:51 -0500
commit1e973575493db7b15d6cd36613034e3ea17ca900 (patch)
tree7b05bb79e0352879f33da0cfbf08c97d51b46af3 /src/kernel/basesegment.C
parentf7a5547478eae53e6623164b8faacfaf6e721cb1 (diff)
downloadtalos-hostboot-1e973575493db7b15d6cd36613034e3ea17ca900.tar.gz
talos-hostboot-1e973575493db7b15d6cd36613034e3ea17ca900.zip
Expand Hostboot to 64MB
We hit out-of-memory errors while trying to boot a Opal system due to the large amount of memory used by the PM procedures and the pinning of memory in secure mode. Also did some other rearranging of the pinned memory sections to get some space back. Change-Id: I61f219d7f32871a39b236d963bae893a6ef0ce0e CQ: SW413191 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/51724 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/kernel/basesegment.C')
-rw-r--r--src/kernel/basesegment.C20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/kernel/basesegment.C b/src/kernel/basesegment.C
index 2de6973e0..2574c8d6a 100644
--- a/src/kernel/basesegment.C
+++ b/src/kernel/basesegment.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2011,2017 */
+/* Contributors Listed Below - COPYRIGHT 2011,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -236,16 +236,16 @@ int BaseSegment::mmExtend(void)
/**
* Allocates a block of virtual memory of the given size
- * to extend the VMM to 48MEG in size in mainstore
+ * to extend the VMM into Mainstore (up to VMM_MEMORY_SIZE)
*/
int BaseSegment::_mmExtend(void)
{
- // The base address of the extended memory is 8Mg.. The first x pages is
- // for the SPTE.. The remaining pages from 8MG + SPTE to 48MEG is added to
- // the HEAP..
+ // The base address of the extended memory is the cache size.. The first x
+ // pages is for the SPTE.. The remaining pages from the end of cache + SPTE
+ // up to VMM_MEMORY_SIZE of mainstore is added to the HEAP.
- uint64_t l_vaddr = VMM_ADDR_EXTEND_BLOCK; // 8MEG
- uint64_t l_size = VMM_EXTEND_BLOCK_SIZE; // 48MEG - 8MB (base block)
+ uint64_t l_vaddr = VMM_ADDR_EXTEND_BLOCK; // Cache size
+ uint64_t l_size = VMM_EXTEND_BLOCK_SIZE; // VMM - 8MB (base block)
// Call to allocate a block passing in the requested address of where the
// SPTEs should be created
@@ -283,14 +283,14 @@ int BaseSegment::_mmExtend(void)
PageManager::addMemory(l_vaddr + (spte_pages*PAGESIZE),
l_size/PAGESIZE - spte_pages);
- // Update the physical Memory size to now be 48MEG. by adding the extended
- // block size to the physical mem size.
+ // Update the physical Memory size to now include some mainstore by adding
+ // the extended block size to the physical mem size.
iv_physMemSize += VMM_EXTEND_BLOCK_SIZE;
// Call to set the Hostboot MemSize and location needed for DUMP.
KernelMemState::setMemScratchReg(KernelMemState::MEM_CONTAINED_MS,
- KernelMemState::MS_48MEG);
+ KernelMemState::FULL_MEM);
return 0;
}
OpenPOWER on IntegriCloud