Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 213342

Summary: CPU frequency scaling doesn't work
Product: Gentoo Linux Reporter: Ákos Maróy <akos>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ákos Maróy 2008-03-14 06:55:45 UTC
it seems that CPU frequency scaling is not recognized with tuxonice kernel sources. for example:

# /etc/init.d/cpufreqd start
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ

even though:

# zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
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


Reproducible: Always

Steps to Reproduce:
1. emerge tuxonice-sources
2. compile kernel with enabling CPU frequency scaling
3. see it not work

Actual Results:  
does not work

Expected Results:  
should work fine

# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r3 x86_64)
=================================================================
System uname: 2.6.24-tuxonice-r3 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
Timestamp of tree: Wed, 12 Mar 2008 10:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en hu ja"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay1 /usr/local/portage/wolf31o2 /home/maroy/src/tyrell/src/corpora/src/tmote/src/tinyos-2-overlay /usr/local/portage/lu_zero /home/maroy/src/euedge/src/oss/svn.oss.euedge.com/packages/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aiglx alsa amd amd64 anthy apache2 automount avahi avi bash-completion bitmap-fonts bluetooth branding bzip2 cairo cdr cjk cli cpudetection cracklib crypt cups dbus dhcp dlloader dri dts dv dvd dvdr dvdread eds emboss encode esd evo fam fbsplash ffmpeg firefox flac gdbm gif gimpprint glitz gnome gpm gstreamer gtk gtk2 gtkhtml hal http ical iconv ieee1394 immqt-bc ipv6 irda isdnlog java javacomm jpeg kerberos lcms ldap libcaca libg++ libnotify live logrotate mad midi mikmod mmx mp3 mp4live mpeg mpeg2 mplayer msn mudflap mysql ncurses network networkmanager nls nptl nptlonly nsplugin obex ogg openal opengl openmp oracle oss pam pcre pdf pdflib perl player plotutils png postgres postscript ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtsp sdl session smp sms spell spl sse sse2 ssl stream subtitles svg tcpd theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode urandom usb v4l v4l2 vim vim-syntax vorbis wma x264 xml xorg xprint xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en hu ja" USERLAND="GNU" VIDEO_CARDS="dummy fglrx radeon v4l vesa vmware fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-03-14 08:01:52 UTC
Please test with gentoo-sources and vanilla-sources to determine if it's specific to TuxOnIce or generic kernel problem.
Comment 2 Ákos Maróy 2008-03-14 10:30:35 UTC
seems to have the same issue with gentoo-sources-2.6.24-r3 as well:

# /etc/init.d/cpufreqd status
 * status:  stopped
# /etc/init.d/cpufreqd start
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ
fwnc1173 ~ # zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
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
# uname -a
Linux fwnc1173 2.6.24-gentoo-r3 #1 SMP PREEMPT Fri Mar 14 11:08:31 CET 2008 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
Comment 3 Ákos Maróy 2008-03-14 11:47:01 UTC
looking at it, the same issue comes up with gentoo-sources-2.6.23-r9:

# /etc/init.d/cpufreqd start
 * cpufreqd requires the kernel to be configured with CONFIG_CPU_FREQ
# zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
# CONFIG_CPU_FREQ_STAT_DETAILS is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
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
# uname -a
Linux fwnc1173 2.6.23-gentoo-r9 #1 SMP PREEMPT Fri Mar 14 12:27:07 CET 2008 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux


maybe I'm doing something totally trivial wrong?
Comment 4 Dustin Polke 2008-03-14 12:26:45 UTC
Guess this is a dupe of bug 152057.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2008-03-14 16:59:44 UTC
are there any known working kernels?
Comment 6 Ákos Maróy 2008-03-14 17:28:42 UTC
as noted earlier, this really turns out to be a duplicate of bug 152057

please look there - basically the error message is misleading. now it works for me with the 2.6.24 kernels, both gentoo and tuxonice.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2008-03-14 17:41:19 UTC

*** This bug has been marked as a duplicate of bug 152057 ***