From owner-freebsd-usb@FreeBSD.ORG Mon Feb 23 22:58:56 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B895E106566C for ; Mon, 23 Feb 2009 22:58:56 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE448FC19 for ; Mon, 23 Feb 2009 22:58:56 +0000 (UTC) (envelope-from w8hdkim@gmail.com) Received: by rv-out-0506.google.com with SMTP id f6so2208505rvb.43 for ; Mon, 23 Feb 2009 14:58:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=xV41LawOXwTiPtKcbwjhXnvhenGI+OWsWsmW5WtE/Yo=; b=xJzH7SvPA/7BKZanORte3u6Lc1XcedajRGSI2m8L+JtcWJ9uqRxNUluK78YWPBgpsR tIkQNHBtJOGSGDhzU/YQvZ1bap+TP1z96Bq/INlD8GP0SQXkwehQOWxcszqLnM+uRNal 5WAgYcairox3UhvdZO9/RGvtS2c3FR8qzDSHM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kD+fxpaV1qJR4R4pQprHuVZJPN0L8IjiFzYTiV5JTV6/vNli498AmSxyLpIBlNNj1O yXfnHjyFmoB0JPeDQYQg2+tfchKTtP1J+4mxKy77M0D5iw84LecYG9e64KNL8kkNmPv2 XOeIkB6Q/LDXAb8JcXKIkV9o4Dxf6f9nSRb70= MIME-Version: 1.0 Received: by 10.142.226.10 with SMTP id y10mr2195760wfg.3.1235429936133; Mon, 23 Feb 2009 14:58:56 -0800 (PST) In-Reply-To: <200902232156.14845.hselasky@c2i.net> References: <89dbfdc30902231031j4407614vdce09e8e58cdc346@mail.gmail.com> <200902232156.14845.hselasky@c2i.net> Date: Mon, 23 Feb 2009 17:58:56 -0500 Message-ID: <89dbfdc30902231458s2c8a1534kb2180c8cd0ddd290@mail.gmail.com> From: Kim Culhan To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: reattach 3g0 device: could not allocate new device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2009 22:58:57 -0000 On Mon, Feb 23, 2009 at 3:56 PM, Hans Petter Selasky wrote: > On Monday 23 February 2009, Kim Culhan wrote: >> Running 8.0-CURRENT as of 2-22-09 >> >> The 3g0 device is a Novatel U727 EVDO wireless radio. >> >> If the machine boots with the device attached, dmesg reads: >> >> u3g0: on usbus2 >> >> Remove the device and this is logged: >> >> u3g0: at ushub2, port 2, addr 2 (disconnected) >> >> Reattach the device and there is this message: >> >> uhub_reattach_port:414: could not allocate new device! >> >> kernel config has: >> >> device usb2_serial_3g >> >> Any help is greatly appreciated >> > > Hi, > > Can you turn on USB HUB debugging: > > sysctl hw.usb2.uhub.debug=15 > sysctl hw.usb.uhub.debug=15 Sure here is dmesg with sysctl hw.usb2.uhub.debug=15 uhub_read_port_status:259: port 2, wPortStatus=0x0103, wPortChange=0x0000, err=USB_ERR_NORMAL_COMPLETION usb2_transfer_power_ref:1470: Adding type 0 to power state usb2_transfer_power_ref:1483: needs power u3g_huawei_init:278: usb2_alloc_device:1618: Found Huawei auto-install disk! usb2_bus_port_set_device:1334: bus 0xc6733cf0 devices[2] = 0xc6bc6000 ugen2.2: at usbus2 ugen2.2: at usbus2 (disconnected) usb2_bus_port_set_device:1334: bus 0xc6733cf0 devices[2] = 0 uhub_reattach_port:414: could not allocate new device! usb2_needs_explore:1345: usb2_bus_powerd:1516: bus=0xc670bcf0 usb2_bus_powerd:1599: Recomputing power masks uhub_explore:522: udev=0xc6a93000 addr=1 With the old usb, this was returned: Feb 22 10:38:37 smallster kernel: ugen2.2: at usbus2 Feb 22 10:38:37 smallster kernel: umass0: on usbus2 Feb 22 10:38:37 smallster kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 Feb 22 10:38:38 smallster kernel: umass0:1:0:-1: Attached to scbus1 Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): Medium not present Feb 22 10:38:39 smallster kernel: (probe0:umass-sim0:0:0:0): Unretryable error Feb 22 10:38:39 smallster kernel: cd0 at umass-sim0 bus 0 target 0 lun 0 Feb 22 10:38:39 smallster kernel: cd0: Removable CD-ROM SCSI-2 device Feb 22 10:38:39 smallster kernel: cd0: 1.000MB/s transfers Feb 22 10:38:39 smallster kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present Feb 22 10:40:27 smallster kernel: g_vfs_done():cd0[READ(offset=65536, length=8192)]error = 5 Feb 22 10:43:39 smallster kernel: umass0: at ushub2, port 1, addr 2 (disconnected) Feb 22 10:43:39 smallster kernel: (cd0:umass-sim0:0:0:0): lost device Feb 22 10:43:39 smallster kernel: (cd0:umass-sim0:0:0:0): removing device entry Feb 22 10:43:39 smallster kernel: ugen2.2: at usbus2 (disconnected) The device initially attempts to simulate the presence of a cdrom. Maybe this is creating the problem for usb2. -kim