public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.14.3 suspend/resume with SMP (HT)
@ 2005-12-15 17:11 Karl H. Beckers
       [not found] ` <6073.193.141.92.4.1134666664.squirrel-M7EjoFQNY9cJ6rt9v30lug@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Karl H. Beckers @ 2005-12-15 17:11 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi all,

am a little stuck with suspend/resume on my ubuntu breezy system with a
vanilla 2.6.14.3 kernel built according to
http://www.columbia.edu/~ariel/acpi/acpi_howto.html

Can't get it to suspend cleanly in normal runlevels, but when I boot to
single user mode without vesafb, fbcon etc. and if I stop next to
everything (NetworkManager, pcmcia, alsa etc.) and then unload all sorts
of modules I can get the system to suspend ... though it seems to hang
with a line "Shutdown: hda" till I hit Enter.

Now, when I resume, I get:

Thawing cpus ...
Booting processor 1/1 eip 3000
Initializing CPU#1
Stuck ??
Inquiring remote API #1...
... APIC #1 ID: failed
... APIC #1 VERSION: failed
... APIC #1 SPIV: failed
Error taking cpu 1 up: -22
Kernel panic - not synching: Not enough cpus

While I tend to agree that I could use some more CPUs I don't panic about
it ;)

Anyway, from what I see on this list the code that actually gives this
output seems to be in some of the required patches mentioned here. Is it
safe to assume that 2.6.14.3 includes the patches needed for
suspend/resume on a P4 with SMP/HT/PREEMPT in the kernel?

TIA,

Karl.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

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

* RE: 2.6.14.3 suspend/resume with SMP (HT)
@ 2005-12-16  2:12 Li, Shaohua
  2005-12-16 20:17 ` Karl H. Beckers
  2005-12-19 19:57 ` Karl H. Beckers
  0 siblings, 2 replies; 9+ messages in thread
From: Li, Shaohua @ 2005-12-16  2:12 UTC (permalink / raw)
  To: Karl H. Beckers, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,
>
>am a little stuck with suspend/resume on my ubuntu breezy system with a
>vanilla 2.6.14.3 kernel built according to
>http://www.columbia.edu/~ariel/acpi/acpi_howto.html
>
>Can't get it to suspend cleanly in normal runlevels, but when I boot to
>single user mode without vesafb, fbcon etc. and if I stop next to
>everything (NetworkManager, pcmcia, alsa etc.) and then unload all
sorts
>of modules I can get the system to suspend ... though it seems to hang
>with a line "Shutdown: hda" till I hit Enter.
>
>Now, when I resume, I get:
>
>Thawing cpus ...
>Booting processor 1/1 eip 3000
>Initializing CPU#1
>Stuck ??
>Inquiring remote API #1...
>... APIC #1 ID: failed
>... APIC #1 VERSION: failed
>... APIC #1 SPIV: failed
>Error taking cpu 1 up: -22
>Kernel panic - not synching: Not enough cpus
>
>While I tend to agree that I could use some more CPUs I don't panic
about
>it ;)
>
>Anyway, from what I see on this list the code that actually gives this
>output seems to be in some of the required patches mentioned here. Is
it
>safe to assume that 2.6.14.3 includes the patches needed for
>suspend/resume on a P4 with SMP/HT/PREEMPT in the kernel?
I think it's yes.
Could you please try the CPU offline and online in the system?
just do
offline:
echo 0 > /sys/devices/system/cpu/cpu1/online
online:
echo 1 > /sys/devices/system/cpu/cpu1/online
please check if the CPU1 is correctly online after that.

Thanks,
Shaohua


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

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

* RE: 2.6.14.3 suspend/resume with SMP (HT)
  2005-12-16  2:12 Li, Shaohua
@ 2005-12-16 20:17 ` Karl H. Beckers
       [not found]   ` <1134764243.27534.4.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
  2005-12-19 19:57 ` Karl H. Beckers
  1 sibling, 1 reply; 9+ messages in thread
From: Karl H. Beckers @ 2005-12-16 20:17 UTC (permalink / raw)
  To: Li, Shaohua; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Am Freitag, den 16.12.2005, 10:12 +0800 schrieb Li, Shaohua:
> [...] I think it's yes.
> Could you please try the CPU offline and online in the system?
> just do
> offline:
> echo 0 > /sys/devices/system/cpu/cpu1/online
> online:
> echo 1 > /sys/devices/system/cpu/cpu1/online
> please check if the CPU1 is correctly online after that.
> 
> Thanks,
> Shaohua
> 

Sure,

Script wurde gestartet: Fr 16 Dez 2005 11:57:11 CE
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6113.80

root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

root@ubuntu:~# echo 1 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6113.86

Seems to work,

will try once more in single-user mode with all services stopped and
modules unloaded like when I suspended and keep you posted.

Karl.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

* Re: 2.6.14.3 suspend/resume with SMP (HT)
       [not found]   ` <1134764243.27534.4.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
@ 2005-12-17  0:30     ` Christoph Galler
       [not found]       ` <43A35C09.9040809-TsugTnnrXQsdc6zLPptBHg@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Christoph Galler @ 2005-12-17  0:30 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,

On 12/16/2005 09:17 PM, Karl H. Beckers wrote:

>> Am Freitag, den 16.12.2005, 10:12 +0800 schrieb Li, Shaohua:
>> Seems to work,
>>
>> will try once more in single-user mode with all services stopped and
>> modules unloaded like when I suspended and keep you posted.


I don't know if it solves your problem, but i had to activate "Support
for hot-pluggable CPUs (Experimental)" (CONFIG_HOTPLUG_CPU=y) in kernel
to get suspend to disk working with my Pentium 4 HT. Maybe it helps.

Christoph



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

* RE: 2.6.14.3 suspend/resume with SMP (HT)
  2005-12-16  2:12 Li, Shaohua
  2005-12-16 20:17 ` Karl H. Beckers
@ 2005-12-19 19:57 ` Karl H. Beckers
  1 sibling, 0 replies; 9+ messages in thread
From: Karl H. Beckers @ 2005-12-19 19:57 UTC (permalink / raw)
  To: Li, Shaohua; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Am Freitag, den 16.12.2005, 10:12 +0800 schrieb Li, Shaohua:
> [...] I think it's yes.
> Could you please try the CPU offline and online in the system?
> just do
> offline:
> echo 0 > /sys/devices/system/cpu/cpu1/online
> online:
> echo 1 > /sys/devices/system/cpu/cpu1/online
> please check if the CPU1 is correctly online after that.
> 
> Thanks,
> Shaohua
> 

Sure,

Script wurde gestartet: Fr 16 Dez 2005 11:57:11 CE
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6113.80

root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

root@ubuntu:~# echo 1 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6119.86

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.06GHz
stepping        : 9
cpu MHz         : 3057.209
cache size      : 512 KB
physical id     : 0
siblings        : 2
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     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid
xtpr
bogomips        : 6113.86

Seems to work,

will try once more in single-user mode with all services stopped and
modules unloaded like when I suspended and keep you posted.

Karl.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

* Re: 2.6.14.3 suspend/resume with SMP (HT)
       [not found]       ` <43A35C09.9040809-TsugTnnrXQsdc6zLPptBHg@public.gmane.org>
@ 2005-12-19 20:20         ` Karl H. Beckers
  2005-12-19 20:34         ` Karl H. Beckers
  1 sibling, 0 replies; 9+ messages in thread
From: Karl H. Beckers @ 2005-12-19 20:20 UTC (permalink / raw)
  To: Christoph Galler, Li, Shaohua; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

Hi Christoph, Shaohua,

I do have hotplug_cpu configured into my kernel and disabling/enabling
CPUs works just as well in the situation where I did my suspend, s.
below.

Could it be the setting idle=halt is causing problems? I need that (or
max_cstate=1 to keep my CPU up to speed) ... otherwise I get boottimes
of an hour) found a patch that didn't help me, so I sticked to the boot
param. Haven't gotten round to testing without the param because it
would take a matter of hours to boot and suspend :S
Probable cause here?

Thanks,

Karl.






[-- Attachment #2: typescript --]
[-- Type: text/plain, Size: 4626 bytes --]

Script started on Mon Dec 19 21:04:00 2005
root@ubuntu:~# lsmod 
Module                  Size  Used by
wbsd                   19080  0 
mmc_core               25088  1 wbsd
floppy                 63364  0 
pcspkr                  4072  0 
rtc                     9748  0 
ohci1394               35508  0 
tpm_atmel               6144  0 
tpm_infineon            9872  0 
tpm_nsc                 7168  0 
tpm                    10656  3 tpm_atmel,tpm_infineon,tpm_nsc
shpchp                 98180  0 
pci_hotplug            29764  1 shpchp
intel_agp              23708  1 
agpgart                35920  1 intel_agp
vfat                   14336  0 
fat                    54428  1 vfat
dm_mod                 59804  4 
sbp2                   24324  0 
ieee1394              101720  2 ohci1394,sbp2
psmouse                38788  0 
parport_pc             36548  1 
lp                     12420  0 
parport                37960  2 parport_pc,lp
st                     42144  0 
scsi_mod              141320  2 sbp2,st
ext3                  142088  4 
jbd                    63764  1 ext3
thermal                13576  0 
processor              25924  1 thermal
fan                     4868  0 
usbhid                 39136  0 
8139too                29184  0 
8139cp                 22912  0 
mii                     5888  2 8139too,8139cp
usbcore               123520  2 usbhid
ide_cd                 42628  0 
cdrom                  40480  1 ide_cd
ide_disk               19200  4 
ide_generic             1536  0 [permanent]
piix                   10884  0 [permanent]
generic                 4868  0 [permanent]
ide_core              130128  5 ide_cd,ide_disk,ide_generic,piix,generic
unix                   29584  2 
root@ubuntu:~# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 21:01 ?        00:00:01 init [S]         
root         2     1  0 21:01 ?        00:00:00 [migration/0]
root         3     1  0 21:01 ?        00:00:00 [ksoftirqd/0]
root         4     1  0 21:01 ?        00:00:00 [migration/1]
root         5     1  0 21:01 ?        00:00:00 [ksoftirqd/1]
root         6     1  0 21:01 ?        00:00:00 [events/0]
root         7     1  0 21:01 ?        00:00:00 [events/1]
root         8     1  0 21:01 ?        00:00:00 [khelper]
root         9     1  0 21:01 ?        00:00:00 [kthread]
root        12     9  0 21:01 ?        00:00:00 [kacpid]
root       100     9  0 21:01 ?        00:00:00 [kblockd/0]
root       101     9  0 21:01 ?        00:00:00 [kblockd/1]
root       130     9  0 21:01 ?        00:00:00 [pdflush]
root       131     9  0 21:01 ?        00:00:00 [pdflush]
root       132     1  0 21:01 ?        00:00:00 [kswapd0]
root       133     9  0 21:01 ?        00:00:00 [aio/0]
root       134     9  0 21:01 ?        00:00:00 [aio/1]
root       721     9  0 21:01 ?        00:00:00 [kseriod]
root       759     1  0 21:01 ?        00:00:00 [kirqd]
root      4886     9  0 21:01 ?        00:00:00 [khubd]
root      9201     1  0 21:01 ?        00:00:00 [kjournald]
root      9557     1  0 21:01 ?        00:00:00 udevd --daemon
root     13607     1  0 21:01 ?        00:00:00 [khpsbpkt]
root     13927     1  0 21:01 ?        00:00:00 [kjournald]
root     13928     1  0 21:01 ?        00:00:00 [kjournald]
root     13929     1  0 21:01 ?        00:00:00 [kjournald]
root     14207     1  0 21:01 ?        00:00:00 [shpchpd_event]
root     15061     1  0 21:01 ?        00:00:00 [knodemgrd_0]
root     16185     1  0 21:01 tty1     00:00:00 init [S]         
root     16190 16185  0 21:01 tty1     00:00:00 bash
root     17165 16190  0 21:04 tty1     00:00:00 script
root     17166 17165  0 21:04 tty1     00:00:00 script
root     17167 17166  0 21:04 ttyp0    00:00:00 bash -i
root     17177 17167  0 21:04 ttyp0    00:00:00 ps -ef
root@ubuntu:~# echo "platform"\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \becho 0 > /sys/devices/system/cpu/cpu\a
cpu0/ cpu1/ 
root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b^[[1P^[[1@1
root@ubuntu:~# echo /sys/devices/system/cpu/cp\au1/\b \b\b \b?/online
/sys/devices/system/cpu/cpu0/online /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# echo /sys/devices/system/cpu/cpu?/online\rroot@ubuntu:~# echo\b^[[1P\b^[[1P\b^[[1P\b^[[1P^[[1@c^[[1@a^[[1@t
1
1
root@ubuntu:~# gre\b \b\b \b\b \b\ag\b \bzgrep -i ht\b \botplug_cpu /proc/config.gz 
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_HOTPLUG_CPU=y
root@ubuntu:~# exit

Script done on Mon Dec 19 21:06:43 2005

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

* Re: 2.6.14.3 suspend/resume with SMP (HT)
       [not found]       ` <43A35C09.9040809-TsugTnnrXQsdc6zLPptBHg@public.gmane.org>
  2005-12-19 20:20         ` Karl H. Beckers
@ 2005-12-19 20:34         ` Karl H. Beckers
  1 sibling, 0 replies; 9+ messages in thread
From: Karl H. Beckers @ 2005-12-19 20:34 UTC (permalink / raw)
  To: Christoph Galler, Li, Shaohua; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

Hi Christoph, Shaohua,

I do have hotplug_cpu enabled and disabling/enabling cpus works in the
same situation as the suspend after which the resume does not.

Could my setting of idle=halt be a problem? I need it to work around a
boot up problem.

Thanks,

Karl.



[-- Attachment #2: typescript --]
[-- Type: text/plain, Size: 4626 bytes --]

Script started on Mon Dec 19 21:04:00 2005
root@ubuntu:~# lsmod 
Module                  Size  Used by
wbsd                   19080  0 
mmc_core               25088  1 wbsd
floppy                 63364  0 
pcspkr                  4072  0 
rtc                     9748  0 
ohci1394               35508  0 
tpm_atmel               6144  0 
tpm_infineon            9872  0 
tpm_nsc                 7168  0 
tpm                    10656  3 tpm_atmel,tpm_infineon,tpm_nsc
shpchp                 98180  0 
pci_hotplug            29764  1 shpchp
intel_agp              23708  1 
agpgart                35920  1 intel_agp
vfat                   14336  0 
fat                    54428  1 vfat
dm_mod                 59804  4 
sbp2                   24324  0 
ieee1394              101720  2 ohci1394,sbp2
psmouse                38788  0 
parport_pc             36548  1 
lp                     12420  0 
parport                37960  2 parport_pc,lp
st                     42144  0 
scsi_mod              141320  2 sbp2,st
ext3                  142088  4 
jbd                    63764  1 ext3
thermal                13576  0 
processor              25924  1 thermal
fan                     4868  0 
usbhid                 39136  0 
8139too                29184  0 
8139cp                 22912  0 
mii                     5888  2 8139too,8139cp
usbcore               123520  2 usbhid
ide_cd                 42628  0 
cdrom                  40480  1 ide_cd
ide_disk               19200  4 
ide_generic             1536  0 [permanent]
piix                   10884  0 [permanent]
generic                 4868  0 [permanent]
ide_core              130128  5 ide_cd,ide_disk,ide_generic,piix,generic
unix                   29584  2 
root@ubuntu:~# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 21:01 ?        00:00:01 init [S]         
root         2     1  0 21:01 ?        00:00:00 [migration/0]
root         3     1  0 21:01 ?        00:00:00 [ksoftirqd/0]
root         4     1  0 21:01 ?        00:00:00 [migration/1]
root         5     1  0 21:01 ?        00:00:00 [ksoftirqd/1]
root         6     1  0 21:01 ?        00:00:00 [events/0]
root         7     1  0 21:01 ?        00:00:00 [events/1]
root         8     1  0 21:01 ?        00:00:00 [khelper]
root         9     1  0 21:01 ?        00:00:00 [kthread]
root        12     9  0 21:01 ?        00:00:00 [kacpid]
root       100     9  0 21:01 ?        00:00:00 [kblockd/0]
root       101     9  0 21:01 ?        00:00:00 [kblockd/1]
root       130     9  0 21:01 ?        00:00:00 [pdflush]
root       131     9  0 21:01 ?        00:00:00 [pdflush]
root       132     1  0 21:01 ?        00:00:00 [kswapd0]
root       133     9  0 21:01 ?        00:00:00 [aio/0]
root       134     9  0 21:01 ?        00:00:00 [aio/1]
root       721     9  0 21:01 ?        00:00:00 [kseriod]
root       759     1  0 21:01 ?        00:00:00 [kirqd]
root      4886     9  0 21:01 ?        00:00:00 [khubd]
root      9201     1  0 21:01 ?        00:00:00 [kjournald]
root      9557     1  0 21:01 ?        00:00:00 udevd --daemon
root     13607     1  0 21:01 ?        00:00:00 [khpsbpkt]
root     13927     1  0 21:01 ?        00:00:00 [kjournald]
root     13928     1  0 21:01 ?        00:00:00 [kjournald]
root     13929     1  0 21:01 ?        00:00:00 [kjournald]
root     14207     1  0 21:01 ?        00:00:00 [shpchpd_event]
root     15061     1  0 21:01 ?        00:00:00 [knodemgrd_0]
root     16185     1  0 21:01 tty1     00:00:00 init [S]         
root     16190 16185  0 21:01 tty1     00:00:00 bash
root     17165 16190  0 21:04 tty1     00:00:00 script
root     17166 17165  0 21:04 tty1     00:00:00 script
root     17167 17166  0 21:04 ttyp0    00:00:00 bash -i
root     17177 17167  0 21:04 ttyp0    00:00:00 ps -ef
root@ubuntu:~# echo "platform"\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \becho 0 > /sys/devices/system/cpu/cpu\a
cpu0/ cpu1/ 
root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# echo 0 > /sys/devices/system/cpu/cpu1/online\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b^[[1P^[[1@1
root@ubuntu:~# echo /sys/devices/system/cpu/cp\au1/\b \b\b \b?/online
/sys/devices/system/cpu/cpu0/online /sys/devices/system/cpu/cpu1/online
root@ubuntu:~# echo /sys/devices/system/cpu/cpu?/online\rroot@ubuntu:~# echo\b^[[1P\b^[[1P\b^[[1P\b^[[1P^[[1@c^[[1@a^[[1@t
1
1
root@ubuntu:~# gre\b \b\b \b\b \b\ag\b \bzgrep -i ht\b \botplug_cpu /proc/config.gz 
CONFIG_ACPI_HOTPLUG_CPU=y
CONFIG_HOTPLUG_CPU=y
root@ubuntu:~# exit

Script done on Mon Dec 19 21:06:43 2005

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

* RE: 2.6.14.3 suspend/resume with SMP (HT)
@ 2005-12-20  2:56 Li, Shaohua
  0 siblings, 0 replies; 9+ messages in thread
From: Li, Shaohua @ 2005-12-20  2:56 UTC (permalink / raw)
  To: Karl H. Beckers, Christoph Galler
  Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi,
>
>I do have hotplug_cpu configured into my kernel and disabling/enabling
>CPUs works just as well in the situation where I did my suspend, s.
>below.
>
>Could it be the setting idle=halt is causing problems? I need that (or
>max_cstate=1 to keep my CPU up to speed)
Might be an issue fixed in latest kernel. Please try.

Thanks,
Shaohua



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id\x16865&op=click

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

* Re: 2.6.14.3 suspend/resume with SMP (HT)
       [not found] ` <6073.193.141.92.4.1134666664.squirrel-M7EjoFQNY9cJ6rt9v30lug@public.gmane.org>
@ 2005-12-21  9:58   ` Pavel Machek
  0 siblings, 0 replies; 9+ messages in thread
From: Pavel Machek @ 2005-12-21  9:58 UTC (permalink / raw)
  To: Karl H. Beckers; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Hi!

> am a little stuck with suspend/resume on my ubuntu breezy system with a
> vanilla 2.6.14.3 kernel built according to
> http://www.columbia.edu/~ariel/acpi/acpi_howto.html
> 
> Can't get it to suspend cleanly in normal runlevels, but when I boot to
> single user mode without vesafb, fbcon etc. and if I stop next to
> everything (NetworkManager, pcmcia, alsa etc.) and then unload all sorts
> of modules I can get the system to suspend ... though it seems to hang
> with a line "Shutdown: hda" till I hit Enter.
> 
> Now, when I resume, I get:
> 
> Thawing cpus ...
> Booting processor 1/1 eip 3000
> Initializing CPU#1
> Stuck ??
> Inquiring remote API #1...
> ... APIC #1 ID: failed
> ... APIC #1 VERSION: failed
> ... APIC #1 SPIV: failed
> Error taking cpu 1 up: -22
> Kernel panic - not synching: Not enough cpus
> 
> While I tend to agree that I could use some more CPUs I don't panic about
> it ;)
> 
> Anyway, from what I see on this list the code that actually gives this
> output seems to be in some of the required patches mentioned here. Is it
> safe to assume that 2.6.14.3 includes the patches needed for
> suspend/resume on a P4 with SMP/HT/PREEMPT in the kernel?

Not sure, you should really try with 2.6.15-rc...

Does resume work for you if you compile noSMP kernel?

Can you find out which driver breaks suspend?

								Pavel
-- 
Thanks, Sharp!


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click

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

end of thread, other threads:[~2005-12-21  9:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-15 17:11 2.6.14.3 suspend/resume with SMP (HT) Karl H. Beckers
     [not found] ` <6073.193.141.92.4.1134666664.squirrel-M7EjoFQNY9cJ6rt9v30lug@public.gmane.org>
2005-12-21  9:58   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2005-12-16  2:12 Li, Shaohua
2005-12-16 20:17 ` Karl H. Beckers
     [not found]   ` <1134764243.27534.4.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2005-12-17  0:30     ` Christoph Galler
     [not found]       ` <43A35C09.9040809-TsugTnnrXQsdc6zLPptBHg@public.gmane.org>
2005-12-19 20:20         ` Karl H. Beckers
2005-12-19 20:34         ` Karl H. Beckers
2005-12-19 19:57 ` Karl H. Beckers
2005-12-20  2:56 Li, Shaohua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox