Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133451 - cpufreqd broken in 2.6.16 kernels
Summary: cpufreqd broken in 2.6.16 kernels
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Low critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 01:16 UTC by Amir Taaki
Modified: 2008-03-02 18:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Dmesg for 2.6.16-suspend2-r7. (dmesg-2.6.16-suspend2-r7,14.50 KB, text/plain)
2006-06-06 08:48 UTC, BenWilson
Details
Dmesg for 2.6.10-gentoo-r4. (dmesg-2.6.10-gentoo-r4,12.34 KB, text/plain)
2006-06-06 08:49 UTC, BenWilson
Details
2.6.10-gentoo-r4 Config (2.6.10-gentoo-r4-config,30.50 KB, text/plain)
2006-06-06 08:51 UTC, BenWilson
Details
2.6.16-suspend2-r7 config file (2.6.16-suspend2-r7-config,48.68 KB, text/plain)
2006-06-06 08:52 UTC, BenWilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amir Taaki 2006-05-16 01:16:34 UTC
Hi,

it seems 2.6.16-r7 breaks cpufreqd for pentium-M yet its marked as stable. I think this should be masked.
Comment 1 Henrik Brix Andersen 2006-05-16 02:32:18 UTC
Works for me. Without further information there is nothing we can do to help.
Comment 2 Amir Taaki 2006-05-16 06:24:11 UTC
Heres some more info:
http://forums.gentoo.org/viewtopic-p-3319339.html#3319339
http://groups.google.com/group/alt.os.linux.gentoo/browse_thread/thread/54066f5847b1092f/e1228ed96f84c7ae#e1228ed96f84c7ae

to quote:
CPUFREQ was broken in some 2.6.16 kernels. Either step back to 2.6.15.6 or 
 ahead to 2.6.17-RCx... In the 2.6.17 rc's, you won't get all the possible 
 cpu frequencies as in 2.6.15.6, but it works. 
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-05-16 06:52:11 UTC
Please don't rely on external URL's to describe your problem. Detail it right here, along with the other usual info you'd normally post to a kernel bug report.
Comment 4 inode77 2006-05-19 09:33:19 UTC
I have the same problem here.
CPU is a Core Duo.
Upon start of cpufreqd (2.0.0) using the init script prints this:
# /etc/init.d/cpufreqd start
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ

Even if support clearly is provided by running kernel:
#gzcat /proc/config.gz | grep -i CONFIG_CPU_FREQ                       
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y


emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Genuine Intel(R) CPU           T2600  @ 2.16GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 cli crypt cscope cups curl directfb dri dvd dvdr encode ethereal exif expat foomaticdb gdbm gif glut gpm gstreamer gtk gtk2 imlib ipv6 java jpeg junit lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg nas ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdflib perl png python quicktime readline reflection sdl session speex spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb userlocales vorbis wmf xml xml2 xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2006-05-21 08:43:22 UTC
inode77: did 2.6.15 work for you?
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-05-29 05:35:55 UTC
Closing until more info is provided
Comment 7 BenWilson 2006-06-05 18:13:10 UTC
This problem still exists. I have run gentoo-2.6.10 since Jan'05, and am trying to upgrade to use Suspend2 sources (2.6.16-suspend2-r7). To demonstrate the problem, I have provided the output for the following commands:
   * uname -a (for both kernels)
   * cpufreq-info (for both kernels)
   * ls -l /usr/src

I produced the output of one, then immediately rebooted. The system is an Avertec 3250 series laptop.

Good Kernel 2.6.10
==================

Linux heretic 2.6.10-gentoo-r4 #1 Wed Jan 19 13:22:28 UTC 2005 i686 mobile AMD Athlon(tm) XP-M (LV) 2200+ GNU/Linux

cpufrequtils 001: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k7
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 398 MHz - 1.66 GHz
  available frequency steps: 398 MHz, 1.26 GHz, 1.39 GHz, 1.53 GHz, 1.66 GHz
  available cpufreq governors: powersave, userspace, performance
  current policy: frequency should be within 398 MHz and 1.66 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.66 GHz.

Bad Kernel 2.6.16
=================
Linux heretic 2.6.16-suspend2-r7 #1 SMP Mon Jun 5 12:23:56 CDT 2006 i686 mobile AMD Athlon(tm) XP-M (LV) 2200+ GNU/Linux

cpufrequtils 001: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  no or unknown cpufreq driver is active on this CPU

Output of LS -L /USR/SRC
========================

total 35
-rw-r--r--  1 root root 31232 Feb  5 14:01 kernel.config
lrwxrwxrwx  1 root root    22 Jun  5 18:42 linux -> linux-2.6.10-gentoo-r4/
drwxr-xr-x 18 root root   752 Jun  5 19:00 linux-2.6.10-gentoo-r4/
drwxr-xr-x 19 root root   712 Mar 30 19:24 linux-2.6.15-suspend2-r8/
drwxr-xr-x 20 root root  1456 Jun  5 16:01 linux-2.6.16-suspend2-r4/
drwxr-xr-x 19 root root   920 Jun  5 18:17 linux-2.6.16-suspend2-r7/

What other information do you need?

I understand the problem may manifest after 2.6.15, and I have that in my LS output. Therefore, I will try this kernel and report.
Comment 8 BenWilson 2006-06-05 18:58:16 UTC
I just tested the Suspend2-2.6.15-r8 and encountered the same problem as reported by cpufreq-info.
Comment 9 Brett Goulder 2006-06-05 23:44:24 UTC
Please attach a dmesg for each kernel as well as the configurations for each.

Comment 10 BenWilson 2006-06-06 08:48:12 UTC
Created attachment 88526 [details]
Dmesg for 2.6.16-suspend2-r7.

Here is the Dmesg for 2.6.16-suspend2-r7.
Comment 11 BenWilson 2006-06-06 08:49:25 UTC
Created attachment 88528 [details]
Dmesg for 2.6.10-gentoo-r4.

Here is the Dmesg output for 2.6.10-gentoo-r4.
Comment 12 BenWilson 2006-06-06 08:51:56 UTC
Created attachment 88529 [details]
2.6.10-gentoo-r4 Config
Comment 13 BenWilson 2006-06-06 08:52:57 UTC
Created attachment 88530 [details]
2.6.16-suspend2-r7 config file
Comment 14 Daniel Drake (RETIRED) gentoo-dev 2006-06-16 12:27:42 UTC
Ben: your problem is detailted at #121694 (2.6.16 regression)

Not sure if Amir's issue is the same, as not enough info has been provided.
Comment 15 BenWilson 2006-06-19 15:13:13 UTC
(In reply to comment #14)
> Ben: your problem is detailted at #121694 (2.6.16 regression)
> 
> Not sure if Amir's issue is the same, as not enough info has been provided.
> 

Negative. Not the same issue--or at least not close enough. The issue in the problem in #121694, at least as I guage issues. That ticket relates to AMD64 series, and I am sporting an Athlon-XP 32bit CPU. I tried the solution in that ticket, to no avail. Therefore, as that ticket had a solution and mine did not work, my problem is not the same as that problem.

The problem is this: in an Athlon processor (32 bit) I am not able to get the aforementioned driver to function in my 2.6.16 kernel either compiled into the kernel or as a module. My earlier kernel (mentioned above) works like a charm and picks up the appropriate driver.
Comment 16 BenWilson 2006-06-19 15:45:33 UTC
Disregard. Off-thread discussion shows the bug I'm experiencing is #133128.

(In reply to comment #15)
> (In reply to comment #14)
> > Ben: your problem is detailted at #121694 (2.6.16 regression)
> > 
> > Not sure if Amir's issue is the same, as not enough info has been provided.
> > 
> 
> Negative. Not the same issue--or at least not close enough. The issue in the
> problem in #121694, at least as I guage issues. That ticket relates to AMD64
> series, and I am sporting an Athlon-XP 32bit CPU. I tried the solution in that
> ticket, to no avail. Therefore, as that ticket had a solution and mine did not
> work, my problem is not the same as that problem.
> 
> The problem is this: in an Athlon processor (32 bit) I am not able to get the
> aforementioned driver to function in my 2.6.16 kernel either compiled into the
> kernel or as a module. My earlier kernel (mentioned above) works like a charm
> and picks up the appropriate driver.
> 

Comment 17 Chris Slycord 2008-03-02 18:42:46 UTC
(In reply to comment #4)
>  * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ

I get this same error message... but only when I didn't have my processor driver module loaded.

# /etc/init.d/cpufreqd start
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ
# modprobe acpi-cpufreq && /etc/init.d/cpufreqd start 
 * Starting CPU Frequency Daemon ...                                      [ ok ]