Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbXEXUFH (ORCPT ); Thu, 24 May 2007 16:05:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750877AbXEXUE5 (ORCPT ); Thu, 24 May 2007 16:04:57 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:51426 "EHLO amd.ucw.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750816AbXEXUEz (ORCPT ); Thu, 24 May 2007 16:04:55 -0400 Date: Thu, 24 May 2007 22:04:35 +0200 From: Pavel Machek To: Linus Torvalds Cc: Romano Giannetti , Chris Wright , Chuck Ebbert , Linux Kernel Mailing List , stable@kernel.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, "Rafael J. Wysocki" Subject: pcmcia resume 60 second hang. Re: [patch 00/69] -stable review Message-ID: <20070524200435.GA9604@elf.ucw.cz> References: <20070521191612.800400000@sous-sol.org> <4652070D.3090509@redhat.com> <20070521212522.GL3429@sequoia.sous-sol.org> <1179870110.16656.2.camel@localhost> <1180008394.15600.26.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2599 Lines: 61 Hi! > Yeah, but the interesting one is this pair: > > events/0 R running 0 4 1 (L-TLB) > > sleep.sh D 0000014F 0 5798 5789 (NOTLB) > Call Trace: > [] kobject_uevent_env+0x3a1/0x4a0 > [] wait_for_completion+0x79/0xb0 > [] default_wake_function+0x0/0x10 > [] _request_firmware+0x1c8/0x310 > [] request_firmware+0xf/0x20 > [] pcmcia_bus_match+0x28d/0x3c0 [pcmcia] > [] netlink_broadcast+0x1f7/0x310 > [] driver_probe_device+0x34/0xc0 > [] klist_next+0x4e/0xa0 > [] bus_for_each_drv+0x44/0x70 > [] device_attach+0x7a/0x80 > [] __device_attach+0x0/0x10 > [] bus_attach_device+0x26/0x60 > [] device_add+0x5e6/0x6e0 > [] kobject_init+0x2f/0x50 > [] pcmcia_device_add+0x185/0x220 [pcmcia] > [] pcmcia_card_add+0xa1/0xc0 [pcmcia] > [] ti12xx_power_hook+0x180/0x1d0 [yenta_socket] > [] ds_event+0x80/0xb0 [pcmcia] > [] send_event+0x39/0x70 [pcmcia_core] > [] socket_insert+0x86/0xe0 [pcmcia_core] > [] pcmcia_socket_dev_resume+0x7b/0x90 [pcmcia_core] > [] pci_device_resume+0x1f/0x60 > [] resume_device+0x5f/0xf0 > > ie we have a deadlock because resume wants to do that firmware request, > but the event daemon is apparently spinning like mad. > > And yes, request_firmware() has a "loading_timeout" in seconds. And > it's 60. So that explains your pause right there! If someone does request_firmware from resume function... that's bad. Resume function should be fixed. Pcmcia? ti12xx driver? > It might be some unfortunate interaction with process freezing (my > favorite whipping boy), but it could also be something else. I > suspect Well. we'd like to present hardware in working state as soon as we resume (if eth0 was there before resume, it should be there after resume. not 3 seconds after resume); so if someone needs to load the firmware, they should just store it in the kernel memory, and load it during boot or during (very early) suspend. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html - 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/