View previous topic :: View next topic |
Author |
Message |
wiebesiek n00b
Joined: 29 May 2005 Posts: 20
|
Posted: Tue Jul 19, 2005 12:24 pm Post subject: cpu frequency scaling not working after upgrading to 2.6.12 |
|
|
Cpu frequency scaling was working very well on my laptop with kernel 2.6.11-r11. Recently, I have updated my system and now it doesn't work anymore. I've tried 2.6.12-r4 and 2.6.12-r6.
While booting, I get an error message caused by /etc/init.d/cpufreqd:
Code: |
CPUFreq support has not been compiled into the kernel
|
The reason is, that neither /proc/cpufreq nor /sys/devices/system/cpu/cpu0/cpufreq exist. After booting the old 2.6.11-r11 kernel, /sys/devices/system/cpu/cpu0/cpufreq exists again.
My laptop has a 'mobile AMD Athlon(tm) XP 1800+' cpu (according to /proc/cpuinfo)
Code: |
# dmesg|grep -i freq
powernow: PowerNOW! Technology present. Can scale: frequency and voltage.
|
Somehow, the cpufreq driver is not working:
Code: |
# cpufreq-info
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
|
The powermanagement related part of my kernel configuration is:
Code: |
#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_SOFTWARE_SUSPEND is not set
#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
# CONFIG_CPU_FREQ_STAT 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
#
# CPUFreq processor drivers
#
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_POWERNOW_K6 is not set
CONFIG_X86_POWERNOW_K7=y
CONFIG_X86_POWERNOW_K7_ACPI=y
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_SPEEDSTEP_ICH is not set
# CONFIG_X86_SPEEDSTEP_SMI is not set
# CONFIG_X86_P4_CLOCKMOD is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set
#
# shared options
#
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_X86_SPEEDSTEP_LIB is not set
|
Anyone an idea?
Thanks for your time.
Torsten |
|
Back to top |
|
|
wiebesiek n00b
Joined: 29 May 2005 Posts: 20
|
Posted: Tue Jul 19, 2005 4:27 pm Post subject: |
|
|
For comparison: this is the power management related part of my 2.6.11-r11 configuration:
Code: |
#
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_SOFTWARE_SUSPEND is not set
#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
# CONFIG_ACPI_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
#
# APM (Advanced Power Management) BIOS Support
#
# CONFIG_APM is not set
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
# CONFIG_CPU_FREQ_DEBUG is not set
# CONFIG_CPU_FREQ_STAT 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_TABLE=y
#
# CPUFreq processor drivers
#
# CONFIG_X86_ACPI_CPUFREQ is not set
# CONFIG_X86_POWERNOW_K6 is not set
CONFIG_X86_POWERNOW_K7=y
CONFIG_X86_POWERNOW_K7_ACPI=y
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_GX_SUSPMOD is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_SPEEDSTEP_ICH is not set
# CONFIG_X86_SPEEDSTEP_SMI is not set
# CONFIG_X86_P4_CLOCKMOD is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set
#
# shared options
#
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
|
I can't see any relevant difference |
|
Back to top |
|
|
kare n00b
Joined: 06 Jun 2004 Posts: 26 Location: Friedberg, Germany
|
Posted: Tue Jul 19, 2005 6:35 pm Post subject: |
|
|
Try to compile as module,
Code: | CONFIG_X86_POWERNOW_K7
CONFIG_X86_POWERNOW_K7_ACPI |
and load it manually - maybe it helps. |
|
Back to top |
|
|
wiebesiek n00b
Joined: 29 May 2005 Posts: 20
|
Posted: Wed Jul 20, 2005 9:38 am Post subject: |
|
|
kare wrote: | Try to compile as module,
Code: | CONFIG_X86_POWERNOW_K7
CONFIG_X86_POWERNOW_K7_ACPI |
and load it manually - maybe it helps. |
It doesn't seem to be impossible to set CONFIG_X86_POWERNOW_K7_ACPI=m
I have tried a lot of combinations of power mangagement related drivers compiled into the kernel or compiled as module. Eventually, I compiled all of the power mangagement part as modules: nothing worked
Loading the powernow-k7 module results in following error message:
Code: |
# modprobe powernow-k7
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.12-gentoo-r6/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): No such device
|
Any idea? |
|
Back to top |
|
|
ce110ut Apprentice
Joined: 27 Sep 2002 Posts: 200
|
Posted: Wed Jul 20, 2005 10:41 am Post subject: |
|
|
I built mine as a module and was able to load it manually, but when I write to scaling_governor, it doesn't let me, not even as root.
Code: |
mackie ~ # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
mackie ~ # echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
mackie ~ # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
mackie ~ #
mackie ~ # echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
mackie ~ # echo $?
1
|
hmm... |
|
Back to top |
|
|
ce110ut Apprentice
Joined: 27 Sep 2002 Posts: 200
|
Posted: Wed Jul 20, 2005 11:06 am Post subject: |
|
|
unsatisfied, I browsed the forums some more. can't remember where exactly but I ran across a post that mentioned that there are more modules [as I had made many/all of my cpufreq drivers modules] to load. one of the more important ones is cpufreq-powersave
anyway, they're all listed in /usr/src/linux/drivers/cpufreq if you don't want to go digging around
Code: |
mackie berto # modprobe cpufreq-powersave
mackie berto # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
mackie berto # echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
mackie berto # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
mackie berto # echo "powersave" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
mackie berto # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
powersave
mackie berto # cat /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
powersave
mackie berto #
|
I don't know if it's because of 2.6.12 now using udev that these modules aren't loaded automagically. for now, I have many of the drivers loaded via /etc/modules.autoload.d/kernel-2.6.
hope this helps somewhat |
|
Back to top |
|
|
wiebesiek n00b
Joined: 29 May 2005 Posts: 20
|
Posted: Wed Jul 20, 2005 1:22 pm Post subject: |
|
|
ce110ut wrote: | unsatisfied, I browsed the forums some more. can't remember where exactly but I ran across a post that mentioned that there are more modules [as I had made many/all of my cpufreq drivers modules] to load. one of the more important ones is cpufreq-powersave
anyway, they're all listed in /usr/src/linux/drivers/cpufreq if you don't want to go digging around
|
Well, I have tried to load a lot of combinations of modules by hand: nothing worked
Loading powernow-k7 still fails with:
Code: |
FATAL: Error inserting powernow_k7 (/lib/modules/2.6.12-gentoo-r6/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k7.ko): No such device
|
ce110ut wrote: | Code: |
mackie berto # modprobe cpufreq-powersave
mackie berto # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
|
|
After modprobe cpufreq-powersave the /sys/devices/system/cpu/cpu0/ directory is still empty. |
|
Back to top |
|
|
schlummerkissen n00b
Joined: 18 Jun 2005 Posts: 39 Location: Ludwigshafen am Rhein (Germany)
|
Posted: Thu Jul 21, 2005 1:00 pm Post subject: |
|
|
on my new travelamte 4101 with alvisio i have the problem that there is no module called cpufreq, but i made it
i also tried kernel 2.6.11-r11. no chance. i dont have the interface and the module also doenst exist. |
|
Back to top |
|
|
wiebesiek n00b
Joined: 29 May 2005 Posts: 20
|
Posted: Thu Jul 21, 2005 1:25 pm Post subject: |
|
|
schlummerkissen wrote: | on my new travelamte 4101 with alvisio i have the problem that there is no module called cpufreq, but i made it
i also tried kernel 2.6.11-r11. no chance. i dont have the interface and the module also doenst exist. |
Did you compile your kernel with the frequency scaling related drivers as module?
If so, check if they are installed properly:
Code: |
# find /lib/modules/your-kernel-version/ -type f -name "cpufreq*"
|
I don't have my laptop around, so I am not sure about the real names of the modules, but I believe, there is no module called cpufreq. Try to load the governor module, e.g. cpufreq-powersave or cpufreq-userspace. |
|
Back to top |
|
|
schlummerkissen n00b
Joined: 18 Jun 2005 Posts: 39 Location: Ludwigshafen am Rhein (Germany)
|
Posted: Thu Jul 21, 2005 1:58 pm Post subject: |
|
|
I made a mistake.
you cant compile it as a module.
But my real prolem is that i dont have the inferace /performance or the other cpu-interface in /sys for speedstep
Quote: |
# Power management options (ACPI, APM)
#
CONFIG_PM=y
# CONFIG_PM_DEBUG is not set
# CONFIG_SOFTWARE_SUSPEND is not set
#
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_PROCESSOR=m
CONFIG_ACPI_THERMAL=m
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_CUSTOM_DSDT_INITRD=y
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
# CONFIG_ACPI_CONTAINER is not set
#
# APM (Advanced Power Management) BIOS Support
#
CONFIG_APM=m
# CONFIG_APM_IGNORE_USER_SUSPEND is not set
# CONFIG_APM_DO_ENABLE is not set
# CONFIG_APM_CPU_IDLE is not set
# CONFIG_APM_DISPLAY_BLANK is not set
# CONFIG_APM_RTC_IS_GMT is not set
# CONFIG_APM_ALLOW_INTS is not set
# CONFIG_APM_REAL_MODE_POWER_OFF is not set
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
CONFIG_CPU_FREQ_DEBUG=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_STAT_DETAILS=y
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=m
#
# CPUFreq processor drivers
#
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_POWERNOW_K6=m
CONFIG_X86_POWERNOW_K7=m
CONFIG_X86_POWERNOW_K7_ACPI=y
CONFIG_X86_POWERNOW_K8=m
CONFIG_X86_POWERNOW_K8_ACPI=y
CONFIG_X86_GX_SUSPMOD=m
CONFIG_X86_SPEEDSTEP_CENTRINO=y
CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
CONFIG_X86_SPEEDSTEP_ICH=m
CONFIG_X86_SPEEDSTEP_SMI=m
CONFIG_X86_P4_CLOCKMOD=m
CONFIG_X86_CPUFREQ_NFORCE2=m
CONFIG_X86_LONGRUN=m
CONFIG_X86_LONGHAUL=m
#
# shared options
#
CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
CONFIG_X86_SPEEDSTEP_LIB=m
CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
|
my kernel config,
I am new in this section so i dont know what to do for speedstep my cpu, cause in all howtows i read about the interface that i cant find. |
|
Back to top |
|
|
|