diff options
author | EricKY Cheng <ericky_cheng@compal.corp-partner.google.com> | 2023-01-17 14:13:30 +0800 |
---|---|---|
committer | Raul Rangel <rrangel@chromium.org> | 2023-01-31 16:49:01 +0000 |
commit | 501f2f9cbc8742e6e819f3be36e2e718896eee3e (patch) | |
tree | 9cd7c0cd1a36201b3b0dec2066b6ec2aedbe3526 | |
parent | 2a72e5d2695afeb843eab450e842eef34d5e3d29 (diff) |
mb/google/skyrim/var/winterhold: Update DPTC settings for SMT
Follow thermal team's request on b/248086651 comment#27. Update the
thermal table setting for each mode and the conditions of temperature
switching.
BUG=b:248086651
TEST=emerge-skyrim coreboot
Change-Id: Ida10d9b10c33dea11440879afda07c04c1eccb9f
Signed-off-by: EricKY Cheng <ericky_cheng@compal.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72006
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
Reviewed-by: Tim Van Patten <timvp@google.com>
Reviewed-by: Jon Murphy <jpmurphy@google.com>
-rw-r--r-- | src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/dtts.asl | 16 | ||||
-rw-r--r-- | src/mainboard/google/skyrim/variants/winterhold/overridetree.cb | 96 |
2 files changed, 56 insertions, 56 deletions
diff --git a/src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/dtts.asl b/src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/dtts.asl index 9bac487cd7..2ab433748b 100644 --- a/src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/dtts.asl +++ b/src/mainboard/google/skyrim/variants/winterhold/include/variant/acpi/dtts.asl @@ -30,15 +30,15 @@ Scope (\_SB) // Table A/B If ((\_SB.PRTN == 0) || (\_SB.PRTN == 1)) { // AMB sensor trigger point - // 50C will store 123(0x7B) in mapped memory - // 50C=323K, 323-200(offset)=123(0x7B) - If (\_SB.PCI0.LPCB.EC0.TIN4 >= 123) { + // 44C will store 117(0x75) in mapped memory + // 44C=317K, 317-200(offset)=117(0x75) + If (\_SB.PCI0.LPCB.EC0.TIN4 >= 117) { \_SB.DTTB() \_SB.PRTN = 1 Return (0) } // AMB sensor release point - If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 118)) { + If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 113)) { \_SB.DDEF() \_SB.PRTN = 0 Return (0) @@ -59,12 +59,12 @@ Scope (\_SB) } Else { // Lid-close // Table C/D If (\_SB.PRTN == 2 || \_SB.PRTN == 3) { - If (\_SB.PCI0.LPCB.EC0.TIN4 >= 128) { + If (\_SB.PCI0.LPCB.EC0.TIN4 >= 116) { \_SB.DTTD() \_SB.PRTN = 3 Return (0) } - If(\_SB.PCI0.LPCB.EC0.TIN4 <= 123) { + If(\_SB.PCI0.LPCB.EC0.TIN4 <= 112) { \_SB.DTTC() \_SB.PRTN = 2 Return (0) @@ -87,13 +87,13 @@ Scope (\_SB) // Table E/F If (\_SB.PRTN == 4 || \_SB.PRTN == 5) { // AMB sensor trigger point - If (\_SB.PCI0.LPCB.EC0.TIN4 >= 118) { + If (\_SB.PCI0.LPCB.EC0.TIN4 >= 115) { \_SB.DTTF() \_SB.PRTN = 5 Return (0) } // AMB sensor release point - If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 113)) { + If ((\_SB.PCI0.LPCB.EC0.TIN4 <= 111)) { \_SB.DTTE() \_SB.PRTN = 4 Return (0) diff --git a/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb index 04da26c62e..51f07a751c 100644 --- a/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb +++ b/src/mainboard/google/skyrim/variants/winterhold/overridetree.cb @@ -11,9 +11,9 @@ chip soc/amd/mendocino register "stt_control" = "1" register "stt_pcb_sensor_count" = "2" - register "stt_alpha_apu" = "0x199A" - register "stt_error_coeff" = "0x21" - register "stt_error_rate_coefficient" = "0xCCD" + register "stt_alpha_apu" = "0x6666" + register "stt_error_coeff" = "0x38" + register "stt_error_rate_coefficient" = "0xB44" # These registers are defined in AMD DevHub document #57316. # Normal @@ -27,76 +27,76 @@ chip soc/amd/mendocino # Set Dynamic DPTC thermal profile Table A (Default) register "fast_ppt_limit_mW" = "30000" - register "slow_ppt_limit_mW" = "18000" - register "slow_ppt_time_constant_s" = "7" + register "slow_ppt_limit_mW" = "25000" + register "slow_ppt_time_constant_s" = "5" register "sustained_power_limit_mW" = "15000" - register "stt_min_limit" = "7000" - register "stt_m1" = "0x148" - register "stt_m2" = "0x38F" - register "stt_c_apu" = "0xDF9A" + register "stt_min_limit" = "15000" + register "stt_m1" = "0x18F" + register "stt_m2" = "0x48F" + register "stt_c_apu" = "0xECC5" register "stt_skin_temp_apu" = "0x3200" # Set Dynamic DPTC thermal profile confiuration. Table B - register "fast_ppt_limit_mW_B" = "20000" - register "slow_ppt_limit_mW_B" = "13000" + register "fast_ppt_limit_mW_B" = "15000" + register "slow_ppt_limit_mW_B" = "15000" register "slow_ppt_time_constant_s_B" = "5" - register "sustained_power_limit_mW_B" = "10000" + register "sustained_power_limit_mW_B" = "10500" - register "stt_min_limit_B" = "5000" - register "stt_m1_B" = "0x11F" - register "stt_m2_B" = "0x3AE" - register "stt_c_apu_B" = "0xE19A" - register "stt_skin_temp_apu_B" = "0x3400" + register "stt_min_limit_B" = "10500" + register "stt_m1_B" = "0x18F" + register "stt_m2_B" = "0x48F" + register "stt_c_apu_B" = "0xECC5" + register "stt_skin_temp_apu_B" = "0x3300" # Set Dynamic DPTC thermal profile confiuration. Table C register "fast_ppt_limit_mW_C" = "30000" - register "slow_ppt_limit_mW_C" = "22000" - register "slow_ppt_time_constant_s_C" = "10" + register "slow_ppt_limit_mW_C" = "25000" + register "slow_ppt_time_constant_s_C" = "5" register "sustained_power_limit_mW_C" = "15000" - register "stt_min_limit_C" = "10000" - register "stt_m1_C" = "0x1A4" - register "stt_m2_C" = "0x2E1" - register "stt_c_apu_C" = "0xDACD" - register "stt_skin_temp_apu_C" = "0x3600" + register "stt_min_limit_C" = "15000" + register "stt_m1_C" = "0x152" + register "stt_m2_C" = "0x4AE" + register "stt_c_apu_C" = "0xEE94" + register "stt_skin_temp_apu_C" = "0x3200" # Set Dynamic DPTC thermal profile confiuration. Table D - register "fast_ppt_limit_mW_D" = "25000" + register "fast_ppt_limit_mW_D" = "15000" register "slow_ppt_limit_mW_D" = "15000" - register "slow_ppt_time_constant_s_D" = "8" - register "sustained_power_limit_mW_D" = "10000" + register "slow_ppt_time_constant_s_D" = "5" + register "sustained_power_limit_mW_D" = "10500" - register "stt_min_limit_D" = "8000" - register "stt_m1_D" = "0x1C3" - register "stt_m2_D" = "0x2BB" - register "stt_c_apu_D" = "0xDE00" - register "stt_skin_temp_apu_D" = "0x3800" + register "stt_min_limit_D" = "10500" + register "stt_m1_D" = "0x152" + register "stt_m2_D" = "0x4AE" + register "stt_c_apu_D" = "0xEE94" + register "stt_skin_temp_apu_D" = "0x3300" # Set Dynamic DPTC thermal profile confiuration. Table E - register "fast_ppt_limit_mW_E" = "22000" - register "slow_ppt_limit_mW_E" = "15000" - register "slow_ppt_time_constant_s_E" = "4" + register "fast_ppt_limit_mW_E" = "24000" + register "slow_ppt_limit_mW_E" = "20000" + register "slow_ppt_time_constant_s_E" = "5" register "sustained_power_limit_mW_E" = "12000" - register "stt_min_limit_E" = "7000" - register "stt_m1_E" = "0x114" - register "stt_m2_E" = "0x371" - register "stt_c_apu_E" = "0xE333" - register "stt_skin_temp_apu_E" = "0x3000" + register "stt_min_limit_E" = "12000" + register "stt_m1_E" = "0x18F" + register "stt_m2_E" = "0x48F" + register "stt_c_apu_E" = "0xECC5" + register "stt_skin_temp_apu_E" = "0x2F00" # Set Dynamic DPTC thermal profile confiuration. Table F - register "fast_ppt_limit_mW_F" = "18000" + register "fast_ppt_limit_mW_F" = "12000" register "slow_ppt_limit_mW_F" = "12000" - register "slow_ppt_time_constant_s_F" = "2" - register "sustained_power_limit_mW_F" = "9000" + register "slow_ppt_time_constant_s_F" = "5" + register "sustained_power_limit_mW_F" = "8000" - register "stt_min_limit_F" = "5000" - register "stt_m1_F" = "0x15C" - register "stt_m2_F" = "0x33D" - register "stt_c_apu_F" = "0xE866" - register "stt_skin_temp_apu_F" = "0x3200" + register "stt_min_limit_F" = "8000" + register "stt_m1_F" = "0x18F" + register "stt_m2_F" = "0x48F" + register "stt_c_apu_F" = "0xECC5" + register "stt_skin_temp_apu_F" = "0x3000" register "i2c[0]" = "{ .speed = I2C_SPEED_FAST, |