UNSOLVED

Neo8234

updated

22 years ago

N

Neo8234

4 Posts

0

8039

February 9th, 2004 07:00

2.6 Kernel on Dell 5150, cpufreq throttling issues

i installed fedora core 1 on my dell 5150 laptop this past week and have spent countless hours trying to get several items to work. I've finally figured out my synaptics pad configuration after about half a dozen kernel recompiles and many different XF86Config options/driver changes. I had to do a rather strange configuration, a combination of many different articles I read on the touchpad...

I have also gotten cpufreq controls to work to some degree. I am able to manually set and control the different frequencies and cpufreqd & cpudyn work to some degree. However, i believe the problem is with the scaling_driver that is enabled. I compiled both the original speedstep_centrino and speedstep_ich modules, as well as the p4-clockmod. I assumed that the ICH module would be the correct one to use because my laptop has an ICH4 chipset. however, i'm not able to locate the name of the module so that i may load it with modprobe (speedstep_ich generates a not found msg). The speedstep_centrino module will not load because it tells me that there is no such device. Only p4-clockmod will load.

p4-clockmod gives me some limited functionality such as properly outputting the frequency to the /proc & /sys interfaces and to some degree allows me to echo modify the max_speed, min_speed, and speed variables.

Unfortunately, cpufreqd & cpudyn will not work properly under this configuration (I believe due to the driver issue mentioned above). cpufreqd only lowers the speed when AC is disconnected, and doesn't raise it back up based on CPU or when AC is reconnected. cpudynd for some reason keeps the frequency at 3GHz (with occasional 1 second drops to 1533MHz), completely ignoring CPU usage. I am sure that my cpufreqd config is correct, though i'm not sure how to configure settings for cpudynd like cpufreqd allows.

I'll be happy to provide whatever info about my system is needed, here is some basic info:

2.6.2 custom compiled kernel (used on a Fedora Core 1 system)
Dell 5150 Laptop
3.06GHz Mobile Pentium 4 (no HT) In windows runs at 1.6 & 3.06 GHz depending on CPU load
I think all necessary cpufreq modules are compiled into kernel or as modules, though feel free to question me on that.
Newest versions of cpufreqd & cpudyn

Thanks for any help!

  • joeljkp

    18 Posts

    436

    0

    Posted April 14th, 2004 16:00

    I'm also having 2.6.x cpufreq issues with my 5150. Like you, I have a 3.06 GHz P4 w/o HT.

    I compiled p4-clockmod and speedstep_ich statically into the kernel, and disabled speedstep_centrino. This lets me see my cpufreq settings through /sys, but it says my max frequency is 1.6 GHz.

    According to the docs, /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq should show the maximum possible CPU frequency, but on my machine, that file shows 1.6 GHz, not 3.06 GHz.

    I'm not real sure what the problem here is.
  • wesjanik

    3 Posts

    436

    0

    Posted October 2nd, 2004 22:00

    I was having this same problem and after having spent a frustrating week googling, I decided to dive into the source code to see what was going on. I seem to have found the solution. The code for detecting which SpeedStep processor you have relies on the string model id for M-P4/533s and M-P4M HTs. However, the processor in my 5150 identifies itself differently from the string the library expects. Specifically, the library is looking for the string "Mobile Intel(R) Pentium(R) 4," but the processor identifies itself in /proc/cpuinfo as "Genuine Intel(R) CPU 3.06GHz."

    To fix the situation I edited the speedstep-lib.c file (found in the kernel source directory arch/i386/kernel/cpu/cpufreq), replacing:

    if ((ebx == 0x0e) || (strstr(c->x86_model_id,"Mobile Intel(R) Pentium(R) 4") != NULL))
    return SPEEDSTEP_PROCESSOR_P4M;

    with:

    if ((ebx == 0x0e) || (strstr(c->x86_model_id,"Mobile Intel(R) Pentium(R) 4") != NULL) || (strstr(c->x86_model_id,"Genuine Intel(R) CPU 3.06GHz") != NULL))
    return SPEEDSTEP_PROCESSOR_P4M;

    I recompiled, restarted the modules and now it works beautifully. There's probably a more generic way of identifying the CPU than this, but I haven't actually looked into it yet. For now, pasting the model name from /proc/cpuinfo seems to be reasonable considering I was recompiling the kernel anyway. Hope this works for you, because it was really frustrating me!
  • wesjanik

    3 Posts

    436

    0

    Posted October 5th, 2004 13:00

    Actually, I think I got a little too excited on this one :-(  Turns out the processor is not a SpeedStep processor at all.  That being the case, it looks like p4-clockmod is the proper driver to use.  You may have a different processor, though...  You can find out for sure with `x86info -a` which will give you a whole bunch of info on the processor.

    Hope this helps, and sorry about the tangent :-)

    Message Edited by wesjanik on 10-05-2004 09:44 AM

  • joeljkp

    18 Posts

    436

    0

    Posted October 5th, 2004 19:00

    Well, I'm not so sure about the SpeedStep thing. I also have a Mobile Pentium 4 3.06Ghz, and Intel's page (http://intel.com/products/notebook/processors/mobilepentium4/index.htm?iid=ipp_browse+lptpprocess_p4p&) seems to be saying that it includes "Enhanced Speedstep". I'm using the speedstep_ich module just fine (although the p4_clockmod one works too).

    Do you have HyperThreading? x86config -a shows that mine has the Hyper-Threading feature flag, but that's the only thing that's telling me I have it. The cpu name doesn't have 'HT' in it, it doesn't show up as two processors under Windows, I don't have the little HT on my P4 case sticker, etc. How do I know if I really have it?
  • wesjanik

    3 Posts

    436

    0

    Posted October 19th, 2004 20:00

    After having some other problems, I decided to flash my BIOS with an upgrade.  After doing so, /proc/cpuinfo reported my processor as being a Mobile Pentium 4, having HyperThreading in the feature flags list.  I'm not quite sure why reflashing the BIOS would cause my CPU to identify itself differently.  Regardless, I'm now using speedstep-ich with no problems.  As far as HyperThreading is concerned, I've not tried to verify whether or not my processor actually has it, but I planned on trying to compile support for it into my kernel.  I figure that's as good a way to find out for sure as any :smileyhappy: