From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 70D6281B7B for ; Tue, 17 Jan 2017 21:58:43 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 17 Jan 2017 21:58:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,248,1477983600"; d="scan'208";a="214647395" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 17 Jan 2017 21:58:43 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 17 Jan 2017 21:58:43 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.177]) by shsmsx102.ccr.corp.intel.com ([169.254.2.88]) with mapi id 14.03.0248.002; Wed, 18 Jan 2017 13:58:39 +0800 From: "Wei, David" To: "Lu, ShifeiX A" , "edk2-devel@lists.01.org" Thread-Topic: [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue. Thread-Index: AQHScSdJWnq/4bFyrkue8qQ7Aqi7p6E9vXGw Date: Wed, 18 Jan 2017 05:58:39 +0000 Message-ID: <89954A0B46707A448411A627AD4EEE3468EF2B5C@SHSMSX101.ccr.corp.intel.com> References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 05:58:43 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: David Wei Thanks, David Wei =20 -----Original Message----- From: Lu, ShifeiX A=20 Sent: Wednesday, January 18, 2017 9:08 AM To: edk2-devel@lists.01.org Cc: Wei, David 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 --- Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL b/Vlv2DeviceRe= fCodePkg/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 availa= ble under ; the terms and conditions of the BSD License that accompanies this distri= bution. @@ -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. // --=20 2.7.0.windows.1