Wrong frequencies sometimes on Sony Vaio Athlon4
Hi,
I have a 1.2 GHz Athlon4 CPU on my Sony Vaio PCG-FXA49 laptop. I use the powernow CPU scaling. Sometimes (a few percent of the time), the driver records my laptop's CPU as the wrong speed. For example, right now the following speeds are available:
1292256 1076880 861504 646128 538440
The first should be almost exactly 1.2 GHz while the last should be 500 MHz.
/proc/cpuinfo:
processor : 0vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : mobile AMD Athlon(tm) 4
stepping : 2
cpu MHz : 1076.885
cache size : 256 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 2144.24
dmesg reports:
CPU: After generic identify, caps: 0383f9ff c1cbf9ff 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383f9ff c1cbf9ff 00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383f9ff c1cbf9ff 00000000 00000020 00000000 00000000 00000000
CPU: AMD mobile AMD Athlon(tm) 4 stepping 02
powernow: PowerNOW! Technology present. Can scale: frequency and
voltage.
Detected 1292.262 MHz processor.
powernow: No PST tables match this cpuid (0x762)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: Minimum speed 538 MHz. Maximum speed 1292 MHz.
Quoted 11 lines · Nathan Conrad
Hi,
I have a 1.2 GHz Athlon4 CPU on my Sony Vaio PCG-FXA49 laptop. I use the powernow CPU scaling. Sometimes (a few percent of the time), the driver records my laptop's CPU as the wrong speed. For example, right now the following speeds are available:
1292256 1076880 861504 646128 538440
The first should be almost exactly 1.2 GHz while the last should be 500 MHz.
They're an approximation. We just report what the BIOS claims the platform is capable of.
Dave
It is strange that the cpufreq driver is not recognising your CPU.
Did you change/upgrade it? I have the same laptop (FX-502, which is the european version of FXA-49). I had the same problem when I upgraded my CPU from the original Mobile 1GHz Duron, to Athlon XP 1900+.
What I did is to hardcode the powerstates table (thank you CPUFREQ guys for the support and the help in doing that!)
so the driver is always using it instead of using the ACPI perflib. Please email me if you want my patch. Then just recompile your kernel and have fun ! :)
May be you will need to adjust the frequencies/voltages table yourself, as my settings may not work for you.
Best,
Alex
Alex
Quoted 65 lines · --- Nathan Conrad
Hi,
I have a 1.2 GHz Athlon4 CPU on my Sony Vaio PCG-FXA49 laptop. I use
the powernow CPU scaling. Sometimes (a few percent of the time), the
driver records my laptop's CPU as the wrong speed. For example, right
now the following speeds are available:1292256 1076880 861504 646128 538440
The first should be almost exactly 1.2 GHz while the last should be
500 MHz.
/proc/cpuinfo:processor : 0
vendor_id: AuthenticAMD
cpu family : 6
model : 6
model name : mobile AMD Athlon(tm) 4
stepping : 2
cpu MHz : 1076.885
cache size : 256 KBfdiv_bug: nohlt_bug: nof00f_bug: nocoma_bug: no
fpu : yesfpu_exception: yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae
mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow
bogomips : 2144.24dmesg reports:
CPU: After generic identify, caps:
0383f9ffc1cbf9ff00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps:0383f9ffc1cbf9ff00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps:0383f9ffc1cbf9ff00000000 00000020 00000000 00000000 00000000
CPU: AMD mobile AMD Athlon(tm) 4 stepping 02
powernow: PowerNOW! Technology present. Can
scale: frequency and
voltage.
Detected 1292.262 MHz processor.
powernow: No PST tables match this cpuid (0x762)
powernow: This is indicative of a broken BIOS.
powernow: Trying ACPI perflib
powernow: Minimum speed 538 MHz. Maximum speed 1292 MHz.
Quoted 4 lines
_______________________________________________
Cpufreq mailing list
[email protected]
http://lists.linux.org.uk/mailman/listinfo/cpufreq
Quoted 1 line
__________________________________________
Yahoo! DSL – Something to write home about. Just $16.99/mo. or less.
dsl.yahoo.com
Quoted 11 lines · Nathan Conrad
Hi,
I have a 1.2 GHz Athlon4 CPU on my Sony Vaio PCG-FXA49 laptop. I use the powernow CPU scaling. Sometimes (a few percent of the time), the driver records my laptop's CPU as the wrong speed. For example, right now the following speeds are available:
1292256 1076880 861504 646128 538440
The first should be almost exactly 1.2 GHz while the last should be 500 MHz.
Does that patch fix this issue?
arch/i386/kernel/timers/timer_tsc.c +2 -0
@@ -325,7 +325,9 @@ int recalibrate_cpu_khz(void)unsigned int cpu_khz_old = cpu_khz;if (cpu_has_tsc) { +local_irq_disable ();init_cpu_khz (); +locale_irq_enable (); cpu_data[0 ].loops_per_jiffy = cpufreq_scale(cpu_data[0].loops_per_jiffy, cpu_khz_old,
Signature · 4 lines
Bruno Ducrot -- Which is worse: ignorance or apathy? -- Don't know. Don't care.