[coreboot-gerrit] Patch set updated for coreboot: 594eef3 AMD Trinity and Kabini: fix fan control

WANG Siyuan (wangsiyuanbuaa@gmail.com) gerrit at coreboot.org
Mon Oct 13 09:27:44 CEST 2014


WANG Siyuan (wangsiyuanbuaa at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6981

-gerrit

commit 594eef33dc8e03a154dea776c8b155e41b2d5505
Author: WANG Siyuan <wangsiyuanbuaa at gmail.com>
Date:   Fri Oct 10 14:37:02 2014 +0800

    AMD Trinity and Kabini: fix fan control
    
    The fan can stop but can't run again. "AGESA hudson yangtze: Move IMC
    firmware init out of get_bus_conf()" (Change-Id: I5b3cbc4d2) result to
    this problem.
    This patch can resolve this problem.
    
    Change-Id: I1b5bf3f6f7a66c60743f78918dc5442cdfc8b6e4
    Signed-off-by: WANG Siyuan <SiYuan.Wang at amd.com>
    Signed-off-by: WANG Siyuan <wangsiyuanbuaa at gmail.com>
---
 src/cpu/amd/agesa/amd_late_init.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/cpu/amd/agesa/amd_late_init.c b/src/cpu/amd/agesa/amd_late_init.c
index c7927dc..37d36b1 100644
--- a/src/cpu/amd/agesa/amd_late_init.c
+++ b/src/cpu/amd/agesa/amd_late_init.c
@@ -58,11 +58,6 @@ static void agesawrapper_post_device(void *unused)
 	pci_write_config32(dev, 0x60, value);
 #endif
 
-#if IS_ENABLED(CONFIG_HUDSON_IMC_FWM)
-	/* AMD AGESA does not enable thermal zone, so we enable it here. */
-	enable_imc_thermal_zone();
-#endif
-
 #if CONFIG_AMD_SB_CIMX
 	sb_Late_Post();
 #endif
@@ -70,6 +65,12 @@ static void agesawrapper_post_device(void *unused)
 		return;
 
 	AGESAWRAPPER(amdS3Save);
+
+#if IS_ENABLED(CONFIG_HUDSON_IMC_FWM)
+	/* AMD AGESA does not enable thermal zone, so we enable it here. */
+	printk(BIOS_DEBUG, "enable_imc_thermal_zone\n");
+	enable_imc_thermal_zone();
+#endif
 }
 
 BOOT_STATE_INIT_ENTRIES(agesa_bscb) = {



More information about the coreboot-gerrit mailing list