* banias with different (unusual?) model_name
@ 2004-08-20 9:33 matthias brill
2004-08-20 13:25 ` Alan Cox
2004-08-21 2:19 ` Jeremy Fitzhardinge
0 siblings, 2 replies; 5+ messages in thread
From: matthias brill @ 2004-08-20 9:33 UTC (permalink / raw)
To: jeremy, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]
hi jeremy
i've found a pentium-m banias which reports "Mobile Genuine Intel(R)
processor 1400MHz" in /proc/cpuinfo. this (strange?) signature
prevents speedstep-centrino.c from working properly.
the machine is a asus L4000R-series (L4510RBP) pentium-m/ati9100igp
notebook.
"Enhanced SpeedStep" works as advertised for this particular pentium-m
with the following trivial patch applied:
# diff -up arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c.default arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
--- arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c.default 2004-08-19 19:53:59.000000000 +0200
+++ arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2004-08-19 20:49:06.000000000 +0200
@@ -195,7 +195,7 @@ static struct cpufreq_frequency_table ba
#define _BANIAS(cpuid, max, name) \
{ .cpu_id = cpuid, \
- .model_name = "Intel(R) Pentium(R) M processor " name "MHz", \
+ .model_name = "Mobile Genuine Intel(R) processor " name "MHz", \
.max_freq = (max)*1000, \
.op_points = banias_##max, \
}
it seems that only the model_name is different for this CPU?
thias
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 9
model name : Mobile Genuine Intel(R) processor 1400MHz
stepping : 5
cpu MHz : 600.087
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe tm2 est
bogomips : 1190.18
--
Matthias Brill <matthias.brill@akamail.com>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: banias with different (unusual?) model_name
2004-08-20 9:33 banias with different (unusual?) model_name matthias brill
@ 2004-08-20 13:25 ` Alan Cox
2004-08-21 11:53 ` matthias brill
2004-08-21 2:19 ` Jeremy Fitzhardinge
1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2004-08-20 13:25 UTC (permalink / raw)
To: matthias.brill; +Cc: jeremy, Linux Kernel Mailing List
On Gwe, 2004-08-20 at 10:33, matthias brill wrote:
> hi jeremy
>
> i've found a pentium-m banias which reports "Mobile Genuine Intel(R)
> processor 1400MHz" in /proc/cpuinfo. this (strange?) signature
> prevents speedstep-centrino.c from working properly.
Signatures appear to be BIOS set so that would make sense.
> # diff -up arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c.default arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
> --- arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c.default 2004-08-19 19:53:59.000000000 +0200
> +++ arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c 2004-08-19 20:49:06.000000000 +0200
> @@ -195,7 +195,7 @@ static struct cpufreq_frequency_table ba
>
> #define _BANIAS(cpuid, max, name) \
> { .cpu_id = cpuid, \
> - .model_name = "Intel(R) Pentium(R) M processor " name "MHz", \
> + .model_name = "Mobile Genuine Intel(R) processor " name "MHz", \
> .max_freq = (max)*1000, \
> .op_points = banias_##max, \
> }
>
You need a new entry "_WEIRDBANIAS" and entries in the table so that
you don't break other people by such a change but yes
> it seems that only the model_name is different for this CPU?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: banias with different (unusual?) model_name
2004-08-20 9:33 banias with different (unusual?) model_name matthias brill
2004-08-20 13:25 ` Alan Cox
@ 2004-08-21 2:19 ` Jeremy Fitzhardinge
1 sibling, 0 replies; 5+ messages in thread
From: Jeremy Fitzhardinge @ 2004-08-21 2:19 UTC (permalink / raw)
To: matthias.brill; +Cc: linux-kernel, cpufreq list
On Fri, 2004-08-20 at 11:33 +0200, matthias brill wrote:
> hi jeremy
>
> i've found a pentium-m banias which reports "Mobile Genuine Intel(R)
> processor 1400MHz" in /proc/cpuinfo. this (strange?) signature
> prevents speedstep-centrino.c from working properly.
Yeah, there seem to be a few of these around. I'm just not certain that
they're identical to "normal" Banias as far as operating points go.
J
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: banias with different (unusual?) model_name
2004-08-20 13:25 ` Alan Cox
@ 2004-08-21 11:53 ` matthias brill
2004-08-23 11:13 ` Dave Jones
0 siblings, 1 reply; 5+ messages in thread
From: matthias brill @ 2004-08-21 11:53 UTC (permalink / raw)
To: Alan Cox, Jeremy Fitzhardinge; +Cc: linux-kernel, cpufreq list
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]
hi alan, jeremy
On Fri, Aug 20, 2004 at 02:25:36PM +0100, Alan Cox wrote:
> > i've found a pentium-m banias which reports "Mobile Genuine Intel(R)
> > processor 1400MHz" in /proc/cpuinfo. this (strange?) signature
> > prevents speedstep-centrino.c from working properly.
>
> Signatures appear to be BIOS set so that would make sense.
that fact wasn't obvious to me -- i've updated the BIOS and the strange
banias signature is now gone. it reports the expected "Intel(R)
Pentium(R) M processor 1400MHz" string now.
in excess the "ACPI-behaviour" changes from "totally broken" to "not
working" which is kind of a progress... 8-}
On Fri, Aug 20, 2004 at 07:19:31PM -0700, Jeremy Fitzhardinge wrote:
> Yeah, there seem to be a few of these around. I'm just not certain that
> they're identical to "normal" Banias as far as operating points go.
it seems that the reported value depends on the mental health of the
BIOS-programmer at hand, therefore the suplied string might not be
trustworthy.
if i understand correctly, the type of the cpu can be determined by
looking at the family, model and stepping -- assuming that these values
are reported directly by the CPUID (0FA2) instruction.
the BIOS supplied model_name string in speedstep-centrino.c is parsed to
get the clock cycle time of the cpu. is this actually supposed to be
the "right" way (or worse: the only way) to get this information?
thias
--
Matthias Brill <matthias.brill@akamail.com>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: banias with different (unusual?) model_name
2004-08-21 11:53 ` matthias brill
@ 2004-08-23 11:13 ` Dave Jones
0 siblings, 0 replies; 5+ messages in thread
From: Dave Jones @ 2004-08-23 11:13 UTC (permalink / raw)
To: matthias brill; +Cc: Alan Cox, Jeremy Fitzhardinge, linux-kernel, cpufreq list
On Sat, Aug 21, 2004 at 01:53:16PM +0200, matthias brill wrote:
> if i understand correctly, the type of the cpu can be determined by
> looking at the family, model and stepping -- assuming that these values
> are reported directly by the CPUID (0FA2) instruction.
download the source for x86info sometime, and look at the hoops
it jumps through to determine what cpu its running on. It isn't
just as simple as a few cpuid calls any more. These days there are
typically up to a half dozen factors that you need to look at to
discriminate between possibilities. One of these, is cpu speed.
Unfortunatly, as we could have booted off mains, and hence a lower
clock speed, we can't do any runtime calculation like we do with
bogomips/jiffies, so we have to resort to looking at the model name
supplied by the BIOS.
> the BIOS supplied model_name string in speedstep-centrino.c is parsed to
> get the clock cycle time of the cpu. is this actually supposed to be
> the "right" way (or worse: the only way) to get this information?
It's pretty much all we have that we can trust. If we could
do something else, I'd love to, as I distrust the abilities of
BIOS programmers as much as anyone else.
Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-23 11:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 9:33 banias with different (unusual?) model_name matthias brill
2004-08-20 13:25 ` Alan Cox
2004-08-21 11:53 ` matthias brill
2004-08-23 11:13 ` Dave Jones
2004-08-21 2:19 ` Jeremy Fitzhardinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox