[coreboot-gerrit] Change in coreboot[master]: mb/google/kahlee/variants/baseboard: Set STAPM percentage

Richard Spiegel (Code Review) gerrit at coreboot.org
Mon Sep 10 22:43:44 CEST 2018


Richard Spiegel has uploaded this change for review. ( https://review.coreboot.org/28564


Change subject: mb/google/kahlee/variants/baseboard: Set STAPM percentage
......................................................................

mb/google/kahlee/variants/baseboard: Set STAPM percentage

Default STAPM percentage is 68%, which causes a lot of thermal throttling.
AMD experimented with 80%, it works for grunt. This is initial code to
provide easy change path for other grunt based platforms.

BUG=b:111608748
TEST=build and boot grunt.

Change-Id: I22863f6ed76152bf872fce3e275f8a7fd8077504
Signed-off-by: Richard Spiegel <richard.spiegel at silverbackltd.com>
---
M src/mainboard/google/kahlee/Kconfig
M src/mainboard/google/kahlee/variants/baseboard/OemCustomize.c
2 files changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/28564/1

diff --git a/src/mainboard/google/kahlee/Kconfig b/src/mainboard/google/kahlee/Kconfig
index 9180906..6f05fb8 100644
--- a/src/mainboard/google/kahlee/Kconfig
+++ b/src/mainboard/google/kahlee/Kconfig
@@ -88,6 +88,10 @@
 	int
 	default 4
 
+config STAPM_PERCENT
+	int
+	default 80
+
 config IRQ_SLOT_COUNT
 	int
 	default 11
diff --git a/src/mainboard/google/kahlee/variants/baseboard/OemCustomize.c b/src/mainboard/google/kahlee/variants/baseboard/OemCustomize.c
index 4c5a294..c125af6 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/OemCustomize.c
+++ b/src/mainboard/google/kahlee/variants/baseboard/OemCustomize.c
@@ -151,4 +151,6 @@
 	InitEarly->GnbConfig.PsppPolicy = PsppBalanceLow;
 	InitEarly->PlatformConfig.GnbAzI2sBusSelect = GnbAcpI2sBus;
 	InitEarly->PlatformConfig.GnbAzI2sBusPinConfig = GnbAcp2Tx4RxBluetooth;
+	InitEarly->PlatformConfig.PlatStapmConfig.CfgStapmScalar =
+						CONFIG_STAPM_PERCENT;
 }

-- 
To view, visit https://review.coreboot.org/28564
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I22863f6ed76152bf872fce3e275f8a7fd8077504
Gerrit-Change-Number: 28564
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Spiegel <richard.spiegel at silverbackltd.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180910/b87f5b13/attachment.html>


More information about the coreboot-gerrit mailing list