Bug 12973 - cannot use cpufreq scaling with the 2.6.29 kernel and an X3360 chip
Summary: cannot use cpufreq scaling with the 2.6.29 kernel and an X3360 chip
Status: CLOSED INVALID
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Processor (show other bugs)
Hardware: All Linux
: P1 high
Assignee: Zhang Rui
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-29 22:20 UTC by da_audiophile
Modified: 2009-04-01 05:54 UTC (History)
4 users (show)

See Also:
Kernel Version: 2.6.29
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
acpidump under 2.6.26 (108.01 KB, application/octet-stream)
2009-03-30 17:32 UTC, da_audiophile
Details
dmesg under 2.6.26 (45.84 KB, application/octet-stream)
2009-03-30 17:33 UTC, da_audiophile
Details
grep command of /sys/devices/system/cpu/cpu0/cpufreq/ under 2.6.26 (934 bytes, application/octet-stream)
2009-03-30 17:34 UTC, da_audiophile
Details
acpidump under 2.6.29 (108.01 KB, application/octet-stream)
2009-03-30 17:48 UTC, da_audiophile
Details
dmesg under 2.6.29 (52.74 KB, application/octet-stream)
2009-03-30 17:51 UTC, da_audiophile
Details
grep command of /sys/devices/system/cpu/cpu0/cpufreq/ under 2.6.29 (120 bytes, application/octet-stream)
2009-03-30 17:51 UTC, da_audiophile
Details

Description da_audiophile 2009-03-29 22:20:45 UTC
I have an Xeon processor (X3360) on DFI LP LT P35 T2R motherboard (P35-based). I'm running Debian/Lenny-amd64.  The out-of-the-box kernel (2.6.26) allows me to control the cpufreq via the acpi-cpufreq module.  I need ext4 support and just built up the 2.6.29 kernel using a slightly modified .config based on the Lenny config.  When I boot into the new kernel, cpufreq-info doesn't show that the kernel driver is functional.

Here is the relevent section from my menuconfig:

[*] CPU Frequency scaling
[ ]   Enable CPUfreq debugging
<*>   CPU frequency translation statistics
[ ]     CPU frequency translation statistics details
      Default CPUFreq governor (ondemand)  --->
-*-   'performance' governor
<M>   'powersave' governor
<M>   'userspace' governor for userspace frequency scaling
-*-   'ondemand' cpufreq policy governor
<M>   'conservative' cpufreq governor
      *** CPUFreq processor drivers ***
<*>   ACPI Processor P-States driver
< >   AMD Opteron/Athlon64 PowerNow!
< >   Intel Enhanced SpeedStep (deprecated)
< >   Intel Pentium 4 clock modulation
      *** shared options ***

Here is the output of cpufreq-info after I boot into the new kernel

$ cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU
analyzing CPU 2:
  no or unknown cpufreq driver is active on this CPU
analyzing CPU 3:
  no or unknown cpufreq driver is active on this CPU

This is in stark contrast to the 2.6.26 that comes with Lenny, or the 2.6.27.10 that I have also successfully compiled.
Comment 1 ykzhao 2009-03-30 00:56:18 UTC
Will you please attach the output of acpidump?
It will be great if you can attach the output of dmesg on the 2.6.26/2.6.29 kernel.
   Thanks.
Comment 2 Zhang Rui 2009-03-30 01:10:04 UTC
please also attach the output of "grep . /sys/devices/system/cpu/cpu0/cpufreq/*"
Comment 3 da_audiophile 2009-03-30 17:19:33 UTC
I will post these info for you ASAP.  I should add that I cannot modprobe acpi-cpufreq when I am booted into my 2.6.29 kernel.  I get the following:

# modprobe acpi-cpufreq
FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.29-amd64/kernel/arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.ko): No such device

Let me get your guys the acpidump, dmesg, and /sys/devices/system/cpu/cpu0/cpufreq/* for under both of the kernels.  I will post them shortly.
Comment 4 da_audiophile 2009-03-30 17:32:22 UTC
Created attachment 20740 [details]
acpidump under 2.6.26
Comment 5 da_audiophile 2009-03-30 17:33:18 UTC
Created attachment 20741 [details]
dmesg under 2.6.26
Comment 6 da_audiophile 2009-03-30 17:34:35 UTC
Created attachment 20742 [details]
grep command of /sys/devices/system/cpu/cpu0/cpufreq/ under 2.6.26
Comment 7 da_audiophile 2009-03-30 17:48:42 UTC
Created attachment 20743 [details]
acpidump under 2.6.29
Comment 8 da_audiophile 2009-03-30 17:51:10 UTC
Created attachment 20744 [details]
dmesg under 2.6.29
Comment 9 da_audiophile 2009-03-30 17:51:40 UTC
Created attachment 20745 [details]
grep command of /sys/devices/system/cpu/cpu0/cpufreq/ under 2.6.29
Comment 10 da_audiophile 2009-03-30 17:55:10 UTC
Okay... all files attached.  Just for kicks, I tried to modprobe the speedstep-centrino module and I get the same "No such device" error message.  It's almost as if the kernel doesn't recognize that the acpi-cpufreq module will work with my chip.  I even tried with the -f switch, but got the same result.
Comment 11 da_audiophile 2009-03-30 20:24:43 UTC
I figured it out!  I took a clue from my /var/log/dmesg

[    4.633657] [Firmware Bug]: BIOS needs update for CPU frequency support
[    4.633718] ACPI Error (psloop-0136): Found unknown opcode 20 at AML address ffff88012d27c633 offset 4F, ignoring [20080926]
[    4.633722] ACPI Error (psloop-0136): Found unknown opcode 6F at AML address ffff88012d27c638 offset 54, ignoring [20080926]
[    4.633726] ACPI Error (psloop-0136): Found unknown opcode 20 at AML address ffff88012d27c63c offset 58, ignoring [20080926]
[    4.633729] ACPI Error (psloop-0136): Found unknown opcode 6F at AML address ffff88012d27c640 offset 5C, ignoring [20080926]

That line that reads, "Firmware Bug: BIOS needs update for CPU frequency support" was really bugging me.  So I took a risk, d/l'ed the latest BIOS for my board, flashed, reset all my custom BIOS settings, and rebooted into my new kernel.  I'm now able to use acpi-cpufreq and scaling works smoothly :)

I think you can safely close this ticket and pass on the information to folks experiencing this same symptom: flash your BIOS!

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