Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-26 Thread Artem Bityutskiy
Thanks for answer Rafael, it looks like there are 2 different things now. 1. What kernel returns when I _read_ e_p_p file - truth or "cached" ? 2. How kernel behaves when I _write_ to e_p_p file something it cannot provide - error or success. For #1, I think we need to keep it simple and always

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Rafael J. Wysocki
On Tue, Aug 25, 2020 at 5:27 PM Srinivas Pandruvada wrote: > > On Tue, 2020-08-25 at 17:14 +0200, Rafael J. Wysocki wrote: > > On Tue, Aug 25, 2020 at 5:06 PM Srinivas Pandruvada > > wrote: > > > On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > > > > On Tue, Aug 25, 2020 at 8:20 AM A

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Srinivas Pandruvada
On Tue, 2020-08-25 at 17:14 +0200, Rafael J. Wysocki wrote: > On Tue, Aug 25, 2020 at 5:06 PM Srinivas Pandruvada > wrote: > > On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > > > On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy < > > > dedeki...@gmail.com > > > > wrote: > > > > On Mo

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Rafael J. Wysocki
On Tue, Aug 25, 2020 at 5:06 PM Srinivas Pandruvada wrote: > > On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > > On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy > > wrote: > > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > > > From: "Rafael J. Wysocki" > > > > >

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Srinivas Pandruvada
On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy > wrote: > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > > From: "Rafael J. Wysocki" > > > > > > Make the energy_performance_preference policy attribute in sysfs > >

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Rafael J. Wysocki
On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy wrote: > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > From: "Rafael J. Wysocki" > > > > Make the energy_performance_preference policy attribute in sysfs > > always return the last EPP value written to it instead of the one > >

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-24 Thread Artem Bityutskiy
On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > From: "Rafael J. Wysocki" > > Make the energy_performance_preference policy attribute in sysfs > always return the last EPP value written to it instead of the one > currently in the HWP Request MSR to avoid possible confusion when > th

[PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-24 Thread Rafael J. Wysocki
From: "Rafael J. Wysocki" Make the energy_performance_preference policy attribute in sysfs always return the last EPP value written to it instead of the one currently in the HWP Request MSR to avoid possible confusion when the performance scaling algorithm is used in the active mode with HWP enab