xref: /freebsd/share/man/man4/man4.powerpc/smu.4 (revision 812b09037daa73a977753d6ee88e6f0dad35acb2)
1904460b9SNathan Whitehorn.\"-
2904460b9SNathan Whitehorn.\" Copyright (c) 2010 Nathan Whitehorn <nwhitehorn@FreeBSD.org>
3904460b9SNathan Whitehorn.\" All rights reserved.
4904460b9SNathan Whitehorn.\"
5904460b9SNathan Whitehorn.\" Redistribution and use in source and binary forms, with or without
6904460b9SNathan Whitehorn.\" modification, are permitted provided that the following conditions
7904460b9SNathan Whitehorn.\" are met:
8904460b9SNathan Whitehorn.\" 1. Redistributions of source code must retain the above copyright
9904460b9SNathan Whitehorn.\"    notice, this list of conditions and the following disclaimer.
10904460b9SNathan Whitehorn.\" 2. Redistributions in binary form must reproduce the above copyright
11904460b9SNathan Whitehorn.\"    notice, this list of conditions and the following disclaimer in the
12904460b9SNathan Whitehorn.\"    documentation and/or other materials provided with the distribution.
13904460b9SNathan Whitehorn.\"
14904460b9SNathan Whitehorn.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15904460b9SNathan Whitehorn.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16904460b9SNathan Whitehorn.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17904460b9SNathan Whitehorn.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
18904460b9SNathan Whitehorn.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19904460b9SNathan Whitehorn.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20904460b9SNathan Whitehorn.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21904460b9SNathan Whitehorn.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
22904460b9SNathan Whitehorn.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23904460b9SNathan Whitehorn.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24904460b9SNathan Whitehorn.\" POSSIBILITY OF SUCH DAMAGE.
25904460b9SNathan Whitehorn.\"
26904460b9SNathan Whitehorn.\" $FreeBSD$
27904460b9SNathan Whitehorn.\"
28904460b9SNathan Whitehorn.Dd February 22, 2010
29904460b9SNathan Whitehorn.Dt SMU 4
30904460b9SNathan Whitehorn.Os
31904460b9SNathan Whitehorn.Sh NAME
32904460b9SNathan Whitehorn.Nm smu
33904460b9SNathan Whitehorn.Nd Apple System Management Unit Driver
34904460b9SNathan Whitehorn.Sh SYNOPSIS
35904460b9SNathan WhitehornTo compile this driver into the kernel,
36904460b9SNathan Whitehornplace the following lines in your
37904460b9SNathan Whitehornkernel configuration file:
38904460b9SNathan Whitehorn.Bd -ragged -offset indent
39904460b9SNathan Whitehorn.Cd "device smu"
40904460b9SNathan Whitehorn.Ed
41904460b9SNathan Whitehorn.Sh DESCRIPTION
42904460b9SNathan WhitehornThe
43904460b9SNathan Whitehorn.Nm
4434f19b54SNathan Whitehorndriver provides support for the System Management Unit (SMU) found in many
45904460b9SNathan WhitehornApple G5 systems.
46904460b9SNathan WhitehornThis includes most Power Macintosh G5 and all iMac G5 systems.
47904460b9SNathan Whitehorn.Pp
48904460b9SNathan WhitehornThe Apple SMU controller provides software power management and thermal
49904460b9SNathan Whitehorncontrol functionality, and is responsible for managing system cooling
50904460b9SNathan Whitehorndevices.
51904460b9SNathan Whitehorn.Sh HARDWARE
52904460b9SNathan WhitehornChips supported by the
53904460b9SNathan Whitehorn.Nm
54904460b9SNathan Whitehorndriver include:
55904460b9SNathan Whitehorn.Pp
56904460b9SNathan Whitehorn.Bl -bullet -compact
57904460b9SNathan Whitehorn.It
58904460b9SNathan WhitehornApple System Management Unit
59904460b9SNathan Whitehorn.El
60904460b9SNathan Whitehorn.Sh THERMAL MANAGEMENT
61904460b9SNathan WhitehornThe
62904460b9SNathan Whitehorn.Nm
63*812b0903SGordon Berglingdriver provides basic automatic thermal management.
64*812b0903SGordon BerglingWithout a userspace daemon providing more advanced control, the driver will
65*812b0903SGordon Berglingattempt to maintain system temperatures in a conservative range through
66*812b0903SGordon Berglingcoarse-grained control of system cooling devices (see below).
67*812b0903SGordon BerglingAutomatic kernel-level thermal control will take over if more than 3
68*812b0903SGordon Berglingseconds elapses between userspace cooling setting adjustments.
69904460b9SNathan Whitehorn.Sh SYSCTL VARIABLES
70904460b9SNathan WhitehornThe
71904460b9SNathan Whitehorn.Nm
72904460b9SNathan Whitehorndriver provides power management services and thermal readout through a
73904460b9SNathan Whitehornsysctl interface.
74*812b0903SGordon BerglingThe following sysctls can be used to control the power management behavior
75*812b0903SGordon Berglingand to examine current system power and thermal conditions.
76904460b9SNathan Whitehorn.Bl -tag -width indent
77823d02a0SNathan Whitehorn.It Va dev.smu.%d.server_mode
78823d02a0SNathan WhitehornRestart after power failure behavior (1 causes system to reboot after power
79823d02a0SNathan Whitehorncut, 0 causes system to remain off).
80904460b9SNathan Whitehorn.It Va dev.smu.%d.target_temp
81*812b0903SGordon BerglingTarget system temperature, in degrees Celsius.
82*812b0903SGordon BerglingThe
83904460b9SNathan Whitehorn.Nm
84904460b9SNathan Whitehorndriver will attempt to adjust fans to maintain the temperature of the
85904460b9SNathan Whitehornwarmest component in the system at or below this level.
86904460b9SNathan Whitehorn.It Va dev.smu.%d.critical_temp
87*812b0903SGordon BerglingSystem critical temperature, in degrees Celsius.
88*812b0903SGordon BerglingIf any component in the system exceeds this temperature, the machine
89*812b0903SGordon Berglingwill be shut down within 500 ms.
90904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.minrpm
91904460b9SNathan WhitehornMinimum allowed speed for this fan.
92904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.maxrpm
93904460b9SNathan WhitehornMaximum allowed speed for this fan.
94904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.rpm
95*812b0903SGordon BerglingCurrent speed for this fan.
96*812b0903SGordon BerglingThe fan speed can be adjusted by changing this sysctl.
97*812b0903SGordon BerglingIf more than 3 seconds elapses between fan speed adjustments, the kernel will
98*812b0903SGordon Berglingresume automatic control of the fan.
99904460b9SNathan Whitehorn.It Va dev.smu.%d.sensors.%s
100*812b0903SGordon BerglingCurrent reading from this sensor.
101*812b0903SGordon BerglingFour sensor types are supported.
102*812b0903SGordon BerglingTemperature sensors are in units of degrees Celsius, current sensors in
103*812b0903SGordon Berglingmilliamps, voltage sensors in millivolts, and power sensors in milliwatts.
104904460b9SNathan Whitehorn.El
105904460b9SNathan Whitehorn.Sh LED INTERFACE
106904460b9SNathan WhitehornThe
107904460b9SNathan Whitehorn.Nm
108904460b9SNathan Whitehorndriver provides an
109904460b9SNathan Whitehorn.Xr led 4
110904460b9SNathan Whitehornannunciator interface at
111904460b9SNathan Whitehorn.Pa /dev/led/sleepled .
112904460b9SNathan Whitehorn.Sh SEE ALSO
113904460b9SNathan Whitehorn.Xr acpi 4 ,
114923544aaSBaptiste Daroussin.Xr led 4 ,
115923544aaSBaptiste Daroussin.Xr pmu 4
116904460b9SNathan Whitehorn.Sh HISTORY
117904460b9SNathan WhitehornThe
118904460b9SNathan Whitehorn.Nm
119904460b9SNathan Whitehorndevice driver appeared in
12034f19b54SNathan Whitehorn.Fx 8.0 .
121904460b9SNathan Whitehorn.Sh AUTHORS
122904460b9SNathan Whitehorn.An -nosplit
123904460b9SNathan WhitehornThe
124904460b9SNathan Whitehorn.Nm
125904460b9SNathan Whitehorndriver was written by
1266c899950SBaptiste Daroussin.An Nathan Whitehorn Aq Mt nwhitehorn@FreeBSD.org .
127