From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759698Ab0EDPNQ (ORCPT ); Tue, 4 May 2010 11:13:16 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:35248 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754303Ab0EDPNP (ORCPT ); Tue, 4 May 2010 11:13:15 -0400 To: Matthew Garrett Cc: "Rafael J. Wysocki" , Mark Brown , Arve =?iso-8859-1?Q?Hj=F8nnev=E5g?= , linux-pm@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Alan Stern , Tejun Heo , Oleg Nesterov , Paul Walmsley , magnus.damm@gmail.com, mark gross , Arjan van de Ven , Geoff Smith Subject: Re: [PATCH 0/8] Suspend block api (version 6) References: <1272667021-21312-1-git-send-email-arve@android.com> <87wrvl5479.fsf@deeprootsystems.com> <20100503180741.GB2098@rakim.wolfsonmicro.main> <201005032318.35383.rjw@sisk.pl> <87sk68r1zh.fsf@deeprootsystems.com> <20100504004338.GA22678@srcf.ucam.org> From: Kevin Hilman Organization: Deep Root Systems, LLC Date: Tue, 04 May 2010 08:13:09 -0700 In-Reply-To: <20100504004338.GA22678@srcf.ucam.org> (Matthew Garrett's message of "Tue\, 4 May 2010 01\:43\:38 +0100") Message-ID: <878w7zog3e.fsf@deeprootsystems.com> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Matthew Garrett writes: > On Mon, May 03, 2010 at 04:37:22PM -0700, Kevin Hilman wrote: > >> Please forgive the ignorance of ACPI (in embedded, we thankfully live >> in magical world without ACPI) but doesn't that already happen with >> CPUidle and C-states? I think of CPUidle as basically runtime PM for >> the CPU. IOW, runtime PM manages the devices, CPUidle manages the CPU >> (via C-states), resulting in dynaimc PM for the entire system. What >> am I missing? > > ACPI doesn't provide any functionality for cutting power to most > devices other than shifting into full system suspend. The number of > wakeup events available to us on a given machine is usually small > and the wakeup latency large, so it's not terribly practical to do > this transparently on most hardware. OK, that's a major difference with embedded SoCs where the kernel must directly manage the power state of all devices using runtime PM. So basically, on ACPI systems, runtime PM doesn't get you any power savings for most devices. Kevin