[coreboot-gerrit] Patch set updated for coreboot: a3a8f78 Avoid tripping overheat alarm on X201 before ME boots
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Fri Jun 7 01:53:22 CEST 2013
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3404
-gerrit
commit a3a8f78f62bacaa0cd719ddfcf091f593ace2a28
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Fri Jun 7 01:34:06 2013 +0200
Avoid tripping overheat alarm on X201 before ME boots
Until ME boots (which takes seconds on X201) the reported temperature
is 128 °C which triggers Linux overheat alarm which shuts down.
Pretend temperature is 40°C until ME boots.
Change-Id: Ia49fa03c6eb27f539a23711f2c8ebfde72b1dc18
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/ec/lenovo/h8/acpi/thermal.asl | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl
index 35b6f14..83d66c6 100644
--- a/src/ec/lenovo/h8/acpi/thermal.asl
+++ b/src/ec/lenovo/h8/acpi/thermal.asl
@@ -1,5 +1,9 @@
Scope(\_TZ)
{
+#if defined (CONFIG_BOARD_LENOVO_X201) && CONFIG_BOARD_LENOVO_X201
+ Name (MEBT, 0)
+#endif
+
Method(C2K, 1, NotSerialized)
{
Multiply(Arg0, 10, Local0)
@@ -20,6 +24,13 @@ Scope(\_TZ)
Return (C2K(127))
}
Method(_TMP) {
+#if defined (CONFIG_BOARD_LENOVO_X201) && CONFIG_BOARD_LENOVO_X201
+ /* Avoid tripping alarm if ME isn't booted at all yet */
+ If (LAnd (LNot (MEBT), LEqual (\_SB.PCI0.LPCB.EC.TMP0, 128))) {
+ Return (C2K(40))
+ }
+ Store (1, MEBT)
+#endif
Return (C2K(\_SB.PCI0.LPCB.EC.TMP0))
}
}
More information about the coreboot-gerrit
mailing list