1569c3c7dSRui Paulo.\"- 2569c3c7dSRui Paulo.\" Copyright (c) 2008 Rui Paulo 3569c3c7dSRui Paulo.\" All rights reserved. 4569c3c7dSRui Paulo.\" 5569c3c7dSRui Paulo.\" Redistribution and use in source and binary forms, with or without 6569c3c7dSRui Paulo.\" modification, are permitted provided that the following conditions 7569c3c7dSRui Paulo.\" are met: 8569c3c7dSRui Paulo.\" 1. Redistributions of source code must retain the above copyright 9569c3c7dSRui Paulo.\" notice, this list of conditions and the following disclaimer. 10569c3c7dSRui Paulo.\" 2. Redistributions in binary form must reproduce the above copyright 11569c3c7dSRui Paulo.\" notice, this list of conditions and the following disclaimer in the 12569c3c7dSRui Paulo.\" documentation and/or other materials provided with the distribution. 13569c3c7dSRui Paulo.\" 14569c3c7dSRui Paulo.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15569c3c7dSRui Paulo.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16569c3c7dSRui Paulo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17569c3c7dSRui Paulo.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18569c3c7dSRui Paulo.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19569c3c7dSRui Paulo.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20569c3c7dSRui Paulo.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21569c3c7dSRui Paulo.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22569c3c7dSRui Paulo.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23569c3c7dSRui Paulo.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24569c3c7dSRui Paulo.\" SUCH DAMAGE. 25569c3c7dSRui Paulo.\" 26569c3c7dSRui Paulo.\" $FreeBSD$ 27569c3c7dSRui Paulo.\" 28*28e90b2dSConrad Meyer.Dd August 31, 2017 29569c3c7dSRui Paulo.Dt AMDTEMP 4 30569c3c7dSRui Paulo.Os 31569c3c7dSRui Paulo.Sh NAME 32569c3c7dSRui Paulo.Nm amdtemp 33074d80acSJung-uk Kim.Nd device driver for 34074d80acSJung-uk Kim.Tn AMD 35074d80acSJung-uk Kimprocessor on-die digital thermal sensor 36569c3c7dSRui Paulo.Sh SYNOPSIS 37569c3c7dSRui PauloTo compile this driver into the kernel, 38569c3c7dSRui Pauloplace the following line in your 39569c3c7dSRui Paulokernel configuration file: 40569c3c7dSRui Paulo.Bd -ragged -offset indent 41569c3c7dSRui Paulo.Cd "device amdtemp" 42569c3c7dSRui Paulo.Ed 43569c3c7dSRui Paulo.Pp 44569c3c7dSRui PauloAlternatively, to load the driver as a 45569c3c7dSRui Paulomodule at boot time, place the following line in 46569c3c7dSRui Paulo.Xr loader.conf 5 : 47569c3c7dSRui Paulo.Bd -literal -offset indent 48569c3c7dSRui Pauloamdtemp_load="YES" 49569c3c7dSRui Paulo.Ed 50569c3c7dSRui Paulo.Sh DESCRIPTION 51569c3c7dSRui PauloThe 52569c3c7dSRui Paulo.Nm 53569c3c7dSRui Paulodriver provides support for the on-die digital thermal sensor present 54074d80acSJung-uk Kimin 55074d80acSJung-uk Kim.Tn AMD 56a06c5117SChristian BruefferFamily 0Fh, 10h, 11h, 12h, 14h, 15h, and 16h processors. 57569c3c7dSRui Paulo.Pp 58074d80acSJung-uk KimFor Family 0Fh processors, the 59569c3c7dSRui Paulo.Nm 60074d80acSJung-uk Kimdriver reports each core's temperature through sysctl nodes, named 61074d80acSJung-uk Kim.Va dev.amdtemp.%d.core{0,1}.sensor{0,1} . 62569c3c7dSRui PauloThe driver also creates 63569c3c7dSRui Paulo.Va dev.cpu.%d.temperature 64074d80acSJung-uk Kimin the corresponding CPU device's sysctl tree, displaying the maximum 65074d80acSJung-uk Kimtemperature of the two sensors located in each CPU core. 66569c3c7dSRui Paulo.Pp 6767214fc8SChristian BruefferFor Family 10h, 11h, 12h, 14h, 15h, and 16h processors, the driver reports each 68074d80acSJung-uk Kimpackage's temperature through a sysctl node, named 69074d80acSJung-uk Kim.Va dev.amdtemp.%d.core0.sensor0 . 70074d80acSJung-uk KimThe driver also creates 71569c3c7dSRui Paulo.Va dev.cpu.%d.temperature 72074d80acSJung-uk Kimin the corresponding CPU device's sysctl tree, displaying the temperature 73074d80acSJung-uk Kimof the shared sensor located in each CPU package. 74074d80acSJung-uk Kim.Sh SYSCTL VARIABLES 75074d80acSJung-uk KimThe following variable is available as both 76074d80acSJung-uk Kim.Xr sysctl 8 77074d80acSJung-uk Kimvariable and 78074d80acSJung-uk Kim.Xr loader 8 79074d80acSJung-uk Kimtunable: 80074d80acSJung-uk Kim.Bl -tag -width indent 81074d80acSJung-uk Kim.It Va dev.amdtemp.%d.sensor_offset 82074d80acSJung-uk Kim.El 83695ff33fSJung-uk KimAdd the given offset to the temperature of the sensor. 84695ff33fSJung-uk KimDefault is 0. 85569c3c7dSRui Paulo.Sh SEE ALSO 86074d80acSJung-uk Kim.Xr loader 8 , 87569c3c7dSRui Paulo.Xr sysctl 8 88569c3c7dSRui Paulo.Sh HISTORY 89569c3c7dSRui PauloThe 90569c3c7dSRui Paulo.Nm 91569c3c7dSRui Paulodriver first appeared in 92569c3c7dSRui Paulo.Fx 7.1 . 93569c3c7dSRui Paulo.Sh AUTHORS 946c899950SBaptiste Daroussin.An Rui Paulo Aq Mt rpaulo@FreeBSD.org 956c899950SBaptiste Daroussin.An Norikatsu Shigemura Aq Mt nork@FreeBSD.org 966c899950SBaptiste Daroussin.An Jung-uk Kim Aq Mt jkim@FreeBSD.org 97074d80acSJung-uk Kim.Sh CAVEATS 98074d80acSJung-uk KimFor Family 10h and later processors, 99074d80acSJung-uk Kim.Do 100074d80acSJung-uk Kim(the reported temperature) is a non-physical temperature measured on 101074d80acSJung-uk Kiman arbitrary scale and it does not represent an actual physical 102695ff33fSJung-uk Kimtemperature like die or case temperature. 103695ff33fSJung-uk KimInstead, it specifies the processor temperature relative to the point 104695ff33fSJung-uk Kimat which the system must supply the maximum cooling for the processor's 105695ff33fSJung-uk Kimspecified maximum case temperature and maximum thermal power dissipation 106074d80acSJung-uk Kim.Dc 107074d80acSJung-uk Kimaccording to 108074d80acSJung-uk Kim.Rs 109074d80acSJung-uk Kim.%T BIOS and Kernel Developer's Guide (BKDG) for AMD Processors 110*28e90b2dSConrad Meyer.%U http://developer.amd.com/resources/developer-guides-manuals/ 111074d80acSJung-uk Kim.Re 112