amd64/180562: amdtemp and ACPI not working with motherboard ASUS M5A97 PRO

John-Mark Gurney jmg at funkthat.com
Sun Jul 21 05:32:44 UTC 2013


Jan Bramkamp wrote this message on Mon, Jul 15, 2013 at 18:00 +0200:
> On 15.07.2013 17:53, linimon at FreeBSD.org wrote:
> > Synopsis: amdtemp and ACPI not working with motherboard ASUS M5A97 PRO
> >
> > Responsible-Changed-From-To: freebsd-bugs->freebsd-amd64
> > Responsible-Changed-By: linimon
> > Responsible-Changed-When: Mon Jul 15 15:52:40 UTC 2013
> > Responsible-Changed-Why:
> > reclassify.
> 
> The amdtemp driver in FreeBSD 9.1 doesn't support Bulldozer and
> Piledriver temperature sensors. Support is available 10-CURRENT.
> Copy sys/dev/amdtemp/amdtemp.c from 10-CURRENT and rebuild your kernel
> if you want support for the CPU internal temperature sensor. This worked
> for me with a FX-8350 CPU.

Hmm... Doesn't work for me on my AMD A10-5700 processor which, according
to wikipedia, is a piledriver...

I did add my chip to the driver:
Index: amdtemp.c
===================================================================
--- amdtemp.c   (revision 252129)
+++ amdtemp.c   (working copy)
@@ -76,6 +76,7 @@
 #define        DEVICEID_AMD_MISC0F     0x1103
 #define        DEVICEID_AMD_MISC10     0x1203
 #define        DEVICEID_AMD_MISC11     0x1303
+#define        DEVICEID_AMD_MISC12     0x1403
 #define        DEVICEID_AMD_MISC14     0x1703
 #define        DEVICEID_AMD_MISC15     0x1603
 
@@ -86,6 +87,7 @@
        { VENDORID_AMD, DEVICEID_AMD_MISC0F },
        { VENDORID_AMD, DEVICEID_AMD_MISC10 },
        { VENDORID_AMD, DEVICEID_AMD_MISC11 },
+       { VENDORID_AMD, DEVICEID_AMD_MISC12 },
        { VENDORID_AMD, DEVICEID_AMD_MISC14 },
        { VENDORID_AMD, DEVICEID_AMD_MISC15 },
        { 0, 0 }

But the results don't look correct:
# sysctl -a | grep amdtemp
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb4
dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors
dev.amdtemp.0.%driver: amdtemp
dev.amdtemp.0.%parent: hostb4
dev.amdtemp.0.sensor_offset: 0
dev.amdtemp.0.core0.sensor0: 8.5C

Probably that weird quirk, though the docs don't describe the issue in
enough detail:
     Instead, it specifies the processor temperature relative to the point at
     which the system must supply the maximum cooling for the processor's
     specified maximum case temperature and maximum thermal power
     dissipation'' according to BIOS and Kernel Developer's Guide (BKDG) for
     AMD Processors,

Which is what temp?  The url provided is just a list of docs..  Is it
at 50C that the max cooling needs to be supplied? 100C? 1000C?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."


More information about the freebsd-amd64 mailing list