xref: /dragonfly/share/man/man4/km.4 (revision cfd1aba3)
1.\"	$OpenBSD: km.4,v 1.9 2013/07/16 16:05:49 schwarze Exp $
2.\"
3.\" Copyright (c) 2008/2010 Constantine A. Murenin <cnst+dfly@bugmail.mojo.ru>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd July 16, 2013
18.Dt KM 4
19.Os
20.Sh NAME
21.Nm km
22.Nd AMD K10 temperature sensor
23.Sh SYNOPSIS
24To compile this driver into the kernel,
25place the following lines in your
26kernel configuration file:
27.Bd -ragged -offset indent
28.Cd "device pci"
29.Cd "device km"
30.Ed
31.Pp
32Alternatively, to load the driver as a
33module at boot time, place the following line in
34.Xr loader.conf 5 :
35.Bd -literal -offset indent
36km_load="YES"
37.Ed
38.Sh DESCRIPTION
39The
40.Nm
41driver provides support for the temperature sensors available in the
42AMD Family 10h, 11h, 14h, and 15h processors.
43.Pp
44Each chip reports one temperature sensor.
45Multiprocessor systems have one instance of
46.Nm
47per chip.
48The highest resolution supported by the driver is 0.125 degC.
49.Pp
50Sensor values are made available through the
51.Dv HW_SENSORS
52.Xr sysctl 3
53interface,
54and can be monitored with the
55.Xr systat 1
56.Ar sensors
57display,
58.Xr sensorsd 8
59and
60.Xr sysctl 8
61.Ar hw.sensors .
62For example, with an
63.Tn AMD
64.Tn Phenom X4
659850 Black Edition 2.5GHz
66.Tn Socket AM2+
67125W quad-core processor:
68.Bd -literal -offset indent
69%sysctl hw.sensors.km0
70hw.sensors.km0.temp0: 60.50 degC
71.Ed
72.Sh SEE ALSO
73.Xr systat 1 ,
74.Xr sysctl 3 ,
75.Xr intro 4 ,
76.Xr kate 4 ,
77.Xr pci 4 ,
78.Xr sensorsd 8 ,
79.Xr sysctl 8
80.Rs
81.%T "BIOS and Kernel Developer's Guide for AMD Family 10h Processors"
82.%D March 26, 2008
83.%R Publication # 31116
84.%P pp. 236--237 and pp. 243--244
85.%O http://support.amd.com/us/Processor_TechDocs/31116.pdf
86.Re
87.Rs
88.%T "BIOS and Kernel Developer's Guide for AMD Family 11h Processors"
89.%D July 07, 2008
90.%R Publication # 41256
91.%P pp. 156--157 and pp. 159--160
92.%O http://support.amd.com/us/Processor_TechDocs/41256.pdf
93.Re
94.Rs
95.%T "BIOS and Kernel Developer's Guide for AMD Family 14h Models 00h-04h Processors"
96.%D May 02, 2011
97.%R Publication # 43170
98.%P pp. 277--278 and pp. 280--282
99.%O http://support.amd.com/us/Processor_TechDocs/43170.pdf
100.Re
101.Sh HISTORY
102The
103.Nm
104driver first appeared in
105.Ox 4.4
106and
107.Dx 2.5 .
108.Sh AUTHORS
109.An -nosplit
110The
111.Nm
112driver was written for
113.Ox
114and
115.Dx
116by
117.An Constantine A. Murenin Aq Lk http://cnst.su/ ,
118Raouf Boutaba Research Group,
119David R. Cheriton School of Computer Science,
120University of Waterloo.
121