Embedded Linux Technologies: More Power to you

xiaoxiao2021-03-06  79

By Bill Weinberg, Technologist, Montavista Software Inc.

To differentiate products in a crowded and competitive marketplace, manufacturers of handheld devices highlight battery life and power management as key selling points for their wares - cellphones, PDAs, multimedia players, games and other portable consumer devices While users perceive results of power management in. terms of battery life, it is really a combination of CPU capabilities, system software, middleware and policy that allows users to enjoy their gadgets for more time between charges or battery changes. This article offers insight into the interaction among these elements. In particular, it focuses on trends around embedded Linux and the dynamic power management (DPM) architectures being specified and soon deployed by MontaVista Software, IBM, TI, Intel and others, including members of consortia like the Consumer Electronics Linux Forum. Power management scopeAnyone who owns a Notebook Computer Will Perceive That Their Portable Device Behaves Differently When Running on Batt ery vs. on AC main power -. the screen dims, the processor clock slows and the system drifts off to standby or to sleep whenever possible PDA owners will also contend with screens dimming and devices sleeping after a quiescent period, and cellphone users will have noted extinguish that after dialing, backlight and key-lights. Behind these visible behaviors are a mix of hardware and software technology and policy. Gross behaviors like full throttle, standby and sleep leverage native CPU capabilities to reduce operational voltage and / or clock frequency to Save Power.

What most device users do not perceive is that rather than just wholesale changes among system-wide states, actual power management can also be incremental and can occur hundreds of times a second. Any DPM strategy begins with scaling the operating voltage and frequency of one or more processor cores present in a portable device -. high integration PowerPC, ARM and x86-based systems often feature a DSP or intelligent base band processor Indeed, CPUs such as the Intel StrongARM and XScale, TI OMAP processor family, the recently announced IBM PowerPC 405LP and the Transmeta Crusoe, offer dynamic scaling of core voltage and frequency Modern embedded processors are so power-efficient that the CPU is not always the major energy-consumer -. other energy hogs can include high-performance memories, color displays and radio interfaces ........................................................................................................................................................................................................................................................................................................... . Seful dynamic power management scheme will support rapid scaling of a variety of voltages and clocks, in concert with or independently of the CPU core operation Architecture Coming from the universe of "white box" PCs and notebooks are two existing schemes for power management: the legacy advanced power management scheme and advanced configuration power interface (ACPI). Systems like ACPI are preferred for commercial off-the-shelf hardware like PCs, notebooks, servers and blades for communications equipment, but present strong dependencies on the prevailing x86 / IA- 32 BIOS Architecture.

Embedded systems usually have no BIOS (in the PC / AT sense) and typically do not have the luxury of machine abstractions to insulate the OS from low-level device and power management activities. In embedded Linux, as in other OS that target battery- powered applications, power management activities require specific intervention on the part of the OS kernel and device drivers. It is important to note, however, that while low-level implementation of dynamic power management is resident in the OS kernel, power management strategies and policies can emanate from middleware and user-application code. Ideally, a power management system would be almost completely transparent to as many levels of the software stack as possible. Indeed, this was the path followed by Transmeta in its Crusoe architecture and has been the goal Of existing bios-based power management schemes., wepene ipation is required across the system, as follows: Kernel interfaces:. In the DPM architecture for Linux, the DPM subsystem within the kernel maintains the power state of the system and ties together the various power-managed elements of a DPM system Relatively few, if any, other parts of the kernel need to interact with the DPM directly DPM is best thought of as a service provider to drivers, middleware and applications Driver interfaces:... DPM-enabled device drivers are more "stateful" than default drivers They .

.? Driver APIs also allow drivers to register the basic operational characteristic of the devices they interface / manage for finer-grained policy decisions User-program APIs: User programs (applications) will fall into one of three categories: Power management aware; Legacy? applications in power management-aware wrappers;?. Legacy applications with no power management Power-management aware applications can leverage the APIs available from a policy manager to establish their base constraints and / or to force changes in power management policy to match their execution requirements . Legacy applications without explicit power management capabilities can be "wrapped" in code and / or patch to achieve comparable effects, but can also be left to run with default behaviors, dependent upon default policy management of a wider scope. Real-time impact Until Recently, Scaling CPU Voltage and frequency presented significt challenges to real-time Performance. The instability Introducesd by Changes i n either parameter and the accompanying time needed to "relock" PLLs and other dynamic clock mechanisms, introduced long latencies (sometimes many milliseconds) during which the CPU could neither perform compute operations nor respond to outside events (interrupts). Modern embedded processors can scale frequencies with latencies measured in a handful of microseconds, and respond to changing voltages with a latency measured in tens of microseconds, all without interrupting system operations, allowing for more aggressive and fine-grained policies. for example, voltage and frequency can be reduced between Frames of mpeg video or ip-based voice packets.

转载请注明原文地址:https://www.9cbs.com/read-120693.html

New Post(0)