From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 9129881F79 for ; Tue, 7 Feb 2017 21:45:40 -0800 (PST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP; 07 Feb 2017 21:45:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,346,1477983600"; d="scan'208";a="56446688" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga004.jf.intel.com with ESMTP; 07 Feb 2017 21:45:32 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.18.124.207) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Feb 2017 21:45:31 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX119.amr.corp.intel.com (10.18.124.207) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Feb 2017 21:45:31 -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, 8 Feb 2017 13:45:27 +0800 From: "Wei, David" To: "Lu, ShifeiX A" , "edk2-devel@lists.01.org" Thread-Topic: [Patch][edk2-platforms] Vlv2DeviceRefCodePkg: Fixed thermal issue. Thread-Index: AQHSgclRH8Uh9tq7REWt5NmczIHDc6FemV5w Date: Wed, 8 Feb 2017 05:45:27 +0000 Message-ID: <89954A0B46707A448411A627AD4EEE3468EF746E@SHSMSX101.ccr.corp.intel.com> References: <03d5a230-f082-4285-ac7a-ff2dbd9dd028@SHWDEOPENPSI011.local> In-Reply-To: <03d5a230-f082-4285-ac7a-ff2dbd9dd028@SHWDEOPENPSI011.local> 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, 08 Feb 2017 05:45:40 -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, February 08, 2017 1:08 PM 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