From 2a438c9dd4b200b6cd5010dd8891a0e9d0ddd2f4 Mon Sep 17 00:00:00 2001 From: Brian Vanderpool Date: Tue, 27 Jun 2017 12:54:26 -0500 Subject: Improve power and clock checking when checking for stop states Change-Id: I3e5eeb48d182563a41046bc4c2dd378f08c99df2 Original-Change-Id: I62a9d62b61f9336d99459bca4090fb628f38787f Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42499 Tested-by: Jenkins Server Tested-by: PPE CI Tested-by: Hostboot CI Reviewed-by: Gregory S. Still Reviewed-by: Michael S. Floyd Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55824 Reviewed-by: Sachin Gupta Tested-by: Sachin Gupta --- .../chips/p9/procedures/hwp/pm/p9_query_cache_access_state.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/import/chips/p9/procedures') diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_state.C b/src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_state.C index 92144d04..b815eacc 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_state.C +++ b/src/import/chips/p9/procedures/hwp/pm/p9_query_cache_access_state.C @@ -52,6 +52,7 @@ #include #include + // ---------------------------------------------------------------------- // Constants // ---------------------------------------------------------------------- @@ -105,12 +106,15 @@ p9_query_cache_access_state( //A unit is scommable if clocks are running //A unit is scannable if the unit is powered up - //Extract the core stop state - l_qsshsrc.extractToRight(l_quadStopLevel, SSH_REG_STOP_LEVEL, SSH_REG_STOP_LEVEL_LEN); + //Extract the quad stop state + if (l_qsshsrc.getBit(SSH_REG_STOP_GATED)) + { + l_qsshsrc.extractToRight(l_quadStopLevel, SSH_REG_STOP_LEVEL, SSH_REG_STOP_LEVEL_LEN); + } FAPI_DBG("EQ Stop State: EQ(%d)", l_quadStopLevel); - //Set all attribtes to 1, then clear them based on the stop state + //Set all attributes to 1, then clear them based on the stop state o_l2_is_scomable = 1; o_l2_is_scannable = 1; o_l3_is_scomable = 1; -- cgit v1.2.1