diff options
author | Brian Vanderpool <vanderp@us.ibm.com> | 2017-09-05 09:45:21 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-09-14 22:39:24 -0400 |
commit | 7fd0d220c1142912a251a67c213ef215bd25007f (patch) | |
tree | 27df228d045b70a0a4c010d24de7f300a2e2b71e /src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C | |
parent | 53135e0ca453b7e9a4c14b11a6c1771ce25e172d (diff) | |
download | talos-hostboot-7fd0d220c1142912a251a67c213ef215bd25007f.tar.gz talos-hostboot-7fd0d220c1142912a251a67c213ef215bd25007f.zip |
AVSBUS: add bridge/bus information to data status code 3
Also change formatting on asserts
Change-Id: Ia81df3082b6c01c92df3a3a363880d5921a104d6
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45644
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/45650
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: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C')
-rw-r--r-- | src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C b/src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C index 620f27a7c..3875806ce 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C +++ b/src/import/chips/p9/procedures/hwp/lib/p9_avsbus_lib.C @@ -494,6 +494,7 @@ avsValidateResponse(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target, } else { + FAPI_INF("Incorrect response received - Computed CRC %X Received %X - Full Response %08X", l_rsp_computed_crc, l_rsp_rcvd_crc, l_rsp_data); @@ -501,41 +502,60 @@ avsValidateResponse(const fapi2::Target<fapi2::TARGET_TYPE_PROC_CHIP>& i_target, { FAPI_DBG("ERROR: AVS command failed. All 0 response data received possibly due to AVSBus IO RI/DIs disabled."); FAPI_ASSERT((i_throw_assert != true), - fapi2::PM_AVSBUS_ZERO_RESP_ERROR().set_TARGET(i_target).set_BUS(i_avsBusNum).set_BRIDGE(i_o2sBridgeNum), + fapi2::PM_AVSBUS_ZERO_RESP_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. All 0 response data received possibly due to AVSBus IO RI/DIs disabled."); } else if(l_rsp_data == 0xFFFFFFFF) { FAPI_DBG("ERROR: AVS command failed failed. No response from VRM device, Check AVSBus interface connectivity to VRM in system."); FAPI_ASSERT((i_throw_assert != true), - fapi2::PM_AVSBUS_NO_RESP_ERROR().set_TARGET(i_target).set_BUS(i_avsBusNum).set_BRIDGE(i_o2sBridgeNum), + fapi2::PM_AVSBUS_NO_RESP_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. No response from VRM device, Check AVSBus interface connectivity to VRM in system."); } else if(l_rsp_rcvd_crc != l_rsp_computed_crc) { FAPI_DBG("ERROR: AVS command failed failed. Bad CRC detected by P9 on AVSBus Slave Segement."); FAPI_ASSERT((i_throw_assert != true), - fapi2::PM_AVSBUS_MASTER_BAD_CRC_ERROR().set_TARGET(i_target).set_BUS(i_avsBusNum).set_BRIDGE(i_o2sBridgeNum), + fapi2::PM_AVSBUS_MASTER_BAD_CRC_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. Bad CRC detected by P9 on AVSBus Slave Segement."); } else if(l_data_status_code == 0x02) { FAPI_DBG("ERROR: AVS command failed failed. Bad CRC indicated by Slave VRM on AVSBus Master Segement."); FAPI_ASSERT((i_throw_assert != true), - fapi2::PM_AVSBUS_SLAVE_BAD_CRC_ERROR().set_TARGET(i_target).set_BUS(i_avsBusNum).set_BRIDGE(i_o2sBridgeNum), + fapi2::PM_AVSBUS_SLAVE_BAD_CRC_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. Bad CRC indicated by Slave VRM on AVSBus Master Segement."); } else if(l_data_status_code == 0x01) { FAPI_DBG("ERROR: AVS command failed failed. Valid data sent but no action is taken due to unavailable resource."); FAPI_ASSERT((i_throw_assert != true), - fapi2::PM_AVSBUS_UNAVAILABLE_RESOURCE_ERROR().set_TARGET(i_target).set_BUS(i_avsBusNum).set_BRIDGE(i_o2sBridgeNum), + fapi2::PM_AVSBUS_UNAVAILABLE_RESOURCE_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. Valid data sent but no action is taken due to unavailable resource."); } else if(l_data_status_code == 0x03) { FAPI_DBG("ERROR: AVS command failed failed. Unknown resource, invalid data, incorrect data or incorrect action."); - FAPI_ASSERT((i_throw_assert != true), fapi2::PM_AVSBUS_INVALID_DATA_ERROR().set_TARGET(i_target), + FAPI_ASSERT((i_throw_assert != true), + fapi2::PM_AVSBUS_INVALID_DATA_ERROR() + .set_TARGET(i_target) + .set_BUS(i_avsBusNum) + .set_BRIDGE(i_o2sBridgeNum), "ERROR: AVS command failed. Unknown resource, invalid data, incorrect data or incorrect action."); } } |