summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp
diff options
context:
space:
mode:
authorJoe McGill <jmcgill@us.ibm.com>2017-09-06 07:37:24 -0500
committerChristian R. Geddes <crgeddes@us.ibm.com>2019-02-28 09:40:17 -0600
commit9ac0a51a20c1bc3de3177174fecc6d6a999c89b5 (patch)
treee13ecc37ca356f97f878b9366eae3ecaac11c347 /src/import/chips/p9/procedures/hwp
parentebd72d043f2358485d2a1ad293c2ffbfc3369dba (diff)
downloadtalos-hostboot-9ac0a51a20c1bc3de3177174fecc6d6a999c89b5.tar.gz
talos-hostboot-9ac0a51a20c1bc3de3177174fecc6d6a999c89b5.zip
p9_query_mssinfo -- adjust total memory reporting
NORMAL - report total non-mirrored memory FLIPPED - report total mirrored memory Change-Id: If39fcdad47c0b1b9f07d358a42d94f7da8d1116f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45697 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: LENNARD G. STREAT <lstreat@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72545 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp')
-rw-r--r--src/import/chips/p9/procedures/hwp/nest/p9_query_mssinfo.C11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/import/chips/p9/procedures/hwp/nest/p9_query_mssinfo.C b/src/import/chips/p9/procedures/hwp/nest/p9_query_mssinfo.C
index e384055cd..ed590dfac 100644
--- a/src/import/chips/p9/procedures/hwp/nest/p9_query_mssinfo.C
+++ b/src/import/chips/p9/procedures/hwp/nest/p9_query_mssinfo.C
@@ -268,7 +268,11 @@ fapi2::ReturnCode p9_query_mssinfo(const std::vector<fapi2::Target<fapi2::TARGET
if (sizes[j] != 0)
{
- curNodeSize += (sizes[j] >> ONE_GIG);
+ if (mirror_policy == fapi2::ENUM_ATTR_MEM_MIRROR_PLACEMENT_POLICY_NORMAL)
+ {
+ curNodeSize += (sizes[j] >> ONE_GIG);
+ }
+
#ifdef _LP64
printf(" Base Address = 0x%016lx Size = %ld (GB)\n", bases[j], sizes[j] >> ONE_GIG);
#else
@@ -279,6 +283,11 @@ fapi2::ReturnCode p9_query_mssinfo(const std::vector<fapi2::Target<fapi2::TARGET
if ((j < 4) && (mirror_sizes[j] != 0))
{
+ if (mirror_policy == fapi2::ENUM_ATTR_MEM_MIRROR_PLACEMENT_POLICY_FLIPPED)
+ {
+ curNodeSize += (mirror_sizes[j] >> ONE_GIG);
+ }
+
#ifdef _LP64
printf(" Mirror Base Address = 0x%016lx Size = %ld (GB)\n", mirror_bases[j], mirror_sizes[j] >> ONE_GIG);
#else
OpenPOWER on IntegriCloud