freebsd-dev/share/man/man4/acpi.4

286 lines
6.5 KiB
Groff
Raw Normal View History

.\"
.\" Copyright (c) 2001 Michael Smith
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd July 2, 2001
.Dt ACPI 4
.Os
.Sh NAME
.Nm acpi
.Nd Advanced Configuration and Power Management support
.Sh SYNOPSIS
.Cd device acpica
.Pp
.Cd options ACPI_DEBUG
.Sh DESCRIPTION
The
.Nm
driver provides support for the Intel/Microsoft/Compaq/Toshiba ACPI
standard.
This support includes platform hardware discovery (superseding the
PnP and PCI BIOS), as well as power management (superseding APM) and
other features.
ACPI core support is provided by the ACPI CA reference implementation
from Intel.
.Sh ENVIRONMENT
This support is still experimental, and thus there are many debugging
and tuning options which are managed via the kernel environment
2001-07-06 08:10:59 +00:00
space, and set in the
.Xr loader 8
before booting the kernel.
.Pp
Debugging is separated between layers and levels, where a layer is
a portion of the ACPI subsystem, and a level is a particular kind
of debugging output.
.Pp
Both layers and levels are specified as a whitespace-separated list of
tokens, with layers listed in
.Va debug.acpi.layer
and levels in
.Va debug.acpi.level .
The supported layers are:
2001-07-06 08:10:59 +00:00
.Pp
.Bl -item -offset indent -compact
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_UTILITIES
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_HARDWARE
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_EVENTS
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_TABLES
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_NAMESPACE
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_PARSER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_DISPATCHER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_EXECUTER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_RESOURCES
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_POWER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_BUS
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_POWER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_EC
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_PROCESSOR
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_AC_ADAPTER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_BATTERY
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_BUTTON
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_SYSTEM
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_THERMAL
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_DEBUGGER
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_OS_SERVICES
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_ALL_COMPONENTS
.El
2001-07-06 08:10:59 +00:00
.Pp
The supported levels are:
2001-07-06 08:10:59 +00:00
.Pp
.Bl -item -offset indent -compact
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_OK
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_INFO
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_WARN
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_ERROR
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_FATAL
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_DEBUG_OBJECT
.It
2001-07-06 08:10:59 +00:00
.Li ACPI_ALL
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_THREADS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_PARSE
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_DISPATCH
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_LOAD
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_EXEC
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_NAMES
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_OPREGION
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_BFIELD
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_TRASH
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_TABLES
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_FUNCTIONS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_VALUES
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_OBJECTS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_ALLOCATIONS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_RESOURCES
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_IO
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_INTERRUPTS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_USER_REQUESTS
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_PACKAGE
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_MUTEX
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_INIT
.It
2001-07-06 08:10:59 +00:00
.Li TRACE_ALL
.It
2001-07-06 08:10:59 +00:00
.Li VERBOSE_AML_DISASSEMBLE
.It
2001-07-06 08:10:59 +00:00
.Li VERBOSE_INFO
.It
2001-07-06 08:10:59 +00:00
.Li VERBOSE_TABLES
.It
2001-07-06 08:10:59 +00:00
.Li VERBOSE_EVENTS
.It
2001-07-06 08:10:59 +00:00
.Li VERBOSE_ALL
.El
.Pp
Selection of the appropriate layer and level values is important
to avoid massive amounts of debugging output.
Check the code to see which you need.
.Pp
Debugging output by the ACPI CA subsystem is prefixed with the
module name in lowercase, followed by a source line number.
2001-07-06 08:10:59 +00:00
Output from the
.Fx Ns -local
code follows the same format, but
the module name is uppercased.
.Pp
The
.Nm
driver comprises a set of drivers, which may be selectively disabled
in case of problems.
To disable a sub-driver, list it in the kernel
environment variable
.Va debug.acpi.disable .
.Pp
ACPI sub-devices and features that can be disabled:
.Bl -tag -width processor
2001-07-06 08:10:59 +00:00
.It Li bus
.Pq Vt feature
Probes and attaches subdevices.
Disabling will avoid scanning the ACPI namespace entirely.
2001-07-06 08:10:59 +00:00
.It Li children
.Pq Vt feature
Attaches standard ACPI sub-drivers and devices enumerated in the
ACPI namespace.
Disabling this has a similar effect to disabling
2001-07-06 08:10:59 +00:00
.Dq Li bus ,
except that the
ACPI namespace will still be scanned.
2001-07-06 08:10:59 +00:00
.It Li button
.Pq Vt device
Supports ACPI button devices (typically power and sleep buttons).
2001-07-06 08:10:59 +00:00
.It Li ec
.Pq Vt device
Supports the ACPI Embedded Controller interface, used to
communicate with embedded platform controllers.
2001-07-06 08:10:59 +00:00
.It Li isa
.Pq Vt device
Supports an ISA bus bridge defined in the ACPI namespace,
typically as a child of a PCI bus.
2001-07-06 08:10:59 +00:00
.It Li lid
.Pq Vt device
Supports an ACPI laptop lid switch, which typically puts a
system to sleep.
2001-07-06 08:10:59 +00:00
.It Li pci
.Pq Vt device
Supports Host to PCI bridges.
2001-07-06 08:10:59 +00:00
.It Li processor
.Pq Vt device
Supports CPU power-saving and speed-setting functions.
2001-07-06 08:10:59 +00:00
.It Li thermal
.Pq Vt device
Supports system cooling and heat management.
2001-07-06 08:10:59 +00:00
.It Li timer
.Pq Vt device
Implements a timecounter using the ACPI fixed-frequency timer.
.El
.Pp
It is also possible to avoid portions of the ACPI namespace which
may be causing problems, by listing the full path of the root of
the region to be avoided in the kernel environment variable
.Va debug.acpi.avoid .
The object and all of its children will be ignored during the
2001-07-06 08:10:59 +00:00
bus/children scan of the namespace.
The ACPI CA code will still
know about the avoided region.
.Sh COMPATIBILITY
ACPI is only found/supported on Intel platforms (i386/IA32 and IA64).
.Sh SEE ALSO
.Xr config 8 ,
.Xr acpi 9
2001-07-06 08:10:59 +00:00
.Sh AUTHORS
.An -nosplit
The ACPI CA subsystem is developed and maintained by
Intel Architecture Labs.
.Pp
The following people made notable contributions to the ACPI subsystem
in
.Fx :
2001-07-06 08:10:59 +00:00
.An Michael Smith Aq msmith@FreeBSD.org ,
.An Takanori Watanabe Aq takawata@jp.FreeBSD.org ,
.An Mitsuru IWASAKI Aq iwasaki@jp.FreeBSD.org ,
.An Munehiro Matsuda ,
the ACPI-jp mailing list at
2001-07-06 08:10:59 +00:00
.Aq acpi-jp@jp.FreeBSD.org ,
and many other contributors.
.Pp
This manual page was written by
2001-07-06 08:10:59 +00:00
.An Michael Smith Aq msmith@FreeBSD.org .
.Sh BUGS
The kernel device is
.Cd device acpica
2001-07-06 08:10:59 +00:00
for historical reasons.
It will change to
.Cd device acpi
at some time in the future.