Date: Tue, 12 Apr 2011 16:50:03 GMT From: Torsten Ackemann <t.ackemann@cs.ucl.ac.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/156358: [patch] make amdtemp.c compatible with Llano/Brazos platforms Message-ID: <201104121650.p3CGo3Mb013896@red.freebsd.org> Resent-Message-ID: <201104121650.p3CGoCGj086086@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 156358 >Category: kern >Synopsis: [patch] make amdtemp.c compatible with Llano/Brazos platforms >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 12 16:50:12 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Torsten Ackemann >Release: FreeBSD 8.2-STABLE i386 >Organization: UCL >Environment: FreeBSD eddie.lan 8.2-STABLE FreeBSD 8.2-STABLE #2: Mon Apr 11 15:17:23 BST 2011 root@eddie.lan:/usr/obj/usr/src/sys/GENERIC i386 >Description: This patch adds the PCI device ID for newer AMD chipsets so that amdtemp.c will recognize them. Inspired by a patch for Linux found at http://lists.lm-sensors.org/pipermail/lm-sensors/2011-February/031397.html. Tested on AMD Hudson M1 chipset only (Asus E35M1-M PRO). >How-To-Repeat: >Fix: --- sys/dev/amdtemp/amdtemp.c.orig 2009-08-20 21:23:28.000000000 +0100 +++ sys/dev/amdtemp/amdtemp.c 2011-04-11 15:01:11.000000000 +0100 @@ -72,6 +72,7 @@ #define DEVICEID_AMD_MISC0F 0x1103 #define DEVICEID_AMD_MISC10 0x1203 #define DEVICEID_AMD_MISC11 0x1303 +#define DEVICEID_AMD_CNB17H 0x1703 static struct amdtemp_product { uint16_t amdtemp_vendorid; @@ -80,6 +81,7 @@ { VENDORID_AMD, DEVICEID_AMD_MISC0F }, { VENDORID_AMD, DEVICEID_AMD_MISC10 }, { VENDORID_AMD, DEVICEID_AMD_MISC11 }, + { VENDORID_AMD, DEVICEID_AMD_CNB17H }, { 0, 0 } }; Patch attached with submission follows: --- sys/dev/amdtemp/amdtemp.c.orig 2009-08-20 21:23:28.000000000 +0100 +++ sys/dev/amdtemp/amdtemp.c 2011-04-11 15:01:11.000000000 +0100 @@ -72,6 +72,7 @@ #define DEVICEID_AMD_MISC0F 0x1103 #define DEVICEID_AMD_MISC10 0x1203 #define DEVICEID_AMD_MISC11 0x1303 +#define DEVICEID_AMD_CNB17H 0x1703 static struct amdtemp_product { uint16_t amdtemp_vendorid; @@ -80,6 +81,7 @@ { VENDORID_AMD, DEVICEID_AMD_MISC0F }, { VENDORID_AMD, DEVICEID_AMD_MISC10 }, { VENDORID_AMD, DEVICEID_AMD_MISC11 }, + { VENDORID_AMD, DEVICEID_AMD_CNB17H }, { 0, 0 } }; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104121650.p3CGo3Mb013896>