From: Leonard Crestez <leonard.crestez@nxp.com>
To: Chanwoo Choi <cw00.choi@samsung.com>,
Viresh Kumar <viresh.kumar@linaro.org>,
Saravana Kannan <saravanak@google.com>
Cc: "MyungJoo Ham" <myungjoo.ham@samsung.com>,
"Kyungmin Park" <kyungmin.park@samsung.com>,
"Artur Świgoń" <a.swigon@partner.samsung.com>,
"Krzysztof Kozlowski" <krzk@kernel.org>,
"Alexandre Bailon" <abailon@baylibre.com>,
"Georgi Djakov" <georgi.djakov@linaro.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
"Lukasz Luba" <l.luba@partner.samsung.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"cpgs (cpgs@samsung.com)" <cpgs@samsung.com>
Subject: Re: [PATCHv2] PM / devfreq: Add dev_pm_qos support
Date: Tue, 13 Aug 2019 11:27:28 +0000 [thread overview]
Message-ID: <VI1PR04MB7023EB13BB2DE94814B38477EED20@VI1PR04MB7023.eurprd04.prod.outlook.com> (raw)
In-Reply-To: b3941b19-f0aa-87a6-d50a-299d07a26532@samsung.com
On 13.08.2019 09:10, Chanwoo Choi wrote:
> In case of cpufreq, cpufreq.c replace the body of store_min_freq()
> and store_max_freq() by using struct dev_pm_qos_request instancce
> with dev_pm_qos_update_request().
>
> If you use the new way with dev_pm_qos_update_request() for
> min_freq_store() and max_freq_store(), it doesn't need to
> get the final frequency from three candidate frequencies.
Yes, I saw that but didn't implement the equivalent for devfreq because
it's not clear what there is to gain.
Since dev_pm_qos is measured in khz it means that min_freq/max_req on
sysfq would lose 3 significant digits, however those digits are probably
useless anyway.
> In result, We only consider the following two candidate frequencies
> as following:
> 1. "devfreq->scaling_min_freq" will contain the requirement
> from devfreq thermal throttling by OPP interface.
It's a bit awkward that the OPPs enable/disable API is not obviously
specific to "thermal".
> 2. "devfreq->min_freq" will contain the requirements
> from both user input through sysfs and the dev_pm_qos_request.
According to a comment on a previous version it would be useful to have
a separate files for "constraint min/max freq" and "user min/max freq":
https://patchwork.kernel.org/patch/11078475/#22805379
Combining min/max requests from dev_pm_qos and sysfs would make this
harder to implement. I guess user_min_freq could be implemented by
reading back the dev_pm_qos request but there would be no way to
implement a qos_min_freq entry.
>> +static int devfreq_qos_min_notifier_call(struct notifier_block *nb, unsigned long val, void *ptr)
>
> Please keep the under 80 line if there are no any special reason.
OK, will check.
next prev parent reply other threads:[~2019-08-13 11:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20190808143919epcas4p33c93a5a3d4df1032fa84ddad9110a160@epcas4p3.samsung.com>
2019-08-08 14:39 ` [PATCHv2] PM / devfreq: Add dev_pm_qos support Leonard Crestez
2019-08-13 6:14 ` Chanwoo Choi
2019-08-13 11:27 ` Leonard Crestez [this message]
2019-08-14 1:06 ` Chanwoo Choi
2019-08-14 1:17 ` Chanwoo Choi
2019-08-20 15:26 ` Leonard Crestez
2019-08-21 1:20 ` Chanwoo Choi
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=VI1PR04MB7023EB13BB2DE94814B38477EED20@VI1PR04MB7023.eurprd04.prod.outlook.com \
--to=leonard.crestez@nxp.com \
--cc=a.swigon@partner.samsung.com \
--cc=abailon@baylibre.com \
--cc=cpgs@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=georgi.djakov@linaro.org \
--cc=krzk@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=l.luba@partner.samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=rjw@rjwysocki.net \
--cc=saravanak@google.com \
--cc=viresh.kumar@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).