Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030378AbWHOQgG (ORCPT ); Tue, 15 Aug 2006 12:36:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965389AbWHOQgG (ORCPT ); Tue, 15 Aug 2006 12:36:06 -0400 Received: from ogre.sisk.pl ([217.79.144.158]:7590 "EHLO ogre.sisk.pl") by vger.kernel.org with ESMTP id S965258AbWHOQgE convert rfc822-to-8bit (ORCPT ); Tue, 15 Aug 2006 12:36:04 -0400 From: "Rafael J. Wysocki" To: Laurent Riffard Subject: Re: 2.6.18-rc4-mm1: eth0: trigger_send() called with the transmitter busy Date: Tue, 15 Aug 2006 18:39:54 +0200 User-Agent: KMail/1.9.3 Cc: Andrew Morton , Kernel development list , netdev@vger.kernel.org, Linux ACPI References: <20060813012454.f1d52189.akpm@osdl.org> <200608151210.31440.rjw@sisk.pl> <44E1EA66.2060408@free.fr> In-Reply-To: <44E1EA66.2060408@free.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200608151839.55184.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4030 Lines: 104 On Tuesday 15 August 2006 17:38, Laurent Riffard wrote: > > Le 15.08.2006 12:10, Rafael J. Wysocki a ?crit : > > On Tuesday 15 August 2006 01:01, Laurent Riffard wrote: > >> Le 14.08.2006 23:25, Rafael J. Wysocki a ?crit : > >>> On Monday 14 August 2006 22:06, Laurent Riffard wrote: > >>>> Le 14.08.2006 19:47, Laurent Riffard a ?crit : > >>>>> Le 14.08.2006 18:50, Andrew Morton a ?crit : > >>>>>> On Mon, 14 Aug 2006 16:38:47 +0200 > >>>>>> Laurent Riffard wrote: ]--snip--[ > >> Note that I always have had a warning sowhere in acpi_pci_link_set during suspend: > >> BUG: sleeping function called from invalid context at include/asm/semaphore.h:99 > > Bad. If that's 100% reproducible, could you please try to nail it down? > > I wasn't clear: I always had this "BUG: sleeping function called ...." since one year > or more. It never prevents from suspending. Do you want me to track down what cause > this message? Something like that, more or less, but the trace below shows this. ;-) It doesn't seem to be harmful, though. > Here is a more complete trace: > > Stopping tasks: ================| > Shrinking memory... ^H-^H\^Hdone (10908 pages freed) ]--snip--[ > Suspending device platform > swsusp: Need to copy 60817 pages > Intel machine check architecture supported. > Intel machine check reporting enabled on CPU#0. > BUG: sleeping function called from invalid context at include/asm/semaphore.h:99 > in_atomic():0, irqs_disabled():1 > [] show_trace_log_lvl+0x12/0x25 > [] show_trace+0xd/0x10 > [] dump_stack+0x19/0x1b > [] __might_sleep+0x8d/0x95 > [] acpi_os_wait_semaphore+0x93/0x158 > [] acpi_ut_acquire_mutex+0x69/0xd4 > [] acpi_ns_get_node+0x8e/0x112 > [] acpi_ns_evaluate+0x62/0x258 > [] acpi_rs_set_srs_method_data+0xf1/0x125 > [] acpi_set_current_resources+0x8b/0xb0 > [] acpi_pci_link_set+0x10e/0x1e0 > [] irqrouter_resume+0x4b/0x62 Here we go. linux-acpi added to the Cc list. > [] __sysdev_resume+0x14/0x57 > [] sysdev_resume+0x19/0x4b > [] device_power_up+0x8/0xf > [] swsusp_suspend+0x51/0x78 > [] pm_suspend_disk+0x51/0xe2 > [] enter_state+0x52/0x164 > [] state_store+0x86/0x9c > [] subsys_attr_store+0x20/0x25 > [] sysfs_write_file+0xaa/0xcf > [] vfs_write+0x8c/0x138 > [] sys_write+0x3b/0x60 > [] sysenter_past_esp+0x56/0x8d > ======================= ]--snip--[ > >> Or must really netconsole be stopped during device_suspend ? > > > > Yes, it must. For now, the consoles are suspend-unfriendly, so to speak. ;-) > > > > I think I found something related to netconsole and your patch > "suspend_console/resume_console". I was booting to runlevel 1 and I was using > this script to suspend: > > <=== script begin ===> > #!/bin/sh > # don't want to {fsck *and* reboot} if something goes wrong > mount -oremount,ro / > # enable write caching on HD > hdparm -W1 /dev/hd[ab] > echo 6 > /proc/sys/kernel/printk > sleep 2 > echo disk > /sys/power/state > <=== script end ===> > > The important point is the "sleep 2" line. If it is present, I can suspend the box. > Remove the "sleep command" and it will hang after displaying: > Stopping tasks: =====================| > Shrinking memory... done (0 pages freed) > > If netconsole is disabled (ie not called from command line), I do not need this > "sleep", suspend always works. It behaves like that with the "suspend_console/resume_console" patch or without it? Rafael -- You never change things by fighting the existing reality. R. Buckminster Fuller - 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/