Bug 15965 - frequency never scales down
Summary: frequency never scales down
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Power Management
Classification: Unclassified
Component: cpufreq (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: ykzhao
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 11:24 UTC by Anton Arapov
Modified: 2012-05-24 07:33 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.33.2-57.fc13
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg output with cpufreq.debug=7 (10.50 KB, application/x-bzip2)
2010-05-12 11:24 UTC, Anton Arapov
Details
vmstat -1 output (1.69 KB, text/plain)
2010-05-24 17:07 UTC, Yves Dorfsman
Details
/proc/interrupts (1.21 KB, text/plain)
2010-05-24 17:08 UTC, Yves Dorfsman
Details
dmesg with cpufreq.debug=7 and governor=userspace (39.49 KB, application/octet-stream)
2010-05-30 16:24 UTC, Yves Dorfsman
Details

Description Anton Arapov 2010-05-12 11:24:09 UTC
Created attachment 26355 [details]
 dmesg output with cpufreq.debug=7

Hello guys, escalating the bug from our Bugzilla here, so that more eyes scan it.

Kernel: Linux version 2.6.33.2-57.fc13.i686.PAE
CPU: VIA Esther processor 1200MHz
System: Jetway J7F4K1G2E

frequency scaling doesn't work after resume. It's stuck to the highest one.

dmesg log has a loop:
...
__ratelimit: 167 callbacks suppressed
cpufreq-core: target for CPU 0: 1200000 kHz, relation 1
acpi-cpufreq: acpi_cpufreq_target 1200000 (0)
freq-table: request for target 1200000 kHz (relation: 1) for cpu 0
freq-table: target is 0 (1200000 kHz, 0)
cpufreq-core: notification 0 of frequency transition to 1200000 kHz
cpufreq-core: notification 1 of frequency transition to 1200000 kHz
cpufreq-core: target for CPU 0: 13043 kHz, relation 0
acpi-cpufreq: acpi_cpufreq_target 13043 (0)
freq-table: request for target 13043 kHz (relation: 0) for cpu 0
freq-table: target is 1 (400000 kHz, 1)
__ratelimit: 70 callbacks suppressed
and so on...

thanks, 
Anton.
Comment 1 Zhang Rui 2010-05-13 07:26:22 UTC
please attach the output of "grep . /sys/devices/system/cpu/cpu0/cpufreq/*" both before and after suspend.
Comment 2 Yves Dorfsman 2010-05-14 03:38:21 UTC
This machine does not have a suspend mode.

# grep . /sys/devices/system/cpu/cpu0/cpufreq/*
/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:1200000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:1200000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:400000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency:10000
/sys/devices/system/cpu/cpu0/cpufreq/related_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies:1200000 400000 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:ondemand userspace performance 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:1200000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:ondemand
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:1200000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:400000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:<unsupported>
Comment 3 Zhang Rui 2010-05-19 06:49:14 UTC
(In reply to comment #2)
> This machine does not have a suspend mode.
> 
I mean both before and after a suspend-resume cycle.
Comment 4 Yves Dorfsman 2010-05-19 07:12:24 UTC
this is a server, it's not a laptop. I cannot put it in suspend mode, nor resume.
Comment 5 Zhang Rui 2010-05-19 07:34:01 UTC
oh, you're not the bug reporter, :)
As this is not the same bug, please file a new bug report for your problem, with detailed description.
Comment 6 Yves Dorfsman 2010-05-19 13:55:06 UTC
I am the user with the problem.

The bug reporter, Anton, opened the bug because I originally created a bug report for Fedora (https://bugzilla.redhat.com/show_bug.cgi?id=585570).

Anton (the bug reporter) does not have this particular piece of hardware and is not able to reproduce the issue. If you want me to run tests, produce logs etc... please let me know, but, this particular piece of hardware does not support suspend/hibernate/resume mode, it's a low power server type hardware.
Comment 7 Zhang Rui 2010-05-24 02:02:34 UTC
then I'm wondering why the bug is filed with subject "frequency doesn't scale down after suspend-resume cycle." :p

Yves, should I update the subject to "frequency doesn't scale down after boot"?

please run "vmstat 1" for several seconds and attach the output.
please attach the output of "cat /proc/interrupts" as well.
Comment 8 Yves Dorfsman 2010-05-24 17:07:27 UTC
Created attachment 26528 [details]
vmstat -1 output
Comment 9 Yves Dorfsman 2010-05-24 17:08:20 UTC
Created attachment 26529 [details]
/proc/interrupts
Comment 10 Yves Dorfsman 2010-05-24 17:11:19 UTC
> I'm wondering why the bug is filed with subject

I suspect Anton mixed up two tickets, or maybe my original ticket in the RH bugzilla was misleading. Sorry...

> should I update the subject to "frequency doesn't scale down after boot"

Well, I would change it to "frequency never scales down", because, it never does, doesn't matter how quite the machine is. Notice that the same problem is present on the last Fedora 13 I tried, while I have a current server at Fedora 9 which scales down and up perfectly, on the exact same hardware.

I have attached the output you requested.
Comment 11 Zhang Rui 2010-05-28 03:05:59 UTC
with cpufreq.debug=7, please change the governor to userspace, and change the frequency to 400000 mannually. and then attach the dmesg output.
Comment 12 Yves Dorfsman 2010-05-30 16:24:46 UTC
Created attachment 26585 [details]
dmesg with cpufreq.debug=7 and governor=userspace

switching the governor to userspace, I am able to switch to 400 MHz. The issue is when ondemand, it doesn't clock down on its down.
Comment 13 Zhang Rui 2010-06-29 08:58:24 UTC
please attach the output of "grep . /sys/devices/system/cpu/cpu0/cpufreq/ondemand/*" as well.
If /sys/devices/system/cpu/cpu0/cpufreq/ondemand/powersave_bias is set, does clearing this file help?
Comment 14 Zhang Rui 2010-09-27 01:11:14 UTC
maybe a cpu-freq governor algorithm problem.
Yakui, please look at this issue.
Comment 15 Zhang Rui 2012-01-18 02:10:17 UTC
It's great that kernel bugzilla is back.

Yves,
can you please verify if the problem still exists in the latest upstream
kernel?
Comment 16 Zhang Rui 2012-05-24 07:33:29 UTC
bug closed as there is no response from the bug reporter.
please feel free to reopen it if the problem still exists in the latest upstream kernel.

Note You need to log in before you can comment on or make changes to this bug.