From 7b91b9596065935f14d87d2eef2dd980039823e2 Mon Sep 17 00:00:00 2001 From: Louis Stermole Date: Fri, 20 Dec 2019 13:56:40 -0500 Subject: Add attribute to specify polling timeout for exp_check_for_ready Change-Id: I2ab3384927c89c8aa8f8c16f2b7a666c5f1ae935 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89027 Tested-by: FSP CI Jenkins Tested-by: Jenkins Server Dev-Ready: STEPHEN GLANCY Tested-by: Hostboot CI Reviewed-by: Mark Pizzutillo Reviewed-by: STEPHEN GLANCY Reviewed-by: Christian R Geddes Reviewed-by: Jennifer A Stofer Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89050 Tested-by: Jenkins OP Build CI --- .../explorer/procedures/hwp/memory/exp_check_for_ready.C | 10 ++++++++-- .../procedures/xml/attribute_info/exp_attributes.xml | 16 +++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C index 94a3a383e..d7f80d648 100644 --- a/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C +++ b/src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_check_for_ready.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2018,2019 */ +/* Contributors Listed Below - COPYRIGHT 2018,2020 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -38,6 +38,8 @@ #include #include #include +#include +#include extern "C" { @@ -50,7 +52,11 @@ extern "C" { mss::display_git_commit_info("exp_check_for_ready"); - FAPI_TRY(mss::exp::i2c::exp_check_for_ready_helper(i_target)); + fapi2::ATTR_MSS_CHECK_FOR_READY_TIMEOUT_Type l_poll_count = 0; + + FAPI_TRY(mss::attr::get_check_for_ready_timeout(i_target, l_poll_count)); + + FAPI_TRY(mss::exp::i2c::exp_check_for_ready_helper(i_target, l_poll_count, mss::DELAY_1MS)); fapi_try_exit: return fapi2::current_err; diff --git a/src/import/chips/ocmb/explorer/procedures/xml/attribute_info/exp_attributes.xml b/src/import/chips/ocmb/explorer/procedures/xml/attribute_info/exp_attributes.xml index c559b66ec..a65155d69 100644 --- a/src/import/chips/ocmb/explorer/procedures/xml/attribute_info/exp_attributes.xml +++ b/src/import/chips/ocmb/explorer/procedures/xml/attribute_info/exp_attributes.xml @@ -5,7 +5,7 @@ - + @@ -473,4 +473,18 @@ + + ATTR_MSS_CHECK_FOR_READY_TIMEOUT + TARGET_TYPE_OCMB_CHIP + + Timeout (in msec) for polling for FW_STATUS reply during + exp_check_for_ready. Default is 400msec, from lab experimentation + + uint16 + 400 + + + check_for_ready_timeout + + -- cgit v1.2.1