Subject: kern/8697: [rkb] Removal/insertion of cards into TI1131 PCCBB slots hangs system
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 10/27/1999 19:37:20
>Number:         8697
>Category:       kern
>Synopsis:       Inserting cards/removing cards from my laptop hangs the system
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 27 19:36:01 1999
>Last-Modified:
>Originator:     Rafal Boni
>Organization:
slim to none
>Release:        -current as of 10/25
>Environment:
	DEC HiNote Vp765 laptop with TI1131 CardBus bridge.  Attempted with
	several cards (16-bit modem, 16-bit network, 3 CB network cards).

>Description:
	Booting the system with a card in a slot and then removing it or
	booting a system with no card in a slot and then inserting it cause
	the kernel to hang.  The machine can usually be recoverred by un-
	doing the action that caused the hang.

	At this point, the stack looks like the following:

	cpu_Debugger
	[...wscons functions snipped...]
	Xintr1
	------ interrupt --------
	Xdoreti
	------ interrupt --------
	Xspllower
	clockintr
	Xintr0
	------ interrupt --------
	Xdoreti
	------ interrupt --------
	gettick
	delay
	pccbb_socket_disable		or	pccbb_power
	pcmcia_function_disable			pccbb_pcmcia_socket_enable
	com_pcmcia_disable1			pcmcia_card_attach
	com_pcmcia_attach			cardslot_event_thread
	config_attach
	config_found_sm
	pcmcia_card_attach
	cardslot_event_thread
	
	Generally, this happens when the CBB gets an interrupt (while the
	thread is delay()'ing?).  The event in 0x09 (CSTS | PWR) and the
	socket state in the interrupt is 0x30000519.
	
>How-To-Repeat:
	(1) Boot with cards in slot
	(2) when machine comes up, remove one card
	(3) Watch machine hang

	or

	(1) Boot with no card in slot insert card
	(2) when system comes up, insert card
	(3) Watch machine hang

>Fix:
	Unknown.

>Audit-Trail:
>Unformatted: