All of lore.kernel.org
 help / color / mirror / Atom feed
From: mark gross <640e9920@gmail.com>
To: Jonathan Corbet <corbet@lwn.net>
Cc: mgross@linux.intel.com, davidb@quicinc.com,
	dwalker@codeaurora.org, bruce.w.allan@intel.com,
	lkml <linux-kernel@vger.kernel.org>,
	tiwai@suse.de, mcgrof@gmail.com,
	linux-pm <linux-pm@lists.linux-foundation.org>
Subject: Re: [linux-pm] [PATCH]PM QOS refresh against next-20100430
Date: Mon, 3 May 2010 21:41:51 -0700	[thread overview]
Message-ID: <20100504044151.GB3043@thegnar.org> (raw)
In-Reply-To: <20100503103300.6330e522@bike.lwn.net>

On Mon, May 03, 2010 at 10:33:00AM -0600, Jonathan Corbet wrote:
> On Fri, 30 Apr 2010 14:20:43 -0700
> mark gross <mgross@linux.intel.com> wrote:
> 
> > This patch changes the string based list management to a handle base
> > implementation to help with the hot path use of pm-qos
> 
> Having taken a quick look, I think the API change makes a lot of
> sense.  Hot paths are one thing; avoidance of accidental conflicts
> would be another.

Conflicts? say more please.
 
> One question, though...  one clear use of this API is for drivers to
> say "don't go into C3 or deeper because things go wrong"; I'm about to
> add another one of those.  It works, but the use of a
> PM_QOS_CPU_DMA_LATENCY requirement with a hard-coded number that one
> hopes is small enough seems a bit...indirect.  I wonder if it would be
> clearer and more robust to add a new requirement^Wrequest type saying
> "the quality of service I need is shallow sleeps only"?

Well, adding such an api to cpuidle could do this for you.  "shallow" is
hard to define, but one could do what google did and define a
cpu_wake_lock type of API to block entry into any low power halt/mwait
type of state.  i.e. shallow would be C0, or just halt in idle.

If such a thing fits a "hotpath" API extention to pm_qos basically
implementing a low overhead disable lowpower behavior without having to
walk the pm_qos lists to get an agrigate value.  But, if such an api
belongs in cpu_idle thats fine too, as the only user of such and API
really is devices (like spi devices hangining of a clock that goes down
in the deeper idle states) wanting to block low power idle states, so be
it.

--mgross

> 
> jon
> _______________________________________________
> linux-pm mailing list
> linux-pm@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/linux-pm

      parent reply	other threads:[~2010-05-04  4:41 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 21:20 [PATCH]PM QOS refresh against next-20100430 mark gross
2010-04-30 22:13 ` Rafael J. Wysocki
2010-04-30 23:05   ` mark gross
2010-04-30 23:05   ` mark gross
2010-04-30 23:08     ` Rafael J. Wysocki
2010-05-04 14:30       ` mark gross
2010-05-04 14:30       ` mark gross
2010-05-05 23:59         ` Rafael J. Wysocki
2010-05-05 23:59         ` Rafael J. Wysocki
2010-04-30 23:08     ` Rafael J. Wysocki
2010-04-30 22:13 ` Rafael J. Wysocki
2010-05-03 16:33 ` Jonathan Corbet
2010-05-03 16:33 ` Jonathan Corbet
2010-05-03 16:40   ` Kevin Hilman
2010-05-03 16:40   ` Kevin Hilman
2010-05-03 16:42     ` Jonathan Corbet
2010-05-03 16:42     ` Jonathan Corbet
2010-05-03 17:01       ` Kevin Hilman
2010-05-03 17:01       ` Kevin Hilman
2010-05-03 17:10         ` Jonathan Corbet
2010-05-03 17:10         ` Jonathan Corbet
2010-05-03 21:39         ` Matthew Garrett
2010-05-03 21:39         ` Matthew Garrett
2010-05-04  4:16       ` Pavel Machek
2010-05-04  4:16       ` Pavel Machek
2010-05-04  4:41   ` mark gross
2010-05-04  4:41   ` mark gross [this message]

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=20100504044151.GB3043@thegnar.org \
    --to=640e9920@gmail.com \
    --cc=bruce.w.allan@intel.com \
    --cc=corbet@lwn.net \
    --cc=davidb@quicinc.com \
    --cc=dwalker@codeaurora.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=markgross@thegnar.org \
    --cc=mcgrof@gmail.com \
    --cc=mgross@linux.intel.com \
    --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 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.