summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Batra <rbatra@us.ibm.com>2018-03-05 10:00:41 -0600
committerhostboot <hostboot@us.ibm.com>2018-04-06 12:39:12 -0500
commit1fb69dc9f9a40980e40ac8f42bb5423f2829a22b (patch)
treeed5629154cf4ab76b500cb337a15a39cc80c22ed
parent5e7a5085043cfc42787069489663c9ba600038d3 (diff)
downloadtalos-hcode-1fb69dc9f9a40980e40ac8f42bb5423f2829a22b.tar.gz
talos-hcode-1fb69dc9f9a40980e40ac8f42bb5423f2829a22b.zip
PM: Generated Vratio/Vindex tables
Key_Cronus_Test=PM_REGRESS Change-Id: I9313dbe90771a549e14c8e90f2c2ca410616293a CQ: SW421682 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/55059 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Tested-by: Cronus HW CI <cronushw-ci+hostboot@us.ibm.com> Reviewed-by: Gregory S. Still <stillgs@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA <prasadbgr@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h6
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h6
-rw-r--r--import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h
index 09952f19..3a92f8bb 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h
@@ -82,6 +82,12 @@ enum PGPE_WOF_CTRL
WOF_DISABLE = 1
};
+//VFRT tables are built assuming we truncate, and 24 is needed to adjust for the
+//intermediate value truncation in converting Vratio to an Vindex, which involves
+//a *24(multiply by 24) conversion for a max error of -24(negative 24)
+#define VRATIO_ROUNDING_ADJUST 24 //VFRT tables are built assuming we truncate
+#define MAX_VRATIO 65535 // (2^16) - 1
+
#define CORE_MASK(core) \
(CORE0_MASK >> core)
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h
index 70bcd967..6d1f335d 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h
@@ -34,12 +34,6 @@
#include "p9_stop_recovery_trigger.h"
-//VFRT tables are built assuming we truncate, and 24 is needed to adjust for the
-//intermediate value truncation in converting Vratio to an Vindex, which involves
-//a *24(multiply by 24) conversion for a max error of -24(negative 24)
-#define VRATIO_ROUNDING_ADJUST 24
-#define MAX_VRATIO 65535 // (2^16) - 1
-
enum IPC_PEND_TBL
{
IPC_PEND_PSTATE_START_STOP = 0,
diff --git a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h
index c677b2e7..b5cfb41b 100644
--- a/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h
+++ b/import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h
@@ -44,7 +44,7 @@
#define SGPE_IPC_ENABLED 1
#define OVERRIDE_OTHER_ENGINES_IRQS 0
#define OVERRIDE_PSAFE_PSTATE 0
-#define USE_GEN_PSTATE_STRUCT_V 0
+#define USE_GEN_PSTATE_STRUCT_V 2
///This application uses IPC code
#define GLOBAL_CFG_USE_IPC
OpenPOWER on IntegriCloud