diff options
author | Yue Du <daviddu@us.ibm.com> | 2016-04-26 12:27:02 -0500 |
---|---|---|
committer | Joshua Hunsberger <jahunsbe@us.ibm.com> | 2017-10-23 16:05:52 -0500 |
commit | d9d045421eb074827c7e18bc95d6d3961f7ed52e (patch) | |
tree | f43f6ac4c44b0cf128c1d1623c97dd63e414fc5d /import/chips/p9/common/pmlib/include/gpehw_common.h | |
parent | b180ef27f824e88b37cc2e8b4e212f694dd251b7 (diff) | |
download | talos-hcode-d9d045421eb074827c7e18bc95d6d3961f7ed52e.tar.gz talos-hcode-d9d045421eb074827c7e18bc95d6d3961f7ed52e.zip |
CME/SGPE: Optimus Prime approves these upgrade of STOP images
Change-Id: I2486797c6614213418624427fd0d225e2792d15c
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/23684
Tested-by: Jenkins Server
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Diffstat (limited to 'import/chips/p9/common/pmlib/include/gpehw_common.h')
-rw-r--r-- | import/chips/p9/common/pmlib/include/gpehw_common.h | 47 |
1 files changed, 9 insertions, 38 deletions
diff --git a/import/chips/p9/common/pmlib/include/gpehw_common.h b/import/chips/p9/common/pmlib/include/gpehw_common.h index d0d01d76..0349bad9 100644 --- a/import/chips/p9/common/pmlib/include/gpehw_common.h +++ b/import/chips/p9/common/pmlib/include/gpehw_common.h @@ -50,18 +50,10 @@ enum GPE_CHIPLET_CONFIGS enum GPE_CHIPLET_MASKS { - ONE_QUAD_IN_CHIP = 0x20, - ALL_QUADS_IN_CHIP = 0x3F, - ONE_CORE_IN_QUAD = 0x8, - ALL_CORES_IN_QUAD = 0xF, FST_CORE_IN_EX = 0x2, SND_CORE_IN_EX = 0x1, - BOTH_CORES_IN_EX = 0x3, FST_EX_IN_QUAD = 0x2, - SND_EX_IN_QUAD = 0x1, - BOTH_EX_IN_QUAD = 0x3, - FST_2CORES_IN_QUAD = 0xC, - SND_2CORES_IN_QUAD = 0x3 + SND_EX_IN_QUAD = 0x1 }; @@ -96,35 +88,14 @@ enum GPE_SCOM_ADDRESS_PARAMETERS #define GPE_SCOM_ADDR_CME(addr, quad, cme) \ GPE_SCOM_ADDR(addr, QUAD_ADDR_BASE|CME_ADDR_BASE, quad, cme) -#define GPE_GETSCOM(addr, data) \ - rc = getscom(0, addr, &data); \ - if (rc) { \ - PK_TRACE("getscom@%d failed w/rc=0x%08x", addr, rc); \ - pk_halt(); \ - } - -#define GPE_PUTSCOM(addr, data) \ - rc = putscom(0, addr, data); \ - if (rc) { \ - PK_TRACE("putscom@%d failed w/rc=0x%08x", addr, rc); \ - pk_halt(); \ - } - -#define GPE_GETSCOM_VAR(addr, cplt_base, cq_offset, ex_select, data) \ - rc = getscom(0,GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select),&data);\ - if (rc) { \ - PK_TRACE("getscom@%d failed w/rc=0x%08x", \ - GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select), rc); \ - pk_halt(); \ - } - -#define GPE_PUTSCOM_VAR(addr, cplt_base, cq_offset, ex_select, data) \ - rc = putscom(0,GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select), data);\ - if (rc) { \ - PK_TRACE("putscom@%d failed w/rc=0x%08x", \ - GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select), rc); \ - pk_halt(); \ - } +#define GPE_GETSCOM(addr, data) getscom(0, addr, &data); + +#define GPE_PUTSCOM(addr, data) putscom(0, addr, data); +#define GPE_GETSCOM_VAR(addr, cplt_base, cq_offset, ex_select, data) \ + getscom(0,GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select),&data); + +#define GPE_PUTSCOM_VAR(addr, cplt_base, cq_offset, ex_select, data) \ + putscom(0,GPE_SCOM_ADDR(addr, cplt_base, cq_offset, ex_select), data); #endif /* __GPEHW_COMMON_H__ */ |