summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/cache')
-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 4c92740e2..1fed720f6 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
@@ -101,6 +101,15 @@ p9_hcd_cache_stopclocks(
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_IS_MPIPL, l_sys, l_is_mpipl));
+ //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