cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: "Beglin, Brad R" <brad.beglin@gatech.edu>
Cc: cpufreq@lists.linux.org.uk, arekm@maven.pl
Subject: Re: bug? acpi p-state + ondemand keeps dropping max freq
Date: Fri, 13 Jun 2008 16:21:28 +0200	[thread overview]
Message-ID: <1213366888.16101.226.camel@queen.suse.de> (raw)
In-Reply-To: <1559428365.1484491213137657411.JavaMail.root@mail4.gatech.edu>

On Tue, 2008-06-10 at 18:40 -0400, Beglin, Brad R wrote:
> >I am also unable to change my max scaling frequency on my Thinkpad T61.  
> >Interestingly enough, I can change the frequency as long as the new value 
> >is less than 1.2 GHz.  If I try to set the new max frequency higher than that, 
> >the max scaling frequency file reverts to 1.2GHz.  Here is in example:
> 
> Well, I did a lot more research, and it seems, at least in my case and probably 
> others, that this is a long-time know bug, as detailed here:
> 
> http://bugzilla.kernel.org/show_bug.cgi?id=7060
> http://lkml.org/lkml/2007/1/16/120
> http://www.thinkwiki.org/wiki/Problem_with_CPU_frequency_scaling
> http://forums.lenovo.com/lnv/board/message?board.id=T_Series_Thinkpads&thread.id=7420

Be careful, these reports have different causes.
E.g.:
---
If the battery pack is removed and the laptop is powered by AC only, the
CPU downclocks to the lowest multiplier and remains locked in low speed
---
Might be a BIOS bug (or even intended?).

> However, I can report, as outlined in the Thinkwiki.org article, that
> adding
> "processor.ignore_ppc=1" to the kernel boot parameters fixed the
> problem for me
> (with kernel 2.6.25-r4).  
> 
> I hope this helps the others who are having the same problem. mp.

Arkadiusz has provided some interesting debug results.
He and some others reported cpufreq limitation to the lowest freq on
some boots. I am pretty sure this is not a BIOS issue as _PPC is always
0 there.

Beglin: If you could compile CPU_FREQ_DEBUG in and boot with
cpufreq.debug=7. If you run into this issue and grep for:
dmesg |grep -i ppc
you probably see the same issue than Arkadiusz which probably is not a
BIOS but a kernel error.

Arkadiusz: If you run into this again can you check whether you have:
cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias
set (if yes, this should only be set when working on battery?).

Another idea:
Maybe increasing 
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
helps?

Strange seem to be the duplicate messages and duplicate tries to set the
same freq over and over again.

Also there seem some frequencies tried to be set which should not exist:
152342 kHz, 57142 kHz, 0 kHz

comment lines starting with ####

Here is again an interesting part of the debug messages:
May 26 17:28:55 tarm kernel: [ 1596.625686] freq-table: target is 0 (2000000 kHz, 0)
May 26 17:29:04 tarm kernel: [ 1605.626418] __ratelimit: 10 messages suppressed
May 26 17:29:04 tarm kernel: [ 1605.626630] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:29:04 tarm kernel: [ 1605.626772] acpi-cpufreq: acpi_cpufreq_target 2000000 (0)
May 26 17:29:24 tarm kernel: [ 1625.625002] __ratelimit: 40 messages suppressed
May 26 17:29:24 tarm kernel: [ 1625.625218] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:29:24 tarm kernel: [ 1625.625363] acpi-cpufreq: acpi_cpufreq_target 2000000 (0)
May 26 17:29:24 tarm kernel: [ 1625.625501] freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
May 26 17:29:24 tarm kernel: [ 1625.625643] freq-table: target is 0 (2000000 kHz, 0)
May 26 17:29:39 tarm kernel: [ 1641.125020] __ratelimit: 31 messages suppressed
May 26 17:29:39 tarm kernel: [ 1641.125248] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:29:39 tarm kernel: [ 1641.125387] acpi-cpufreq: acpi_cpufreq_target 2000000 (0)

May 26 17:29:39 tarm kernel: [ 1641.125519] freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
May 26 17:29:43 tarm kernel: [ 1644.624994] __ratelimit: 16 messages suppressed

#### This means the message:
#### freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
#### got printed/processed 16 times? This is not possible.
#### The message should come from:
#### drivers/cpufreq/cpufreq.c:__cpufreq_driver_target()
#### Which should invoke: acpi-cpufreq:acpi_cpufreq_target() which should print:
#### dprintk("acpi_cpufreq_target %d (%d)\n", target_freq, policy->cpu);

#### Hmm, could it be that the cpufreq specific ratelimit implementation
#### swallows some debug messages?

May 26 17:29:43 tarm kernel: [ 1644.625160] cpufreq-core: target for CPU 0: 152342 kHz, relation 0
May 26 17:30:05 tarm kernel: [ 1666.625410] __ratelimit: 6 messages suppressed
May 26 17:30:05 tarm kernel: [ 1666.625629] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:30:05 tarm kernel: [ 1666.625774] acpi-cpufreq: acpi_cpufreq_target 2000000 (0)
May 26 17:30:05 tarm kernel: [ 1666.625912] freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
May 26 17:30:05 tarm kernel: [ 1666.626054] freq-table: target is 0 (2000000 kHz, 0)
May 26 17:30:12 tarm kernel: [ 1674.125189] __ratelimit: 17 messages suppressed
May 26 17:30:12 tarm kernel: [ 1674.125425] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:30:13 tarm kernel: [ 1674.624988] __ratelimit: 6 messages suppressed
May 26 17:30:13 tarm kernel: [ 1674.625130] cpufreq-core: target for CPU 0: 0 kHz, relation 0
May 26 17:30:18 tarm kernel: [ 1680.124993] __ratelimit: 13 messages suppressed
May 26 17:30:18 tarm kernel: [ 1680.125137] cpufreq-core: target for CPU 0: 57142 kHz, relation 0
May 26 17:30:23 tarm kernel: [ 1684.625011] __ratelimit: 41 messages suppressed
May 26 17:30:23 tarm kernel: [ 1684.625238] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:30:25 tarm kernel: [ 1687.103612] cpufreq-core: setting new policy for CPU 0: 800000 - 2000000 kHz
May 26 17:30:25 tarm kernel: [ 1687.103851] acpi-cpufreq: acpi_cpufreq_verify
May 26 17:30:25 tarm kernel: [ 1687.103983] freq-table: request for verification of policy (800000 - 2000000 kHz) for cpu 0
May 26 17:30:25 tarm kernel: [ 1687.104121] freq-table: verification lead to (800000 - 2000000 kHz) for cpu 0
May 26 17:30:25 tarm kernel: [ 1687.104257] acpi-cpufreq: acpi_cpufreq_verify
May 26 17:30:25 tarm kernel: [ 1687.104385] freq-table: request for verification of policy (800000 - 800000 kHz) for cpu 0
May 26 17:30:25 tarm kernel: [ 1687.104521] freq-table: verification lead to (800000 - 800000 kHz) for cpu 0
May 26 17:30:25 tarm kernel: [ 1687.104656] cpufreq-core: new min and max freqs are 800000 - 800000 kHz
May 26 17:30:25 tarm kernel: [ 1687.104788] cpufreq-core: governor: change or update limits
May 26 17:30:25 tarm kernel: [ 1687.105041] cpufreq-core: __cpufreq_governor for CPU 0, event 3
May 26 17:30:33 tarm kernel: [ 1695.412124] __ratelimit: 25 messages suppressed
#### __cpufreq_governor for CPU 0, event 3 happended 25 times?!?

May 26 17:30:33 tarm kernel: [ 1695.412329] cpufreq-core: CPU 0: _PPC is 0 - frequency not limited
May 26 17:30:33 tarm kernel: [ 1695.412490] cpufreq-core: updating policy for CPU 0
May 26 17:30:33 tarm kernel: [ 1695.412623] cpufreq-core: setting new policy for CPU 0: 800000 - 2000000 kHz
May 26 17:30:33 tarm kernel: [ 1695.412757] acpi-cpufreq: acpi_cpufreq_verify
May 26 17:30:33 tarm kernel: [ 1695.413087] freq-table: request for verification of policy (800000 - 2000000 kHz) for cpu 0
May 26 17:30:33 tarm kernel: [ 1695.413265] freq-table: verification lead to (800000 - 2000000 kHz) for cpu 0
May 26 17:30:33 tarm kernel: [ 1695.413402] acpi-cpufreq: acpi_cpufreq_verify
May 26 17:30:33 tarm kernel: [ 1695.413529] freq-table: request for verification of policy (800000 - 2000000 kHz) for cpu 0
May 26 17:30:33 tarm kernel: [ 1695.413664] freq-table: verification lead to (800000 - 2000000 kHz) for cpu 0
May 26 17:30:33 tarm kernel: [ 1695.413798] cpufreq-core: new min and max freqs are 800000 - 2000000 kHz
May 26 17:30:33 tarm kernel: [ 1695.413929] cpufreq-core: governor: change or update limits
May 26 17:30:33 tarm kernel: [ 1695.414056] cpufreq-core: __cpufreq_governor for CPU 0, event 3
May 26 17:30:51 tarm kernel: [ 1712.625338] __ratelimit: 3 messages suppressed
May 26 17:30:51 tarm kernel: [ 1712.625566] cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
May 26 17:30:51 tarm kernel: [ 1712.625711] acpi-cpufreq: acpi_cpufreq_target 2000000 (0)
May 26 17:30:51 tarm kernel: [ 1712.625863] freq-table: request for target 2000000 kHz (relation: 1) for cpu 0

To be honest, I do not see it...

   Thomas


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

  reply	other threads:[~2008-06-13 14:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-10 22:40 bug? acpi p-state + ondemand keeps dropping max freq Beglin, Brad R
2008-06-13 14:21 ` Thomas Renninger [this message]
2008-07-08 10:57   ` Arkadiusz Miskiewicz
  -- strict thread matches above, loose matches on Subject: below --
2008-06-10 21:45 Beglin, Brad R
     [not found] <20080606140846.GA9580@ucw.cz>
2008-06-07 21:39 ` Pavel Machek
2008-06-07 21:54   ` Arjan van de Ven
2008-06-07 23:36     ` Holger Macht
2008-06-09 16:39     ` Kok, Auke
2008-06-16 10:42     ` Pavel Machek
2008-06-16 14:43       ` Arjan van de Ven
2008-06-17  8:44         ` Pavel Machek
2008-07-05 19:49         ` Björn Steinbrink
2008-07-05 20:04           ` Björn Steinbrink
2008-06-17 18:15       ` Len Brown
2008-06-05 22:30 Kok, Auke
2008-06-06  4:13 ` Henrique de Moraes Holschuh
2008-06-06 16:34   ` Kok, Auke
2008-06-06 19:47     ` Henrique de Moraes Holschuh
2008-06-07  2:46 ` Len Brown
2008-06-07 23:22 ` Björn Steinbrink

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=1213366888.16101.226.camel@queen.suse.de \
    --to=trenn@suse.de \
    --cc=arekm@maven.pl \
    --cc=brad.beglin@gatech.edu \
    --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