From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265713AbTGLNmK (ORCPT ); Sat, 12 Jul 2003 09:42:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265693AbTGLNmK (ORCPT ); Sat, 12 Jul 2003 09:42:10 -0400 Received: from smtp-out2.iol.cz ([194.228.2.87]:33488 "EHLO smtp-out2.iol.cz") by vger.kernel.org with ESMTP id S265713AbTGLNkX (ORCPT ); Sat, 12 Jul 2003 09:40:23 -0400 Date: Sat, 12 Jul 2003 15:54:53 +0200 From: Pavel Machek To: Andrew Morton Cc: linux-kernel@vger.kernel.org, acpi-support@lists.sourceforge.net, Scott Feldman Subject: Re: [2.5.75] S3 and S4 Message-ID: <20030712135452.GA284@elf.ucw.cz> References: <20030711193611.GA824@dreamland.darkstar.lan> <20030711200053.GA402@elf.ucw.cz> <20030711134833.1adeceb1.akpm@osdl.org> <20030711215240.GA335@elf.ucw.cz> <20030711145309.091069e6.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030711145309.091069e6.akpm@osdl.org> X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.3i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi! > > > > > Suspending devices > > > > > Badness in local_bh_enable at kernel/softirq.c:113 > > > > > Call Trace: > > > > > [] local_bh_enable+0x88/0x90 > > > > > [] e100_do_wol+0x14/0x60 [e100] > > > > > [] e100_suspend+0x3e/0xa0 [e100] > > > > > [] e100_suspend+0x0/0xa0 [e100] > > > > > [] pci_device_suspend+0x47/0x70 > > > > > [] device_suspend+0xd9/0x100 > > > > > [] acpi_system_save_state+0x42/0x8c > > > > > [] acpi_suspend+0x5e/0xb3 > > > > > [] acpi_system_write_sleep+0xe3/0x132 > > > > > [] filp_open+0x60/0x70 > > > > > [] vfs_write+0xad/0x120 > > > > > [] sys_write+0x3f/0x60 > > > > > [] syscall_call+0x7/0xb > > > > > > > > > > > > > If e100. You have the hardware... > > > > > > No, it's acpi_system_save_state() illegally calling device_suspend() under > > > local_irq_disable(). > > > > Oops, I failed to see this is S3. > > > > I can see that device_suspend( ..., SUSPEND_POWER_DOWN) is called with > > interrupts disabled. But thats okay: (driver.txt) All calls are made > > with interrupts enabled, except for the SUSPEND_POWER_DOWN level. > > OK, it's an e100 bug then. Not allowed to sleep or do spin_unloch_bh() in > device_suspend( ..., SUSPEND_POWER_DOWN). > > That's a fairly awkward restriction. Actually, its not. Some phase with interrupts off is needed for devices such as interrupt controller. Fix is very simple: move the e100 suspend from SUSPEND_POWER_DOWN to some other level. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]