coreboot-kgpe-d16/src/soc/intel/skylake
Barnali Sarkar a1de1a0810 soc/intel/skylake: Remove unnecessary P-State and Flex Ratio assignment
This patch basically does two things -

1) Remove unnecessary setting of flex_ratio to TDP nominal:
Factory configured (default) Max Non-TURBO ratio(P1) is already cofigured
in MSR_PLATFORM_INFO(0xCE).
If this Maximum Non-TURBO Ratio(P1) needs to be modified, it should be done
using MSR_FLEX_RATIO (0x194).
Here, in this code, the FLEX_RATIO is being modified by the TDP Nominal
Ratio, reading the MSR_CONFIG_TDP_NOMINAL(0x648). But this value is
actually less than the factory configured Maximum Non TURBO Ratio (P1).
So, this code is actually not required.

Also, the Bit 12 in PCH Soft Strap Register is already set in descriptor.
This Bit implies Processor Boot Max Frequency -
0 = Disable Boot Max Frequency
1 = Enable Boot Max Frequency (Default)
This setting determines if the processor will operate at maximum frequency
at power-on and boot.

Thus this patch will avoid one extra platform warm reset now onwards.

2) Remove wrongly setting Max Frequency in Bootblock phase:
In the function set_max_frequency(), the P-State max ratio was set to
TDP Nominal ratio if C-TDP was enabled, else it was set to Max Non
Trbo ratio.

But, when the cpu gets reset, it will operate with the Max-Non Turbo
ratio only, which is greater than the TDP Nominal ratio.
So, no need to set back the ratio to TDP Nominal which is lower than
the currently operating frequency.

BUG=none
BRANCH=none
TEST=Build and boot poppy

Change-Id: I24bfc86ddf0f038d85da938e41e950382fe2a6c3
Signed-off-by: Barnali Sarkar <barnali.sarkar@intel.com>
Reviewed-on: https://review.coreboot.org/20050
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2017-07-01 08:49:11 +00:00
..
acpi soc/intel/skylake: storage: Use word access for power state registers 2017-06-27 02:15:56 +00:00
bootblock soc/intel/skylake: Remove unnecessary P-State and Flex Ratio assignment 2017-07-01 08:49:11 +00:00
include soc/intel/skylake: Remove unnecessary P-State and Flex Ratio assignment 2017-07-01 08:49:11 +00:00
nhlt intel/skylake: nhlt: Add 48Khz 2ch 16bit config for max98927 2017-05-04 01:57:36 +02:00
romstage soc/intel/skylake: Use common systemagent code 2017-06-09 17:06:26 +02:00
acpi.c soc/intel/skylake: Use CPU common library code 2017-06-09 19:24:58 +02:00
chip.c src: change coreboot to lowercase 2017-06-07 12:09:15 +02:00
chip.h soc/intel/skylake/chip.h: Reorder declarations 2017-06-06 17:44:09 +02:00
chip_fsp20.c soc/intel/skylake: Add option to enable/disable EIST 2017-05-16 17:45:38 +02:00
cpu.c soc/intel/skylake: Remove post SMM Relocation uCode loading 2017-06-23 16:26:42 +00:00
dsp.c
elog.c soc/intel/skylake: Add USB port number information to wake source 2017-06-14 01:15:20 +02:00
finalize.c
gpio.c
gspi.c
i2c.c intel/common/block/i2c: Add common block for I2C and use the same in SoCs 2017-05-18 06:07:15 +02:00
igd.c soc/intel/skylake: Use PCI IDs from device/pci_ids.h 2017-06-06 19:42:17 +02:00
irq.c
Kconfig soc/intel/skylake/Kconfig: Drop useless FSP1.1/2.0 prompts 2017-06-29 15:40:56 +00:00
lpc.c soc/intel/skylake: Use PCI IDs from device/pci_ids.h 2017-06-06 19:42:17 +02:00
Makefile.inc soc/intel/skylake: Use CPU common library code 2017-06-09 19:24:58 +02:00
me.c soc/intel/skylake: Display FPF status of CSME 2017-05-22 23:38:17 +02:00
memmap.c
opregion.c soc/intel/common/opregion: Use enum cb_err as return value 2017-06-27 17:18:03 +00:00
pch.c
pei_data.c
pmc.c
pmutil.c
reset.c Consolidate reset API, add generic reset_prepare mechanism 2017-06-13 20:53:09 +02:00
sd.c soc/intel/skylake: Use SCS common code 2017-06-16 17:37:13 +02:00
sgx.c
smi.c soc/intel/skylake: remove unused SMI functions 2017-05-08 06:10:25 +02:00
smihandler.c
smmrelocate.c
spi.c soc/intel/common: Provide common block fast_spi_flash_ctrlr 2017-05-05 23:40:51 +02:00
systemagent.c soc/intel/skylake: Use common systemagent code 2017-06-09 17:06:26 +02:00
uart.c soc/intel/skylake: Use common/blocks/uart code 2017-05-09 17:59:07 +02:00
uart_debug.c
vr_config.c