kern/156358: [patch] make amdtemp.c compatible with Llano/Brazos
platforms
Torsten Ackemann
t.ackemann at cs.ucl.ac.uk
Tue Apr 12 16:50:13 UTC 2011
>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 at 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:
More information about the freebsd-bugs
mailing list