Re: [Intel-gfx] [PATCH 01/10] PM: QoS: Add CPU_RESPONSE_FREQUENCY global PM QoS limit.

2020-03-11 Thread Francisco Jerez
Peter Zijlstra writes: > On Tue, Mar 10, 2020 at 02:41:54PM -0700, Francisco Jerez wrote: >> +static void cpu_response_frequency_qos_apply(struct pm_qos_request *req, >> + enum pm_qos_req_action action, >> + s32 value

Re: [Intel-gfx] [PATCH 01/10] PM: QoS: Add CPU_RESPONSE_FREQUENCY global PM QoS limit.

2020-03-11 Thread Peter Zijlstra
On Tue, Mar 10, 2020 at 02:41:54PM -0700, Francisco Jerez wrote: > +static void cpu_response_frequency_qos_apply(struct pm_qos_request *req, > + enum pm_qos_req_action action, > + s32 value) > +{ > + int ret = pm_

[Intel-gfx] [PATCH 01/10] PM: QoS: Add CPU_RESPONSE_FREQUENCY global PM QoS limit.

2020-03-10 Thread Francisco Jerez
The purpose of this PM QoS limit is to give device drivers additional control over the latency/energy efficiency trade-off made by the PM subsystem (particularly the CPUFREQ governor). It allows device drivers to set a lower bound on the response latency of PM (defined as the time it takes from wa