cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ferdinand Hübner" <fh@cvmx.org>
To: trenn@suse.de
Cc: cpufreq@lists.linux.org.uk
Subject: Re: CPU-Frequency limited to lowest available frequency while	under load
Date: Thu, 01 Nov 2007 19:07:59 +0100	[thread overview]
Message-ID: <472A15FF.5040504@cvmx.org> (raw)
In-Reply-To: <1193837319.4590.466.camel@queen.suse.de>

[-- Attachment #1: Type: text/plain, Size: 2661 bytes --]

Thomas Renninger wrote:

> It can be:
>  1) frequency limited by BIOS through _PPC
>  2) frequency reduced by thermal passive limit
>  3) some really odd cpufreq core bug
> 
>>From the last bugs occurring in this area I expect it's 1.
> 
> You should add a printk in drivers/acpi/processor_perflib.c
> acpi_processor_get_platform_limit():
> 	status = acpi_evaluate_integer(pr->handle, "_PPC", NULL, &ppc);
> and print out the ppc value here, best after the checks whether this
> call succeeded.
> 
> This should be picked up in cpufreq debug output as _PPC often caused
> cpufreq problems. A quick look tells me that it is a bit ugly to use
> cpufreq debug syntax in acpi layer, but it should be possible and
> appropriate.
> 
> If _PPC is 0 all freqs are allowed, if it is 1 the highest freq is not
> allowed anymore..., so this should always be 0 when working on AC power.

I have applied the patch and ran some tests with cpufreq core debugging
enabled. What I receive is the following output:

cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
freq-table: request for verification of policy (1000000 - 2000000 kHz)
for cpu 0
freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
freq-table: request for verification of policy (1000000 - 1000000 kHz)
for cpu 0
freq-table: verification lead to (1000000 - 1000000 kHz) for cpu 0
cpufreq-core: new min and max freqs are 1000000 - 1000000 kHz

I repeated the test a couple of times and the _PPC values have always
been 0 except for the last test I did. The value was 3 in the last test.
Does that mean that the BIOS is partially responsible?

> If it is this it could be that:
>   - ACPI is confused
>   - It is intended by BIOS (are you working on battery -> look up
>     your BIOS options, maybe you can modify anything related)
>   - _PPC is wrong at init (or later) and the value is not reevaluated

I was not working on battery, the _PPC values were 0 at init. I re-ran
the tests whithout X or acpid enabled and the problem did not happen
without acpid/X. So I guess the problem has something to do with ACPI?

I tried to investigate further with acpi debugging, but I am completely
overwhelmed with acpi's debugging output. I have no clue how to read
something useful from it.

I have attached parts of /var/log/messages with the debugging output
from cpufreq (I did not include the acpi part).

> Maybe you should open a bugreport on http://bugzilla.kernel.org, pls add
> me to CC then.

I would start with posting at the acpi mailing list, maybe someone can
help me debugging...


Thank you for your help,

Ferdinand

[-- Attachment #2: messages.txt --]
[-- Type: text/plain, Size: 13525 bytes --]

Nov  1 09:59:38 panther cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
Nov  1 09:59:42 panther printk: 89 messages suppressed.
Nov  1 09:59:42 panther cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
Nov  1 09:59:47 panther printk: 223 messages suppressed.
Nov  1 09:59:47 panther cpufreq-core: target for CPU 0: 1838571 kHz, relation 0
Nov  1 09:59:52 panther printk: 182 messages suppressed.
Nov  1 09:59:52 panther cpufreq-core: target for CPU 0: 1381714 kHz, relation 0
Nov  1 09:59:57 panther printk: 168 messages suppressed.
Nov  1 09:59:57 panther cpufreq-core: target for CPU 0: 1400000 kHz, relation 0
Nov  1 10:00:02 panther printk: 170 messages suppressed.
Nov  1 10:00:02 panther cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
Nov  1 10:00:02 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:00:02 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: request for verification of policy (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: verification lead to (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:00:02 panther cpufreq-core: new min and max freqs are 1000000 - 1000000 kHz
Nov  1 10:00:02 panther cpufreq-core: governor: change or update limits
Nov  1 10:00:02 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:00:02 panther cpufreq-core: target for CPU 0: 1000000 kHz, relation 1
Nov  1 10:00:02 panther freq-table: request for target 1000000 kHz (relation: 1) for cpu 0
Nov  1 10:00:02 panther freq-table: target is 3 (1000000 kHz, 3)
Nov  1 10:00:02 panther cpufreq-core: notification 0 of frequency transition to 1000000 kHz
Nov  1 10:00:02 panther cpufreq-core: notification 0 of frequency transition to 1000000 kHz
Nov  1 10:00:02 panther cpufreq-core: notification 1 of frequency transition to 1000000 kHz
Nov  1 10:00:02 panther cpufreq-core: notification 1 of frequency transition to 1000000 kHz
Nov  1 10:00:02 panther acpid: received event "processor CPU0 00000080 00000003"
Nov  1 10:00:02 panther acpid: notifying client 5849[0:0]
Nov  1 10:00:02 panther acpid: executing action "/etc/acpi/default.sh processor CPU0 00000080 00000003"
Nov  1 10:00:02 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:00:02 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: request for verification of policy (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:00:02 panther freq-table: verification lead to (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:00:02 panther cpufreq-core: new min and max freqs are 1000000 - 1000000 kHz
Nov  1 10:00:02 panther cpufreq-core: governor: change or update limits
Nov  1 10:00:02 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:00:02 panther logger: ACPI event unhandled: processor CPU0 00000080 00000003
Nov  1 10:00:02 panther acpid: action exited with status 0
Nov  1 10:00:02 panther acpid: completed event "processor CPU0 00000080 00000003"
Nov  1 10:00:02 panther acpid: received event "processor CPU1 00000080 00000003"
Nov  1 10:00:02 panther acpid: notifying client 5849[0:0]
Nov  1 10:00:02 panther acpid: executing action "/etc/acpi/default.sh processor CPU1 00000080 00000003"
Nov  1 10:00:02 panther logger: ACPI event unhandled: processor CPU1 00000080 00000003
Nov  1 10:00:02 panther acpid: action exited with status 0
Nov  1 10:00:02 panther acpid: completed event "processor CPU1 00000080 00000003"
Nov  1 10:00:27 panther printk: 16 messages suppressed.
Nov  1 10:00:27 panther cpufreq-core: CPU 0: _PPC is 0 - frequency not limited
Nov  1 10:00:27 panther cpufreq-core: updating policy for CPU 0
Nov  1 10:00:27 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:00:27 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther cpufreq-core: new min and max freqs are 1000000 - 2000000 kHz
Nov  1 10:00:27 panther cpufreq-core: governor: change or update limits
Nov  1 10:00:27 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:00:27 panther acpid: received event "processor CPU0 00000080 00000000"
Nov  1 10:00:27 panther acpid: notifying client 5849[0:0]
Nov  1 10:00:27 panther acpid: executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000"
Nov  1 10:00:27 panther cpufreq-core: CPU 1: _PPC is 0 - frequency not limited
Nov  1 10:00:27 panther cpufreq-core: updating policy for CPU 1
Nov  1 10:00:27 panther cpufreq-core: Warning: CPU frequency out of sync: cpufreq and timing core thinks of 1000000, is 0 kHz.
Nov  1 10:00:27 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:00:27 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:00:27 panther cpufreq-core: new min and max freqs are 1000000 - 2000000 kHz
Nov  1 10:00:27 panther cpufreq-core: governor: change or update limits
Nov  1 10:00:27 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:00:27 panther logger: ACPI event unhandled: processor CPU0 00000080 00000000
Nov  1 10:00:27 panther acpid: action exited with status 0
Nov  1 10:00:27 panther acpid: completed event "processor CPU0 00000080 00000000"
Nov  1 10:00:27 panther acpid: received event "processor CPU1 00000080 00000000"
Nov  1 10:00:27 panther acpid: notifying client 5849[0:0]
Nov  1 10:00:27 panther acpid: executing action "/etc/acpi/default.sh processor CPU1 00000080 00000000"
Nov  1 10:00:27 panther logger: ACPI event unhandled: processor CPU1 00000080 00000000
Nov  1 10:00:27 panther acpid: action exited with status 0
Nov  1 10:00:27 panther acpid: completed event "processor CPU1 00000080 00000000"
Nov  1 10:00:42 panther printk: 2 messages suppressed.
Nov  1 10:00:42 panther cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
Nov  1 10:00:42 panther freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
Nov  1 10:00:42 panther freq-table: target is 0 (2000000 kHz, 0)


----------------- 

Nov  1 10:38:05 panther cpufreq-core: CPU 0: _PPC is 3 - frequency  limited
Nov  1 10:38:05 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:38:05 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: request for verification of policy (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: verification lead to (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:38:05 panther cpufreq-core: new min and max freqs are 1000000 - 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: governor: change or update limits
Nov  1 10:38:05 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:38:05 panther cpufreq-core: target for CPU 0: 1000000 kHz, relation 1
Nov  1 10:38:05 panther freq-table: request for target 1000000 kHz (relation: 1) for cpu 0
Nov  1 10:38:05 panther acpid: received event "processor CPU0 00000080 00000003"
Nov  1 10:38:05 panther acpid: notifying client 1676[0:0]
Nov  1 10:38:05 panther acpid: executing action "/etc/acpi/default.sh processor CPU0 00000080 00000003"
Nov  1 10:38:05 panther freq-table: target is 3 (1000000 kHz, 3)
Nov  1 10:38:05 panther cpufreq-core: notification 0 of frequency transition to 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: notification 0 of frequency transition to 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: notification 1 of frequency transition to 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: notification 1 of frequency transition to 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:38:05 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: request for verification of policy (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:38:05 panther freq-table: verification lead to (1000000 - 1000000 kHz) for cpu 0
Nov  1 10:38:05 panther cpufreq-core: new min and max freqs are 1000000 - 1000000 kHz
Nov  1 10:38:05 panther cpufreq-core: governor: change or update limits
Nov  1 10:38:05 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:38:05 panther logger: ACPI event unhandled: processor CPU0 00000080 00000003
Nov  1 10:38:05 panther acpid: action exited with status 0
Nov  1 10:38:05 panther acpid: completed event "processor CPU0 00000080 00000003"
Nov  1 10:38:05 panther acpid: received event "processor CPU1 00000080 00000003"
Nov  1 10:38:05 panther acpid: notifying client 1676[0:0]
Nov  1 10:38:05 panther acpid: executing action "/etc/acpi/default.sh processor CPU1 00000080 00000003"
Nov  1 10:38:05 panther logger: ACPI event unhandled: processor CPU1 00000080 00000003
Nov  1 10:38:05 panther acpid: action exited with status 0
Nov  1 10:38:05 panther acpid: completed event "processor CPU1 00000080 00000003"
Nov  1 10:39:28 panther [fglrx:firegl_lock] *ERROR* Process 2822 is using illegal context 0x00000003
Nov  1 10:39:54 panther su[1821]: pam_unix(su:session): session closed for user root
Nov  1 10:41:17 panther printk: 6 messages suppressed.
Nov  1 10:41:17 panther cpufreq-core: CPU 0: _PPC is 0 - frequency not limited
Nov  1 10:41:17 panther cpufreq-core: updating policy for CPU 0
Nov  1 10:41:17 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:41:17 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther cpufreq-core: new min and max freqs are 1000000 - 2000000 kHz
Nov  1 10:41:17 panther cpufreq-core: governor: change or update limits
Nov  1 10:41:17 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:41:17 panther acpid: received event "processor CPU0 00000080 00000000"
Nov  1 10:41:17 panther acpid: notifying client 1676[0:0]
Nov  1 10:41:17 panther acpid: executing action "/etc/acpi/default.sh processor CPU0 00000080 00000000"
Nov  1 10:41:17 panther cpufreq-core: CPU 1: _PPC is 0 - frequency not limited
Nov  1 10:41:17 panther cpufreq-core: updating policy for CPU 1
Nov  1 10:41:17 panther cpufreq-core: Warning: CPU frequency out of sync: cpufreq and timing core thinks of 1000000, is 0 kHz.
Nov  1 10:41:17 panther cpufreq-core: notification 0 of frequency transition to 0 kHz
Nov  1 10:41:17 panther cpufreq-core: notification 1 of frequency transition to 0 kHz
Nov  1 10:41:17 panther cpufreq-core: setting new policy for CPU 0: 1000000 - 2000000 kHz
Nov  1 10:41:17 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: request for verification of policy (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther freq-table: verification lead to (1000000 - 2000000 kHz) for cpu 0
Nov  1 10:41:17 panther cpufreq-core: new min and max freqs are 1000000 - 2000000 kHz
Nov  1 10:41:17 panther cpufreq-core: governor: change or update limits
Nov  1 10:41:17 panther cpufreq-core: __cpufreq_governor for CPU 0, event 3
Nov  1 10:41:17 panther logger: ACPI event unhandled: processor CPU0 00000080 00000000
Nov  1 10:41:17 panther acpid: action exited with status 0
Nov  1 10:41:17 panther acpid: completed event "processor CPU0 00000080 00000000"
Nov  1 10:41:17 panther acpid: received event "processor CPU1 00000080 00000000"
Nov  1 10:41:17 panther acpid: notifying client 1676[0:0]
Nov  1 10:41:17 panther acpid: executing action "/etc/acpi/default.sh processor CPU1 00000080 00000000"
Nov  1 10:41:17 panther logger: ACPI event unhandled: processor CPU1 00000080 00000000
Nov  1 10:41:17 panther acpid: action exited with status 0
Nov  1 10:41:17 panther acpid: completed event "processor CPU1 00000080 00000000"
Nov  1 10:41:17 panther cpufreq-core: target for CPU 0: 2000000 kHz, relation 1
Nov  1 10:41:17 panther freq-table: request for target 2000000 kHz (relation: 1) for cpu 0
Nov  1 10:41:17 panther freq-table: target is 0 (2000000 kHz, 0)
Nov  1 10:41:22 panther printk: 550 messages suppressed.
Nov  1 10:41:22 panther cpufreq-core: target for CPU 0: 1188571 kHz, relation 0

[-- Attachment #3: 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-11-01 18:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30 10:23 CPU-Frequency limited to lowest available frequency while under load Ferdinand Hübner
2007-10-31 13:28 ` Thomas Renninger
2007-11-01 18:07   ` Ferdinand Hübner [this message]
2007-11-01 18:31     ` Thomas Renninger
2007-11-01 18:36       ` Jarod Wilson
2007-11-06 16:01         ` Ferdinand Hübner

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=472A15FF.5040504@cvmx.org \
    --to=fh@cvmx.org \
    --cc=cpufreq@lists.linux.org.uk \
    --cc=trenn@suse.de \
    /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