1.\" $OpenBSD: km.4,v 1.5 2009/07/23 17:19:07 cnst 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 February 12, 2010 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 and 11h 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://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/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://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/41256.pdf 93.Re 94.Sh HISTORY 95The 96.Nm 97driver first appeared in 98.Ox 4.4 99and 100.Dx 2.5 . 101.Sh AUTHORS 102The 103.Nm 104driver was written for 105.Ox 106and 107.Dx 108by 109.An Constantine A. Murenin Aq http://cnst.su/ , 110Raouf Boutaba Research Group, 111David R. Cheriton School of Computer Science, 112University of Waterloo. 113