Module Name: src
Committed By: jakllsch
Date: Thu Aug 18 20:55:21 UTC 2011
Modified Files:
src/share/man/man4: amdtemp.4
src/sys/arch/amd64/conf: GENERIC XEN3_DOM0
src/sys/arch/i386/conf: ALL GENERIC XEN3_DOM0
src/sys/arch/x86/pci: files.pci pchb.c
Log Message:
Attach amdtemp(4) at pchb(4) instead of in place of pchb(4).
Should fix PR#45268.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/amdtemp.4
cvs rdiff -u -r1.333 -r1.334 src/sys/arch/amd64/conf/GENERIC
cvs rdiff -u -r1.70 -r1.71 src/sys/arch/amd64/conf/XEN3_DOM0
cvs rdiff -u -r1.318 -r1.319 src/sys/arch/i386/conf/ALL
cvs rdiff -u -r1.1047 -r1.1048 src/sys/arch/i386/conf/GENERIC
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/i386/conf/XEN3_DOM0
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/x86/pci/files.pci
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/x86/pci/pchb.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man4/amdtemp.4
diff -u src/share/man/man4/amdtemp.4:1.4 src/share/man/man4/amdtemp.4:1.5
--- src/share/man/man4/amdtemp.4:1.4 Thu Nov 20 10:33:24 2008
+++ src/share/man/man4/amdtemp.4 Thu Aug 18 20:55:21 2011
@@ -1,4 +1,4 @@
-.\" $NetBSD: amdtemp.4,v 1.4 2008/11/20 10:33:24 wiz Exp $
+.\" $NetBSD: amdtemp.4,v 1.5 2011/08/18 20:55:21 jakllsch Exp $
.\"-
.\" Copyright (c) 2008 Christoph Egger
.\" All rights reserved.
@@ -26,14 +26,14 @@
.\"
.\" $FreeBSD: src/share/man/man4/coretemp.4,v 1.4 2007/10/15 20:00:19 netchild Exp $
.\"
-.Dd November 19, 2008
+.Dd August 18, 2011
.Dt AMDTEMP 4
.Os
.Sh NAME
.Nm amdtemp
.Nd AMD CPU on-die digital thermal sensor
.Sh SYNOPSIS
-.Cd "amdtemp* at pci? dev ? function ?"
+.Cd "amdtemp* at pchb?"
.Sh DESCRIPTION
The
.Nm
Index: src/sys/arch/amd64/conf/GENERIC
diff -u src/sys/arch/amd64/conf/GENERIC:1.333 src/sys/arch/amd64/conf/GENERIC:1.334
--- src/sys/arch/amd64/conf/GENERIC:1.333 Thu Aug 11 07:36:17 2011
+++ src/sys/arch/amd64/conf/GENERIC Thu Aug 18 20:55:21 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.333 2011/08/11 07:36:17 mbalmer Exp $
+# $NetBSD: GENERIC,v 1.334 2011/08/18 20:55:21 jakllsch Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.333 $"
+#ident "GENERIC-$Revision: 1.334 $"
maxusers 64 # estimated number of users
@@ -428,7 +428,7 @@
# Hardware monitors
-amdtemp* at pci? dev ? function ? # AMD CPU Temperature sensors
+amdtemp* at pchb? # AMD CPU Temperature sensors
# Winbond LPC Super I/O
#wbsio* at isa? port 0x2e
Index: src/sys/arch/amd64/conf/XEN3_DOM0
diff -u src/sys/arch/amd64/conf/XEN3_DOM0:1.70 src/sys/arch/amd64/conf/XEN3_DOM0:1.71
--- src/sys/arch/amd64/conf/XEN3_DOM0:1.70 Sat Jul 23 21:12:57 2011
+++ src/sys/arch/amd64/conf/XEN3_DOM0 Thu Aug 18 20:55:21 2011
@@ -1,4 +1,4 @@
-# $NetBSD: XEN3_DOM0,v 1.70 2011/07/23 21:12:57 jakllsch Exp $
+# $NetBSD: XEN3_DOM0,v 1.71 2011/08/18 20:55:21 jakllsch Exp $
include "arch/amd64/conf/std.xen"
@@ -293,7 +293,7 @@
# Hardware monitors
-amdtemp* at pci? dev ? function ? # AMD CPU Temperature sensors
+amdtemp* at pchb? # AMD CPU Temperature sensors
# AMD 768 and 8111 power/ACPI controllers
amdpm* at pci? dev ? function ? # RNG and SMBus 1.0 interface
Index: src/sys/arch/i386/conf/ALL
diff -u src/sys/arch/i386/conf/ALL:1.318 src/sys/arch/i386/conf/ALL:1.319
--- src/sys/arch/i386/conf/ALL:1.318 Thu Aug 11 07:38:56 2011
+++ src/sys/arch/i386/conf/ALL Thu Aug 18 20:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.318 2011/08/11 07:38:56 mbalmer Exp $
+# $NetBSD: ALL,v 1.319 2011/08/18 20:55:20 jakllsch Exp $
# From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
#
# ALL machine description file
@@ -17,7 +17,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "ALL-$Revision: 1.318 $"
+#ident "ALL-$Revision: 1.319 $"
maxusers 64 # estimated number of users
@@ -472,7 +472,7 @@
elanpex* at elansc?
# Temperatures
-amdtemp* at pci? dev ? function ? # AMD CPU Temperature sensors
+amdtemp* at pchb? # AMD CPU Temperature sensors
# PCI bridges
amdpcib* at pci? dev ? function ? # AMD 8111 PCI-ISA w/ HPET
Index: src/sys/arch/i386/conf/GENERIC
diff -u src/sys/arch/i386/conf/GENERIC:1.1047 src/sys/arch/i386/conf/GENERIC:1.1048
--- src/sys/arch/i386/conf/GENERIC:1.1047 Thu Aug 11 07:38:56 2011
+++ src/sys/arch/i386/conf/GENERIC Thu Aug 18 20:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.1047 2011/08/11 07:38:56 mbalmer Exp $
+# $NetBSD: GENERIC,v 1.1048 2011/08/18 20:55:20 jakllsch Exp $
#
# GENERIC machine description file
#
@@ -22,7 +22,7 @@
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
-#ident "GENERIC-$Revision: 1.1047 $"
+#ident "GENERIC-$Revision: 1.1048 $"
maxusers 64 # estimated number of users
@@ -444,7 +444,7 @@
gpio* at elansc?
# Temperatures
-amdtemp* at pci? dev ? function ? # AMD CPU Temperature sensors
+amdtemp* at pchb? # AMD CPU Temperature sensors
# PCI bridges
#amdpcib* at pci? dev ? function ? # AMD 8111 PCI-ISA w/ HPET
Index: src/sys/arch/i386/conf/XEN3_DOM0
diff -u src/sys/arch/i386/conf/XEN3_DOM0:1.54 src/sys/arch/i386/conf/XEN3_DOM0:1.55
--- src/sys/arch/i386/conf/XEN3_DOM0:1.54 Sat Jul 23 21:12:58 2011
+++ src/sys/arch/i386/conf/XEN3_DOM0 Thu Aug 18 20:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: XEN3_DOM0,v 1.54 2011/07/23 21:12:58 jakllsch Exp $
+# $NetBSD: XEN3_DOM0,v 1.55 2011/08/18 20:55:20 jakllsch Exp $
#
# XEN3_0: Xen 3.0 domain0 kernel
@@ -270,7 +270,7 @@
# Hardware monitors
-amdtemp* at pci? dev ? function ? # AMD CPU Temperature sensors
+amdtemp* at pchb? # AMD CPU Temperature sensors
# AMD 768 and 8111 power/ACPI controllers
amdpm* at pci? dev ? function ? # RNG and SMBus 1.0 interface
Index: src/sys/arch/x86/pci/files.pci
diff -u src/sys/arch/x86/pci/files.pci:1.12 src/sys/arch/x86/pci/files.pci:1.13
--- src/sys/arch/x86/pci/files.pci:1.12 Wed Jun 15 06:43:20 2011
+++ src/sys/arch/x86/pci/files.pci Thu Aug 18 20:55:20 2011
@@ -1,4 +1,4 @@
-# $NetBSD: files.pci,v 1.12 2011/06/15 06:43:20 jruoho Exp $
+# $NetBSD: files.pci,v 1.13 2011/08/18 20:55:20 jakllsch Exp $
device aapic
attach aapic at pci
@@ -7,7 +7,9 @@
file arch/x86/pci/agp_machdep.c agp
# PCI-Host bridge chipsets
-device pchb: pcibus, agpbus, agp_ali, agp_amd, agp_amd64, agp_i810,
+define amdtempbus {}
+device pchb: pcibus, agpbus, amdtempbus,
+ agp_ali, agp_amd, agp_amd64, agp_i810,
agp_intel, agp_sis, agp_via
attach pchb at pci
file arch/x86/pci/pchb.c pchb needs-flag
@@ -27,7 +29,7 @@
# AMD Processors -- Miscellaneous Control
device amdtemp: sysmon_envsys
-attach amdtemp at pci
+attach amdtemp at amdtempbus
file arch/x86/pci/amdtemp.c amdtemp
# PCI-LPC bridges
Index: src/sys/arch/x86/pci/pchb.c
diff -u src/sys/arch/x86/pci/pchb.c:1.26 src/sys/arch/x86/pci/pchb.c:1.27
--- src/sys/arch/x86/pci/pchb.c:1.26 Fri Jul 1 18:22:08 2011
+++ src/sys/arch/x86/pci/pchb.c Thu Aug 18 20:55:20 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: pchb.c,v 1.26 2011/07/01 18:22:08 dyoung Exp $ */
+/* $NetBSD: pchb.c,v 1.27 2011/08/18 20:55:20 jakllsch Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.26 2011/07/01 18:22:08 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.27 2011/08/18 20:55:20 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -439,6 +439,8 @@
memset(&pba.pba_intrtag, 0, sizeof(pba.pba_intrtag));
config_found_ia(self, "pcibus", &pba, pcibusprint);
}
+
+ config_found_ia(self, "amdtempbus", aux, NULL);
}
int