Bug 7766 - cpu hotplug doesn't work properly on dual core procesor, possibly powernow-k8 specific
Summary: cpu hotplug doesn't work properly on dual core procesor, possibly powernow-k8...
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Processor (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: acpi_power-processor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-03 18:03 UTC by Marian Klein
Modified: 2007-08-22 21:58 UTC (History)
4 users (show)

See Also:
Kernel Version: debian stock kernel 2.6.18-3-k7, compiled kernel 2.6.19.1 pat
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Marian Klein 2007-01-03 18:03:29 UTC
Most recent kernel where this bug did *NOT* occur: dont know
Distribution:  debian
Hardware Environment: 


marian@tur:~$ sudo s2ram -i
This machine can be identified by:
    sys_vendor   = "Hewlett-Packard"
    sys_product  = "HP Compaq nx6325 (EY351ET#ABU)"
    sys_version  = "F.03"
    bios_version = "68TT2 Ver. F.03"
See http://en.opensuse.org/S2ram for details.

If you report a problem, please include the complete output above.
marian@tur:~$ 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         : 2000.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        : 3992.46

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         : 2000.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        : 3992.46



marian@tur:~$ lspci
00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:05.0 PCI bridge: ATI Technologies Inc Unknown device 5a37
00:06.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
00:12.0 IDE interface: ATI Technologies Inc ATI 4379 Serial ATA Controller (rev 
80)
00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 
80)
00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 
80)
00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller 
(rev 80)
00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 81)
00:14.1 IDE interface: ATI Technologies Inc Standard Dual Channel PCI IDE 
Controller ATI (rev 80)
00:14.2 Audio device: ATI Technologies Inc SB450 HDA Audio (rev 01)
00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)
00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address 
Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 
200M]
02:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit 
Ethernet (rev 03)
02:04.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
02:04.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 
1394 Host Controller
02:04.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card 
Reader (SD/MMC/MS/MS PRO/xD)
02:04.3 Generic system peripheral [0805]: Texas Instruments PCIxx12 SDA 
Standard Compliant SD Host Controller
30:00.0 Network controller: Broadcom Corporation BCM4310 UART (rev 01)












Software Environment:
32bit debian etch

Problem Description:

after removing Cpu1/core1 (via /sys/..../cpu1/online) and pluging in again the 
module powernow-k8 refuses to load,

related problem
if powernow-k8 module loaded and if I plug out and plug in the core1 then

cat /proc/cpuinfo shows bad information about frequency of second core cpu1
though the bogomips is showed properly
link /sys/devices/system/cpu/cpu1/cpufreq to cpu0/cpufreq disapeared
cat /sys/devices/system/cpu/cpu0/cpufreq/affected_cups  shows only 0 and before 
and at the start it showed 0 1


Steps to reproduce:
1.problem
boot binary debian stock kernel 2.6.18-3-k7 (or compiled kernel 2.6.19.1) in 
debian with init=/bin/bash
check by lsmod that there is no powernow-k8 module loaded
root#echo -n 0 > /sys/devices/system/cpu/cpu0/online
root#echo -n 1 > /sys/devices/system/cpu/cpu0/online
root#modprobe powernow-k8
error message about not having devices (I haven't write down the message sorry)

2. problem
boot binary debian stock kernel 2.6.18-3-k7 (or compiled kernel 2.6.19.1) in 
debian with init=/bin/bash
modprobe powernow-k8
root#cat /sys/devices/system/cpu/cpu0/cpufreq/affected_cups
0 1
root#ls /sys/devices/system/cpu/cpu1/
rwxr-xr-x 4 root root    0 2007-01-04 01:10 .
drwxr-xr-x 4 root root    0 2007-01-04 01:09 ..
drwxr-xr-x 5 root root    0 2007-01-04 01:09 cache
lrwxrwxrwx 1 root root    0 2007-01-04 01:10 
cpufreq -> ../../../../devices/system/cpu/cpu0/cpufreq
-r-------- 1 root root 4096 2007-01-04 01:09 crash_notes
-rw------- 1 root root 4096 2007-01-04 01:09 online
drwxr-xr-x 2 root root    0 2007-01-04 01:09 topology


root#echo -n 0 > /sys/devices/system/cpu/cpu0/online
root#echo -n 1 > /sys/devices/system/cpu/cpu0/online
then 
root#cat /sys/devices/system/cpu/cpu0/cpufreq/affected_cups
0

root# ls /sys/devices/system/cpu/cpu1/
rwxr-xr-x 4 root root    0 2007-01-04 01:10 .
drwxr-xr-x 4 root root    0 2007-01-04 01:09 ..
drwxr-xr-x 5 root root    0 2007-01-04 01:09 cache
-r-------- 1 root root 4096 2007-01-04 01:09 crash_notes
-rw------- 1 root root 4096 2007-01-04 01:09 online
drwxr-xr-x 2 root root    0 2007-01-04 01:09 topology

root#modprobe cpufreq_ondemand governor 
root#echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
root# cat /proc/cpuinfo
cpu0
cpu MHz         : 800
bogomips        :1600
cpu1
cpu MHz         : 2000
bogomips        :1600
Comment 1 Marian Klein 2007-01-03 18:12:53 UTC
sorry I made a mistake in bug report:
Instead of
echo 0 > /sys/devices/system/cpu/cpu0/online
I meant
echo 0 > /sys/devices/system/cpu/cpu1/online
and also the other 3 operations on online entry 
were taken on cpu1 and not cpu0  Sorry again
Comment 2 Natalie Protasevich 2007-06-20 17:25:41 UTC
Marian,
Does the problem still exist with 2.6.22-rc5?
Thanks.
Comment 3 Marian Klein 2007-08-19 15:12:27 UTC
The bug seems to be fixed now for the kernel 2.6.22 
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.tar.bz
I don't test rc kernels and I have not tested 2.6.22.3

Note You need to log in before you can comment on or make changes to this bug.