From owner-freebsd-usb@FreeBSD.ORG Sun Dec 12 09:03:49 2010 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 DA179106564A for ; Sun, 12 Dec 2010 09:03:49 +0000 (UTC) (envelope-from oleg.nauman@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id AAC1A8FC0A for ; Sun, 12 Dec 2010 09:03:49 +0000 (UTC) Received: by pzk32 with SMTP id 32so406811pzk.13 for ; Sun, 12 Dec 2010 01:03:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zaZKHY/ArmkvB7/KJFViIyt3ZMCRrvnvviN37JkFJzE=; b=peVtgZfdDKDbzTZBkycQ+Zit5rehPepDtX6p46KIB5mY6+nUVlUjOvRg9PjwzrGWtK dXw7kkmSIqk3WZ8RgwDOLY9tfcNqD+c6SnRgntnoDZBy2fdqTR8bsWdBQJqCbwgR4Hz1 w4vucAxtziwMbgkXYiufu2WrC7WwPPPQHhmsI= 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=pwtHX3wNr3eunlpERd9mFQxdRwlfEuIEXW/w8t7Me3jMr0CS/0z9EnRcw+91IfCpnc CdV34ihl7gSwehrssdQVNXiaETywx+lXPCaAOt9FGKP4/YA5Wagt374BDxauqG7GJmsl 3uIE0d0EdHWTKZWbJfxijwl/MikXegCcZRmcY= MIME-Version: 1.0 Received: by 10.143.11.19 with SMTP id o19mr2103966wfi.100.1292144629017; Sun, 12 Dec 2010 01:03:49 -0800 (PST) Received: by 10.142.230.17 with HTTP; Sun, 12 Dec 2010 01:03:48 -0800 (PST) In-Reply-To: <21DC55BC-CC3B-48EF-8C9A-C29674CD38E7@van-laarhoven.org> References: <201012101915.40878.hselasky@c2i.net> <201012111103.09422.hselasky@c2i.net> <21DC55BC-CC3B-48EF-8C9A-C29674CD38E7@van-laarhoven.org> Date: Sun, 12 Dec 2010 11:03:48 +0200 Message-ID: From: Oleg Nauman To: Nick Hibma Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: USB related panic on 8.2-PRERELEASE 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: Sun, 12 Dec 2010 09:03:50 -0000 On Sun, Dec 12, 2010 at 12:48 AM, Nick Hibma wrote= : >>> But we will continue the saga about this strange USB modem, if no >>> objections from your side :) >>> Is it possible to apply some quirk or some another workaround which >>> will solve the issue with endless USB_ERR_STALLED reported while it >>> trying to attach its builtin cardreader? >> >> Nick, do you have any hints on this? > > It says in the messages log (a view messages ago) that it does not suppor= t GET MAX LUN. It is derived error I think When it attaches finally, it report no errors at all: Dec 12 10:38:36 rainhaven kernel: ugen5.2: at usbus5 Dec 12 10:38:36 rainhaven kernel: umodem0: on usbus5 Dec 12 10:38:36 rainhaven kernel: umodem0: data interface 1, has CM over da= ta, h as break Dec 12 10:38:36 rainhaven kernel: umass0: on usbus5 Dec 12 10:38:37 rainhaven root: /usr/local/etc/rc.d/webcamd: WARNING: faile= d to start webcamd Dec 12 10:38:37 rainhaven kernel: da0 at umass-sim0 bus 0 scbus2 target 0 l= un 0 Dec 12 10:38:37 rainhaven kernel: da0: Removable Direct Access SCSI-0 device Dec 12 10:38:37 rainhaven kernel: Dec 12 10:38:37 rainhaven kernel: da0: 40.000MB/s transfers Dec 12 10:38:37 rainhaven kernel: da0: 952MB (1950720 512 byte sectors: 64H 32S/T 952C) Dec 12 10:38:37 rainhaven root: Unknown USB device: vendor 0x106c product 0x3711 bus uhub5 Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not start on a track boundary. Dec 12 10:38:37 rainhaven kernel: GEOM: da0: partition 1 does not end on a track boundary. >You can quirk that: > > While the device is attached use the following command: > > =C2=A0 =C2=A0 =C2=A0 =C2=A0usbconfig -d ugenX.Y add_quirk UQ_MSC_NO_GETMA= XLUN I was trying that but it not helps. Another question that it is very tricky because USB subsystem probes to (re)attach modem too quickly so usbconfig reports "Device not configured" or "No device match or lack of permissions". I will recompile the kernel with USB_DEBUG option enabled and provide you with some additional info. Thank you for our help. > > where ugenX.Y is the ugen device for the device that causes you trouble. = usbconfig will add a quirk using the PID/VID/RID for the device it finds at= that location. > > If that works, let me know, and I will commit the quirk into the quirk ta= ble. > > Nick freebsd-current@ removed from CC list