From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: "Turquette, Mike" <mturquette@ti.com>
Cc: MyungJoo Ham <myungjoo.ham@samsung.com>,
linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
Kyungmin Park <kyungmin.park@samsung.com>,
Kevin Hilman <khilman@ti.com>, mark gross <markgross@thegnar.org>,
myungjoo.ham@gmail.com, Jean Pihet <jean.pihet@newoldbits.com>
Subject: Re: [PATCH v2 RESEND] PM / devfreq: add PM QoS support
Date: Sun, 4 Mar 2012 23:30:33 +0100 [thread overview]
Message-ID: <201203042330.34083.rjw@sisk.pl> (raw)
In-Reply-To: <CAJOA=zNQ_fqVXvRdGjwB+GnQZMRzYO-WuLNZh50BMsj4V=ThyQ@mail.gmail.com>
On Wednesday, February 29, 2012, Turquette, Mike wrote:
> On Wed, Feb 29, 2012 at 1:43 AM, MyungJoo Ham <myungjoo.ham@samsung.com> wrote:
> > + /* Check the sanity of qos_list/qos_type */
> > + if (profile->qos_type || profile->qos_list) {
> > + switch (profile->qos_type) {
> > + case PM_QOS_CPU_DMA_LATENCY:
> > + case PM_QOS_NETWORK_LATENCY:
> > + devfreq->qos_use_max = false;
> > + break;
> > + case PM_QOS_NETWORK_THROUGHPUT:
> > + devfreq->qos_use_max = true;
> > + break;
>
> Hello MyungJoo!
>
> I see that you re-using the same old PM QoS handles in this
> implementation. Do you feel this is the right way to do it? Your
> example of using DMA for multimedia devices (given in the changelog)
> has nothing to do with network throughput, yet that constraint-type is
> used here.
>
> I wonder if a better solution than overloading these classifications exist.
>
> Just to toss around ideas, what about having per-device PM QoS
> throughput constraints which are generalized (e.g., not tied to a
> concept such as "network"). I've Cc'd Jean Pihet (yet again) who has
> some good experience making PM QoS-type interfaces work on a
> per-device basis.
>
> I wonder, ultimately, if instead of feeding QoS constraints into
> devfreq if a better design might be to have devfreq feed input into a
> greater QoS framework. E.g:
>
> A scalable bus used by many devices might have two different device
> drivers that want to call pm_qos_device_tput(...), and also the
> devfreq driver for that bus also calls pm_qos_device_tput(...). So
> essentially there are three points in the code where inputs can be
> driven into one common per-device QoS layer for the generic concept of
> "device throughput". This way devfreq support is not a prerequisite
> for scaling a device in a generic way, but a nice framework for
> devices which can monitor their own activity level, built on top of a
> per-device pm qos layer.
>
> Thoughts?
I agree with the general idea, definitely would prefer it to what is
currently being proposed.
Thanks,
Rafael
next prev parent reply other threads:[~2012-03-04 22:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 7:19 [PATCH] " MyungJoo Ham
2012-02-28 5:46 ` [PATCH v2] " MyungJoo Ham
2012-02-29 9:43 ` [PATCH v2 RESEND] " MyungJoo Ham
2012-02-29 22:19 ` Turquette, Mike
2012-03-04 22:30 ` Rafael J. Wysocki [this message]
2012-03-05 1:09 ` MyungJoo Ham
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=201203042330.34083.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=jean.pihet@newoldbits.com \
--cc=khilman@ti.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=markgross@thegnar.org \
--cc=mturquette@ti.com \
--cc=myungjoo.ham@gmail.com \
--cc=myungjoo.ham@samsung.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
all inboxes | Powered by JetHome®