Attention is currently required from: Tarun Tuli, Subrata Banik.
Kapil Porwal has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/71654 )
Change subject: soc/intel/meteorlake: Add support to configure package c-state demotion ......................................................................
soc/intel/meteorlake: Add support to configure package c-state demotion
This patch adds the support to enable/disable package c-state demotion feature from the devicetree based on mainboard requirement.
Port of commit 4be8d9e80deb ("soc/intel/adl: Add support to configure package c-state demotion")
BUG=none TEST=Boot to the OS on Google/Rex.
Snippet from FSP log: [SPEW ] PkgCState Demotion : 0x1
Signed-off-by: Kapil Porwal kapilporwal@google.com Change-Id: I0a4b0b181349ce41035524482add4336cf83a68b --- M src/soc/intel/meteorlake/chip.h M src/soc/intel/meteorlake/fsp_params.c 2 files changed, 30 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/54/71654/1
diff --git a/src/soc/intel/meteorlake/chip.h b/src/soc/intel/meteorlake/chip.h index ad382e3..dfd5c36 100644 --- a/src/soc/intel/meteorlake/chip.h +++ b/src/soc/intel/meteorlake/chip.h @@ -347,6 +347,13 @@ uint8_t lan_clk;
/* + * Enable or Disable Package C-state Demotion. + * Default is set to 0. + * Set this to 1 in order to disable Package C-state demotion. + */ + bool disable_package_c_state_demotion; + + /* * Enable or Disable Skipping MBP HOB. * Default is set to 0 and set to 1 to skip the MBP HOB. */ diff --git a/src/soc/intel/meteorlake/fsp_params.c b/src/soc/intel/meteorlake/fsp_params.c index 50b4a76..baba5f9 100644 --- a/src/soc/intel/meteorlake/fsp_params.c +++ b/src/soc/intel/meteorlake/fsp_params.c @@ -427,6 +427,7 @@ /* Enable the energy efficient turbo mode */ s_cfg->EnergyEfficientTurbo = 1; s_cfg->PmcLpmS0ixSubStateEnableMask = get_supported_lpm_mask(); + s_cfg->PkgCStateDemotion = !config->disable_package_c_state_demotion; }