cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Peter Oruba" <peter.oruba@amd.com>
To: cpufreq@lists.linux.org.uk
Subject: Re: cpufreq issue with K8 performance governor
Date: Tue, 29 May 2007 18:20:06 +0200	[thread overview]
Message-ID: <200705291820.06896.peter.oruba@amd.com> (raw)
In-Reply-To: <20070529160621.GC13235@redhat.com>


[-- Attachment #1.1: Type: text/plain, Size: 2418 bytes --]

Am Dienstag, 29. Mai 2007 18:06:21 schrieben Sie:
> On Tue, May 29, 2007 at 03:47:00PM +0200, Peter Oruba wrote:
>  > Dave,
>  > 
>  > I am contacting you regarding a frequency scaling issue that I encountered with the performance governor in combination with CPU hotplug. In cpufreq.c CPU frequency is reduced to its 
>  > minimum before the CPU gets unregistered and set offline. Does that have a particular reason? Since the (k8-)governor does not monitor CPU frequency that setting also applies then to the remaining CPU
>  > as well and lets the system run on the lowest frequency although performance is chose as the policy.
>  > 
>  > ---
>  > static int cpufreq_cpu_callback(struct notifier_block *nfb,
>  >                                         unsigned long action, void *hcpu)
>  > {
>  > 
>  > [......]
>  > 
>  >                 case CPU_DOWN_PREPARE_FROZEN:
>  >                         if (unlikely(lock_policy_rwsem_write(cpu)))
>  >                                 BUG();
>  > 
>  >                         policy = cpufreq_cpu_data[cpu];
>  >                         if (policy) {
>  >                                 __cpufreq_driver_target(policy, policy->min,
>  >                                                 CPUFREQ_RELATION_H);
>  >                         }
>  >                         __cpufreq_remove_dev(sys_dev);
> 
> This is the path taken when we call suspend.
> To be honest, I doubt that reducing the speed has any benefit at all,
> as we're about to put the CPU to sleep anyway.
> 
> (btw, in future sending questions to cpufreq@lists.linux.org.uk is a better
>  idea. The subsystem is sufficiently complex that at times, others can
>  answer questions better than I can, especially with the various
>  implementations all being subtley different).
> 
> Thanks,
> 
> 	Dave
> 
Okay, removing the __cpufreq_driver_target call would solve would obviously solve that problem (which btw also exists on Core2, as I tested a couple of minutes ago). Is it planned to be changed 
in the near future?

Thanks,
Peter


-- 
AMD Saxony Limited Liability Company & Co. KG
Operating System Research Center
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896
General Partner authorized to represent:
AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 147 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@lists.linux.org.uk
http://lists.linux.org.uk/mailman/listinfo/cpufreq

       reply	other threads:[~2007-05-29 16:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200705291547.10134.peter.oruba@amd.com>
     [not found] ` <20070529160621.GC13235@redhat.com>
2007-05-29 16:20   ` Peter Oruba [this message]
2007-06-04 16:56     ` [PATCH] bugfix cpufreq in combination with performance governor Peter Oruba

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=200705291820.06896.peter.oruba@amd.com \
    --to=peter.oruba@amd.com \
    --cc=cpufreq@lists.linux.org.uk \
    /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