public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ai Li" <aili@codeaurora.org>
To: mgross@linux.intel.com
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: adding handles to pm_qos?
Date: Tue, 27 Oct 2009 18:37:58 -0600	[thread overview]
Message-ID: <000301ca5766$e671f870$b355e950$@org> (raw)
In-Reply-To: <20091023225304.GA32562@linux.intel.com>

> How often are you calling pm_qos_update_requirement?
> 
> I think calling pm_qos_ interfaces too often makes me wonder
> about my
> assumptions and your sanity.
> 
> Can you explain why the pm_qos_update_requirement is getting hit
> often
> enough to bother with this change?
> 
> Other than that I don't have a problem with moving to handles,
> if its a
> practical change made for reasons other than making api abuse
> less
> painful.
> 
> Further, If the implicit assumption that pmqos calls are on cold
> paths
> is wrong, then perhaps more thought is needed than just changing
> things
> to handle based searches.
> 

Our embedded platforms support different low power modes.  With the
modes, the deeper the sleep, the more the power savings, and the
larger the interrupt latency coming out of the low power mode.

To help the platform achieving greatest power savings, some of our
device drivers set lateny qos only when there is a service request to
the driver or a device transaction.  When the transaction or request
is done, the drivers cancel the QoS with
pm_qos_update_requirement(PM_QOS_DEFAULT_VALUE), allowing the
platform to reach a deeper sleep.  

The approach gives us good power savings.  However when there are
lots of transactions, pm_qos_update_requirement() gets called a lot
of times.

~Ai

  reply	other threads:[~2009-10-28  0:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14 17:24 adding handles to pm_qos? Ai Li
2009-10-23 22:53 ` mgross
2009-10-28  0:37   ` Ai Li [this message]
2009-10-30 14:56     ` mgross
2009-10-31  1:53       ` Ai Li
2009-11-03 20:29         ` mgross
2009-11-18  1:06           ` Ai Li
2009-11-27 17:23             ` 640E9920

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='000301ca5766$e671f870$b355e950$@org' \
    --to=aili@codeaurora.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=mgross@linux.intel.com \
    /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