summaryrefslogtreecommitdiffstats
path: root/import/chips/p9/common
diff options
context:
space:
mode:
authorMichael Floyd <mfloyd@us.ibm.com>2018-02-05 10:30:38 -0600
committerhostboot <hostboot@us.ibm.com>2018-03-22 14:08:27 -0500
commit45251a638379a482376b4df39a078e991abedc0d (patch)
tree87480ae5acb681f9789106a10e4d73ac9c974a42 /import/chips/p9/common
parent9740ca18348d3c66673931ecaa1d2d96ca64365c (diff)
downloadtalos-hcode-45251a638379a482376b4df39a078e991abedc0d.tar.gz
talos-hcode-45251a638379a482376b4df39a078e991abedc0d.zip
CME Code Size Reduction ATTEMPT#3
-- some IOTA kernel cleanup -- also add checking for IOTA execution stack overflow -- re-coded to eliminate some math library macro usage -- added native 16-bit multiply -- re-coded to remove redundancy from external interrupt handler -- removed dec handler (optional define) and other minor cleanup -- fixed Interrupt initialization code in std_init (all PPE images) -- always inline pstate_db0_clip_bcast & update_vdm_jump_values_in_dpll -- optimized pls calculation code -- optimized pstate init, db1 handler, core good handling -- optimized pmcr requests and pmsr updates (always write for both cores) Key_Cronus_Test=PM_REGRESS Change-Id: I6965a5a581562f0bb1cd735642f592cb4954970b Original-Change-Id: If48fec5832bd5e46cb89f0d6a97d90a488e8ff7b CQ: SW415503 RTC: 178789 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/53381 Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: YUE DU <daviddu@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'import/chips/p9/common')
-rw-r--r--import/chips/p9/common/pmlib/include/cmehw_common.h12
-rw-r--r--import/chips/p9/common/pmlib/include/ppehw_common.h4
2 files changed, 6 insertions, 10 deletions
diff --git a/import/chips/p9/common/pmlib/include/cmehw_common.h b/import/chips/p9/common/pmlib/include/cmehw_common.h
index 76517870..52689d00 100644
--- a/import/chips/p9/common/pmlib/include/cmehw_common.h
+++ b/import/chips/p9/common/pmlib/include/cmehw_common.h
@@ -35,9 +35,9 @@
enum CME_CORE_MASKS
{
- CME_MASK_C0 = 2,
- CME_MASK_C1 = 1,
- CME_MASK_BC = 3
+ CME_MASK_C0 = 2, // Just Core0 = 0b10
+ CME_MASK_C1 = 1, // Just Core1 = 0b01
+ CME_MASK_BC = 3 // Both Cores = 0b11
};
/// CME SCOM
@@ -57,12 +57,6 @@ enum CME_BCEBAR_INDEXES
CME_BCEBAR_1 = 1
};
-enum CME_ERR_INJ_BIT_POS
-{
- CME_PSTATE_HCODE_ERR_INJ_BIT = 0x00000002,
- CME_STOP_HCODE_ERR_INJ_BIT = 0x00000001,
-};
-
#define CME_SCOM_ADDR(addr, core, op) (addr | (core << 22) | (op << 20))
// cme getscom default with 'eq' op
diff --git a/import/chips/p9/common/pmlib/include/ppehw_common.h b/import/chips/p9/common/pmlib/include/ppehw_common.h
index 3b3efafb..cc01e185 100644
--- a/import/chips/p9/common/pmlib/include/ppehw_common.h
+++ b/import/chips/p9/common/pmlib/include/ppehw_common.h
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HCODE Project */
/* */
-/* COPYRIGHT 2015,2017 */
+/* COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -25,6 +25,8 @@
#ifndef __PPEHW_COMMON_H__
#define __PPEHW_COMMON_H__
+#include "ppe42math.h"
+
/// 64bits data
typedef union
{
OpenPOWER on IntegriCloud