From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: jeremy.linton@arm.com) 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) 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: [PATCH] Platform/RaspberryPi4: Correct thermal offset Date: Wed, 9 Sep 2020 18:11:00 -0500 Message-Id: <20200909231100.213015-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 --- 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) {=0D TMPS, 32=0D }=0D - return (((419949 - ((TMPS & 0x3ff) * 487)) / 100) + 2732);=0D + return (((410040 - ((TMPS & 0x3ff) * 487)) / 100) + 2732);=0D }=0D Method (_SCP, 3) { } // receive cooling policy from = OS=0D =0D --=20 2.13.7