NetBSD Problem Report #39035

From apb@cequrux.com  Wed Jun 25 09:05:12 2008
Return-Path: <apb@cequrux.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 611D563B880
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Jun 2008 09:05:12 +0000 (UTC)
Message-Id: <20080625083225.5C6DEE9307C@apb-laptoy.apb.alt.za>
Date: Wed, 25 Jun 2008 08:32:25 +0000 (UTC)
From: apb@cequrux.com
To: gnats-bugs@gnats.NetBSD.org
Subject: hang when removing pcmcia card
X-Send-Pr-Version: 3.95

>Number:         39035
>Category:       kern
>Synopsis:       hang when removing pcmcia card
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 25 09:10:00 +0000 2008
>Originator:     Alan Barrett
>Release:        NetBSD 4.99.66
>Organization:
Not muxh
>Environment:
System: NetBSD 4.99.66
Architecture: i386
Machine: i386
>Description:
	I have a PCMCIA card that provides a modem-like interface
	over the GPRS/UMTS cellular data system.

	When I insert the card, it is probed correctly, and I can run
	pppd over it.

        When I remove the card, the system hangs.  "com1 detached" and
        "com2 detached" are printed on the console, but then the system
        is entirely unresponsive.  I cannot even break into ddb.

        Some time ago, I used to be able to remove the card while it was
        in use with no problem.  The device drivers would print messages
        about devices being detached, and if there was an active ppp
        session if would notice that its hardware had disappeared and
        would exit.  I'd like to get that behaviour again.

>How-To-Repeat:
	Boot the system  The following messages may be relevant:

	cbb0 at pci4 dev 6 function 0: vendor 0x104c product 0x8039 (rev. 0x00)
	cardslot0 at cbb0 slot 0 flags 0
	cardbus0 at cardslot0: bus 5
	pcmcia0 at cardslot0

        Insert the PCMCIA cellular modem card.  The following messages
        appear (along with some messages from PCMCIADEBUG which I am not
        showing here):

	pcmcia0: CIS version PC Card Standard 6.1
	pcmcia0: CIS info: Novatel Wireless, Merlin UMTS Modem, U630,
	pcmcia0: Manufacturer code 0xa4, product 0x276
	com1 at pcmcia0 function 0: <Novatel Wireless, Merlin UMTS Modem, U630, >
	com1: ns16550a, working fifo
	com2 at pcmcia0 function 1: <Novatel Wireless, Merlin UMTS Modem, U630, >
	com2: ns16550a, working fifo

	Run pppd over the com1 interface.

	Terminate the pppd process.

	Remove the card.

	The system hangs, after printing "com1 detached" and "com2 detached".

>Fix:
	Unknown.

        In general, for any hot pluggable hardware, it should be
        possible to plug in or unplug the hardware at any time, even if
        the device is in use or the system is in the process of booting
        up or shutting down, and the system should not crash or hang.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.