All of lore.kernel.org
 help / color / mirror / Atom feed
* Cpufreq 2.4.22-pre6 & Pentium M
@ 2003-07-18 21:09 Eduardo Gonzalez-Solares
  2003-07-18 21:39 ` Jeremy Fitzhardinge
  0 siblings, 1 reply; 3+ messages in thread
From: Eduardo Gonzalez-Solares @ 2003-07-18 21:09 UTC (permalink / raw)
  To: Jeremy Fitzhardinge, Dominik Brodowski; +Cc: cpufreq list

Hi,

I downloaded the cpufreq patch from
http://www.codemonkey.org.uk/cpufreq/
against kernel 2.4.22-pre6. After compiling the kernel with Enhanced
Speedstep Support for the centrino I get next error when doing insmod:

Using
/lib/modules/2.4.22-pre6/kernel/arch/i386/kernel/speedstep-centrino.o/l
ib/modules/2.4.22-pre6/kernel/arch/i386/kernel/speedstep-centrino.o:
init_module: No such device 

Hint: insmod errors can be caused by
incorrect module parameters, including invalid IO or IRQ parameters.    
 You may find more information in syslog or the output from dmesg

Nothing in dmesg. It seems the problem is in:

       if (!cpu_has(cpu, X86_FEATURE_EST))
               return -ENODEV;

in the centrino_init function. If I remove those lines the
module loads, the processor is found:

speedstep-centrino: found "Intel(R) Pentium(R) M processor 1300MHz": max
frequency: 1300000kHz

and I can control the cpu speed.

Previous patches against kernel 2.4.21 worked ok.

Cheers,

	Eddie.

P.S. I am using a Dell D800 laptop with 1.3 MHz centrino in case that
matters.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cpufreq 2.4.22-pre6 & Pentium M
  2003-07-18 21:09 Cpufreq 2.4.22-pre6 & Pentium M Eduardo Gonzalez-Solares
@ 2003-07-18 21:39 ` Jeremy Fitzhardinge
  2003-07-19  6:46   ` Dominik Brodowski
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Fitzhardinge @ 2003-07-18 21:39 UTC (permalink / raw)
  To: Eduardo Gonzalez-Solares; +Cc: Dominik Brodowski, cpufreq list

On Fri, 2003-07-18 at 14:09, Eduardo Gonzalez-Solares wrote:
> Nothing in dmesg. It seems the problem is in:
> 
>        if (!cpu_has(cpu, X86_FEATURE_EST))
>                return -ENODEV;

I'm not sure who maintains the 2.4 port, but the problem is that the
core code which sets up the CPU feature bits doesn't know about the
extended feature word, so it doesn't read the X86_FEATURE_EST bit from
the CPU.

The previous versions of this patch used this functional but ugly code:
        int dummy, ecx;
        
        cpuid(1,&dummy,&dummy,&ecx,&dummy);
        if (!(ecx & (1<<7)))
        	return -ENODEV;

Either the new ports of speedstep-centrino.c need to keep using this
code, or the X86_FEATURE_EST bit needs to be put into cpu_data.

    J

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cpufreq 2.4.22-pre6 & Pentium M
  2003-07-18 21:39 ` Jeremy Fitzhardinge
@ 2003-07-19  6:46   ` Dominik Brodowski
  0 siblings, 0 replies; 3+ messages in thread
From: Dominik Brodowski @ 2003-07-19  6:46 UTC (permalink / raw)
  To: Jeremy Fitzhardinge; +Cc: Eduardo Gonzalez-Solares, cpufreq list

On Fri, Jul 18, 2003 at 02:39:57PM -0700, Jeremy Fitzhardinge wrote:
> On Fri, 2003-07-18 at 14:09, Eduardo Gonzalez-Solares wrote:
> > Nothing in dmesg. It seems the problem is in:
> > 
> >        if (!cpu_has(cpu, X86_FEATURE_EST))
> >                return -ENODEV;
> 
> I'm not sure who maintains the 2.4 port

/me is not maintaining it, but I'm the culprit for this bug.

>, but the problem is that the
> core code which sets up the CPU feature bits doesn't know about the
> extended feature word, so it doesn't read the X86_FEATURE_EST bit from
> the CPU.
> 
> The previous versions of this patch used this functional but ugly code:
>         int dummy, ecx;
>         
>         cpuid(1,&dummy,&dummy,&ecx,&dummy);
>         if (!(ecx & (1<<7)))
>         	return -ENODEV;
> 
> Either the new ports of speedstep-centrino.c need to keep using this
> code, or the X86_FEATURE_EST bit needs to be put into cpu_data.

Will send davej an updated version [for 2.4.22-pre7] early next week.

       Dominik

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-19  6:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-18 21:09 Cpufreq 2.4.22-pre6 & Pentium M Eduardo Gonzalez-Solares
2003-07-18 21:39 ` Jeremy Fitzhardinge
2003-07-19  6:46   ` Dominik Brodowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.