Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262429AbTEMRIr (ORCPT ); Tue, 13 May 2003 13:08:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262430AbTEMRIr (ORCPT ); Tue, 13 May 2003 13:08:47 -0400 Received: from us02smtp1.synopsys.com ([198.182.60.75]:18614 "HELO vaxjo.synopsys.com") by vger.kernel.org with SMTP id S262429AbTEMRIo (ORCPT ); Tue, 13 May 2003 13:08:44 -0400 Date: Tue, 13 May 2003 19:21:14 +0200 From: Alex Riesen To: Paul Fulghum Cc: Felipe Alfaro Solana , LKML , Russell King Subject: Re: 2.5.69+bk: "sleeping function called from illegal context" on card release while shutting down Message-ID: <20030513172114.GH32559@Synopsys.COM> Reply-To: alexander.riesen@synopsys.COM References: <20030513135759.GG32559@Synopsys.COM> <1052837896.1000.2.camel@teapot.felipe-alfaro.com> <1052839860.2255.19.camel@diemos> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1052839860.2255.19.camel@diemos> Organization: Synopsys, Inc. User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2403 Lines: 60 Paul Fulghum, Tue, May 13, 2003 17:31:01 +0200: > > > Just tried to eject the card while the system was shutting down. > > Don't know if this is fixed by latest Russell patches, but vanilla and > > -bk snapshots do *not* contain the latest PCMCIA/CardBus code. Is it > > possible for you to try 2.5.69-mm4? > > Russell's patches do not address this. still i'm going to give them a spin a bit later. > Individual PCMCIA drivers need to be updated to call > thier release function directly when processing a > CARD_RELEASE message instead of from a timer procedure. > > Similar to this patch for synclink_cs.c: ... > - mod_timer(&link->release, jiffies + HZ/20); > + mgslpc_release((u_long)link); Tried that. This time the trace looks different: Debug: sleeping function called from illegal context at include/asm/semaphore.h:119 Call Trace: [] __might_sleep+0x58/0x70 [] +0x82/0x58c [pcmcia_core] [] undo_irq+0x23/0x90 [pcmcia_core] [] +0x82/0x58c [pcmcia_core] [] pcmcia_release_irq+0xb8/0xe0 [pcmcia_core] [] pcnet_release+0x0/0x80 [pcnet_cs] [] CardServices+0x155/0x260 [pcmcia_core] [] CardServices+0x149/0x260 [pcmcia_core] [] pcnet_release+0x56/0x80 [pcnet_cs] [] run_timer_softirq+0xc4/0x1a0 [] handle_IRQ_event+0x33/0xf0 [] do_softirq+0xa9/0xb0 [] do_IRQ+0x125/0x150 [] common_interrupt+0x18/0x20 [] zap_pte_range+0xd6/0x1d0 [] zap_pmd_range+0x43/0x70 [] unmap_page_range+0x33/0x60 [] unmap_vmas+0xf1/0x260 [] exit_mmap+0x65/0x180 [] mmput+0x56/0xb0 [] exec_mmap+0xce/0x150 [] flush_old_exec+0x18/0x830 [] kernel_read+0x3a/0x50 [] load_elf_binary+0x283/0xba0 [] generic_file_aio_read+0x3d/0x50 [] buffered_rmqueue+0xc9/0x160 [] load_elf_binary+0x0/0xba0 [] search_binary_handler+0xcb/0x2d0 [] do_execve+0x159/0x1a0 [] getname+0x78/0xc0 [] sys_execve+0x36/0x70 [] syscall_call+0x7/0xb - 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/