Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266261AbUAHTDt (ORCPT ); Thu, 8 Jan 2004 14:03:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265501AbUAHTDt (ORCPT ); Thu, 8 Jan 2004 14:03:49 -0500 Received: from mail-4.tiscali.it ([195.130.225.150]:61737 "EHLO mail-4.tiscali.it") by vger.kernel.org with ESMTP id S266261AbUAHTDn convert rfc822-to-8bit (ORCPT ); Thu, 8 Jan 2004 14:03:43 -0500 Date: Thu, 8 Jan 2004 20:03:40 +0100 Message-ID: <3FE5F1110001ED59@mail-4.tiscali.it> From: m.andreolini@tiscali.it Subject: problems with suspend-to-disk (ACPI), 2.6.1-rc2 To: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5722 Lines: 162 Hello all, I encountered a problem while resuming from a suspend-to-disk. I'm using the 2.6.1-rc2 kernel, running on an Athlon XP 2000. >From a bash shell, I type: echo 4 > /proc/acpi/sleep and the system seems to suspend fine. When resuming, the bash seems to get killed and I get the following output from dmesg (running from another shell): Stopping tasks: =====================| Freeing memory: ....................| hdc: start_power_step(step: 0) hdc: completing PM request, suspend hda: start_power_step(step: 0) hda: completing PM request, suspend resume= option should be used to set suspend device/critical section: Counting pages to copy[nosave c035b000] (pages needed: 5362+512=5874 free: 174839) Alloc pagedir [nosave c035b000]<4>Freeing prev allocated pagedir bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] __mod_timer+0xfc/0x170 [] schedule_timeout+0x63/0xc0 [] process_timeout+0x0/0x10 [] pci_set_power_state+0xeb/0x190 [] sis900_resume+0x63/0x130 [sis900] [] pci_device_resume+0x26/0x30 [] resume_device+0x29/0x30 [] dpm_resume+0x34/0x60 [] device_resume+0x19/0x30 [] drivers_resume+0x3c/0x40 [] do_magic_resume_2+0x5d/0xe0 [] do_magic_resume_2+0x76/0xe0 [] do_magic+0x11f/0x130 [] do_software_suspend+0x6c/0x90 [] acpi_system_write_sleep+0xab/0xc9 [] vfs_write+0xbe/0x130 [] sys_write+0x42/0x70 [] syscall_call+0x7/0xb eth0: Media Link Off hda: Wakeup request inited, waiting for !BSY... hda: start_power_step(step: 1000) blk: queue ebd77a00, I/O limit 4095Mb (mask 0xffffffff) hda: completing PM request, resume hdc: Wakeup request inited, waiting for !BSY... hdc: start_power_step(step: 1000) hdc: completing PM request, resume Fixing swap signatures... <3>bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] do_ide_request+0x1d/0x30 [] generic_unplug_device+0x77/0x80 [] blk_run_queues+0xab/0xc0 [] io_schedule+0xe/0x20 [] wait_on_page_bit+0xb1/0xe0 [] autoremove_wake_function+0x0/0x50 [] autoremove_wake_function+0x0/0x50 [] swap_readpage+0x5b/0x90 [] rw_swap_page_sync+0xc1/0x100 [] mark_swapfiles+0x7c/0x1b0 [] do_magic_resume_2+0x96/0xe0 [] do_magic+0x11f/0x130 [] do_software_suspend+0x6c/0x90 [] acpi_system_write_sleep+0xab/0xc9 [] vfs_write+0xbe/0x130 [] sys_write+0x42/0x70 [] syscall_call+0x7/0xb bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] do_ide_request+0x1d/0x30 [] generic_unplug_device+0x77/0x80 [] blk_run_queues+0x7f/0xc0 [] io_schedule+0xe/0x20 [] wait_on_page_bit+0xb1/0xe0 [] autoremove_wake_function+0x0/0x50 [] autoremove_wake_function+0x0/0x50 [] swap_writepage+0x99/0xd0 [] rw_swap_page_sync+0xc1/0x100 [] mark_swapfiles+0xef/0x1b0 [] do_magic_resume_2+0x96/0xe0 [] do_magic+0x11f/0x130 [] do_software_suspend+0x6c/0x90 [] acpi_system_write_sleep+0xab/0xc9 [] vfs_write+0xbe/0x130 [] sys_write+0x42/0x70 [] syscall_call+0x7/0xb ok Restarting tasks...<3>bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] try_to_wake_up+0x9e/0x160 [] wake_up_process+0x1e/0x20 [] thaw_processes+0xb8/0x100 [] do_software_suspend+0x5e/0x90 [] acpi_system_write_sleep+0xab/0xc9 [] vfs_write+0xbe/0x130 [] sys_write+0x42/0x70 [] syscall_call+0x7/0xb done bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] sys_write+0x42/0x70 [] work_resched+0x5/0x16 bad: scheduling while atomic! Call Trace: [] schedule+0x586/0x590 [] fixup_exception+0x16/0x40 [] __is_prefetch+0x6e/0x220 [] do_page_fault+0x110/0x512 [] sys_sched_yield+0x87/0xd0 [] coredump_wait+0x38/0xa0 [] do_coredump+0xeb/0x1ec [] wake_up_state+0x1a/0x20 [] specific_send_sig_info+0xc4/0x130 [] __dequeue_signal+0xe8/0x190 [] dequeue_signal+0x35/0xa0 [] get_signal_to_deliver+0x20a/0x380 [] do_signal+0xe2/0x120 [] recalc_task_prio+0x90/0x1a0 [] schedule+0x334/0x590 [] do_page_fault+0x0/0x512 [] do_notify_resume+0x59/0x5c [] work_notifysig+0x13/0x15 note: bash[3501] exited with preempt_count 1 eth0: Abnormal interrupt,status 0x03008200. Does anyone have a clue of what's going on? I have been experiencing the same problem since early 2.6.0, also with Andrew Morton's patchset. The problem does not show up when kernel preemption is turned off. Please CC any answer since I'm not subscribed to the list. TIA Mauro Andreolini __________________________________________________________________ Tiscali ADSL SENZA CANONE: Attivazione GRATIS, contributo adesione GRATIS, modem GRATIS, 50 ore di navigazione GRATIS. ABBONARTI TI COSTA SOLO UN CLICK! http://point.tiscali.it/adsl/index.shtml - 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/