xref: /freebsd/share/man/man4/man4.powerpc/smu.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
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.Dd February 22, 2010
27904460b9SNathan Whitehorn.Dt SMU 4
28904460b9SNathan Whitehorn.Os
29904460b9SNathan Whitehorn.Sh NAME
30904460b9SNathan Whitehorn.Nm smu
31904460b9SNathan Whitehorn.Nd Apple System Management Unit Driver
32904460b9SNathan Whitehorn.Sh SYNOPSIS
33904460b9SNathan WhitehornTo compile this driver into the kernel,
34904460b9SNathan Whitehornplace the following lines in your
35904460b9SNathan Whitehornkernel configuration file:
36904460b9SNathan Whitehorn.Bd -ragged -offset indent
37904460b9SNathan Whitehorn.Cd "device smu"
38904460b9SNathan Whitehorn.Ed
39904460b9SNathan Whitehorn.Sh DESCRIPTION
40904460b9SNathan WhitehornThe
41904460b9SNathan Whitehorn.Nm
4234f19b54SNathan Whitehorndriver provides support for the System Management Unit (SMU) found in many
43904460b9SNathan WhitehornApple G5 systems.
44904460b9SNathan WhitehornThis includes most Power Macintosh G5 and all iMac G5 systems.
45904460b9SNathan Whitehorn.Pp
46904460b9SNathan WhitehornThe Apple SMU controller provides software power management and thermal
47904460b9SNathan Whitehorncontrol functionality, and is responsible for managing system cooling
48904460b9SNathan Whitehorndevices.
49904460b9SNathan Whitehorn.Sh HARDWARE
50904460b9SNathan WhitehornChips supported by the
51904460b9SNathan Whitehorn.Nm
52904460b9SNathan Whitehorndriver include:
53904460b9SNathan Whitehorn.Pp
54904460b9SNathan Whitehorn.Bl -bullet -compact
55904460b9SNathan Whitehorn.It
56904460b9SNathan WhitehornApple System Management Unit
57904460b9SNathan Whitehorn.El
58904460b9SNathan Whitehorn.Sh THERMAL MANAGEMENT
59904460b9SNathan WhitehornThe
60904460b9SNathan Whitehorn.Nm
61*812b0903SGordon Berglingdriver provides basic automatic thermal management.
62*812b0903SGordon BerglingWithout a userspace daemon providing more advanced control, the driver will
63*812b0903SGordon Berglingattempt to maintain system temperatures in a conservative range through
64*812b0903SGordon Berglingcoarse-grained control of system cooling devices (see below).
65*812b0903SGordon BerglingAutomatic kernel-level thermal control will take over if more than 3
66*812b0903SGordon Berglingseconds elapses between userspace cooling setting adjustments.
67904460b9SNathan Whitehorn.Sh SYSCTL VARIABLES
68904460b9SNathan WhitehornThe
69904460b9SNathan Whitehorn.Nm
70904460b9SNathan Whitehorndriver provides power management services and thermal readout through a
71904460b9SNathan Whitehornsysctl interface.
72*812b0903SGordon BerglingThe following sysctls can be used to control the power management behavior
73*812b0903SGordon Berglingand to examine current system power and thermal conditions.
74904460b9SNathan Whitehorn.Bl -tag -width indent
75823d02a0SNathan Whitehorn.It Va dev.smu.%d.server_mode
76823d02a0SNathan WhitehornRestart after power failure behavior (1 causes system to reboot after power
77823d02a0SNathan Whitehorncut, 0 causes system to remain off).
78904460b9SNathan Whitehorn.It Va dev.smu.%d.target_temp
79*812b0903SGordon BerglingTarget system temperature, in degrees Celsius.
80*812b0903SGordon BerglingThe
81904460b9SNathan Whitehorn.Nm
82904460b9SNathan Whitehorndriver will attempt to adjust fans to maintain the temperature of the
83904460b9SNathan Whitehornwarmest component in the system at or below this level.
84904460b9SNathan Whitehorn.It Va dev.smu.%d.critical_temp
85*812b0903SGordon BerglingSystem critical temperature, in degrees Celsius.
86*812b0903SGordon BerglingIf any component in the system exceeds this temperature, the machine
87*812b0903SGordon Berglingwill be shut down within 500 ms.
88904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.minrpm
89904460b9SNathan WhitehornMinimum allowed speed for this fan.
90904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.maxrpm
91904460b9SNathan WhitehornMaximum allowed speed for this fan.
92904460b9SNathan Whitehorn.It Va dev.smu.%d.fans.%s.rpm
93*812b0903SGordon BerglingCurrent speed for this fan.
94*812b0903SGordon BerglingThe fan speed can be adjusted by changing this sysctl.
95*812b0903SGordon BerglingIf more than 3 seconds elapses between fan speed adjustments, the kernel will
96*812b0903SGordon Berglingresume automatic control of the fan.
97904460b9SNathan Whitehorn.It Va dev.smu.%d.sensors.%s
98*812b0903SGordon BerglingCurrent reading from this sensor.
99*812b0903SGordon BerglingFour sensor types are supported.
100*812b0903SGordon BerglingTemperature sensors are in units of degrees Celsius, current sensors in
101*812b0903SGordon Berglingmilliamps, voltage sensors in millivolts, and power sensors in milliwatts.
102904460b9SNathan Whitehorn.El
103904460b9SNathan Whitehorn.Sh LED INTERFACE
104904460b9SNathan WhitehornThe
105904460b9SNathan Whitehorn.Nm
106904460b9SNathan Whitehorndriver provides an
107904460b9SNathan Whitehorn.Xr led 4
108904460b9SNathan Whitehornannunciator interface at
109904460b9SNathan Whitehorn.Pa /dev/led/sleepled .
110904460b9SNathan Whitehorn.Sh SEE ALSO
111904460b9SNathan Whitehorn.Xr acpi 4 ,
112923544aaSBaptiste Daroussin.Xr led 4 ,
113923544aaSBaptiste Daroussin.Xr pmu 4
114904460b9SNathan Whitehorn.Sh HISTORY
115904460b9SNathan WhitehornThe
116904460b9SNathan Whitehorn.Nm
117904460b9SNathan Whitehorndevice driver appeared in
11834f19b54SNathan Whitehorn.Fx 8.0 .
119904460b9SNathan Whitehorn.Sh AUTHORS
120904460b9SNathan Whitehorn.An -nosplit
121904460b9SNathan WhitehornThe
122904460b9SNathan Whitehorn.Nm
123904460b9SNathan Whitehorndriver was written by
1246c899950SBaptiste Daroussin.An Nathan Whitehorn Aq Mt nwhitehorn@FreeBSD.org .
125