Advanced Configuration and Power Interface

In computing, the Advanced Configuration and Power Interface (ACPI) specification provides an open standard that the operating systems can use for computer hardware discovery, configuration, power management, and monitoring. Internally, ACPI exports the available functionalities by providing certain instruction lists as part of the system firmware, which the operating system kernel interprets and executes to perform desired operations, using a form of embedded virtual machine.

First released in December 1996, ACPI defines platform-independent interfaces for hardware discovery, configuration, power management, and monitoring, and is designed to replace Advanced Power Management (APM), the MultiProcessor Specification, and the Plug and Play BIOS (PnP) Specification.[1] ACPI brings the power management under the control of the operating system, as opposed to the previous BIOS-centric system that relied on platform-specific firmware to determine power management and configuration policies.[2] The specification is central to Operating System-directed configuration and Power Management (OSPM), a system implementing ACPI which removes device management responsibilities from legacy firmware interfaces.

Intel, Microsoft and Toshiba originally developed the standard, while HP and Phoenix also participated later. In October 2013, the original developers of the ACPI standard agreed to transfer all assets to the UEFI Forum, in which all future development will take place.[3] The latest version of the standard is "Revision 6.0", which was published by the UEFI Forum in April 2015.[4]

Architecture

The firmware-level ACPI has three main components: the ACPI tables, the ACPI BIOS, and the ACPI registers. Unlike its predecessors, such as the APM or PnP BIOS, the ACPI implements little of its functionality in the ACPI BIOS code, whose main role is to load the ACPI tables in system memory. Instead, most of the firmware ACPI functionality is provided in ACPI Machine Language (AML) bytecode stored in the ACPI tables. To make use of these tables, the operating system must have an interpreter for the AML bytecode. A reference AML interpreter implementation is provided by the ACPI Component Architecture (ACPICA). At the BIOS development time, AML code is compiled from the ASL (ACPI Source Language) code.[5][6]

As ACPI also replaces PnP BIOS, it also provides a hardware enumerator, mostly implemented in the Differentiated System Description Table (DSDT) ACPI table. The advantage of a bytecode approach is that unlike PnP BIOS code (which was 16-bit), the ACPI bytecode may be used in any operating system, even in 64-bit long mode.[6]

Overall design decision was not without criticism. In November 2003, Linus Torvalds—author of the Linux kernel—described ACPI as "a complete design disaster in every way".[7][8] In 2001, other senior Linux software developers like Alan Cox expressed concerns about the requirements that bytecode from an external source must be run by the kernel with full privileges, as well as the overall complexity of the ACPI specification.[9] In 2014, Mark Shuttleworth, founder of the Ubuntu Linux distribution, compared ACPI with Trojan horses.[10]

ACPI Component Architecture (ACPICA)

The ACPI Component Architecture (ACPICA), mainly written by Intel's engineers, provides an open-source platform-independent reference implementation of the operating systemrelated ACPI code.[11] The ACPICA code is used by Linux, Haiku and FreeBSD,[5] which supplement it with their operating-system specific code.

History

The first revision of the ACPI specification was released in December 1996, supporting 16 and 32-bit addressing spaces. It was not until August 2000 that ACPI received 64-bit address support as well as support for multiprocessor workstations and servers with revision 2.0.

In September 2004, revision 3.0 was released, bringing to the ACPI specification support for SATA controllers, PCI Express bus, multiprocessor support for more than 256 processors, ambient light sensors and user-presence devices, as well as extending the thermal model beyond the previous processor-centric support.

Released in June 2009, revision 4.0 of the ACPI specification added various new features to the design; most notable are the USB 3.0 support, logical processor idling support, and x2APIC support.

Revision 5.0 of the ACPI specification was released in December 2011,[12] followed by the revision 5.1 that was released in July 2014.[13]

The latest specification revision is 6.0, which was released in April 2015.[4]

Operating systems

Microsoft's Windows 98 was the first operating system to implement ACPI,[14][15] but its implementation was somewhat buggy or incomplete,[16][17] although some of the problems associated with it were caused by the first-generation ACPI hardware.[18] Other operating systems, including later versions of Windows, eComStation, FreeBSD, NetBSD, OpenBSD, HP-UX, OpenVMS, Linux, and PC versions of Solaris, have at least some support for ACPI.[19] Some newer operating systems like Windows Vista require ACPI-compliant BIOS to work at all[20]

The 2.4 series of the Linux kernel had only minimal support for ACPI, with better support implemented (and enabled by default) from kernel version 2.6.0 onwards.[21] Old ACPI BIOS implementations tend to be quite buggy, and consequently are not supported by later operating systems. For example, Windows 2000, Windows XP, and Windows Server 2003 only use ACPI if the BIOS date is after January 1, 1999.[22] Similarly, Linux kernel 2.6 blacklisted any ACPI BIOS from before January 1, 2001.[21]

OSPM responsibilities

Once an OSPM-compatible operating system activates ACPI, it takes exclusive control of all aspects of power management and device configuration. The OSPM implementation must expose an ACPI-compatible environment to device drivers, which exposes certain system, device and processor states.

Power states

Global states

The ACPI specification defines the following four global "Gx" states and six sleep "Sx" states for an ACPI-compliant computer-system:[23][24]

The specification also defines a Legacy state: the state on an operating system which does not support ACPI. In this state, the hardware and power are not managed via ACPI, effectively disabling ACPI.

Device states

The device states D0D3 are device dependent:

Processor states

The CPU power states C0C3 are defined as follows:

Performance states

While a device or processor operates (D0 and C0, respectively), it can be in one of several power-performance states. These states are implementation-dependent. Though, P0 is always the highest-performance state; with P1 to Pn being successively lower-performance states, up to an implementation-specific limit of n no greater than 16.[27]

P-states have become known as SpeedStep in Intel processors, as PowerNow! or Cool'n'Quiet in AMD processors, and as PowerSaver in VIA processors.

Hardware interface

ACPI-compliant systems interact with hardware through either a "Function Fixed Hardware (FFH) Interface", or a platform-independent hardware programming model which relies on platform-specific ACPI Machine Language (AML) provided by the original equipment manufacturer (OEM).

Function Fixed Hardware interfaces are platform-specific features, provided by platform manufacturers for the purposes of performance and failure recovery. Standard Intel-based PCs have a fixed function interface defined by Intel,[28] which provides a set of core functionality that reduces an ACPI-compliant system's need for full driver stacks for providing basic functionality during boot time or in the case of major system failure.

ACPI Platform Error Interface (APEI) is a specification for reporting of hardware errors, e.g. from the chipset, to the operating system.

Firmware interface

ACPI defines many tables that provide the interface between an ACPI-compliant operating system, and system firmware. This includes Differentiated System Description Table (DSDT), Secondary System Description Table (SSDT), and Static Resource Affinity Table (SRAT), for example.[29]

The tables allow description of system hardware in a platform-independent manner, and are presented as either fixed-formatted data structures or in AML. The main AML table is the DSDT (differentiated system description table).

The Root System Description Pointer is located in a platform-dependent manner, and describes the rest of the tables.

See also

References

  1. ACPI Overview
  2. "APM BIOS Specification" (RTF). Intel Corporation, Microsoft Corporation. February 1996. Retrieved 2010-07-02.
  3. "The Advanced Configuration & Power Interface web page has a prominent note that links to the Preexisting ACPI Specifications page on the UEFI web site". acpi.org. July 23, 2014. Retrieved 2016-01-25.
  4. 1 2 "Advanced Configuration and Power Interface Specification, Version 6.0" (PDF). UEFI.org. April 2015. Retrieved 2015-05-23.
  5. 1 2 ACPI implementation on FreeBSD - Usenix
  6. 1 2 ACPI in Linux, 2005
  7. Linux Magazine issue 162, May 2014, page 9
  8. Searls, Doc (2003-11-25). "Linus & the Lunatics, Part II". Linux Journal. Retrieved 2010-01-13.
  9. Corbet, Jonathan (2001-07-04). "Kernel Development". LWN.net weekly edition. LWN.net. Retrieved 2010-07-02.
  10. Linux Format n°184, June 2014, page 7.
  11. ACPICA: ACPI Component Architecture
  12. Hewlett-Packard; Intel Corporation; Microsoft; Phoenix Technologies; Toshiba (2011-12-06). "Advanced Configuration and Power Interface Specification (Revision 5.0)" (PDF). acpi.info. Retrieved 2013-11-17.
  13. "Advanced Configuration and Power Interface Specification (Revision 5.1)" (PDF). uefi.org. 2014-07-23. Retrieved 2015-05-24.
  14. "Limitations When Using Microsoft Windows 98 on Compaq Armada Portables" (PDF). physik.hu-berlin.de. October 1998. p. 3. Retrieved 2014-01-27.
  15. "Windows 98 on ThinkPad systems - ThinkPad General". Support.lenovo.com. Retrieved 2014-01-27.
  16. Robert Cowart; Brian Knittel (2000). Using Microsoft Windows 2000 Professional. Que Publishing. p. 30. ISBN 978-0-7897-2125-9.
  17. Windows 98 Does Not Support ACPI Passive Cooling Mode
  18. http://web.archive.org/web/19991013055230/http://winmag.com/library/1998/1201/cov0066.htm
  19. Therien, Guy (2000-01-06). "ACPI 2.0 Specification Technical Review, Intel Developer Forum" (PPT). Intel Corporation. Archived from the original on 21 July 2011. Retrieved 2011-08-21.
  20. Marshall, Allen. "ACPI in Windows Vista" (PPT). Microsoft Corporation. Retrieved 2010-07-02.
  21. 1 2 The State of ACPI in the Linux Kernel
  22. ACPI BIOS
  23. ACPI Spec Rev 5.0 - dated December 6, 2011
  24. Anand Lal Shimpi (2012-10-05). "Intel's Haswell Architecture Analyzed". AnandTech. Retrieved 2013-10-20.
  25. Wasson, Scott (2005-02-21). "Intel's Pentium 4 600 series processors". The Tech Report. p. 2.
  26. "Processor Package and Core C-States". AnandTech. 2013-06-09. Retrieved 2013-10-20.
  27. "Advanced Configuration and Power Interface Specification, Revision 3.0, Section 2.6 Device and Processor Performance State Definitions" (PDF). ACPI.info. 2004-09-02. p. 23. Retrieved 2015-08-19.
  28. Intel Corporation (September 2006). "Intel Processor Vendor-Specific ACPI" (PDF). Archived from the original (PDF) on 2012-12-25. Retrieved 2014-10-05.
  29. Brown, Len (2005-07-20). "ACPI in Linux". Ottawa Linux Symposium: 3. CiteSeerX: 10.1.1.173.2206.

External links

This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.

This article is issued from Wikipedia - version of the Friday, January 29, 2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.