diff options
author | Marty Gloff <mgloff@us.ibm.com> | 2016-07-27 11:55:38 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-08-10 14:14:54 -0400 |
commit | 0f64c7b414998e6f9b1b7211f55f0ca481208070 (patch) | |
tree | baac50f47ccab0274015612fa1faf9c8172fc10f /src/include/kernel | |
parent | 15a7b3ec80e826ed07c57739693d9e98a17d2b33 (diff) | |
download | talos-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/include/kernel')
-rw-r--r-- | src/include/kernel/memstate.H | 10 | ||||
-rw-r--r-- | src/include/kernel/misc.H | 8 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/include/kernel/memstate.H b/src/include/kernel/memstate.H index 23ba4ba7e..6ef43aaab 100644 --- a/src/include/kernel/memstate.H +++ b/src/include/kernel/memstate.H @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2013,2016 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -42,7 +44,8 @@ namespace KernelMemState - 32:63 - Size of active Hostboot memory in MB - - 0 = Hostboot is not ready yet. - - 4 = Hostboot is using half a cache - - - 8 = Hostboot is using the full cache + - - 8 = Hostboot is using reduced cache + - - 10 = Hostboot is using the full cache - - 32 = Hostboot is using 32 MB of mainstore*/ @@ -58,7 +61,8 @@ namespace KernelMemState { NO_MEM = 0x0, HALF_CACHE = 0x00000004, - FULL_CACHE = 0x00000008, + REDUCED_CACHE = 0x00000008, + FULL_CACHE = 0x0000000A, MS_32MEG = 0x00000020, PRE_SECURE_BOOT = 0x000000FF, }; diff --git a/src/include/kernel/misc.H b/src/include/kernel/misc.H index 802df9090..a7b1d442b 100644 --- a/src/include/kernel/misc.H +++ b/src/include/kernel/misc.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2011,2015 */ +/* Contributors Listed Below - COPYRIGHT 2011,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -159,11 +159,13 @@ namespace KernelMisc /** @fn expand_full_cache * * @brief Expands the image footprint from a half-cache to full-cache - * mode. + * mode or to reduced-cache mode. + * + * @param[in] i_expandSize - Total expanded cache size. * * @return 0 or -errno */ - int expand_full_cache(); + int expand_full_cache(uint64_t i_expandSize); /** @fn populate_cache_lines * |