public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla@arm.com>
To: Prashanth Prakash <pprakash@codeaurora.org>, linux-acpi@vger.kernel.org
Cc: Sudeep Holla <sudeep.holla@arm.com>,
	rjw@rjwysocki.net, lorenzo.pieralisi@arm.com, lenb@kernel.org
Subject: Re: [PATCH v3] ACPI / Processor: add sysfs support for low power idle
Date: Wed, 8 Nov 2017 14:18:43 +0000	[thread overview]
Message-ID: <0569bb96-bd27-6c01-eb3c-5e4e1d868b2a@arm.com> (raw)
In-Reply-To: <1508437188-14463-1-git-send-email-pprakash@codeaurora.org>

Hi,


On 19/10/17 19:19, Prashanth Prakash wrote:
> Add support to expose idle statistics maintained by platform to
> userspace via sysfs in addition to other data of interest from
> each LPI(Low Power Idle) state.
> 
> LPI described in section 8.4.4 of ACPI spec 6.1 provides different
> methods to obtain idle statistics maintained by the platform. These
> show a granular view of how each of the LPI state is being used at
> different level of hierarchy. sysfs data is exposed at each level in
> the hierarchy by creating a directory named 'lpi' at each level and
> the LPI state information is presented under it. Below is the
> representation of LPI information at one such level in the hierarchy
> 
> .../ACPI00XX: XX/lpi
> 	|-> state0
> 	|	|-> state_name
> 	|	|-> residency
> 	|	|-> usage
> 	|	|-> wakeup_latency
> 	|	|-> min_residency
> 	|	|-> state_index
> 	|	|-> enabled_parent_state
> 	|
> 	<<more states>>
> 
> ACPI00XX can be ACPI0007(processor) or ACPI0010(processor container)
> 
> stateX contains information related to a specific LPI state defined
> in the LPI ACPI tables.
> 
> Signed-off-by: Prashanth Prakash <pprakash@codeaurora.org>
> ---


> v3
> * Changed sysfs names to follow spec names (Rafael)
> * Added enabled_parent_state(Rafael) and state_index to sysfs entries
>   state_index was added to make sense of enabled_parent_state
> 
> Couldn't find a clean way to expose the hierarchical LPI information under
> cpuidle
> 
> v2
> * Add Documentation/ABI/testing/sysfs-acpi-lpi
> 
> v1
> * Drop flags, arch_flags and summary_stats field (Sudeep)
> * Create sysfs entries after we know that LPI will be used (Sudeep & Rafael)
> 

I still prefer this as debugfs and not as sysfs ABI. We already have
issues with multiple interfaces for the same thing. E.g. cpufreq on x86.
I don't want this to end up in the same way after few years. CPUIdle
sysfs should be only sysfs ABI for these, adding an alternative is
inviting troubles for future especially if some user-space starts using
it and we will be stuck with that. Moreover with more h/w controlled
idle we may not provide accurate data sooner.

Sorry for the noise, I will shup up now ;). Since this may be last
chance to make some noise, I am trying it. I completely understand that
this is just my opinion and am fine if others thinks it's good to make
this sysfs ABI.

-- 
Regards,
Sudeep

  parent reply	other threads:[~2017-11-08 14:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-19 18:19 [PATCH v3] ACPI / Processor: add sysfs support for low power idle Prashanth Prakash
2017-11-06 21:49 ` Prakash, Prashanth
2017-11-08 14:18 ` Sudeep Holla [this message]
2017-11-15 15:33   ` Timur Tabi
2017-11-15 17:22     ` Rafael J. Wysocki
2017-11-15 17:24       ` Rafael J. Wysocki
2017-11-15 18:14     ` Sudeep Holla
2017-11-15 18:37       ` Rafael J. Wysocki
2017-11-15 20:21         ` Prakash, Prashanth
2017-11-16 14:52         ` Sudeep Holla
2017-11-16 17:50           ` Prakash, Prashanth
2017-11-16 23:34             ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0569bb96-bd27-6c01-eb3c-5e4e1d868b2a@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=pprakash@codeaurora.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox