Bug 206882 - AMDTEMP.C Fixed to work on AMD GX-412TC SOC (Puma)
Summary: AMDTEMP.C Fixed to work on AMD GX-412TC SOC (Puma)
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-02-03 14:32 UTC by Chris
Modified: 2016-07-29 22:08 UTC (History)
4 users (show)

See Also:


Attachments
diff file for 10.1-release amdtemp.c cheers :) (757 bytes, patch)
2016-02-03 14:32 UTC, Chris
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2016-02-03 14:32:15 UTC
Created attachment 166496 [details]
diff file for 10.1-release amdtemp.c cheers :)

G'day,

I've patched amdtemp.c to work on AMD GX-412TC SOC's (Puma).

It's a two line code fix that simply adds relevant ID's. 

attached is the diff.

This patch applies to 10.2 and I assume 10.3 also. 

--- amdtemp.c	2014-03-28 19:55:34.000000000 +1100
+++ amdtempnew.c	2016-01-31 04:49:12.000000000 +1100
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
+__FBSDID("$FreeBSD: releng/10.1/sys/dev/amdtemp/amdtemp.c 263869 2014-03-28 08:55:34Z brueffer $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -80,6 +80,7 @@
 #define	DEVICEID_AMD_MISC14	0x1703
 #define	DEVICEID_AMD_MISC15	0x1603
 #define	DEVICEID_AMD_MISC16	0x1533
+#define DEVICEID_AMD_MISC16_X3  0X1583
 
 static struct amdtemp_product {
 	uint16_t	amdtemp_vendorid;
@@ -92,6 +93,7 @@
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC14 },
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC15 },
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC16 },
+	{ VENDORID_AMD, DEVICEID_AMD_MISC16_X3 },
 	{ 0, 0 }
 };
Comment 1 John Baldwin freebsd_committer freebsd_triage 2016-07-29 22:08:51 UTC
Looks like this ID was added in r298270 and was merged to stable/10 after 10.3.