From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264540AbUANUcj (ORCPT ); Wed, 14 Jan 2004 15:32:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264542AbUANUcj (ORCPT ); Wed, 14 Jan 2004 15:32:39 -0500 Received: from smtp.uniroma2.it ([160.80.6.16]:54029 "EHLO mail-gw.uniroma2.it") by vger.kernel.org with ESMTP id S264540AbUANUce (ORCPT ); Wed, 14 Jan 2004 15:32:34 -0500 Message-ID: <4005A6F0.1000906@tiscali.it> Date: Wed, 14 Jan 2004 21:30:40 +0100 From: Mauro Andreolini User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031118 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniele Venzano CC: linux-kernel@vger.kernel.org Subject: Re: problems with suspend-to-disk (ACPI), 2.6.1-rc2 References: <20040114165056.GD13899@picchio.gall.it> <3FE5F1110002D60F@mail-4.tiscali.it> <20040114191818.GG13899@picchio.gall.it> In-Reply-To: <20040114191818.GG13899@picchio.gall.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses! Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Daniele Venzano wrote: >On Wed, Jan 14, 2004 at 06:59:36PM +0100, m.andreolini@tiscali.it wrote: > > >>I can't even 'tcpdump eth0' since the eth0 interface is not brought up correctly >>on resume: >>ifconfig yields only the loopback entry. >> >> > >If the card isn't even brought up it means that you're lacking power >management completely for that device. > >I'm using pmdisk, perhaps swsusp is using different calls to device drivers, >and no one has ever written them for sis900. >I searched documentation on swsusp interface, but found nothing, >as a matter of fact I assumed that what's in Documentation/power would >apply to both pmdisk and swsusp, since they're similar implementations. > >Check that the patch at: >http://teg.homeunix.org/kernel_patches.html is in your tree. > >If you have time try to match my configuration (2.6.1, pmdisk and sis900 >compiled in) and see if that way it works. > >Bye > > > Hi Daniele, I've ricompiled 2.6.1 (sis900.diff was already there) and used the pmdisk implementation. The bash still crashes during resume, but the network card is working. The dmesg output is as follows: Stopping tasks: =====================| Freeing memory: ....................| hdc: start_power_step(step: 0) hdc: completing PM request, suspend hda: start_power_step(step: 0) hda: start_power_step(step: 1) hda: complete_power_step(step: 1, stat: 50, err: 0) hda: completing PM request, suspend PM: Attempting to suspend to disk. PM: snapshotting memory. PM: Image restored successfully. 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 [] pci_device_resume+0x26/0x30 [] resume_device+0x29/0x30 [] dpm_resume+0x34/0x60 [] device_resume+0x19/0x30 [] finish+0x8/0x40 [] pmdisk_free+0x5/0x10 [] pm_suspend_disk+0x7e/0xc0 [] enter_state+0xa5/0xb0 [] state_store+0x6c/0x76 [] subsys_attr_store+0x3a/0x40 [] flush_write_buffer+0x3b/0x50 [] sysfs_write_file+0x60/0x70 [] vfs_write+0xbe/0x130 [] sys_write+0x42/0x70 [] syscall_call+0x7/0xb hda: Wakeup request inited, waiting for !BSY... hda: start_power_step(step: 1000) blk: queue ebd6ca00, 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 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 [] acpi_pm_finish+0x14/0x38 [] finish+0x16/0x40 [] pm_suspend_disk+0x7e/0xc0 [] enter_state+0xa5/0xb0 [] state_store+0x6c/0x76 [] subsys_attr_store+0x3a/0x40 [] flush_write_buffer+0x3b/0x50 [] sysfs_write_file+0x60/0x70 [] 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 [] printk+0x11d/0x180 [] 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[3588] exited with preempt_count 1 eth0: Abnormal interrupt,status 0x03008001. eth0: Media Link On 100mbps full-duplex Thanks for the help. Bye Mauro Andreolini