From nobody Thu Apr 25 10:19:36 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+65167+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+65167+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1599693066; cv=none; d=zohomail.com; s=zohoarc; b=gNp93dIDpuG6zgmZ6LgCgzEOZMNin5WJl8qtKTU7rt0QgHWd2KCTEo0Xtp1DQKBJH5Zy8+BN5q1YXfDh/pi5Jgsc7pacOxcUs/qwKij40c8AvMiMsFBnxUWxKOXiY1bjhw3YAvqn59q6cLAI0vBOzbQ7IEMFqZcgNtse7KUEkco= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599693066; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=N09GSNkNGyOUi5ImhpGsLpy3ersM51cSAWhl+1DEf0k=; b=EezpZKK0Vl02rIDGULw05CSmEFQ8yakeUXTdGeUNG9T2vPK7XLKmVjr9Q2M1KwZ4FMJHrYuJMwY+v75d31/92+qnmhSp/Bs+6uCD7tFYjXRLY2FcQCCHJ/54MrqrRIxTeaQtpP1PHlGBwv4w3LkNOhG3+05o1Q8sfmN+PKi8Xuo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+65167+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1599693066883883.4645347304183; Wed, 9 Sep 2020 16:11:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id WXMJYY1788612xAFN6OXP6Th; Wed, 09 Sep 2020 16:11:06 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.9322.1599693064913327419 for ; Wed, 09 Sep 2020 16:11:05 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4FE9F31B; Wed, 9 Sep 2020 16:11:03 -0700 (PDT) X-Received: from u200856.usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 170203F68F; Wed, 9 Sep 2020 16:11:03 -0700 (PDT) From: "Jeremy Linton" To: devel@edk2.groups.io Cc: leif@nuviainc.com, pete@akeo.ie, awarkentin@vmware.com, ard.biesheuvel@arm.com, Jeremy Linton Subject: [edk2-devel] [PATCH] Platform/RaspberryPi4: Correct thermal offset Date: Wed, 9 Sep 2020 18:11:00 -0500 Message-Id: <20200909231100.213015-1-jeremy.linton@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jeremy.linton@arm.com X-Gm-Message-State: JJDmxb0AeZoIhnEvaYdlWsHNx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1599693066; bh=1FiLlh27FjBMnZFSuKWfosotn1gGOZARu/+Zqz+t/2U=; h=Cc:Date:From:Reply-To:Subject:To; b=aHc3cX+d/32reT8SyXzbg35qEwKI/o+olYD5bPOMNkM3AehI8QQ+S1Ml7ej3ONLSkzk skdjn47m6rEcXkL6c3N3XMMSBfMdb/IFR1rFM380uWmJidkXOZHUjzEeh8wVdIYYYA/1K +AAo0T4NPiIRKdYNnBzD1gaq1XpZMwGpTeY= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The current mainline DT indicates that the thermal offset on the rpi is 410040 rather than the 419949 being used. This means our temp calculation is offset nearly 10C higher when running in ACPI mode vs DT. Signed-off-by: Jeremy Linton Reviewed-by: Ard Biesheuvel Reviewed-by: Pete Batard --- Platform/RaspberryPi/AcpiTables/Dsdt.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/RaspberryPi/AcpiTables/Dsdt.asl b/Platform/RaspberryP= i/AcpiTables/Dsdt.asl index 2b9e8211cf..d116f965e1 100644 --- a/Platform/RaspberryPi/AcpiTables/Dsdt.asl +++ b/Platform/RaspberryPi/AcpiTables/Dsdt.asl @@ -269,7 +269,7 @@ DefinitionBlock ("Dsdt.aml", "DSDT", 5, "RPIFDN", "RPI"= , 2) Field (TEMS, DWordAcc, NoLock, Preserve) { TMPS, 32 } - return (((419949 - ((TMPS & 0x3ff) * 487)) / 100) + 2732); + return (((410040 - ((TMPS & 0x3ff) * 487)) / 100) + 2732); } Method (_SCP, 3) { } // receive cooling policy from = OS =20 --=20 2.13.7 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#65167): https://edk2.groups.io/g/devel/message/65167 Mute This Topic: https://groups.io/mt/76744696/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-