summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/procedures/hwp
diff options
context:
space:
mode:
authorGreg Still <stillgs@us.ibm.com>2016-05-11 21:24:01 -0500
committerPrachi Gupta <pragupta@us.ibm.com>2016-06-08 11:45:56 -0500
commitf545da155f8286c1954ece2e89c87d6e98db91ac (patch)
tree8bf7b91e2c15ff4abf7f9e72b97452ec9759d6a3 /import/chips/p9/procedures/hwp
parent7e0511e132ad6c2be1db9d5c02b14ab8255f26af (diff)
downloadtalos-sbe-f545da155f8286c1954ece2e89c87d6e98db91ac.tar.gz
talos-sbe-f545da155f8286c1954ece2e89c87d6e98db91ac.zip
p9_block_wakeup_intr Level 2 - fix PPE compilation issue
- Moved ATTR_CHIP_UNIT_POS from core to perv - Add p9_hcd_common.H to allow for Hostboot CI Change-Id: I541f11e7312556a9a2f94226b90fd3b04ce83177 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24401 Tested-by: Hostboot CI Tested-by: Jenkins Server Tested-by: PPE CI Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24461
Diffstat (limited to 'import/chips/p9/procedures/hwp')
-rw-r--r--import/chips/p9/procedures/hwp/lib/p9_hcd_common.H2
-rw-r--r--import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C10
2 files changed, 9 insertions, 3 deletions
diff --git a/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H b/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
index 45d8b5d3..d8f53fc5 100644
--- a/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
+++ b/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
@@ -114,7 +114,7 @@ enum P9_HCD_TIMEOUT_CONSTANTS
INSTS_PER_POLL_LOOP = 8 //
};
-// Constants to work with fapi2target
+// Constants to work with fapi2 target
enum P9_HCD_TARGET_CONSTANTS
{
PERV_TO_EQ_POS_OFFSET = 0x10,
diff --git a/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C b/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C
index 1c825bcc..6b701a53 100644
--- a/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C
+++ b/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C
@@ -22,7 +22,7 @@
/// with an EX chiplet
///
// *HWP HWP Owner: Amit Kumar <akumar3@us.ibm.com>
-// *HWP FW Owner: Bilicon Patil <bilpatil@in.ibm.com>
+// *HWP FW Owner: Prem Jha <premjha1@in.ibm.com>
// *HWP Team: PM
// *HWP Level: 2
// *HWP Consumed by: FSP:HS
@@ -44,6 +44,7 @@
// ----------------------------------------------------------------------
#include <p9_block_wakeup_intr.H>
+#include <p9_hcd_common.H>
@@ -73,10 +74,15 @@ p9_block_wakeup_intr(
// Get the core number
uint8_t l_attr_chip_unit_pos = 0;
+
+ fapi2::Target<fapi2::TARGET_TYPE_PERV> l_perv =
+ i_core_target.getParent<fapi2::TARGET_TYPE_PERV>();
+
FAPI_TRY(FAPI_ATTR_GET(fapi2::ATTR_CHIP_UNIT_POS,
- i_core_target,
+ l_perv,
l_attr_chip_unit_pos),
"fapiGetAttribute of ATTR_CHIP_UNIT_POS failed");
+ l_attr_chip_unit_pos = l_attr_chip_unit_pos - p9hcd::PERV_TO_CORE_POS_OFFSET;
// Read for trace
{
OpenPOWER on IntegriCloud