Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48109 - gentoo-dev-sources-2.6.5-r1 doesn't detect correct processor speed
Summary: gentoo-dev-sources-2.6.5-r1 doesn't detect correct processor speed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-16 22:33 UTC by Joel Parker
Modified: 2004-04-28 17:08 UTC (History)
0 users

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


Attachments
dmesg (dmesg,14.67 KB, text/plain)
2004-04-16 22:34 UTC, Joel Parker
Details
config (kernel-config-x86-2.6.5-gentoo-r1,30.73 KB, text/plain)
2004-04-16 22:35 UTC, Joel Parker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Parker 2004-04-16 22:33:23 UTC
I have a Dell Inspiron 5150 with a Mobile Pentium 4 3.06 GHz processor. The processor has two power states: 3.06 GHz and 1.6 GHz. I've found that with gentoo-dev-sources-2.6.5-r1, the kernel only detects the processor as 1.6 GHz.

My /var/log/messages for the boot sequence shows the following:

--
Apr 16 21:50:17 homer Initializing CPU#0
Apr 16 21:50:17 homer PID hash table entries: 2048 (order 11: 16384 bytes)
Apr 16 21:50:17 homer Detected 1595.157 MHz processor.
--

dmesg shows the same thing.

According to the kernel docs, /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq contains the maximum possible frequency my processor is capable of, in kHz. On my system, this file contains:

--
1599960
--

or 1.6 GHz.

I've attached my entire dmesg output and the contents of my .config.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 Mobile Intel(R) Pentium(R) 4     CPU 3.06GHz
Gentoo Base System version 1.4.9
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.pair.com/ http://gentoo.binarycompass.org
http://gentoo.chem.wisc.edu/gentoo/ http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa avi berkdb bonobo cdr cjk crypt cups doc dvd dvdr encode
escreen esd etwin flac foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml
guile imlib java jpeg libg++ libwww mad maildir mmx mozilla mpeg mysql ncurses
nls nptl oggvorbis opengl pam pda pdflib perl png ppds python quicktime readline
samba sdl slang spell sse ssl tcltk tcpd tiff truetype usb vim-with-x x86 xface
xml xml2 xmms xv zlib"
Comment 1 Joel Parker 2004-04-16 22:34:24 UTC
Created attachment 29472 [details]
dmesg
Comment 2 Joel Parker 2004-04-16 22:35:30 UTC
Created attachment 29473 [details]
config
Comment 3 Jason Cox (RETIRED) gentoo-dev 2004-04-28 13:55:22 UTC
Does this occur on a vanilla 2.6.5 kernel as well?
Comment 4 Joel Parker 2004-04-28 17:02:42 UTC
Well, now it's seemed to correct itself. I started using cpufreqd, and it fixed itself. Now it boots up recognizing the full 3.06 GHz. I believe it works in the vanilla kernel too.
Comment 5 Jason Cox (RETIRED) gentoo-dev 2004-04-28 17:08:51 UTC
Needed a userland app to fix it. cpufreqd is the culprit here.