diff options
3 files changed, 11 insertions, 4 deletions
diff --git a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H b/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H index 45d8b5d35..d8f53fc59 100644 --- a/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H +++ b/src/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/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C b/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C index 1c825bccd..6b701a53a 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.C +++ b/src/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 { diff --git a/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.mk b/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.mk index ab3b6fe56..9e4432b0c 100644 --- a/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.mk +++ b/src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.mk @@ -7,7 +7,7 @@ # # EKB Project # -# COPYRIGHT 2015 +# COPYRIGHT 2015,2016 # [+] International Business Machines Corp. # # @@ -17,4 +17,5 @@ # # IBM_PROLOG_END_TAG PROCEDURE=p9_block_wakeup_intr +$(call ADD_MODULE_INCDIR,$(PROCEDURE),$(PROJECT_ROOT)/chips/p9/procedures/hwp/lib) $(call BUILD_PROCEDURE) |