From owner-freebsd-bugs@FreeBSD.ORG Sun Apr 20 17:50:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99218106566C for ; Sun, 20 Apr 2008 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 789838FC26 for ; Sun, 20 Apr 2008 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3KHo20b001010 for ; Sun, 20 Apr 2008 17:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3KHo2fv001009; Sun, 20 Apr 2008 17:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 20 Apr 2008 17:50:02 GMT Resent-Message-Id: <200804201750.m3KHo2fv001009@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dominic Fandrey Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BB46106566B for ; Sun, 20 Apr 2008 17:41:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3BFF98FC28 for ; Sun, 20 Apr 2008 17:41:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3KHeuaY046486 for ; Sun, 20 Apr 2008 17:40:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m3KHeunw046484; Sun, 20 Apr 2008 17:40:56 GMT (envelope-from nobody) Message-Id: <200804201740.m3KHeunw046484@www.freebsd.org> Date: Sun, 20 Apr 2008 17:40:56 GMT From: Dominic Fandrey To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/122936: [ucom][ubsa] Device does not receive interrupt X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Apr 2008 17:50:02 -0000 >Number: 122936 >Category: kern >Synopsis: [ucom][ubsa] Device does not receive interrupt >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 20 17:50:02 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Dominic Fandrey >Release: RELENG_7 >Organization: private >Environment: FreeBSD mobileKamikaze.norad 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Apr 19 01:05:43 CEST 2008 root@mobileKamikaze.norad:/usr/obj/HP6510b/amd64/usr/src/sys/HP6510b amd64 >Description: I'm using a USB UMTS modem (Huawei Mobile Compact HSDPA USB Stick), which also attaches as a CD-drive (with the Windows drivers) and is an XD-card reader. When the ubsa module is loaded only the modem part is recognized, though. This doesn't matter in my case, because the modem part is all I care about. The following snippet from messages will demonstrate my problem: Apr 20 19:00:33 mobileKamikaze root: Unknown USB device: vendor 0x12d1 product 0x1001 bus uhub3 Apr 20 19:00:33 mobileKamikaze kernel: ucom0: <������������������� HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 3> on uhub3 Apr 20 19:00:33 mobileKamikaze kernel: ucom0: Could not find interrupt in Apr 20 19:00:33 mobileKamikaze kernel: device_attach: ucom0 attach returned 6 Apr 20 19:00:38 mobileKamikaze kernel: ucom0: at uhub3 port 1 (addr 3) disconnected Apr 20 19:00:48 mobileKamikaze kernel: ucom0: <������������������� HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 3> on uhub3 Apr 20 19:00:48 mobileKamikaze kernel: ucom0: Could not find interrupt in Apr 20 19:00:48 mobileKamikaze kernel: device_attach: ucom0 attach returned 6 I have dug into ubsa.c and ucom.c, the problem appears to be lying deeper in the innards of the USB stack. If I unplug the device and plug it back in a couple of times (sometimes only 2 or three times, sometimes I have to try for an hour) the stick gets initialized properly: Apr 20 19:01:30 mobileKamikaze kernel: ucom0: <������������������� HUAWEI Mobile, class 0/0, rev 1.10/0.00, addr 3> on uhub3 It appears that how often I have to try depends on the connection quality. Once the device is attached properly, it works without problems. I am writing this PR from a train. >How-To-Repeat: Just plug in an affected stick. >Fix: >Release-Note: >Audit-Trail: >Unformatted: