From owner-freebsd-bugs@FreeBSD.ORG  Sun Feb  9 13:00:01 2014
Return-Path: <owner-freebsd-bugs@FreeBSD.ORG>
Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 246ECA49
 for <freebsd-bugs@smarthost.ysv.freebsd.org>;
 Sun,  9 Feb 2014 13:00:01 +0000 (UTC)
Received: from freefall.freebsd.org (freefall.freebsd.org
 [IPv6:2001:1900:2254:206c::16:87])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id D8B771393
 for <freebsd-bugs@smarthost.ysv.freebsd.org>;
 Sun,  9 Feb 2014 13:00:00 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
 by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s19D00KW038148
 for <freebsd-bugs@freefall.freebsd.org>; Sun, 9 Feb 2014 13:00:00 GMT
 (envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
 by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s19D00NA038147;
 Sun, 9 Feb 2014 13:00:00 GMT (envelope-from gnats)
Resent-Date: Sun, 9 Feb 2014 13:00:00 GMT
Resent-Message-Id: <201402091300.s19D00NA038147@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
 David Rufino <david.rufino@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 07EDE454
 for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Feb 2014 12:49:59 +0000 (UTC)
Received: from newred.freebsd.org (cgiserv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:4])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mx1.freebsd.org (Postfix) with ESMTPS id E781412ED
 for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Feb 2014 12:49:58 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
 by newred.freebsd.org (8.14.7/8.14.7) with ESMTP id s19CnwDr059102
 for <freebsd-gnats-submit@FreeBSD.org>; Sun, 9 Feb 2014 12:49:58 GMT
 (envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
 by cgiserv.freebsd.org (8.14.7/8.14.7/Submit) id s19CnwfE059096;
 Sun, 9 Feb 2014 12:49:58 GMT (envelope-from nobody)
Message-Id: <201402091249.s19CnwfE059096@cgiserv.freebsd.org>
Date: Sun, 9 Feb 2014 12:49:58 GMT
From: David Rufino <david.rufino@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-3.1
Subject: kern/186587: Temperature Support for AMD Motherboard Family 16h
 (Kabini)
X-BeenThere: freebsd-bugs@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Bug reports <freebsd-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-bugs>,
 <mailto:freebsd-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bugs/>
List-Post: <mailto:freebsd-bugs@freebsd.org>
List-Help: <mailto:freebsd-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>,
 <mailto:freebsd-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 09 Feb 2014 13:00:01 -0000


>Number:         186587
>Category:       kern
>Synopsis:       Temperature Support for AMD Motherboard Family 16h (Kabini)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 09 13:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     David Rufino
>Release:        10.0-RELEASE
>Organization:
>Environment:
>Description:
temperature controls don't work on AMD Family 16h (Kabini) Mobos
>How-To-Repeat:
kldload amdtemp
sysctl dev.cpu.0.temperature
>Fix:
Apply the following patch to dev/amdtemp

Index: amdtemp.c
===================================================================
--- amdtemp.c	(revision 261316)
+++ amdtemp.c	(working copy)
@@ -79,7 +79,9 @@
 #define	DEVICEID_AMD_MISC12	0x1403
 #define	DEVICEID_AMD_MISC14	0x1703
 #define	DEVICEID_AMD_MISC15	0x1603
+#define	DEVICEID_AMD_MISC16	0x1533
 
+
 static struct amdtemp_product {
 	uint16_t	amdtemp_vendorid;
 	uint16_t	amdtemp_deviceid;
@@ -90,6 +92,7 @@
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC12 },
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC14 },
 	{ VENDORID_AMD,	DEVICEID_AMD_MISC15 },
+	{ VENDORID_AMD,	DEVICEID_AMD_MISC16 },
 	{ 0, 0 }
 };
 
@@ -204,6 +207,7 @@
 	case 0x12:
 	case 0x14:
 	case 0x15:
+	case 0x16:
 		break;
 	default:
 		return (ENXIO);
@@ -327,6 +331,7 @@
 	case 0x12:
 	case 0x14:
 	case 0x15:
+	case 0x16:
 		/*
 		 * There is only one sensor per package.
 		 */

>Release-Note:
>Audit-Trail:
>Unformatted: