From owner-freebsd-amd64@FreeBSD.ORG Sun Jul 21 05:32:44 2013 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 94B9A957 for ; Sun, 21 Jul 2013 05:32:44 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) by mx1.freebsd.org (Postfix) with ESMTP id 68DE32B6 for ; Sun, 21 Jul 2013 05:32:44 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r6L5Wc2U076400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 20 Jul 2013 22:32:38 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r6L5WbQU076399; Sat, 20 Jul 2013 22:32:37 -0700 (PDT) (envelope-from jmg) Date: Sat, 20 Jul 2013 22:32:37 -0700 From: John-Mark Gurney To: Jan Bramkamp Subject: Re: amd64/180562: amdtemp and ACPI not working with motherboard ASUS M5A97 PRO Message-ID: <20130721053237.GN26412@funkthat.com> Mail-Followup-To: Jan Bramkamp , freebsd-amd64@freebsd.org References: <201307151553.r6FFr21s051018@freefall.freebsd.org> <51E41C93.7010603@rlwinm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51E41C93.7010603@rlwinm.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sat, 20 Jul 2013 22:32:38 -0700 (PDT) Cc: freebsd-amd64@freebsd.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jul 2013 05:32:44 -0000 Jan Bramkamp wrote this message on Mon, Jul 15, 2013 at 18:00 +0200: > On 15.07.2013 17:53, linimon@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: 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."