From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Lucas Stach <l.stach@pengutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>, Pavel Machek <pavel@ucw.cz>,
linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org,
patchwork-lst@pengutronix.de
Subject: Re: [PATCH 2/2] PM / Runtime: use deferrable timer for autosuspend
Date: Tue, 19 Jan 2016 01:28:38 +0100 [thread overview]
Message-ID: <4212628.DRPQ7ihXsj@vostro.rjw.lan> (raw)
In-Reply-To: <1452619040-27137-2-git-send-email-l.stach@pengutronix.de>
On Tuesday, January 12, 2016 06:17:20 PM Lucas Stach wrote:
> The timeouts used in PM autosuspend are relatively coarse (the shortest
> I could find in a quick search through the kernel is 50ms). As they are
> already handled relaxed by saving the overhead of always rearming the
> timer by opportunistically suspending a device a bit early, it should
> not matter if the the timeout is missed slightly.
>
> By using a deferrable timer the CPU will not be woken just to handle
> the autosuspend timeout, but handling will be batched with other
> wakeups in the system.
On some platforms this may increase energy consumption.
Say you have a deep platform-wide idle state (say it is called "C10").
Say this state can only be entered by the platform if device X has
been suspended. The driver for X has an autosuspend delay of 50 ms,
but the platform can stay up to 0.5s in idle on the average.
Say the last CPU core goes idle and asks for "C10", but X hasn't been
suspended yet, so the platform enters a shallower idle state and
with this change applied it stays in that state for up to 0.5s, but
otherwise it would have been woken up by the X driver's autosuspend
timer and might be able to enter "C10" earlier.
So, I'm not really liking this change that much.
Thanks,
Rafael
next prev parent reply other threads:[~2016-01-19 0:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-12 17:17 [PATCH 1/2] timer: add setup_deferrable_timer macro Lucas Stach
2016-01-12 17:17 ` [PATCH 2/2] PM / Runtime: use deferrable timer for autosuspend Lucas Stach
2016-01-13 19:02 ` Pavel Machek
2016-01-19 0:28 ` Rafael J. Wysocki [this message]
2016-01-26 17:23 ` [PATCH 1/2] timer: add setup_deferrable_timer macro Thomas Gleixner
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=4212628.DRPQ7ihXsj@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=l.stach@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=patchwork-lst@pengutronix.de \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
/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
all inboxes | Powered by JetHome®