From 1fb69dc9f9a40980e40ac8f42bb5423f2829a22b Mon Sep 17 00:00:00 2001 From: Rahul Batra Date: Mon, 5 Mar 2018 10:00:41 -0600 Subject: 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 Tested-by: Hostboot CI Tested-by: Cronus HW CI Reviewed-by: Gregory S. Still Tested-by: FSP CI Jenkins Reviewed-by: RANGANATHPRASAD G. BRAHMASAMUDRA Reviewed-by: Jennifer A. Stofer --- import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe.h | 6 ++++++ .../chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/p9_pgpe_pstate.h | 6 ------ import/chips/p9/procedures/ppe_closed/pgpe/pstate_gpe/pk_app_cfg.h | 2 +- 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 -- cgit v1.2.3