mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jonathan Corbet <corbet@lwn.net>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: mgross@linux.intel.com, aili@codeaurora.org,
	dwalker@codeaurora.org, tiwai@suse.de, bruce.w.allan@intel.com,
	davidb@quicinc.com, mcgrof@gmail.com, pavel@ucw.cz,
	linux-pm <linux-pm@lists.linux-foundation.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH]PM QOS refresh against next-20100430
Date: Mon, 3 May 2010 11:10:20 -0600	[thread overview]
Message-ID: <20100503111020.2dab8003@bike.lwn.net> (raw)
In-Reply-To: <87tyqo537l.fsf@deeprootsystems.com>

On Mon, 03 May 2010 10:01:50 -0700
Kevin Hilman <khilman@deeprootsystems.com> wrote:

> > Well, shallow could mean that the state lacks the CPUIDLE_FLAG_DEEP
> > flag; that should be relatively portable.  In any case, it seems
> > more so than "if I put in a 55us latency requirement, I'll stay out
> > of C3".  
> 
> I guess it depends on your goal.  Do you just want to stay out of C3
> on your current platform?  or do you want to stay out of any low-power
> state (on any platform) where you'll have a latency of > 55 usecs?

My case is a camera driver; as long as latencies are on the scale of
the frame rate, things won't go too wrong.  1ms latencies would not be
a huge problem.  What happens is that the hardware corrupts the data if
it goes into C3 while video capture is happening.

Comments in drivers/net/e1000e/netdev.c suggest that they were dealing
with similar issues.

> The former is not portable (as C-states don't have the same meanings
> across arches/SoCs) where as using a real-world number in usecs will
> have meaning on any platform.

Understood.  But the end result is that I've ended up specifying a
latency requirement that is far tighter than the situation really needs
in order to achieve the real goal.

> My main concern is that drivers not be written with latency
> constraints that assume an Intel-centric set of power states.  There
> are other SoCs out there with different sets of states and
> corresponding latencies, so keeping things in real-world numbers
> (latency, throughput, etc.) seems to me to be the only portable way.

Understood.  Perhaps the pm_qos interface isn't the best way to achieve
the real goal here, but it's all we have at the moment.

Thanks,

jon

  reply	other threads:[~2010-05-03 17:10 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 21:20 mark gross
2010-04-30 22:13 ` Rafael J. Wysocki
2010-04-30 23:05   ` mark gross
2010-04-30 23:08     ` Rafael J. Wysocki
2010-05-04 14:30       ` mark gross
2010-05-05 23:59         ` Rafael J. Wysocki
2010-05-03 16:33 ` Jonathan Corbet
2010-05-03 16:40   ` Kevin Hilman
2010-05-03 16:42     ` Jonathan Corbet
2010-05-03 17:01       ` Kevin Hilman
2010-05-03 17:10         ` Jonathan Corbet [this message]
2010-05-03 21:39         ` Matthew Garrett
2010-05-04  4:16       ` Pavel Machek
2010-05-04  4:41   ` [linux-pm] " mark gross
  -- strict thread matches above, loose matches on Subject: below --
2010-04-30 21:17 mark gross

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=20100503111020.2dab8003@bike.lwn.net \
    --to=corbet@lwn.net \
    --cc=aili@codeaurora.org \
    --cc=bruce.w.allan@intel.com \
    --cc=davidb@quicinc.com \
    --cc=dwalker@codeaurora.org \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=mcgrof@gmail.com \
    --cc=mgross@linux.intel.com \
    --cc=pavel@ucw.cz \
    --cc=tiwai@suse.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®