Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help me choose the correct CPUFreq drivers in the 2.6 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Pseud
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 273
Location: Bangalore, India

PostPosted: Thu Jul 07, 2005 7:19 am    Post subject: Help me choose the correct CPUFreq drivers in the 2.6 kernel Reply with quote

I'm trying to get power management working on my Toshiba satellite pro 6100, following the Gentoo Power Management guide. For CPU Frequency scaling, I'm supposed to choose the right kernel processor drivers. While reconfiguring the kernel with menuconfig, I read the <Help> sections for each CPUFreq driver, but none of them seem to match exactly ... so please help me choose.

Code:
(from cat /proc/cpuinfo)
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
stepping        : 4
cpu MHz         : 1794.551


Code:
(from lspci)
0000:00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
0000:00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
0000:00:1d.0 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #1) (rev 02)
0000:00:1d.1 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #2) (rev 02)
0000:00:1d.2 USB Controller: Intel Corporation 82801CA/CAM USB (Hub #3) (rev 02)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 42)
0000:00:1f.0 ISA bridge: Intel Corporation 82801CAM ISA Bridge (LPC) (rev 02)
0000:00:1f.1 IDE interface: Intel Corporation 82801CAM IDE U100 (rev 02)
0000:00:1f.5 Multimedia audio controller: Intel Corporation 82801CA/CAM AC'97 Audio Controller (rev 02)
0000:00:1f.6 Modem: Intel Corporation 82801CA/CAM AC'97 Modem Controller (rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 420 Go] (rev a3)
0000:02:08.0 Ethernet controller: Intel Corporation 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (rev 42)
0000:02:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 01)
0000:02:0b.0 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
0000:02:0b.1 CardBus bridge: Toshiba America Info Systems ToPIC100 PCI to Cardbus Bridge with ZV Support (rev 32)
0000:02:0d.0 System peripheral: Toshiba America Info Systems SD TypA Controller (rev 03)


Specifically, I dont know if these will work for me:

CONFIG_X86_SPEEDSTEP_ICH=y
Quote:
(From the corresponding menuconfig <Help>)
CONFIG_X86_SPEEDSTEP_ICH:

This adds the CPUFreq driver for certain mobile Intel Pentium III
(Coppermine), all mobile Intel Pentium III-M (Tualatin) and all
mobile Intel Pentium 4 P4-M on systems which have an Intel ICH2,
ICH3 or ICH4 southbridge.

Its a mobile Intel Pentium-4 alright, but I dont know if the southbridge is ICH (in lspci only the ethernet controller has ICH)

CONFIG_X86_P4_CLOCKMOD=y
Quote:
(again, from menuconfig <Help>)
CONFIG_X86_P4_CLOCKMOD:
This adds the CPUFreq driver for Intel Pentium 4 / XEON
processors.


Mine is a *mobile* Intel Pentium 4 .... so should I choose this?

TIA!
_________________
eschew obfuscation
Back to top
View user's profile Send private message
HackingM2
Apprentice
Apprentice


Joined: 26 Jul 2004
Posts: 245
Location: Cambridge, England

PostPosted: Thu Jul 07, 2005 6:19 pm    Post subject: Reply with quote

I have a similar setup and I'm using CONFIG_X86_SPEEDSTEP_ICH.

What I did to decide was to build them all as modules and then modprobe them one by one (yes, I had to reboot a few times :)) and check the dmesg output. I tried them all for completeness and found that CONFIG_X86_P4_CLOCKMOD seemed to work too.

When I found the right one I built it in to the kernel and disabled building of the modules. I went with CONFIG_X86_SPEEDSTEP_ICH in the end simply because I have a P4-M and it sounded closer in the description.

I assume you will be using the on-demand frequency scaling govenor, if so you will need to add this to your /etc/conf.d/local.start
Code:
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

You can check if it is working with
Code:
cat /proc/cpuinfo

My cpu frequency as displayed from the above command doesn't seem to change but the bogomips number drops to about 25% so it is working. Hope this works for you too.
Back to top
View user's profile Send private message
Pseud
Apprentice
Apprentice


Joined: 19 Mar 2004
Posts: 273
Location: Bangalore, India

PostPosted: Sun Jul 10, 2005 5:51 pm    Post subject: Reply with quote

Thanks, that seems to work :)
_________________
eschew obfuscation
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum