From: Thara Gopinath <thara.gopinath@linaro.org>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: "linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Kevin Hilman <khilman@baylibre.com>
Subject: Re: [PATCH 1/2] PM / Domains: Add time accounting to various genpd states.
Date: Tue, 13 Jun 2017 08:44:44 -0400 [thread overview]
Message-ID: <593FDE3C.1090408@linaro.org> (raw)
In-Reply-To: <CAPDyKFq9xDLP0_o4z0jQMtzA9rxTZT4Ns_BrmqPeMbNUr8suwQ@mail.gmail.com>
On 06/13/2017 04:11 AM, Ulf Hansson wrote:
> [...]
>
>>> Isn't the off_time the summary of the states' genpd->states[i].active_time?
>>
>> Yes. it is.
>>>
>>> Then we could do that computation quite easily at the point when
>>> producing the debugfs output instead.
>>
>> Are yu suggesting doing away with off_time parameter all together. It is
>> possible.
>
> Yes, I think that makes sense.
>
>>>
>>>> + }
>>>> + genpd->accounting_time = now;
>>>> +}
>>>> +
>
> [...]
>
>>>>
>>>> @@ -774,6 +795,7 @@ static void genpd_sync_power_off(struct generic_pm_domain *genpd, bool use_lock,
>>>> if (_genpd_power_off(genpd, false))
>>>> return;
>>>>
>>>> + genpd_update_accounting(genpd);
>>>
>>> Timekeeping gets disabled at a certain point during suspend. Therefore
>>> you can't update accounting here, as this function gets called in this
>>> stages.
>>
>> I will remove the update of accounting at this point. But then the
>> statistics can be skewed for some power domains atleast. Other option
>> is to restart the accounting every time after device suspend and resume.
>
> I would suggest to start simple and just avoid updating the accounting
> in these cases. Then we can look into improvements, if we think there
> is a need for it.
>
> What do you think?
I do agree. Will post the updated series.
Regards
Thara
>
> [...]
>
> Kind regards
> Uffe
>
--
Regards
Thara
next prev parent reply other threads:[~2017-06-13 12:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-25 23:51 [PATCH 0/2] PM / Domains: Expand generic power domain debugfs Thara Gopinath
2017-05-25 23:51 ` [PATCH 1/2] PM / Domains: Add time accounting to various genpd states Thara Gopinath
2017-06-07 13:28 ` Ulf Hansson
2017-06-12 18:51 ` Thara Gopinath
2017-06-13 8:11 ` Ulf Hansson
2017-06-13 12:44 ` Thara Gopinath [this message]
2017-06-13 20:17 ` Thara Gopinath
2017-06-14 9:18 ` Ulf Hansson
2017-06-14 21:01 ` Thara Gopinath
2017-05-25 23:51 ` [PATCH 2/2] PM / Domains: Extend generic power domain debugfs Thara Gopinath
2017-05-29 15:12 ` Geert Uytterhoeven
2017-06-07 19:15 ` Thara Gopinath
2017-06-07 13:51 ` Ulf Hansson
2017-06-12 18:51 ` Thara Gopinath
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=593FDE3C.1090408@linaro.org \
--to=thara.gopinath@linaro.org \
--cc=khilman@baylibre.com \
--cc=linux-pm@vger.kernel.org \
--cc=ulf.hansson@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).