All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Pavel Machek <pavel@ucw.cz>, Kevin Hilman <khilman@kernel.org>,
	"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
	Len Brown <len.brown@intel.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Lina Iyer <lina.iyer@linaro.org>,
	Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Subject: Re: [PATCH 1/2] PM / Domains: Don't measure ->start|stop() latency in system PM callbacks
Date: Thu, 22 Oct 2015 01:47:12 +0200	[thread overview]
Message-ID: <3805270.x8nYq75MCT@vostro.rjw.lan> (raw)
In-Reply-To: <CAPDyKFp=qjqOY2w8ftNLWDWEG3V1MC7G9VQDwMcsQ8P-swDdow@mail.gmail.com>

On Wednesday, October 21, 2015 02:47:12 PM Ulf Hansson wrote:
> On 21 October 2015 at 12:31, Pavel Machek <pavel@ucw.cz> wrote:
> > On Thu 2015-10-15 17:02:06, Ulf Hansson wrote:
> >> Measure latency does by itself contribute to an increased latency, thus we
> >> should avoid it when it isn't needed.
> >>
> >> Genpd measures latencies in the system PM phase for the ->start|stop()
> >> callbacks and is thus affecting the system PM suspend/resume time.
> >> Moreover these latencies are validated only at runtime PM suspend/resume.
> >>
> >> To this reasoning, let's decide to leave these measurements out of the
> >> system PM phase. There should be plenty of occasions during runtime PM to
> >> perform these measurements anyway.
> >
> > How much latency does the latency measure cause? Something like 0.000
> > msec?
> 
> Me and Lina did some measurement by hand a couple of weeks ago. If I
> remember correctly the results where in the range of a couple of us. I
> will check again and update you with some refreshed data.
> 
> For system PM the time saved might be negligible, depending on the
> number of devices that are attached to a genpd and on what level you
> try to optimize things for.
> 
> Perhaps this change then becomes more of a policy decision, rather
> than an a noticeable improvement. I certainly think dealing with
> device PM QoS constraints should belong to runtime PM and I think it's
> wrong/useless to do deal with this during system PM.

Right.  It should be used for runtime PM only.

Thanks,
Rafael


  reply	other threads:[~2015-10-21 23:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-15 15:02 [PATCH 1/2] PM / Domains: Don't measure ->start|stop() latency in system PM callbacks Ulf Hansson
2015-10-15 20:39 ` Lina Iyer
2015-10-21 10:31 ` Pavel Machek
2015-10-21 12:47   ` Ulf Hansson
2015-10-21 23:47     ` Rafael J. Wysocki [this message]
2015-10-23 18:48 ` Kevin Hilman

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=3805270.x8nYq75MCT@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=geert+renesas@glider.be \
    --cc=k.kozlowski.k@gmail.com \
    --cc=khilman@kernel.org \
    --cc=len.brown@intel.com \
    --cc=lina.iyer@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.