xref: /dflybsd-src/share/man/man4/memtemp.4 (revision fb3c2c0caaaa0e5d800e088b7dd7983e9ab009ec)
126c04df3SSepherosa Ziehau.\"
226c04df3SSepherosa Ziehau.\" Copyright (c) 2015 The DragonFly Project.  All rights reserved.
326c04df3SSepherosa Ziehau.\"
426c04df3SSepherosa Ziehau.\" Redistribution and use in source and binary forms, with or without
526c04df3SSepherosa Ziehau.\" modification, are permitted provided that the following conditions
626c04df3SSepherosa Ziehau.\" are met:
726c04df3SSepherosa Ziehau.\"
826c04df3SSepherosa Ziehau.\" 1. Redistributions of source code must retain the above copyright
926c04df3SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer.
1026c04df3SSepherosa Ziehau.\" 2. Redistributions in binary form must reproduce the above copyright
1126c04df3SSepherosa Ziehau.\"    notice, this list of conditions and the following disclaimer in
1226c04df3SSepherosa Ziehau.\"    the documentation and/or other materials provided with the
1326c04df3SSepherosa Ziehau.\"    distribution.
1426c04df3SSepherosa Ziehau.\" 3. Neither the name of The DragonFly Project nor the names of its
1526c04df3SSepherosa Ziehau.\"    contributors may be used to endorse or promote products derived
1626c04df3SSepherosa Ziehau.\"    from this software without specific, prior written permission.
1726c04df3SSepherosa Ziehau.\"
1826c04df3SSepherosa Ziehau.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1926c04df3SSepherosa Ziehau.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2026c04df3SSepherosa Ziehau.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
2126c04df3SSepherosa Ziehau.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
2226c04df3SSepherosa Ziehau.\" COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
2326c04df3SSepherosa Ziehau.\" INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
2426c04df3SSepherosa Ziehau.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2526c04df3SSepherosa Ziehau.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
2626c04df3SSepherosa Ziehau.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2726c04df3SSepherosa Ziehau.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2826c04df3SSepherosa Ziehau.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2926c04df3SSepherosa Ziehau.\" SUCH DAMAGE.
3026c04df3SSepherosa Ziehau.\"
31*36a3b769SSepherosa Ziehau.Dd May 24, 2015
3226c04df3SSepherosa Ziehau.Dt MEMTEMP 4
3326c04df3SSepherosa Ziehau.Os
3426c04df3SSepherosa Ziehau.Sh NAME
3526c04df3SSepherosa Ziehau.Nm memtemp
3626c04df3SSepherosa Ziehau.Nd device driver for memory thermal sensor
3726c04df3SSepherosa Ziehau.Sh SYNOPSIS
3826c04df3SSepherosa ZiehauTo compile this driver into the kernel,
39d9902073SSepherosa Ziehauplace the following lines in your kernel configuration file:
4026c04df3SSepherosa Ziehau.Bd -ragged -offset indent
41881f7bffSSepherosa Ziehau.Cd "device dimm"
42d9902073SSepherosa Ziehau.Cd "device coremctl"
4326c04df3SSepherosa Ziehau.Cd "device memtemp"
4426c04df3SSepherosa Ziehau.Ed
4526c04df3SSepherosa Ziehau.Pp
4626c04df3SSepherosa ZiehauAlternatively, to load the driver as a
4726c04df3SSepherosa Ziehaumodule at boot time, place the following line in
4826c04df3SSepherosa Ziehau.Xr loader.conf 5 :
4926c04df3SSepherosa Ziehau.Bd -literal -offset indent
5026c04df3SSepherosa Ziehaumemtemp_load="YES"
5126c04df3SSepherosa Ziehau.Ed
5226c04df3SSepherosa Ziehau.Sh DESCRIPTION
5326c04df3SSepherosa ZiehauThe
5426c04df3SSepherosa Ziehau.Nm
5526c04df3SSepherosa Ziehaudriver provides support for the memory thermal sensor.
5626c04df3SSepherosa ZiehauThe values are exposed through the
5726c04df3SSepherosa Ziehau.Dv HW_SENSORS
5826c04df3SSepherosa Ziehau.Xr sysctl 3
5926c04df3SSepherosa Ziehautree.
6026c04df3SSepherosa ZiehauFor example:
6126c04df3SSepherosa Ziehau.Bd -literal -offset indent
6226c04df3SSepherosa Ziehau% sysctl hw.sensors
63*36a3b769SSepherosa Ziehauhw.sensors.dimm0.temp0: 40.00 degC (node0 chan0 DIMM0 temp), OK
64*36a3b769SSepherosa Ziehauhw.sensors.dimm1.temp0: 39.00 degC (node0 chan1 DIMM0 temp), OK
65881f7bffSSepherosa Ziehau.Ed
66881f7bffSSepherosa Ziehau.Pp
67881f7bffSSepherosa ZiehauThe DIMM location and configurable critical temperature thresholds
68881f7bffSSepherosa Ziehauare exposed through hw.dimminfo
69881f7bffSSepherosa Ziehau.Xr sysctl 3
70881f7bffSSepherosa Ziehautree.
71881f7bffSSepherosa ZiehauFor example:
72881f7bffSSepherosa Ziehau.Bd -literal -offset indent
73881f7bffSSepherosa Ziehau% sysctl hw.dimminfo
74881f7bffSSepherosa Ziehauhw.dimminfo.dimm0.node: 0
75881f7bffSSepherosa Ziehauhw.dimminfo.dimm0.chan: 0
76881f7bffSSepherosa Ziehauhw.dimminfo.dimm0.slot: 0
77881f7bffSSepherosa Ziehauhw.dimminfo.dimm0.temp_hiwat: 93
78881f7bffSSepherosa Ziehauhw.dimminfo.dimm0.temp_lowat: 88
79881f7bffSSepherosa Ziehauhw.dimminfo.dimm1.node: 0
80881f7bffSSepherosa Ziehauhw.dimminfo.dimm1.chan: 1
81881f7bffSSepherosa Ziehauhw.dimminfo.dimm1.slot: 0
82881f7bffSSepherosa Ziehauhw.dimminfo.dimm1.temp_hiwat: 93
83881f7bffSSepherosa Ziehauhw.dimminfo.dimm1.temp_lowat: 88
8426c04df3SSepherosa Ziehau.Ed
85c749fda1SSepherosa Ziehau.Pp
86c749fda1SSepherosa ZiehauIf the temperature goes above the configured critical temperature threshold
87c749fda1SSepherosa Ziehau(temp_hiwat),
88c749fda1SSepherosa Ziehaua notify event will be sent using
89c749fda1SSepherosa Ziehau.Xr devctl 4 .
9026c04df3SSepherosa Ziehau.Sh HARDWARE
9126c04df3SSepherosa ZiehauThe
9226c04df3SSepherosa Ziehau.Nm
9326c04df3SSepherosa Ziehaudriver supports the following memory thermal sensors:
9426c04df3SSepherosa Ziehau.Pp
9526c04df3SSepherosa Ziehau.Bl -bullet -compact
9626c04df3SSepherosa Ziehau.It
9726c04df3SSepherosa ZiehauIntel E5 v2 memory thermal sensors
98d9902073SSepherosa Ziehau.It
99acbc630dSSepherosa ZiehauIntel E5 v3 memory thermal sensors
100acbc630dSSepherosa Ziehau.It
101d9902073SSepherosa ZiehauIntel E3 v3 memory thermal sensors
102d9902073SSepherosa Ziehau.It
103d9902073SSepherosa ZiehauIntel Core i3/i5/i7 Haswell thermal sensors
10426c04df3SSepherosa Ziehau.El
10526c04df3SSepherosa Ziehau.Sh SEE ALSO
10626c04df3SSepherosa Ziehau.Xr systat 1 ,
10726c04df3SSepherosa Ziehau.Xr sysctl 3 ,
108c749fda1SSepherosa Ziehau.Xr devctl 4 ,
109c749fda1SSepherosa Ziehau.Xr devd 8 ,
11026c04df3SSepherosa Ziehau.Xr sensorsd 8 ,
11126c04df3SSepherosa Ziehau.Xr sysctl 8
11226c04df3SSepherosa Ziehau.Sh HISTORY
11326c04df3SSepherosa ZiehauThe
11426c04df3SSepherosa Ziehau.Nm
11526c04df3SSepherosa Ziehaudriver first appeared in
11626c04df3SSepherosa Ziehau.Dx 4.1 .
11726c04df3SSepherosa Ziehau.Sh AUTHORS
11826c04df3SSepherosa Ziehau.An -nosplit
11926c04df3SSepherosa ZiehauThe
12026c04df3SSepherosa Ziehau.Nm
12126c04df3SSepherosa Ziehaudriver was written by
12226c04df3SSepherosa Ziehau.An Sepherosa Ziehau Aq Mt sepherosa@gmail.com .
123