Received: by 10.223.176.5 with SMTP id f5csp487111wra; Wed, 7 Feb 2018 02:38:29 -0800 (PST) X-Google-Smtp-Source: AH8x226dHRtTLn+CYN92LtUvecbICI2QXmFq5mWIDdDj5mUkOINRnQgJ3+q9Tcar0uLldLqI7o+3 X-Received: by 2002:a17:902:24a2:: with SMTP id w31-v6mr5558791pla.262.1517999909329; Wed, 07 Feb 2018 02:38:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517999909; cv=none; d=google.com; s=arc-20160816; b=RHqSCLOm1ubTMm+RBYmIsYpRPB1BNqMizisPGglnf+gPCDoBwSLrIJODGqaIa2XATv OewMJHPCe+OUiSjHao4+CvP2OV265oYz3DnG5ES1icmqR29Ov7l6IZuYeicte/m73zT5 JmYqtZ+a0xk0A+9eerbXRXFx0uZelGoB/I7bGgge3XViYJmi6Dki/7B3td2Q21QrVDu9 4ISKZS5czOl5ebCQEiNdIjK6Lt8ltUcxJNRVyzRONZtKKZ/rNdZYLZN7KUfqz4XrPyQc tyrCZYXW6j4JE9ox29qg2LIHxl9TEfLV0mV5PMPQ0Azk48DkRpBTXatzmmz9qjNxPbzR EREA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=I2WpRb1oP7REZunZljEnkIcWKc3bheNFUWvHnwkfLL4=; b=Gmi/VgWrkG5l2IWJfcFc9LgAqiNvhl2rJ/DMU6pkYoehzsWbhWcSSIf0LzvKHv2zXT B8lN/IS24T6B1d1fcUs23Jwc0f/B+CHHa2JF/EPdmB0nT/BRqQLcU92c1vfuRhfAy0A/ 7htrKKZFKdjjN8zRhg4OT2ypEJW0cK0vyz3ui6yCZPxpGIux3LD2XzC3mU3r2NFC//NA so/Sw/CPn21ynUYL3ipn197+rArECRLzhSP0mkMJPdI2bxz9QzgMtbdWvcEY2tlL+Y4I vKDIagdYgr77Y6F4wHnVT8ifqlAAxkhRPcT2cUMXLZNMQmaR33jY2bmtxyqMevHADiv+ vMLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sb+IWXW+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b21si929080pfn.195.2018.02.07.02.38.14; Wed, 07 Feb 2018 02:38:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=sb+IWXW+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753764AbeBGKgS (ORCPT + 99 others); Wed, 7 Feb 2018 05:36:18 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:38486 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753470AbeBGKgQ (ORCPT ); Wed, 7 Feb 2018 05:36:16 -0500 Received: by mail-ot0-f194.google.com with SMTP id h14so354734otj.5; Wed, 07 Feb 2018 02:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=I2WpRb1oP7REZunZljEnkIcWKc3bheNFUWvHnwkfLL4=; b=sb+IWXW+iXOKwpHCXwW3se4++W0hI7OgGfNmojdnNI3LeLsKx50qYJCrFtA/7sE2Ew zGXoJ9e1MfYMhrlg79EwjFZF3IliDxxs+kSVrSE8YXlLLS3O3O4MIbzsxo3LFP6ecTZR 15rRCNTLvQt87hYGvb+2fLq7wM7mo7JxxDsUKUE3cuWfFHLDjDaS/39PKV5uylzbCFVs TB+NM1pkVmKZNG1n9VXb/94gLyp3PXDLK3/1pqpnk5HvKJN9jbRZ6GxxEc3jckgBUFEG EP8ok+CyCbJjdQirVGoD6H5azcaowEqMMmysqrSjYev1CBhBTXN3sUnUzi2cakwgewzp Usvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=I2WpRb1oP7REZunZljEnkIcWKc3bheNFUWvHnwkfLL4=; b=aw1NWRwdC1Syb5xkkVgwlDwuVQmU+REjr7HmdyAWnmkYlexn/dxe2JmpOQTFpm9l/K LQBmmF3nXfsW18nSJriu7dOJa6wwtzOY0GOMK9pHU4urHyFBcbwVjE/Mb38BwHUjUpZt j7+xSprJaTPl1k68cNA9Z09OVxUpz9Fn4isljyUfTyr7Y4RrMhpQBx801OmfMKzeTAaR uoUHdG1t8duyIC05W7Gh4IY4vxjFXD8fhUS0iAuPxrSHIlCYfzOYry9mw/9La3UK8iTi BUaRK1mMHmO0OiasCAPQOZuBOyAd0WufmqOtN2EE/RALIet18MHd01XgKbpZlz/r4I5a KZGA== X-Gm-Message-State: APf1xPCMCwGwS1+JZAYYh74QFb1HtUqKjyE0Mh+Bgn4sEIFhPko9Rl6/ 0o9tylbHF+St9Qui3+H9QT6RV1pyjjK5ZsxTY0BX4Q== X-Received: by 10.157.12.215 with SMTP id o23mr4241807otd.322.1517999775647; Wed, 07 Feb 2018 02:36:15 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.46.234 with HTTP; Wed, 7 Feb 2018 02:36:15 -0800 (PST) In-Reply-To: <20180206191955.GA19222@mordor.localdomain> References: <20180206191955.GA19222@mordor.localdomain> From: "Rafael J. Wysocki" Date: Wed, 7 Feb 2018 11:36:15 +0100 X-Google-Sender-Auth: RSf6947RWYnu0PIcCvJQzrsIUPE Message-ID: Subject: Re: [PATCH v4] Documentation/ABI: update cpuidle sysfs documentation To: Aishwarya Pant Cc: "Rafael J. Wysocki" , Daniel Lezcano , Linux PM , Linux Kernel Mailing List , Jonathan Corbet , Greg KH , Julia Lawall Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 6, 2018 at 8:19 PM, Aishwarya Pant wrote: > Update cpuidle documentation using git logs and existing documentation > in Documentation/cpuidle/sysfs.txt. This might be useful for scripting > and tracking changes in the ABI. > > Signed-off-by: Aishwarya Pant > --- > Changes in v4: > - Fix patch formatting > v3: > - Fix subject line > v2: > - Merge cpuidle_sysfs_switch attributes' description with the previous > entry. > > Documentation/ABI/testing/sysfs-devices-system-cpu | 77 +++++++++++++++++++++- > 1 file changed, 75 insertions(+), 2 deletions(-) > > diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu b/Documentation/ABI/testing/sysfs-devices-system-cpu > index bfd29bc8d37a..e9ee67f80933 100644 > --- a/Documentation/ABI/testing/sysfs-devices-system-cpu > +++ b/Documentation/ABI/testing/sysfs-devices-system-cpu > @@ -108,6 +108,8 @@ Description: CPU topology files that describe a logical CPU's relationship > > What: /sys/devices/system/cpu/cpuidle/current_driver > /sys/devices/system/cpu/cpuidle/current_governer_ro > + /sys/devices/system/cpu/cpuidle/available_governors > + /sys/devices/system/cpu/cpuidle/current_governor > Date: September 2007 > Contact: Linux kernel mailing list > Description: Discover cpuidle policy and mechanism > @@ -119,13 +121,84 @@ Description: Discover cpuidle policy and mechanism > Idle policy (governor) is differentiated from idle mechanism > (driver) > > - current_driver: displays current idle mechanism > + current_driver: (RO) displays current idle mechanism > > - current_governor_ro: displays current idle policy > + current_governor_ro: (RO) displays current idle policy > + > + With the cpuidle_sysfs_switch boot option enabled (meant for > + developer testing), the following three attributes are visible > + instead: > + > + current_driver: same as described above > + > + available_governors: (RO) displays a space separated list of > + available governors > + > + current_governor: (RW) displays current idle policy. Users can > + switch the governor at runtime by writing to this file. > > See files in Documentation/cpuidle/ for more information. > > > +What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/name > + /sys/devices/system/cpu/cpuX/cpuidle/stateN/latency > + /sys/devices/system/cpu/cpuX/cpuidle/stateN/power > + /sys/devices/system/cpu/cpuX/cpuidle/stateN/time > + /sys/devices/system/cpu/cpuX/cpuidle/stateN/usage > +Date: September 2007 > +KernelVersion: v2.6.24 > +Contact: Linux kernel mailing list Please replace "Linux kernel mailing list " with "Linux power management list " here and below. > +Description: > + The directory /sys/devices/system/cpu/cpuX/cpuidle contains per > + logical CPU specific cpuidle information for each online cpu X. > + The processor idle states which are available for use have the > + following attributes: > + > + name: (RO) Name of the idle state (string). > + > + latency: (RO) The latency to exit out of this idle state (in > + microseconds). > + > + power: (RO) The power consumed while in this idle state (in > + milliwatts). > + > + time: (RO) The total time spent in this idle state (in microseconds). > + > + usage: (RO) Number of times this state was entered (a count). > + > + > +What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/desc > +Date: February 2008 > +KernelVersion: v2.6.25 > +Contact: Linux kernel mailing list > +Description: > + (RO) A small description about the idle state (string). > + > + > +What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/disable > +Date: March 2012 > +KernelVersion: v3.10 > +Contact: Linux kernel mailing list > +Description: > + (RW) Option to disable this idle state (bool). The behavior and > + the effect of the disable variable depends on the implementation > + of a particular governor. In the ladder governor, for example, > + it is not coherent, i.e. if one is disabling a light state, then > + all deeper states are disabled as well, but the disable variable > + does not reflect it. Likewise, if one enables a deep state but a > + lighter state still is disabled, then this has no effect. > + > + > +What: /sys/devices/system/cpu/cpuX/cpuidle/stateN/residency > +Date: March 2014 > +KernelVersion: v3.15 > +Contact: Linux kernel mailing list > +Description: > + (RO) Display the target residency i.e. the minimum amount of > + time (in microseconds) this cpu should spend in this idle state > + to make the transition worth the effort. > + > + > What: /sys/devices/system/cpu/cpu#/cpufreq/* > Date: pre-git history > Contact: linux-pm@vger.kernel.org > -- > 2.16.1 >