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.\" 26a03d621bSConrad Meyer.Dd September 5, 2017 27569c3c7dSRui Paulo.Dt AMDTEMP 4 28569c3c7dSRui Paulo.Os 29569c3c7dSRui Paulo.Sh NAME 30569c3c7dSRui Paulo.Nm amdtemp 31074d80acSJung-uk Kim.Nd device driver for 32074d80acSJung-uk Kim.Tn AMD 33074d80acSJung-uk Kimprocessor on-die digital thermal sensor 34569c3c7dSRui Paulo.Sh SYNOPSIS 35569c3c7dSRui PauloTo compile this driver into the kernel, 36569c3c7dSRui Pauloplace the following line in your 37569c3c7dSRui Paulokernel configuration file: 38569c3c7dSRui Paulo.Bd -ragged -offset indent 39569c3c7dSRui Paulo.Cd "device amdtemp" 40569c3c7dSRui Paulo.Ed 41569c3c7dSRui Paulo.Pp 42569c3c7dSRui PauloAlternatively, to load the driver as a 43569c3c7dSRui Paulomodule at boot time, place the following line in 44569c3c7dSRui Paulo.Xr loader.conf 5 : 45569c3c7dSRui Paulo.Bd -literal -offset indent 46569c3c7dSRui Pauloamdtemp_load="YES" 47569c3c7dSRui Paulo.Ed 48569c3c7dSRui Paulo.Sh DESCRIPTION 49569c3c7dSRui PauloThe 50569c3c7dSRui Paulo.Nm 51569c3c7dSRui Paulodriver provides support for the on-die digital thermal sensor present 52074d80acSJung-uk Kimin 53074d80acSJung-uk Kim.Tn AMD 54a03d621bSConrad MeyerFamily 0Fh, 10h, 11h, 12h, 14h, 15h, 16h, and 17h processors. 55569c3c7dSRui Paulo.Pp 56074d80acSJung-uk KimFor Family 0Fh processors, the 57569c3c7dSRui Paulo.Nm 58074d80acSJung-uk Kimdriver reports each core's temperature through sysctl nodes, named 59074d80acSJung-uk Kim.Va dev.amdtemp.%d.core{0,1}.sensor{0,1} . 60569c3c7dSRui PauloThe driver also creates 61569c3c7dSRui Paulo.Va dev.cpu.%d.temperature 62074d80acSJung-uk Kimin the corresponding CPU device's sysctl tree, displaying the maximum 63074d80acSJung-uk Kimtemperature of the two sensors located in each CPU core. 64569c3c7dSRui Paulo.Pp 65a03d621bSConrad MeyerFor Family 10h, 11h, 12h, 14h, 15h, 16h, and 17h processors, the driver reports 66a03d621bSConrad Meyereach package's temperature through a sysctl node, named 67074d80acSJung-uk Kim.Va dev.amdtemp.%d.core0.sensor0 . 68074d80acSJung-uk KimThe driver also creates 69569c3c7dSRui Paulo.Va dev.cpu.%d.temperature 70074d80acSJung-uk Kimin the corresponding CPU device's sysctl tree, displaying the temperature 71074d80acSJung-uk Kimof the shared sensor located in each CPU package. 72074d80acSJung-uk Kim.Sh SYSCTL VARIABLES 73074d80acSJung-uk KimThe following variable is available as both 74074d80acSJung-uk Kim.Xr sysctl 8 75074d80acSJung-uk Kimvariable and 76074d80acSJung-uk Kim.Xr loader 8 77074d80acSJung-uk Kimtunable: 78074d80acSJung-uk Kim.Bl -tag -width indent 79074d80acSJung-uk Kim.It Va dev.amdtemp.%d.sensor_offset 80074d80acSJung-uk Kim.El 81695ff33fSJung-uk KimAdd the given offset to the temperature of the sensor. 82695ff33fSJung-uk KimDefault is 0. 83569c3c7dSRui Paulo.Sh SEE ALSO 84*005b7c57SMitchell Horne.Xr coretemp 4 , 85074d80acSJung-uk Kim.Xr loader 8 , 86569c3c7dSRui Paulo.Xr sysctl 8 87569c3c7dSRui Paulo.Sh HISTORY 88569c3c7dSRui PauloThe 89569c3c7dSRui Paulo.Nm 90569c3c7dSRui Paulodriver first appeared in 91569c3c7dSRui Paulo.Fx 7.1 . 92569c3c7dSRui Paulo.Sh AUTHORS 936c899950SBaptiste Daroussin.An Rui Paulo Aq Mt rpaulo@FreeBSD.org 946c899950SBaptiste Daroussin.An Norikatsu Shigemura Aq Mt nork@FreeBSD.org 956c899950SBaptiste Daroussin.An Jung-uk Kim Aq Mt jkim@FreeBSD.org 96074d80acSJung-uk Kim.Sh CAVEATS 97074d80acSJung-uk KimFor Family 10h and later processors, 98074d80acSJung-uk Kim.Do 99074d80acSJung-uk Kim(the reported temperature) is a non-physical temperature measured on 100074d80acSJung-uk Kiman arbitrary scale and it does not represent an actual physical 101695ff33fSJung-uk Kimtemperature like die or case temperature. 102695ff33fSJung-uk KimInstead, it specifies the processor temperature relative to the point 103695ff33fSJung-uk Kimat which the system must supply the maximum cooling for the processor's 104695ff33fSJung-uk Kimspecified maximum case temperature and maximum thermal power dissipation 105074d80acSJung-uk Kim.Dc 106074d80acSJung-uk Kimaccording to 107074d80acSJung-uk Kim.Rs 108074d80acSJung-uk Kim.%T BIOS and Kernel Developer's Guide (BKDG) for AMD Processors 10928e90b2dSConrad Meyer.%U http://developer.amd.com/resources/developer-guides-manuals/ 110074d80acSJung-uk Kim.Re 111