mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jacob Shin <jacob.shin@amd.com>
To: Viresh Kumar <viresh.kumar@linaro.org>
Cc: <rjw@sisk.pl>, <cpufreq@vger.kernel.org>,
	<linux-pm@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linaro-kernel@lists.linaro.org>, <patches@linaro.org>,
	<arvind.chauhan@arm.com>, <robin.randhawa@arm.com>,
	<Steve.Bannister@arm.com>, <Liviu.Dudau@arm.com>,
	<charles.garcia-tobin@arm.com>
Subject: Re: [PATCH V4 0/2] Implement per policy instance of governor
Date: Wed, 27 Mar 2013 12:19:31 -0500	[thread overview]
Message-ID: <20130327171931.GA17070@jshin-Toonie> (raw)
In-Reply-To: <cover.1364398686.git.viresh.kumar@linaro.org>

On Wed, Mar 27, 2013 at 09:28:56PM +0530, Viresh Kumar wrote:
> Hi Guys,
> 
> All patches are pushed here for others to apply (you can apply from mail to):
> http://git.linaro.org/gitweb?p=people/vireshk/linux.git;a=shortlog;h=refs/heads/governor-per-policy-v4
> 
> Currently, there can't be multiple instances of single governor_type. If we have
> a multi-package system, where we have multiple instances of struct policy (per
> package), we can't have multiple instances of same governor. i.e. We can't have
> multiple instances of ondemand governor for multiple packages.
> 
> Governors directory in sysfs is created at /sys/devices/system/cpu/cpufreq/
> governor-name/. Which again reflects that there can be only one instance of a
> governor_type in the system.
> 
> This is a bottleneck for multicluster system, where we want different packages
> to use same governor type, but with different tunables.
> 
> This patchset is inclined towards fixing this issue. Now we will create
> governors directory in cpu/cpu*/cpufreq/<gov> for platforms which have multiple
> struct policy alive at any moment. Platform drivers requiring this feature must
> set have_governor_per_policy variable in their instance of cpufreq_driver. For
> others the interface is kept same: cpu/cpufreq/<gov>.
> 
> 
> This is V4 of this patchset. V3 is already applied by Rafael in his linux-next
> branch. Jacob Shin reported some regressions with this patchset and when I went
> into testing it with his configuration I found more issues then what he
> reported.
> 
> To test these over linux-next you need to revert following first:
> db9baec cpufreq: Get rid of "struct global_attr"
> 86bd6f0 cpufreq: governor: Implement per policy instances of governors
> 8ae67b1 cpufreq: Add per policy governor-init/exit infrastructure
> 
> I have tested this for following now and believe there are no more regressions
> with it:
> - platform with a single policy instance or single group of cpu
> - platform with multiple policies but which don't want per policy instance of
>   governor
> - platform with multiple policies and which want per policy instance of governor
> 
> I have tried with different settings and combinations of governors.
> 
> @Rafael: To simplify your life I have sorted out your branch and you can simply
> pickup the complete branch that I have pushed.
> 
> V3->V4:
> - We have two instances of all show/store routines for ondemand/conservative
>   governor. One for per-policy instance of governor and other for one governor
>   instance for all policies.
> - Dropped: db9baec cpufreq: Get rid of "struct global_attr".
> - Fixed cpufreq_governor_dbs for multiple policies using same governor instance.
> - Implemented few macro's in cpufreq_governor.h to make above stuff clean.
> - Renamed have_multiple_policies to have_governor_per_policy
> - Some more minor cleanups
> 
> Viresh Kumar (2):
>   cpufreq: Add per policy governor-init/exit infrastructure
>   cpufreq: governor: Implement per policy instances of governors
> 
>  drivers/cpufreq/cpufreq.c              |  36 ++++-
>  drivers/cpufreq/cpufreq_conservative.c | 193 ++++++++++++++----------
>  drivers/cpufreq/cpufreq_governor.c     | 212 +++++++++++++++++---------
>  drivers/cpufreq/cpufreq_governor.h     | 117 +++++++++++++--
>  drivers/cpufreq/cpufreq_ondemand.c     | 263 ++++++++++++++++++++-------------
>  include/linux/cpufreq.h                |  17 ++-
>  6 files changed, 562 insertions(+), 276 deletions(-)
> 
> -- 
> 1.7.12.rc2.18.g61b472e
> 
> 

V4 tested good on AMD machine that the regression was reported on.

Thanks,

Tested-by: Jacob Shin <jacob.shin@amd.com>


  parent reply	other threads:[~2013-03-27 17:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-27 15:58 Viresh Kumar
2013-03-27 15:58 ` [PATCH V4 1/2] cpufreq: Add per policy governor-init/exit infrastructure Viresh Kumar
2013-03-27 15:58 ` [PATCH V4 2/2] cpufreq: governor: Implement per policy instances of governors Viresh Kumar
2013-03-27 17:19 ` Jacob Shin [this message]
2013-03-30  2:17 ` [PATCH V4 0/2] Implement per policy instance of governor Rafael J. Wysocki
2013-03-30  3:36   ` Viresh Kumar
2013-03-30 22:08     ` Rafael J. Wysocki
2013-03-31  1:30       ` Viresh Kumar
2013-03-31  1:49         ` Rafael J. Wysocki
2013-03-31  3:47           ` Viresh Kumar

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=20130327171931.GA17070@jshin-Toonie \
    --to=jacob.shin@amd.com \
    --cc=Liviu.Dudau@arm.com \
    --cc=Steve.Bannister@arm.com \
    --cc=arvind.chauhan@arm.com \
    --cc=charles.garcia-tobin@arm.com \
    --cc=cpufreq@vger.kernel.org \
    --cc=linaro-kernel@lists.linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=patches@linaro.org \
    --cc=rjw@sisk.pl \
    --cc=robin.randhawa@arm.com \
    --cc=viresh.kumar@linaro.org \
    /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

all inboxes | Powered by JetHome®