summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnusha Reddy Rangareddygari <anusrang@in.ibm.com>2018-04-18 04:58:43 -0400
committerhostboot <hostboot@us.ibm.com>2018-04-26 12:17:38 -0500
commit1a22ed2d89ee46392d1122af3955c3f507a99e7c (patch)
treee07f2e07afd0ff53ce562fa48defd44c0ba6d28e
parent2d64cd2a509bec43e61a03249c1e0148cd0dd78f (diff)
downloadtalos-hcode-1a22ed2d89ee46392d1122af3955c3f507a99e7c.tar.gz
talos-hcode-1a22ed2d89ee46392d1122af3955c3f507a99e7c.zip
p9_pibmem_dump - to support Axone increased pibmem size.
Change-Id: Iae06ea48ad9838bcc725a75ac8f39b726f8e91cf Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/57396 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Reviewed-by: Anay K. Desai <anaydesa@in.ibm.com> Reviewed-by: PARVATHI RACHAKONDA <prachako@in.ibm.com>
-rw-r--r--import/chips/p9/procedures/hwp/lib/p9_pibmem_dump.C22
1 files changed, 19 insertions, 3 deletions
diff --git a/import/chips/p9/procedures/hwp/lib/p9_pibmem_dump.C b/import/chips/p9/procedures/hwp/lib/p9_pibmem_dump.C
index cb9247df..5a63a381 100644
--- a/import/chips/p9/procedures/hwp/lib/p9_pibmem_dump.C
+++ b/import/chips/p9/procedures/hwp/lib/p9_pibmem_dump.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2016,2017 */
+/* COPYRIGHT 2016,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -33,8 +33,10 @@
#include <fapi2.H>
#include <p9_pibmem_dump.H>
-const static uint32_t PIBMEM_START_ARRAY_ADDRESS = 0x00080000;
-const static uint32_t DEPTH_OF_ARRAY = 0x00003000;
+const static uint32_t P9n_PIBMEM_START_ARRAY_ADDRESS = 0x00080000;
+const static uint32_t P9n_DEPTH_OF_ARRAY = 0x00003000;
+const static uint32_t P9a_PIBMEM_START_ARRAY_ADDRESS = 0x00080000;
+const static uint32_t P9a_DEPTH_OF_ARRAY = 0x00007000;
const static uint32_t PIBMEM_CTRL_REG = 0x00088000;
fapi2::ReturnCode p9_pibmem_dump(
@@ -45,10 +47,24 @@ fapi2::ReturnCode p9_pibmem_dump(
std::vector<array_data_t>& pibmem_contents,
const bool ecc_enable)
{
+ uint8_t l_attr_axone_only;
uint32_t i, start_address, num_of_address, end_address;
+ uint32_t PIBMEM_START_ARRAY_ADDRESS, DEPTH_OF_ARRAY;
array_data_t fetch_data;
fapi2::buffer<uint64_t> l_data64, ctrl_data, original_ctrl_data;
+ FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_EC_FEATURE_P9A_LOGIC_ONLY, i_target, l_attr_axone_only));
+
+ if (l_attr_axone_only) // Axone only
+ {
+ PIBMEM_START_ARRAY_ADDRESS = P9a_PIBMEM_START_ARRAY_ADDRESS;
+ DEPTH_OF_ARRAY = P9a_DEPTH_OF_ARRAY;
+ }
+ else
+ {
+ PIBMEM_START_ARRAY_ADDRESS = P9n_PIBMEM_START_ARRAY_ADDRESS;
+ DEPTH_OF_ARRAY = P9n_DEPTH_OF_ARRAY;
+ }
/// The below code enables/disables ECC checking before doing Dump based on inputs from USER.
FAPI_TRY(getScom(i_target, PIBMEM_CTRL_REG, original_ctrl_data), "Error in Reading Control Register");
OpenPOWER on IntegriCloud