From: MyungJoo Ham <myungjoo.ham@samsung.com>
To: Lukasz Luba <lukasz.luba@arm.com>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>
Cc: Chanwoo Choi <cw00.choi@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>
Subject: RE: Re: [PATCH] devfreq: do not ignore errors during store min, max frequency
Date: Thu, 27 Apr 2017 23:41:23 +0000 [thread overview]
Message-ID: <20170427234123epcms1p42e47c19e54fbcc3e766ebd2594da6709@epcms1p4> (raw)
In-Reply-To: <f02c5605-be71-79da-a33d-75e2d041029b@arm.com>
> >
> > ...
> >
> >> + ret = devfreq_get_freq_level(df, value);
> >> + if (ret < 0) {
> >> + dev_warn(dev, "Storing min freq failed with (%d) error\n", ret);
> >> + goto unlock;
> >> + }
> >> +
> >
> > This is not good.
> >
> > For a device that supports [ 100, 400, 800, 1000 ] MHz,
> > saying "min = 200 Mhz" or "max = 600 MHz" shouldn't be prohibited.
> >
> > Those functions are to express lower bound and upper bound, not to
> > designate the exact operating frequencies.
>
> Would it be possible to convince you to store a
> 'posible/valid frequency' (from OPP) in that value?
> Governors (like simpleondemand) and drivers use it with the flags.
> It would be useful for thermal subsystem. It could have the max/min for
> the devfreq device.
>
> I could prepare a patch which sets the freq from OPP respecting
> rounding up/down based on 'devfreq_recommended_opp()'.
>
> Regards,
> Lukasz
Before talking about implementation detail,
what's the benefit of what you are suggesting?
What's the scenario that you cannot do with the current system
while you can do with what you suggest?
Why do you need rounded (OPP-enabled) max/min values?
Why unrounded (lower/upper limits) max/min values cannot do what you want?
Cheers,
MyungJoo
ps. I'll be away from the network for about 10 days after few hours.
next prev parent reply other threads:[~2017-04-27 23:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170427082416epcas3p3b9aeb23978707b164b4d4a46156d1216@epcms1p5>
2017-04-27 8:23 ` [PATCH] devfreq: do not ignore errors during store min, max frequency Lukasz Luba
2017-04-27 8:30 ` MyungJoo Ham
2017-04-27 11:04 ` Lukasz Luba
2017-04-27 23:41 ` MyungJoo Ham [this message]
2017-05-03 9:24 ` Lukasz Luba
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=20170427234123epcms1p42e47c19e54fbcc3e766ebd2594da6709@epcms1p4 \
--to=myungjoo.ham@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.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