From 9c147a336dfa8950ce1ccf0246a8e9d693064b5b Mon Sep 17 00:00:00 2001 From: Prem Shanker Jha Date: Wed, 26 Dec 2018 00:20:06 -0600 Subject: PM Malf Func: Fixed bugs pertaining pm malfunction FFDC and parser. Fixed following: - printing of 64 bit register value. - collection 64 bit FFDC register. Key_Cronus_Test=PM_REGRESS CQ: SW454621 Change-Id: I4f09f635b0232bffc4cefd368f1f004569c5ef83 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70017 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Tested-by: HWSV CI Tested-by: Cronus HW CI Tested-by: Hostboot CI Reviewed-by: Gregory S. Still Reviewed-by: Jennifer A. Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70018 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Reviewed-by: Christian R. Geddes --- src/import/hwpf/fapi2/include/collect_reg_ffdc.H | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/import/hwpf') diff --git a/src/import/hwpf/fapi2/include/collect_reg_ffdc.H b/src/import/hwpf/fapi2/include/collect_reg_ffdc.H index 98f1f3b80..34d9a8edc 100644 --- a/src/import/hwpf/fapi2/include/collect_reg_ffdc.H +++ b/src/import/hwpf/fapi2/include/collect_reg_ffdc.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015,2018 */ +/* Contributors Listed Below - COPYRIGHT 2015,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -417,9 +417,9 @@ ReturnCode collectRegisterAndAddressData(std::vector& i_addresses, U& i_reade { fapi2::buffer l_buf; - T l_address = address + i_offset; + l_addr = address + i_offset; - l_rc = i_reader.read_register(l_address, l_buf); + l_rc = i_reader.read_register(l_addr, l_buf); if(l_rc) { @@ -434,9 +434,7 @@ ReturnCode collectRegisterAndAddressData(std::vector& i_addresses, U& i_reade l_data = l_buf(); } - l_address = htobe64(l_address); - l_data = htobe64(l_data); - l_addr = l_address >> 32; + l_data = htobe64(l_data); memcpy(o_pData, &l_addr, sizeof(uint32_t)); o_pData += sizeof(uint32_t); -- cgit v1.2.1