All of lore.kernel.org
 help / color / mirror / Atom feed
* CPU off-on-off: lost CPU management?
@ 2007-04-08 16:23 Mircea Bardac
  2007-04-18 10:15 ` Stefan Prechtel
  0 siblings, 1 reply; 7+ messages in thread
From: Mircea Bardac @ 2007-04-08 16:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andika Triwidada, linux

Hi everyone,

After reading "CPU offline but power consumption increased?" lkml thread I 
wanted to test CPU on-off on my Turion 64 X2.

I found out something strange, related to the way CPU is turned off and back 
on. I don't know if this is a kernel bug, but looks pretty suspicious.


**** The initial situation, both cores running at 1.6 GHz, full info displayed
**** /proc/cpuinfo

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 1600.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 
3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm 
stc
bogomips        : 3195.47
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 1600.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 
3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm 
stc
bogomips        : 3195.47
clflush size    : 64



**** The initial situation, both cores running at 1.6 GHz, full info displayed
**** cpufreq-info

# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz (asserted by call to hardware).
analyzing CPU 1:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz (asserted by call to hardware).



**** 2nd core is shut down

# echo 0 > /sys/devices/system/cpu/cpu1/online



**** Only 2nd core is now running, at 800 MHz, half bogomips
**** /proc/cpuinfo

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 
3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm 
stc
bogomips        : 1597.73
clflush size    : 64



**** Only 2nd core is now running, at 800 MHz, half bogomips
**** cpufreq-info

# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).



**** Turning 2nd core back on

# echo 1 > /sys/devices/system/cpu/cpu1/online



**** /proc/cpuinfo shows again info about 2nd core
**** but some details are missing about 2nd core, such as "cache size"
**** (others might also be missing) - this makes me think something might not
**** be working right (cache not used maybe?)
**** Bogomips is still half (I'm not sure if this is directly proportional
**** with CPU frequency or with number of cores)

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 
3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm 
stc
bogomips        : 1597.73
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 1596.093
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm 
3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm 
stc
bogomips        : 1596.01
clflush size    : 64


**** cpufreq-info shows info only about 1st core

# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: powersave, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU



**** reloading powernow-k8 driver, to check if cpufreq-info gets back working

# rmmod powernow-k8

# modprobe powernow-k8
FATAL: Error inserting powernow_k8 
(/lib/modules/2.6.20-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): 
No such device


Many thanks,
Mircea

-- 
http://mircea.bardac.net

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

* Re: CPU off-on-off: lost CPU management?
  2007-04-08 16:23 CPU off-on-off: lost CPU management? Mircea Bardac
@ 2007-04-18 10:15 ` Stefan Prechtel
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Prechtel @ 2007-04-18 10:15 UTC (permalink / raw)
  To: Mircea Bardac
  Cc: linux-kernel, Rusty Russell, Srivatsa Vaddagiri, Zwane Mwaikambo,
	Ashok Raj

Hello,

I have the same "problems" with CPU-Hotplug. Whenever I turn off the
second core and turn it back on, /proc/cpuinfo shows that the second
core is on, but at a different speed.

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-60
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8legacy ts fid vid ttp tm stc
bogomips        : 1596.96
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-60
stepping        : 2
cpu MHz         : 1995.071
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm
extapic cr8legacy ts fid vid ttp tm stc
bogomips        : 3990.71
clflush size    : 64



dmesg shows the following after resume from s2disk (only the first
time, then "CPU: Vendor unknown../Your system my be unstable" doesn't
appear):


Disabling non-boot CPUs ...
Cannot set affinity for irq 0
CPU 1 is now offline
SMP alternatives: switching to UP code
CPU1 is down
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Enabling non-boot CPUs ...
SMP alternatives: switching to SMP code
Booting processor 1/1 eip 3000
Initializing CPU#1
Calibrating delay using timer specific routine.. 3990.61 BogoMIPS (lpj=1995306)
CPU: Vendor unknown, using generic init.
CPU: Your system may be unstable.
CPU: After generic identify, caps: 178bfbff ebd3fbff 00000000 00000000
00002001 00000000 0000001f
CPU: After all inits, caps: 178bfbff ebd3fbff 00000000 00000000
00002001 00000000 0000001f
CPU1: AuthenticAMD AMD Turion(tm) 64 X2 Mobile Technology TL-60 stepping 02
CPU1 is up
Switched to high resolution mode on CPU 1


But I don't noticed a shorter batterylife or more cpu hotness, so I
think the second core is running at the same speed as CPU0 and
/proc/cpuinfo (and possibly other files) doesn't update correctly.


Regards,
Stefan



2007/4/8, Mircea Bardac <dev.list@mircea.bardac.net>:
> Hi everyone,
>
> After reading "CPU offline but power consumption increased?" lkml thread I
> wanted to test CPU on-off on my Turion 64 X2.
>
> I found out something strange, related to the way CPU is turned off and back
> on. I don't know if this is a kernel bug, but looks pretty suspicious.
>
>
> **** The initial situation, both cores running at 1.6 GHz, full info displayed
> **** /proc/cpuinfo
>
> # cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 1600.000
> cache size      : 512 KB
> physical id     : 0
> siblings        : 2
> core id         : 0
> cpu cores       : 2
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm
> 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm
> stc
> bogomips        : 3195.47
> clflush size    : 64
>
> processor       : 1
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 1600.000
> cache size      : 512 KB
> physical id     : 0
> siblings        : 2
> core id         : 1
> cpu cores       : 2
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm
> 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm
> stc
> bogomips        : 3195.47
> clflush size    : 64
>
>
>
> **** The initial situation, both cores running at 1.6 GHz, full info displayed
> **** cpufreq-info
>
> # cpufreq-info
> cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
> Report errors and bugs to linux@brodo.de, please.
> analyzing CPU 0:
>   driver: powernow-k8
>   CPUs which need to switch frequency at the same time: 0 1
>   hardware limits: 800 MHz - 1.60 GHz
>   available frequency steps: 1.60 GHz, 800 MHz
>   available cpufreq governors: powersave, performance
>   current policy: frequency should be within 800 MHz and 1.60 GHz.
>                   The governor "performance" may decide which speed to use
>                   within this range.
>   current CPU frequency is 1.60 GHz (asserted by call to hardware).
> analyzing CPU 1:
>   driver: powernow-k8
>   CPUs which need to switch frequency at the same time: 0 1
>   hardware limits: 800 MHz - 1.60 GHz
>   available frequency steps: 1.60 GHz, 800 MHz
>   available cpufreq governors: powersave, performance
>   current policy: frequency should be within 800 MHz and 1.60 GHz.
>                   The governor "performance" may decide which speed to use
>                   within this range.
>   current CPU frequency is 1.60 GHz (asserted by call to hardware).
>
>
>
> **** 2nd core is shut down
>
> # echo 0 > /sys/devices/system/cpu/cpu1/online
>
>
>
> **** Only 2nd core is now running, at 800 MHz, half bogomips
> **** /proc/cpuinfo
>
> # cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 800.000
> cache size      : 512 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm
> 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm
> stc
> bogomips        : 1597.73
> clflush size    : 64
>
>
>
> **** Only 2nd core is now running, at 800 MHz, half bogomips
> **** cpufreq-info
>
> # cpufreq-info
> cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
> Report errors and bugs to linux@brodo.de, please.
> analyzing CPU 0:
>   driver: powernow-k8
>   CPUs which need to switch frequency at the same time: 0
>   hardware limits: 800 MHz - 1.60 GHz
>   available frequency steps: 1.60 GHz, 800 MHz
>   available cpufreq governors: powersave, performance
>   current policy: frequency should be within 800 MHz and 1.60 GHz.
>                   The governor "performance" may decide which speed to use
>                   within this range.
>   current CPU frequency is 800 MHz (asserted by call to hardware).
>
>
>
> **** Turning 2nd core back on
>
> # echo 1 > /sys/devices/system/cpu/cpu1/online
>
>
>
> **** /proc/cpuinfo shows again info about 2nd core
> **** but some details are missing about 2nd core, such as "cache size"
> **** (others might also be missing) - this makes me think something might not
> **** be working right (cache not used maybe?)
> **** Bogomips is still half (I'm not sure if this is directly proportional
> **** with CPU frequency or with number of cores)
>
> # cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 800.000
> cache size      : 512 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm
> 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm
> stc
> bogomips        : 1597.73
> clflush size    : 64
>
> processor       : 1
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 1596.093
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt lm
> 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm cr8legacy ts fid vid ttp tm
> stc
> bogomips        : 1596.01
> clflush size    : 64
>
>
> **** cpufreq-info shows info only about 1st core
>
> # cpufreq-info
> cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
> Report errors and bugs to linux@brodo.de, please.
> analyzing CPU 0:
>   driver: powernow-k8
>   CPUs which need to switch frequency at the same time: 0
>   hardware limits: 800 MHz - 1.60 GHz
>   available frequency steps: 1.60 GHz, 800 MHz
>   available cpufreq governors: powersave, performance
>   current policy: frequency should be within 800 MHz and 1.60 GHz.
>                   The governor "performance" may decide which speed to use
>                   within this range.
>   current CPU frequency is 800 MHz (asserted by call to hardware).
> analyzing CPU 1:
>   no or unknown cpufreq driver is active on this CPU
>
>
>
> **** reloading powernow-k8 driver, to check if cpufreq-info gets back working
>
> # rmmod powernow-k8
>
> # modprobe powernow-k8
> FATAL: Error inserting powernow_k8
> (/lib/modules/2.6.20-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko):
> No such device
>
>
> Many thanks,
> Mircea
>
> --
> http://mircea.bardac.net
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

* Re: CPU off-on-off: lost CPU management?
  2007-06-06 11:50     ` Peter Oruba
@ 2007-06-06 22:58       ` Stefan Prechtel
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Prechtel @ 2007-06-06 22:58 UTC (permalink / raw)
  To: Peter Oruba; +Cc: Mircea Bardac, Linux List

Hi!
This issue is solved with 2.6.22-rc for me. The second core is up with
the same speed as core 1 (Bogomips are the same, too).

- Stefan Prechtel


2007/6/6, Peter Oruba <peter.oruba@amd.com>:
> I'm sorry, I am not able to reproduce this issue (using 2.6.21.3). Everything
> works fine on my Turion laptop. It looks like there is also CPU hotplug
> involved in that issue, since brining cpu1 back on doesn't update siblings
> and cpu_cores in /proc/cpuinfo as well. Can you specify more details about
> the system you are using? Have you tried enabling CONFIG_CPU_FREQ_DEBUG and
> booting with "cpufreq.debug=7"?
>
> Peter Oruba
>
>

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

* Re: CPU off-on-off: lost CPU management?
  2007-06-05  9:56   ` Mircea Bardac
@ 2007-06-06 11:50     ` Peter Oruba
  2007-06-06 22:58       ` Stefan Prechtel
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Oruba @ 2007-06-06 11:50 UTC (permalink / raw)
  To: Mircea Bardac; +Cc: stefan.prechtel, Linux List

[-- Attachment #1: Type: text/plain, Size: 2868 bytes --]

I'm sorry, I am not able to reproduce this issue (using 2.6.21.3). Everything 
works fine on my Turion laptop. It looks like there is also CPU hotplug 
involved in that issue, since brining cpu1 back on doesn't update siblings 
and cpu_cores in /proc/cpuinfo as well. Can you specify more details about 
the system you are using? Have you tried enabling CONFIG_CPU_FREQ_DEBUG and 
booting with "cpufreq.debug=7"?

Peter Oruba


Am Dienstag, 5. Juni 2007 11:56:44 schrieb Mircea Bardac:
> On Tuesday 05 June 2007 12:52:59 Mircea Bardac wrote:
> > Hi Peter,
> >
> > This time with Kernel 2.6.21.3.
> >
> > [...]
> >
> > # echo 1 > /sys/devices/system/cpu/cpu1/online
> >
> > # cat /proc/cpuinfo
> > processor       : 0
> > vendor_id       : AuthenticAMD
> > cpu family      : 15
> > model           : 72
> > model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> > stepping        : 2
> > cpu MHz         : 800.000
> > cache size      : 512 KB
> > physical id     : 0
> > siblings        : 1
> > core id         : 0
> > cpu cores       : 1
> > fdiv_bug        : no
> > hlt_bug         : no
> > f00f_bug        : no
> > coma_bug        : no
> > fpu             : yes
> > fpu_exception   : yes
> > cpuid level     : 1
> > wp              : yes
> > flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> > mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> > fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic
> > cr8legacy ts fid vid ttp tm stc
> > bogomips        : 1597.67
> > clflush size    : 64
> >
> > processor       : 1
> > vendor_id       : AuthenticAMD
> > cpu family      : 15
> > model           : 72
> > model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> > stepping        : 2
> > cpu MHz         : 798.015
> > fdiv_bug        : no
> > hlt_bug         : no
> > f00f_bug        : no
> > coma_bug        : no
> > fpu             : yes
> > fpu_exception   : yes
> > cpuid level     : 1
> > wp              : yes
> > flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
> > mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
> > fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic
> > cr8legacy ts fid vid ttp tm stc
> > bogomips        : 1596.26
> > clflush size    : 64
>
> As a follow-up:
>
> As Stefan noticed initially, the CPU frequency of the 2nd CPU is different
> after the CPU is brought back online.
>
> Mircea


-- 
AMD Saxony Limited Liability Company & Co. KG
Operating System Research Center
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896
General Partner authorized to represent:
AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: CPU off-on-off: lost CPU management?
  2007-06-05  9:52 ` Mircea Bardac
@ 2007-06-05  9:56   ` Mircea Bardac
  2007-06-06 11:50     ` Peter Oruba
  0 siblings, 1 reply; 7+ messages in thread
From: Mircea Bardac @ 2007-06-05  9:56 UTC (permalink / raw)
  To: Peter Oruba; +Cc: stefan.prechtel, Linux List

On Tuesday 05 June 2007 12:52:59 Mircea Bardac wrote:
> Hi Peter,
>
> This time with Kernel 2.6.21.3.
>
> [...]
>
> # echo 1 > /sys/devices/system/cpu/cpu1/online
>
> # cat /proc/cpuinfo
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 800.000
> cache size      : 512 KB
> physical id     : 0
> siblings        : 1
> core id         : 0
> cpu cores       : 1
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
> rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy
> ts fid vid ttp tm stc
> bogomips        : 1597.67
> clflush size    : 64
>
> processor       : 1
> vendor_id       : AuthenticAMD
> cpu family      : 15
> model           : 72
> model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
> stepping        : 2
> cpu MHz         : 798.015
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt
> rdtscp lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy
> ts fid vid ttp tm stc
> bogomips        : 1596.26
> clflush size    : 64


As a follow-up:

As Stefan noticed initially, the CPU frequency of the 2nd CPU is different 
after the CPU is brought back online.

Mircea

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

* Re: CPU off-on-off: lost CPU management?
  2007-06-05  8:03 Peter Oruba
@ 2007-06-05  9:52 ` Mircea Bardac
  2007-06-05  9:56   ` Mircea Bardac
  0 siblings, 1 reply; 7+ messages in thread
From: Mircea Bardac @ 2007-06-05  9:52 UTC (permalink / raw)
  To: Peter Oruba; +Cc: stefan.prechtel, Linux List

Hi Peter,

This time with Kernel 2.6.21.3.

On Tuesday 05 June 2007 11:03:23 Peter Oruba wrote:
> reagarding your Turion cpufreq issues - is that solved by now?
> http://lkml.org/lkml/2007/4/8/59


**** /proc/cpuinfo shows half the bogomips it showed in my initial post
**** (maybe it is right now)

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp 
lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid 
vid ttp tm stc
bogomips        : 1597.67
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp 
lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid 
vid ttp tm stc
bogomips        : 1597.67
clflush size    : 64


# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0 1
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).

# echo 0 > /sys/devices/system/cpu/cpu1/online

**** this time the bogomips didn't drop to half of the dual-cpu bogomips
**** mostly because the dual bogomips is now half
**** (as I said before, don't know if this is right)
**** the features list now shows "up"
**** (in addition to what the features list of the dual-cpu showed)
**** (is this right?, might have appeared in my initial post too)

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp 
lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid 
vid ttp tm stc
bogomips        : 1597.67
clflush size    : 64


[root@cougar /home/mircea]# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).

**** compared to my initial post, everything below didn't change at all
**** meaning all inconsistences are still there
**** (like: cache size missing for the 2nd core)
**** still can't activate powernow-k8 for the 2nd core
**** bogomips appears to stay the same for each CPU compared to my prev
**** post

# echo 1 > /sys/devices/system/cpu/cpu1/online

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 800.000
cache size      : 512 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp 
lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid 
vid ttp tm stc
bogomips        : 1597.67
clflush size    : 64

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 72
model name      : AMD Turion(tm) 64 X2 Mobile Technology TL-52
stepping        : 2
cpu MHz         : 798.015
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp 
lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid 
vid ttp tm stc
bogomips        : 1596.26
clflush size    : 64


# cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: powernow-k8
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 800 MHz - 1.60 GHz
  available frequency steps: 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 1.60 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
  no or unknown cpufreq driver is active on this CPU

# rmmod powernow-k8

# modprobe powernow-k8
FATAL: Error inserting powernow_k8 
(/lib/modules/2.6.21-ARCH/kernel/arch/i386/kernel/cpu/cpufreq/powernow-k8.ko): 
No such device


Many thanks for following this,
Mircea

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

* Re: CPU off-on-off: lost CPU management?
@ 2007-06-05  8:03 Peter Oruba
  2007-06-05  9:52 ` Mircea Bardac
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Oruba @ 2007-06-05  8:03 UTC (permalink / raw)
  To: dev.list, stefan.prechtel; +Cc: Linux List

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

Stefan, Mircea,

reagarding your Turion cpufreq issues - is that solved by now?
http://lkml.org/lkml/2007/4/8/59

Regards,
Peter Oruba

-- 
AMD Saxony Limited Liability Company & Co. KG
Operating System Research Center
Wilschdorfer Landstr. 101, 01109 Dresden, Germany
Register Court Dresden: HRA 4896
General Partner authorized to represent:
AMD Saxony LLC (Wilmington, Delaware, US)
General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-06-06 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-08 16:23 CPU off-on-off: lost CPU management? Mircea Bardac
2007-04-18 10:15 ` Stefan Prechtel
2007-06-05  8:03 Peter Oruba
2007-06-05  9:52 ` Mircea Bardac
2007-06-05  9:56   ` Mircea Bardac
2007-06-06 11:50     ` Peter Oruba
2007-06-06 22:58       ` Stefan Prechtel

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.