summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrasad Bg Ranganath <prasadbgr@in.ibm.com>2019-02-15 00:03:15 -0600
committerRAJA DAS <rajadas2@in.ibm.com>2019-02-28 03:00:25 -0600
commit8fd8d1401c5fcbcb231e4b1f91ab413d5aa01a49 (patch)
treefbec688df1e721e065672c17e81d85da3a329d28
parent9b5f5c303ddc930d97e0a061bd86bd6fb545f96d (diff)
downloadtalos-sbe-8fd8d1401c5fcbcb231e4b1f91ab413d5aa01a49.tar.gz
talos-sbe-8fd8d1401c5fcbcb231e4b1f91ab413d5aa01a49.zip
HWP:Cache stop clocks complete fix
CQ:SW455762 Change-Id: Ia41ad689ebe7d1468855e8a9240a6701c372c435 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71955 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> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Prem Shanker Jha <premjha2@in.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71963 Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
-rw-r--r--src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C
index b81ba115..7f6fe947 100644
--- a/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C
+++ b/src/import/chips/p9/procedures/hwp/cache/p9_hcd_cache_stopclocks.C
@@ -110,6 +110,15 @@ p9_hcd_cache_stopclocks(
return fapi2::current_err;
}
+ //Check if EQ is powered off; if so, return
+ FAPI_TRY(fapi2::getScom(i_target, EQ_PPM_PFSNS, l_data64),
+ "Error reading data from EQ_PPM_PFSNS");
+
+ if(l_data64.getBit<EQ_PPM_PFSNS_VDD_PFETS_DISABLED_SENSE>())
+ {
+ return fapi2::current_err;
+ }
+
if(l_is_mpipl)
{
// PB_PURGE related SCOMs should be added to the beginning of
OpenPOWER on IntegriCloud