Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1408535
| From | "Rafael J. Wysocki" <rafael@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency |
| Date | 2016-05-29 02:50 +0200 |
| Message-ID | <rDX5v-7vn-3@gated-at.bofh.it> (permalink) |
| References | <rCTGF-Bd-1@gated-at.bofh.it> <rCTGG-Bd-7@gated-at.bofh.it> <rCXKh-3nN-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, May 26, 2016 at 9:16 AM, Viresh Kumar <viresh.kumar@linaro.org> wrote: > On 25-05-16, 19:53, Steve Muckle wrote: >> The slow-path frequency transition path is relatively expensive as it >> requires waking up a thread to do work. Should support be added for >> remote CPU cpufreq updates that is also expensive since it requires an >> IPI. These activities should be avoided if they are not necessary. >> >> To that end, calculate the actual driver-supported frequency required by >> the new utilization value in schedutil by using the recently added >> cpufreq_driver_resolve_freq callback. If it is the same as the >> previously requested driver frequency then there is no need to continue >> with the update assuming the cpu frequency limits have not changed. This >> will have additional benefits should the semantics of the rate limit be >> changed to apply solely to frequency transitions rather than to >> frequency calculations in schedutil. [cut] > I also have a doubt (I am quite sure Rafael will have a reason for > that, which I am failing to understand now), on why we are doing > next_freq == UINT_MAX in sugov_should_update_freq(). > > I understand that because the limits might have changed, > need_freq_update would have been set to true. We should evaluate > next-freq again without worrying about the load or the time since last > evaluation. This is in response to the "limits" event (or to the ->limits call after my recent patches). That event basically means "something has changed, so if you have cached anything, invalidate it" to the governor. Accordingly, it invalidates next_freq, because that's a cached value. > But what will happen by forcefully calling the cpufreq routines to > change the frequency, if next_freq hasn't changed even after limits > updates? I can't really parse the above question, so I'm not going to try to answer it. :-) > Wouldn't that call always return early because the new freq > and the current freq are going to be same ? > > @Rafael: Sorry for asking this so late :( It is not too late. If there's a problem somewhere, it needs to be fixed, but at this point I have no idea what you are asking about.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/3] cpufreq: avoid redundant driver calls in schedutil Steve Muckle <steve.muckle@linaro.org> - 2016-05-26 05:00 +0200
[PATCH v2 1/3] cpufreq: add resolve_freq driver callback Steve Muckle <steve.muckle@linaro.org> - 2016-05-26 05:00 +0200
Re: [PATCH v2 1/3] cpufreq: add resolve_freq driver callback Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-26 08:30 +0200
Re: [PATCH v2 1/3] cpufreq: add resolve_freq driver callback Steve Muckle <steve.muckle@linaro.org> - 2016-05-30 17:40 +0200
Re: [PATCH v2 1/3] cpufreq: add resolve_freq driver callback Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-31 07:40 +0200
[PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback Steve Muckle <steve.muckle@linaro.org> - 2016-05-26 05:00 +0200
Re: [PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-26 08:50 +0200
Re: [PATCH v2 2/3] cpufreq: acpi-cpufreq: add resolve_freq callback Steve Muckle <steve.muckle@linaro.org> - 2016-05-30 18:30 +0200
[PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Steve Muckle <steve.muckle@linaro.org> - 2016-05-26 05:00 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-26 09:20 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency "Rafael J. Wysocki" <rafael@kernel.org> - 2016-05-29 02:50 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-30 12:20 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency "Rafael J. Wysocki" <rafael@kernel.org> - 2016-05-30 16:30 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Viresh Kumar <viresh.kumar@linaro.org> - 2016-05-30 17:40 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency "Rafael J. Wysocki" <rafael@kernel.org> - 2016-05-30 21:10 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Wanpeng Li <kernellwp@gmail.com> - 2016-05-31 03:50 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Steve Muckle <steve.muckle@linaro.org> - 2016-05-30 18:40 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Wanpeng Li <kernellwp@gmail.com> - 2016-05-27 07:50 +0200
Re: [PATCH v2 3/3] cpufreq: schedutil: map raw required frequency to driver frequency Steve Muckle <steve.muckle@linaro.org> - 2016-05-30 18:50 +0200
csiph-web