powerpc: powernowd init script intentionally ignores ppc for loading cpufreq modules

Bug #192677 reported by ScottMiller
10
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned
powernowd (Ubuntu)
Invalid
Medium
Ubuntu PowerPC Architecture Team

Bug Description

Binary package hint: kernel-image-2.6.24-7-powerpc-di

CPU scaling on G4 Tibook does not occur with current hardy kernel. The cpu_freq modules must be compiled in the kernel to work.

All other previous versions of Ubuntu worked fine.

These lines must be all changed to built-in (y) for power management to work.

# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m
CONFIG_CPU_FREQ_GOV_ONDEMAND=m
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=m
CONFIG_CPU_FREQ_GOV_USERSPACE=m

I tested a vanilla 2.6.24.2 kernel configured with a pmac32_defconfig under hardy (uses built in cpu_freq), and scaling works properly.

Revision history for this message
Jonathan Hudson (jh+lpd) wrote :

Bug remains in 2.6.24-8-powerpc
Please may we have freq scaling back without having to build our own kernels.

Revision history for this message
ScottMiller (stmiller) wrote :

The G5 machines also require their thermal modules built-in the kernel, and not configured as modules. So power management probably does not work on G5 machines either. There was a long saga of past versions of Ubuntu having this *exact* same problem. (Grrr...)

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Critical
status: New → Triaged
importance: Critical → Medium
Revision history for this message
Brian Gr (bgreer101) wrote :

And on certain G5 machines, the lack of power management during install means that the fans run full blast, which to a new user is pretty frightening who doesn't know that the modules get loaded *after* the initial install. On my G5 iMac, this has been the case forever. Without working thermal control, nobody is going to use Ubuntu on these machines that have turned into vacuum-cleaners.

Revision history for this message
fuoco (fuoco2-deactivatedaccount) wrote :

I am not sure if my problem is the same, I have an iBook G4 1.42Ghz. powernowd doesn't start on so I don't have cpufreq. But for me it seems the problem is a init script problem since I can later manually run in terminal:
sudo powernowd
and it works great.
Other than that also therm_adt746x doesn't load automatically on boot, so i need to modprobe it to get fans to work.

Revision history for this message
Stefan Bader (smb) wrote :

This is not a problem of kernel modules being built in but force-loaded by the initramfs scripts.

Changed in linux:
assignee: ubuntu-kernel-team → nobody
status: Triaged → Won't Fix
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Stefan Bader (smb) wrote : Re: powerpc: Initramfs does not auto load cpu-freq modules

The powernowd inird script just backs out, assuming the frequency modules to be built in.

Changed in linux:
status: Won't Fix → Invalid
Changed in initramfs-tools:
assignee: nobody → ubuntu-powerpc
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
ScottMiller (stmiller) wrote :

I see, thank you Stefan. Somewhat related, but perhaps a new report should be open RE: the thermal modules not being built in. The G5 machines do require thermal modules built in, or power management will not work.

Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Phillip Susi (psusi) wrote :

The powernowd package is obsolete, please do not use it. CPU frequency scaling is now handled by the kernel, so if you still have issues on a modern release, file a bug against the linux package.

Changed in powernowd (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Steve Langasek (vorlon) wrote :

This is not an appropriate way to declare a package "obsolete". If you think a package should not be used, file a bug to get it removed from the archive and *then* invalidate the bugs.

Changed in powernowd (Ubuntu):
status: Invalid → Triaged
Revision history for this message
Jonathan Hudson (jh+lpd) wrote :

[ 50.968608] ondemand governor failed, too long transition latency of HW, fallback to performance governor

/*
 * drivers/cpufreq/cpufreq_ondemand.c
 *
.....

 * For CPUs with transition latency > 10mS (mostly drivers with CPUFREQ_ETERNAL)
 * this governor will not work.
 */

There is NO choice for "ondemand" power management (ppc G4) other than user space / powernowd. But thanks for your interest, it's really not that hard to maintain the last powernowd release outside of Ubuntu.

Revision history for this message
Phillip Susi (psusi) wrote :

This package is obsolete and has been removed from the archive. Closing associated bugs.

Changed in powernowd (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.