Project

General

Profile

Todo #704

Load cpufreq.ko when powerd is enabled

Added by Jim Pingle about 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Operating System
Target version:
Start date:
06/28/2010
Due date:
% Done:

100%

Estimated time:

Description

Looks like we need to load cpufreq.ko when powerd is enabled, and some systems also need to change their timecounter (but there may not be any automated way to accommodate that)

See: http://forum.pfsense.org/index.php/topic,26238.msg136719.html#msg136719

Associated revisions

Revision c3b13d60 (diff)
Added by Jim Pingle about 9 years ago

Load cpufreq on nanobsd when enabling powerd. It's in the kernel on full installs. Fixes #704

History

#1 Updated by Jim Pingle about 9 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Bipin Chandra about 9 years ago

im on the 30th june nanobsd snap and if i enable powerd, this is what i get in the console

powerd: lookup freq: No such file or directory

#3 Updated by Jim Pingle about 9 years ago

What kind of hardware are you using?

I'm running it on my router (VIA CPU running a NanoBSD snapshot) and it loads without error, and does appear to be adjusting the CPU frequency properly:

dev.cpu.0.freq: 373
dev.cpu.0.freq_levels: 995/-1 870/-1 746/-1 621/-1 497/-1 373/-1 248/-1 124/-1

(run a few commands)

dev.cpu.0.freq: 497
dev.cpu.0.freq_levels: 995/-1 870/-1 746/-1 621/-1 497/-1 373/-1 248/-1 124/-1

Can you tell if cpufreq.ko is loaded? (run kldstat from a shell prompt)

#4 Updated by Bipin Chandra about 9 years ago

im running on my alix

#5 Updated by Jim Pingle about 9 years ago

I got that error the next time I booted my router, so it may still be an issue. I'll look into it.

Does the ALIX even support multiple frequencies? If you load cpufreq by hand do you get output similar to what I show above?

#6 Updated by Bipin Chandra about 9 years ago

kldstat
Id Refs Address Size Name
1 15 0xc0400000 c61cd4 kernel
2 1 0xc2c79000 e000 dummynet.ko
3 1 0xc2ee0000 b000 cpufreq.ko

dev.cpu.0.freq: 373
cpu.0.freq:: Too many argumentsdev.

#7 Updated by Jim Pingle almost 9 years ago

  • Status changed from Feedback to Resolved

Closing this as the error given is due to ALIX not really supporting powerd with the default TSC timecounter, which is not the fault of cpufreq.ko which loads OK at boot time.

If we need some other mechanism to change timecounters (if that would even help) that would end up being a new feature and not really related to this ticket.

Also available in: Atom PDF