Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-14 Thread Abhishek
Hi Rafael, Thanks for the Review. Few inline replies below. On 04/09/2019 03:31 PM, Rafael J. Wysocki wrote: On Fri, Apr 5, 2019 at 11:17 AM Abhishek Goel wrote: Currently, the cpuidle governors (menu /ladder) determine what idle state There are three governors in 5.1-rc. an idling CPU

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-09 Thread Rafael J. Wysocki
On Fri, Apr 5, 2019 at 11:17 AM Abhishek Goel wrote: > > Currently, the cpuidle governors (menu /ladder) determine what idle state There are three governors in 5.1-rc. > an idling CPU should enter into based on heuristics that depend on the > idle history on that CPU. Given that no predictive

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-09 Thread Abhishek
On 04/09/2019 03:00 PM, Rafael J. Wysocki wrote: On Tue, Apr 9, 2019 at 11:29 AM Abhishek wrote: Hi Daniel, Thanks for such a descriptive review. I will include all the suggestions made in my next iteration. Please give me some time to send comments before that. Sure, I will wait for your

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-09 Thread Abhishek
Hi Daniel, On 04/08/2019 07:55 PM, Daniel Axtens wrote: Hi, Sorry, just realised another thing I wanted to ask: @@ -442,6 +442,26 @@ static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, } } +#ifdef CPUIDLE_FLAG_AUTO_PROMOTION Why is this

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-09 Thread Rafael J. Wysocki
On Tue, Apr 9, 2019 at 11:29 AM Abhishek wrote: > > Hi Daniel, > > Thanks for such a descriptive review. I will include all the suggestions > made in my next iteration. Please give me some time to send comments before that.

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-09 Thread Abhishek
Hi Daniel, Thanks for such a descriptive review. I will include all the suggestions made in my next iteration. --Abhishek On 04/08/2019 07:42 PM, Daniel Axtens wrote: Hi Abhishek, Currently, the cpuidle governors (menu /ladder) determine what idle state an idling CPU should enter into

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-08 Thread Daniel Axtens
Hi, Sorry, just realised another thing I wanted to ask: > @@ -442,6 +442,26 @@ static int menu_select(struct cpuidle_driver *drv, > struct cpuidle_device *dev, > } > } > > > +#ifdef CPUIDLE_FLAG_AUTO_PROMOTION Why is this based on CPUIDLE_FLAG_ rather than CONFIG_CPU_IDLE_?

Re: [PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-08 Thread Daniel Axtens
Hi Abhishek, > Currently, the cpuidle governors (menu /ladder) determine what idle state > an idling CPU should enter into based on heuristics that depend on the > idle history on that CPU. Given that no predictive heuristic is perfect, > there are cases where the governor predicts a shallow idle

[PATCH v2 1/2] cpuidle : auto-promotion for cpuidle states

2019-04-05 Thread Abhishek Goel
Currently, the cpuidle governors (menu /ladder) determine what idle state an idling CPU should enter into based on heuristics that depend on the idle history on that CPU. Given that no predictive heuristic is perfect, there are cases where the governor predicts a shallow idle state, hoping that