coreboot-kgpe-d16/src/soc/intel/skylake
Angel Pons 92226dc6c3 soc/intel/{skylake/cannonlake}: Fix bug in vr_config
The `cpu_get_power_max()` function returns the TDP in milliwatts, but
the vr_config code interprets the value in watts. Divide the value by
1000 to fix this.

This also fixes an integer overflow when `cpu_get_power_max()` returns
a value greater than 65535 (UINT16_MAX).

Change-Id: Ibe9e0db6762eee5cc363f8b371c8538eb92f6308
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60001
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
2021-12-10 14:30:12 +00:00
..
acpi soc/intel/{skl,apl}: don't run or even include SGX code if disabled 2021-10-20 15:42:51 +00:00
bootblock soc/intel/skylake: Make use of `cpu/intel/cpu_ids.h' 2021-07-17 09:50:44 +00:00
include/soc soc/skylake: Make VT-d controllable from CMOS option 2021-10-18 12:32:43 +00:00
nhlt soc/intel/skylake: Support NHLT 1ch DMIC 2020-11-24 09:42:23 +00:00
romstage skylake: Default to BOARD_TYPE_DESKTOP for PCH-H 2021-09-03 00:12:37 +00:00
acpi.c soc/intel: generate SSDT instead of using GNVS for SGX 2021-11-09 16:02:19 +00:00
chip.c soc/skylake: Make VT-d controllable from CMOS option 2021-10-18 12:32:43 +00:00
chip.h soc/intel/skylake: Drop dead ScanExtGfxForLegacyOpRom 2021-07-14 08:16:50 +00:00
chipset.cb soc/intel/skylake: Set proper defaults in chipset devicetree 2021-05-10 14:14:24 +00:00
cpu.c cpu/x86/mp_init: move printing of failure message into mp_init_with_smm 2021-10-22 01:27:07 +00:00
elog.c soc/intel/*: Update data types for variables holding PCH_DEVFN_* macros 2021-05-03 16:28:53 +00:00
fadt.c soc/intel/skylake: switch to common ACPI code 2021-10-17 17:27:43 +00:00
finalize.c Move post_codes.h to commonlib/console/ 2021-08-04 15:15:51 +00:00
gpio.c soc/intel/{skl,cnl}: add NMI_{EN,STS} registers 2020-12-04 00:10:38 +00:00
graphics.c soc/intel: Replace bad uses of find_resource 2021-11-04 17:34:30 +00:00
gspi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
i2c.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
irq.c soc/intel/skylake: Fix compilation under x86_64 2020-12-02 16:49:12 +00:00
Kconfig soc/intel/common/thermal: Refactor thermal block to improve reusability 2021-11-25 07:18:04 +00:00
lockdown.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
lpc.c soc/intel/skylake: Drop reg-script usage 2021-09-29 21:22:38 +00:00
Makefile.inc Reland "vboot_logic: Set VB2_CONTEXT_EC_TRUSTED in verstage_main" 2021-11-15 12:00:12 +00:00
me.c soc/intel/skylake: Always print ME FW SKU 2021-03-03 09:05:19 +00:00
p2sb.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pmc.c soc/intel/{skl,cnl,dnv}: disable PM ACPI timer if chosen 2021-10-17 13:58:15 +00:00
pmutil.c soc/intel: Move pmc_soc_set_afterg3_en() to pmutil.c 2021-04-21 09:17:40 +00:00
reset.c soc/intel: Use of common reset code block 2020-11-02 10:43:53 +00:00
sd.c soc/intel/skylake: Clean up SD GPIO handling 2021-03-01 19:37:36 +00:00
smihandler.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
spi.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
systemagent.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
uart.c soc/intel/*: drop UART pad configuration from common code 2021-03-12 08:48:03 +00:00
vr_config.c soc/intel/{skylake/cannonlake}: Fix bug in vr_config 2021-12-10 14:30:12 +00:00
xhci.c soc/intel/common: Adapt XHCI elog driver for reuse 2020-12-10 17:45:47 +00:00