From: "Wei, David" <david.wei@intel.com>
To: "Lu, ShifeiX A" <shifeix.a.lu@intel.com>,
"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue.
Date: Wed, 8 Feb 2017 05:45:27 +0000 [thread overview]
Message-ID: <89954A0B46707A448411A627AD4EEE3468EF746E@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <03d5a230-f082-4285-ac7a-ff2dbd9dd028@SHWDEOPENPSI011.local>
Reviewed-by: David Wei <david.wei@intel.com>
Thanks,
David Wei
-----Original Message-----
From: Lu, ShifeiX A
Sent: Wednesday, February 08, 2017 1:08 PM
To: edk2-devel@lists.01.org
Cc: Wei, David <david.wei@intel.com>
Subject: [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue.
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
next prev parent reply other threads:[~2017-02-08 5:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-08 5:04 [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue lushifex
2017-02-08 5:45 ` Wei, David [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-01-18 0:47 lushifex
2017-01-18 5:58 ` Wei, David
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=89954A0B46707A448411A627AD4EEE3468EF746E@SHSMSX101.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox