summaryrefslogtreecommitdiffstats
path: root/src/kernel/misc.C
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2016-07-27 11:55:38 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-08-10 14:14:54 -0400
commit0f64c7b414998e6f9b1b7211f55f0ca481208070 (patch)
treebaac50f47ccab0274015612fa1faf9c8172fc10f /src/kernel/misc.C
parent15a7b3ec80e826ed07c57739693d9e98a17d2b33 (diff)
downloadtalos-hostboot-0f64c7b414998e6f9b1b7211f55f0ca481208070.tar.gz
talos-hostboot-0f64c7b414998e6f9b1b7211f55f0ca481208070.zip
Handle 8MB reduced cache mode
Check scom register (0x1001181B) for reduced cache mode and expand the memory footprint appropriately, reduced 8MB or full 10MB. Change-Id: I5920572077cdcee317e7b3b9abe999e6de295459 RTC:152954 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27522 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/kernel/misc.C')
-rw-r--r--src/kernel/misc.C9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/kernel/misc.C b/src/kernel/misc.C
index 4343fe9c8..972a30a19 100644
--- a/src/kernel/misc.C
+++ b/src/kernel/misc.C
@@ -517,7 +517,7 @@ namespace KernelMisc
return 0;
}
- int expand_full_cache()
+ int expand_full_cache(uint64_t i_expandSize)
{
static bool executed = false;
@@ -538,8 +538,7 @@ namespace KernelMisc
case CORE_POWER9_CUMULUS:
startAddr = reinterpret_cast<uint64_t*>
( VmmManager::INITIAL_MEM_SIZE ) ;
- endAddr =
- reinterpret_cast<uint64_t*>(VMM_BASE_BLOCK_SIZE);
+ endAddr = reinterpret_cast<uint64_t*>(i_expandSize);
break;
default:
@@ -565,7 +564,9 @@ namespace KernelMisc
executed = true;
KernelMemState::setMemScratchReg(KernelMemState::MEM_CONTAINED_L3,
- KernelMemState::FULL_CACHE);
+ (i_expandSize == VMM_BASE_BLOCK_SIZE)
+ ? KernelMemState::FULL_CACHE
+ : KernelMemState::REDUCED_CACHE);
return 0;
}
OpenPOWER on IntegriCloud