* swsusp: FATAL: cannot find swap device, try swapon -a!
@ 2005-03-24 0:09 Ferenc Szalma
2005-03-24 0:26 ` Carl-Daniel Hailfinger
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Ferenc Szalma @ 2005-03-24 0:09 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi,
Swsusp comes back with the following error message on my Toshiba m200
laptop:
Stopping tasks:
==========================================================================|
Freeing memory... done (35896 pages freed)
BUG: using smp_processor_id() in preemptible [00000001] code:
acpitool/8191
caller is disable_nonboot_cpus+0x10/0xdb
[<c025c6bf>] smp_processor_id+0xa3/0xb4
[<c013a2c5>] disable_nonboot_cpus+0x10/0xdb
[<c013a2c5>] disable_nonboot_cpus+0x10/0xdb
[<c013a4c7>] free_some_memory+0x5e/0x64
[<c013a53b>] prepare+0x2f/0xaf
[<c013a5c4>] pm_suspend_disk+0x9/0x73
[<c0138cac>] enter_state+0x8e/0x92
[<c0138dd4>] state_store+0xa4/0xb7
[<c0197015>] subsys_attr_store+0x34/0x3d
[<c0197299>] flush_write_buffer+0x3e/0x4a
[<c01972fd>] sysfs_write_file+0x58/0x80
[<c015da98>] vfs_write+0x148/0x14d
[<c015db6e>] sys_write+0x51/0x80
[<c010319f>] syscall_call+0x7/0xb
Freezing CPUs (at 0)...ok
eth1: Going into suspend...
NVRM: RmPowerManagement: 3
swsusp: FATAL: cannot find swap device, try swapon -a!
PCI: Setting latency timer of device 0000:00:1d.0 to 64
PCI: Setting latency timer of device 0000:00:1d.1 to 64
PCI: Setting latency timer of device 0000:00:1d.2 to 64
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: USB 2.0 restarted, EHCI 1.00, driver 10 Dec 2004
ACPI: PCI Interrupt 0000:00:1f.1[A] -> Link [LNKC] -> GSI 11 (level, low)
-> IRQ 11
ACPI: PCI Interrupt 0000:00:1f.5[B] -> Link [LNKB] -> GSI 11 (level, low)
-> IRQ 11
PCI: Setting latency timer of device 0000:00:1f.5 to 64
NVRM: RmPowerManagement: 4
eth1: Coming out of suspend...
PCI: Enabling device 0000:02:05.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:05.0[A] -> Link [LNKC] -> GSI 11 (level, low)
-> IRQ 11
Restarting CPUs...ok
Restarting tasks... done
usb 2-2: USB disconnect, address 2
usb 2-2.1: USB disconnect, address 3
usb 2-2.3: USB disconnect, address 4
usb 2-2: new full speed USB device using uhci_hcd and address 5
hub 2-2:1.0: USB hub found
hub 2-2:1.0: 3 ports detected
ALPS Touchpad (Glidepoint) detected
Disabling hardware tapping
input: AlpsPS/2 ALPS TouchPad on isa0060/serio1
usb 2-2.1: new full speed USB device using uhci_hcd and address 6
input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard Hub] on
usb-0000:00:1d.0-2.1
input: USB HID v1.10 Device [Dell Dell USB Keyboard Hub] on
usb-0000:00:1d.0-2.1
usb 2-2.3: new low speed USB device using uhci_hcd and address 7
input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on
usb-0000:00:1d.0-2.3
I use gentoo linux with kernel-2.6.11.4 kernel (not gentoo-kernel!)
patched with acpi-20050309-2.6.11.diff.gz and boot with
resume=swap:/dev/hda3 where hda3 is my swap patition. I have searched the
web and I see that I am not the 1st one getting the same error message;
the question is if anybody has come up with a remedy to this problem.
Thanks,
Ferenc
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
2005-03-24 0:09 swsusp: FATAL: cannot find swap device, try swapon -a! Ferenc Szalma
@ 2005-03-24 0:26 ` Carl-Daniel Hailfinger
[not found] ` <4242093F.2080203-hi6Y0CQ0nG0@public.gmane.org>
2005-03-24 1:14 ` Nigel Cunningham
2005-03-25 8:20 ` Pavel Machek
2 siblings, 1 reply; 8+ messages in thread
From: Carl-Daniel Hailfinger @ 2005-03-24 0:26 UTC (permalink / raw)
To: Ferenc Szalma; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Ferenc Szalma schrieb:
> Hi,
>
> Swsusp comes back with the following error message on my Toshiba m200
> laptop:
>
>
> Stopping tasks:
> ==========================================================================|
> Freeing memory... done (35896 pages freed)
> BUG: using smp_processor_id() in preemptible [00000001] code: acpitool/8191
> caller is disable_nonboot_cpus+0x10/0xdb
> [<c025c6bf>] smp_processor_id+0xa3/0xb4
> [<c013a2c5>] disable_nonboot_cpus+0x10/0xdb
> [<c013a2c5>] disable_nonboot_cpus+0x10/0xdb
> [<c013a4c7>] free_some_memory+0x5e/0x64
> [<c013a53b>] prepare+0x2f/0xaf
> [<c013a5c4>] pm_suspend_disk+0x9/0x73
> [<c0138cac>] enter_state+0x8e/0x92
> [<c0138dd4>] state_store+0xa4/0xb7
> [<c0197015>] subsys_attr_store+0x34/0x3d
> [<c0197299>] flush_write_buffer+0x3e/0x4a
> [<c01972fd>] sysfs_write_file+0x58/0x80
> [<c015da98>] vfs_write+0x148/0x14d
> [<c015db6e>] sys_write+0x51/0x80
> [<c010319f>] syscall_call+0x7/0xb
That's another bug. It doesn't correspond to your problems.
> Freezing CPUs (at 0)...ok
> eth1: Going into suspend...
> NVRM: RmPowerManagement: 3
> swsusp: FATAL: cannot find swap device, try swapon -a!
That's the real reason for the failure. Do you have IDE built as modules?
Basically, the kernel checks whether it can access the device at boot
time before mounting anything. For 2.6.11.4 this is not possible with
swap devices which depend on any modules loaded. Compile in every driver
needed to access your swap device.
> I use gentoo linux with kernel-2.6.11.4 kernel (not gentoo-kernel!)
> patched with acpi-20050309-2.6.11.diff.gz and boot with
> resume=swap:/dev/hda3 where hda3 is my swap patition. I have searched
> the web and I see that I am not the 1st one getting the same error
> message; the question is if anybody has come up with a remedy to this
> problem.
Yes, see above.
HTH,
Carl-Daniel
--
http://www.hailfinger.org/
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
[not found] ` <4242093F.2080203-hi6Y0CQ0nG0@public.gmane.org>
@ 2005-03-24 0:48 ` Ferenc Szalma
2005-03-24 1:16 ` Carl-Daniel Hailfinger
0 siblings, 1 reply; 8+ messages in thread
From: Ferenc Szalma @ 2005-03-24 0:48 UTC (permalink / raw)
To: Carl-Daniel Hailfinger; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Thu, 24 Mar 2005, Carl-Daniel Hailfinger wrote:
> That's another bug. It doesn't correspond to your problems.
>
>> Freezing CPUs (at 0)...ok
>> eth1: Going into suspend...
>> NVRM: RmPowerManagement: 3
>> swsusp: FATAL: cannot find swap device, try swapon -a!
>
> That's the real reason for the failure. Do you have IDE built as modules?
> Basically, the kernel checks whether it can access the device at boot
> time before mounting anything. For 2.6.11.4 this is not possible with
> swap devices which depend on any modules loaded. Compile in every driver
> needed to access your swap device.
>
Thanks for the quick reply.
These are the lines in my kernel config file with "ide" in it (sorry for
the not appropriate lines). So what should I exactly do?
mozart linux # more .config|grep -i ide
CONFIG_ACPI_VIDEO=y
# CONFIG_PARIDE is not set
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y
# Please see Documentation/ide.txt for help/info on IDE drives
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECS=y
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
# IDE chipset support/bugfixes
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# Old CD-ROM drivers (not SCSI, not IDE)
CONFIG_CD_NO_IDESCSI=y
# CONFIG_VIDEO_DEV is not set
# Digital Video Broadcasting Devices
# CONFIG_VIDEO_SELECT is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_SND_TRIDENT is not set
# Video4Linux support is needed for USB Multimedia device support
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
2005-03-24 0:09 swsusp: FATAL: cannot find swap device, try swapon -a! Ferenc Szalma
2005-03-24 0:26 ` Carl-Daniel Hailfinger
@ 2005-03-24 1:14 ` Nigel Cunningham
[not found] ` <1111626849.14853.324.camel-r49W/1Cwd2ff0s6lnCXPX/uOuaPYTxhvJwvTLr3MMZM@public.gmane.org>
2005-03-25 8:20 ` Pavel Machek
2 siblings, 1 reply; 8+ messages in thread
From: Nigel Cunningham @ 2005-03-24 1:14 UTC (permalink / raw)
To: Ferenc Szalma; +Cc: ACPI List
Hi.
On Thu, 2005-03-24 at 11:09, Ferenc Szalma wrote:
> I use gentoo linux with kernel-2.6.11.4 kernel (not gentoo-kernel!)
> patched with acpi-20050309-2.6.11.diff.gz and boot with
> resume=swap:/dev/hda3 where hda3 is my swap patition. I have searched the
> web and I see that I am not the 1st one getting the same error message;
Your problem is that you have mixed up the syntax for Suspend2 and
Pavel's implementation:
Pavel's: resume=/dev/hda3
Suspend2: resume2=swap:/dev/hda3 (or just resume2=/dev/hda3 if swap is
the only writer)
If you remove the "swap:", you should be a bit closer to being in
business.
Regards,
Nigel
--
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028; Mob: +61 (417) 100 574
Maintainer of Suspend2 Kernel Patches http://suspend2.net
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
2005-03-24 0:48 ` Ferenc Szalma
@ 2005-03-24 1:16 ` Carl-Daniel Hailfinger
0 siblings, 0 replies; 8+ messages in thread
From: Carl-Daniel Hailfinger @ 2005-03-24 1:16 UTC (permalink / raw)
To: Ferenc Szalma; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Ferenc Szalma schrieb:
>
>
> On Thu, 24 Mar 2005, Carl-Daniel Hailfinger wrote:
>
>> That's another bug. It doesn't correspond to your problems.
>>
>>> Freezing CPUs (at 0)...ok
>>> eth1: Going into suspend...
>>> NVRM: RmPowerManagement: 3
>>> swsusp: FATAL: cannot find swap device, try swapon -a!
>>
>>
>> That's the real reason for the failure. Do you have IDE built as modules?
>> Basically, the kernel checks whether it can access the device at boot
>> time before mounting anything. For 2.6.11.4 this is not possible with
>> swap devices which depend on any modules loaded. Compile in every driver
>> needed to access your swap device.
>>
>
> Thanks for the quick reply.
> These are the lines in my kernel config file with "ide" in it (sorry for
> the not appropriate lines). So what should I exactly do?
>
> mozart linux # more .config|grep -i ide
> # CONFIG_PARIDE is not set
> CONFIG_IDE=y
> CONFIG_BLK_DEV_IDE=y
> # CONFIG_BLK_DEV_IDE_SATA is not set
> # CONFIG_BLK_DEV_HD_IDE is not set
> CONFIG_BLK_DEV_IDEDISK=y
> CONFIG_IDEDISK_MULTI_MODE=y
> CONFIG_BLK_DEV_IDECS=y
> CONFIG_BLK_DEV_IDECD=y
> # CONFIG_BLK_DEV_IDETAPE is not set
> # CONFIG_BLK_DEV_IDEFLOPPY is not set
> # CONFIG_BLK_DEV_IDESCSI is not set
> # CONFIG_IDE_TASK_IOCTL is not set
> # IDE chipset support/bugfixes
> CONFIG_IDE_GENERIC=y
> # CONFIG_BLK_DEV_IDEPNP is not set
> CONFIG_BLK_DEV_IDEPCI=y
> CONFIG_IDEPCI_SHARE_IRQ=y
> CONFIG_BLK_DEV_IDEDMA_PCI=y
> # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
> CONFIG_IDEDMA_PCI_AUTO=y
> # CONFIG_IDEDMA_ONLYDISK is not set
> # CONFIG_IDE_ARM is not set
> # CONFIG_IDE_CHIPSETS is not set
> CONFIG_BLK_DEV_IDEDMA=y
> # CONFIG_IDEDMA_IVB is not set
> CONFIG_IDEDMA_AUTO=y
> # Old CD-ROM drivers (not SCSI, not IDE)
> CONFIG_CD_NO_IDESCSI=y
Very strange. What't your swap device? And please also include
the contents of /proc/cmdline
Regards,
Carl-Daniel
--
http://www.hailfinger.org/
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
[not found] ` <1111626849.14853.324.camel-r49W/1Cwd2ff0s6lnCXPX/uOuaPYTxhvJwvTLr3MMZM@public.gmane.org>
@ 2005-03-24 2:12 ` Ferenc Szalma
2005-03-24 2:23 ` Nigel Cunningham
0 siblings, 1 reply; 8+ messages in thread
From: Ferenc Szalma @ 2005-03-24 2:12 UTC (permalink / raw)
To: Nigel Cunningham; +Cc: ACPI List
Hi,
On Thu, 24 Mar 2005, Nigel Cunningham wrote:
> Pavel's: resume=/dev/hda3
> Suspend2: resume2=swap:/dev/hda3 (or just resume2=/dev/hda3 if swap is
> the only writer)
>
> If you remove the "swap:", you should be a bit closer to being in
> business.
Thanks a lot. Removing "swap:" has helped (after spending the whole last
weekend trying to install swsusp2 with 5 different kernels ... etc.)
Now I just do not understand why suspend-to-ram does not work. It
apparently suspends, and then turning the machine on again, it just boots
up as if it had not been suspended, except that it has to repair the
file system. If anybody has an idea about this, it would be appreciated.
Thanks, Ferenc
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
2005-03-24 2:12 ` Ferenc Szalma
@ 2005-03-24 2:23 ` Nigel Cunningham
0 siblings, 0 replies; 8+ messages in thread
From: Nigel Cunningham @ 2005-03-24 2:23 UTC (permalink / raw)
To: Ferenc Szalma; +Cc: ACPI List
Hi.
On Thu, 2005-03-24 at 13:12, Ferenc Szalma wrote:
> Hi,
>
> On Thu, 24 Mar 2005, Nigel Cunningham wrote:
>
> > Pavel's: resume=/dev/hda3
> > Suspend2: resume2=swap:/dev/hda3 (or just resume2=/dev/hda3 if swap is
> > the only writer)
> >
> > If you remove the "swap:", you should be a bit closer to being in
> > business.
>
> Thanks a lot. Removing "swap:" has helped (after spending the whole last
> weekend trying to install swsusp2 with 5 different kernels ... etc.)
Can't help with the next bit, but I am intrigued as to what the problem
was with suspend2. If you give me details, I might be able to help.
Regards,
Nigel
> Now I just do not understand why suspend-to-ram does not work. It
> apparently suspends, and then turning the machine on again, it just boots
> up as if it had not been suspended, except that it has to repair the
> file system. If anybody has an idea about this, it would be appreciated.
>
> Thanks, Ferenc
--
Nigel Cunningham
Software Engineer, Canberra, Australia
http://www.cyclades.com
Bus: +61 (2) 6291 9554; Hme: +61 (2) 6292 8028; Mob: +61 (417) 100 574
Maintainer of Suspend2 Kernel Patches http://suspend2.net
-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content. Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: swsusp: FATAL: cannot find swap device, try swapon -a!
2005-03-24 0:09 swsusp: FATAL: cannot find swap device, try swapon -a! Ferenc Szalma
2005-03-24 0:26 ` Carl-Daniel Hailfinger
2005-03-24 1:14 ` Nigel Cunningham
@ 2005-03-25 8:20 ` Pavel Machek
2 siblings, 0 replies; 8+ messages in thread
From: Pavel Machek @ 2005-03-25 8:20 UTC (permalink / raw)
To: Ferenc Szalma; +Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi!
> I use gentoo linux with kernel-2.6.11.4 kernel (not gentoo-kernel!)
> patched with acpi-20050309-2.6.11.diff.gz and boot with
> resume=swap:/dev/hda3 where hda3 is my swap patition. I have
> searched the
I don't know who told you to put "swap:" there, but it is *not* a good
idea.
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-03-25 8:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24 0:09 swsusp: FATAL: cannot find swap device, try swapon -a! Ferenc Szalma
2005-03-24 0:26 ` Carl-Daniel Hailfinger
[not found] ` <4242093F.2080203-hi6Y0CQ0nG0@public.gmane.org>
2005-03-24 0:48 ` Ferenc Szalma
2005-03-24 1:16 ` Carl-Daniel Hailfinger
2005-03-24 1:14 ` Nigel Cunningham
[not found] ` <1111626849.14853.324.camel-r49W/1Cwd2ff0s6lnCXPX/uOuaPYTxhvJwvTLr3MMZM@public.gmane.org>
2005-03-24 2:12 ` Ferenc Szalma
2005-03-24 2:23 ` Nigel Cunningham
2005-03-25 8:20 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox