public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue.
@ 2017-01-18  0:47 lushifex
  2017-01-18  5:58 ` Wei, David
  0 siblings, 1 reply; 4+ messages in thread
From: lushifex @ 2017-01-18  0:47 UTC (permalink / raw)
  To: edk2-devel; +Cc: david.wei

Fixed System auto shutdown when it reached minus 20 degree.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
---
 Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
index e63f5bc..fecc040 100644
--- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
+++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
@@ -5,7 +5,7 @@
 ;*    Family of Customer Reference Boards.                                *;
 ;*                                                                        *;
 ;*                                                                        *;
-;*    Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved   *;
+;*    Copyright (c)  1999  - 2017, Intel Corporation. All rights reserved   *;
 ;
 ; This program and the accompanying materials are licensed and made available under
 ; the terms and conditions of the BSD License that accompanies this distribution.
@@ -69,7 +69,12 @@ Scope(\_TZ)
         {
           Store(DTS1,Local0)
         }
-        Return(Add(2732,Multiply(Local0,10)))
+        If (LEqual(And(Local0, 0x80), 0)) {
+          Return(Add(2732,Multiply(Local0,10)))
+        } else {
+          Add(Subtract(255, Local0), 1, Local0)
+          Return(Subtract(2732,Multiply(Local0,10)))
+        }
         //
         // Else return a static value if both EC and DTS are unavailable.
         //
-- 
2.7.0.windows.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue.
@ 2017-02-08  5:04 lushifex
  2017-02-08  5:45 ` Wei, David
  0 siblings, 1 reply; 4+ messages in thread
From: lushifex @ 2017-02-08  5:04 UTC (permalink / raw)
  To: edk2-devel; +Cc: david.wei

Fixed System auto shutdown when it reached minus 20 degree.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
---
 Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
index e63f5bc..fecc040 100644
--- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
+++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL
@@ -5,7 +5,7 @@
 ;*    Family of Customer Reference Boards.                                *;
 ;*                                                                        *;
 ;*                                                                        *;
-;*    Copyright (c)  1999  - 2014, Intel Corporation. All rights reserved   *;
+;*    Copyright (c)  1999  - 2017, Intel Corporation. All rights reserved   *;
 ;
 ; This program and the accompanying materials are licensed and made available under
 ; the terms and conditions of the BSD License that accompanies this distribution.
@@ -69,7 +69,12 @@ Scope(\_TZ)
         {
           Store(DTS1,Local0)
         }
-        Return(Add(2732,Multiply(Local0,10)))
+        If (LEqual(And(Local0, 0x80), 0)) {
+          Return(Add(2732,Multiply(Local0,10)))
+        } else {
+          Add(Subtract(255, Local0), 1, Local0)
+          Return(Subtract(2732,Multiply(Local0,10)))
+        }
         //
         // Else return a static value if both EC and DTS are unavailable.
         //
-- 
2.7.0.windows.1




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-08  5:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-18  0:47 [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue lushifex
2017-01-18  5:58 ` Wei, David
  -- strict thread matches above, loose matches on Subject: below --
2017-02-08  5:04 lushifex
2017-02-08  5:45 ` Wei, David

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox