summaryrefslogtreecommitdiffstats
path: root/src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
diff options
context:
space:
mode:
authorYue Du <daviddu@us.ibm.com>2016-08-25 14:04:06 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-02-27 11:37:30 -0500
commita35355750ef4b4f4275162a79490449421847b94 (patch)
tree494685507c533fd498089b3d7a098fdb39b3836f /src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H
parent1a1d55e8e15a1f303b7cc0926ad7bb51e2ad6d12 (diff)
downloadtalos-hostboot-a35355750ef4b4f4275162a79490449421847b94.tar.gz
talos-hostboot-a35355750ef4b4f4275162a79490449421847b94.zip
cache/core/l2_stopclocks updates
patchset 1: skip l2_stopclocks if ex_select is 0 patchset 2: check power state before execute hwp patchset 3: fix syntax typos from patch 2 update patchset 4: add chiplet accessibility check patchset 5: add possible counter to CME PCBMUX patchset 6: add skipping message on check patchset 7: change polling timout method patchset 8: add a missing comma patchset 9: fix ffdc patchset 10:roll back cme pcbmux counter until check to ensure cme accessibility patchset 11:rebased patchset 12:initial checkin of ppe state handling patchset 13:checkin new clk_ctrl_state procedure patchset 14:add attribute xml for new procedure patchset 15:fix calling the p9_common_clk_ctrl_state patchset 16:Matt rebase patchset 17:Warning instead of fail with error on check delete common C file, include only header Change-Id: Ic8c96366b294a9d3ebfdc07857d494ec33e30799 Original-Change-Id: I14c9480ac0931ac7f8b456f193148ceb3b939947 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/28808 Dev-Ready: YUE DU <daviddu@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Matt K. Light <mklight@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37041 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H')
-rw-r--r--src/import/chips/p9/procedures/hwp/lib/p9_hcd_common.H4
1 files changed, 2 insertions, 2 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 abf572211..38058381f 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
@@ -43,8 +43,8 @@
// Create a multi-bit mask of \a n bits starting at bit \a b
#define BITS64(b, n) ((0xffffffffffffffffull << (64 - (n))) >> (b))
#define BITS32(b, n) ((0xffffffff << (32 - (n))) >> (b))
-#define BITS16(b, n) ((0xffff << (16 - (n))) >> (b))
-#define BITS8(b, n) ((0xff << (8 - (n))) >> (b))
+#define BITS16(b, n) (((0xffff << (16 - (n))) & 0xffff) >> (b))
+#define BITS8(b, n) (((0xff << (8 - (n))) & 0xff) >> (b))
// Create a single bit mask at bit \a b
#define BIT64(b) BITS64((b), 1)
OpenPOWER on IntegriCloud