Subject: kern/32153: 3.0RC3 freezes when inserting Option Globetrotter GT 3G QUAD PCMCIA Card
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ola@mreriksson.net>
List: netbsd-bugs
Date: 11/23/2005 23:22:00
>Number:         32153
>Category:       kern
>Synopsis:       3.0RC3 freezes when inserting Option Globetrotter GT 3G QUAD PCMCIA Card
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 23 23:22:00 +0000 2005
>Originator:     Ola Eriksson
>Release:        3.0RC3
>Organization:
GMQ Consulting
>Environment:
NetBSD lgm4 3.99.11 NetBSD 3.99.11 (lgm4) #1: Thu Nov 24 00:55:06 CET 2005  ola@lgm4:/home/ola/tmp/3.0RC3/src/sys/arch/i386/compile/lgm4 i386

>Description:
When a Option Globetrotter GT 3G QUAD (Also known as Vodafone 3G card) is inserted into a NetBSD-system with ohci* at cardbus? enabled, the system will freeze. The following is printed by the kernel before hanging:

cbb0: wait took 0.018532s
ohci0 at cardbus0 function 0: NEC USB Host Controller (rev.0x43)
ohci0: interrupting at 5
ohci0: OHCI version 1.0

If the card is removed again, the kernel outputs the following message and enters debug-mode.

ohci0: reset timeout
ohci0: init failed, error=13

uvm_fault(0xc084b8c0, 0, 0, 1) -> 0xe
kernel: supervisor trap page fault, code=0
Stopped in pid 9.1 (cardslot0) at      netbsd:powerhook_disestablish+0x9: movl 0(%ecx),%edx
db>

The topic has been touched before in the mailinglists, here:
http://mail-index.netbsd.org/current-users/2005/05/10/0008.html

And there is also some information available (from the same author) here:
http://www.rinta-aho.org/docs/option3g/option.html
>How-To-Repeat:
Use GENERIC 3.0RC3 kernel configuration, enable ohci* at cardbus:

ohci*   at cardbus? dev ? function ?    # Open Host Controller

Compile and reboot.

Insert Option Globetrotter GT 3G QUAD PCMCIA card and kernel will output:

cbb0: wait took 0.018532s
ohci0 at cardbus0 function 0: NEC USB Host Controller (rev.0x43)
ohci0: interrupting at 5
ohci0: OHCI version 1.0

And the system will freeze and stay in this state forever.
>Fix: