From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 08:00:28 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D7816A420 for ; Sun, 12 Feb 2006 08:00:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC5CA43D45 for ; Sun, 12 Feb 2006 08:00:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1C80R6k054318 for ; Sun, 12 Feb 2006 08:00:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1C80Ra7054317; Sun, 12 Feb 2006 08:00:27 GMT (envelope-from gnats) Date: Sun, 12 Feb 2006 08:00:27 GMT Message-Id: <200602120800.k1C80Ra7054317@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Raaf Cc: Subject: Re: usb/83504: [usb] SpeedTouch USB stop working on recent current (and RELENG_6) (regression) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Raaf List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2006 08:00:28 -0000 The following reply was made to PR usb/83504; it has been noted by GNATS. From: Raaf To: bug-followup@FreeBSD.org Cc: siarod@tin.it, Nick.Forbes@huntsworth.com, tim@bishnet.net Subject: Re: usb/83504: [usb] SpeedTouch USB stop working on recent current (and RELENG_6) (regression) Date: Sun, 12 Feb 2006 08:59:51 +0100 The problem seems to happen because modem_run has one of the modem's endpoints open while pppoa2 is setting an alternate interface. I don't have a fix, but a workaround that might work for you: Don't let pppoa2 set an alternate interface (this was the default behavior of older versions of pppoa2 anyway). You can do this by setting the pppoa2 '-e' switch to -1. Example ppp.conf: set device !"/usr/local/sbin/pppoa2 -e -1 -vpi 8 -vci 48 -v 1" From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 09:48:02 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3652916A420 for ; Sun, 12 Feb 2006 09:48:02 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E6A443D48 for ; Sun, 12 Feb 2006 09:48:01 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k1C9lxs2022913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Feb 2006 12:47:59 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1C9lwhF022912 for freebsd-usb@FreeBSD.org; Sun, 12 Feb 2006 12:47:59 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 12 Feb 2006 12:47:58 +0300 From: Gleb Smirnoff To: freebsd-usb@FreeBSD.org Message-ID: <20060212094758.GP86448@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.6i Cc: Subject: Nokia CA-42 cable 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 Feb 2006 09:48:02 -0000 Colleagues, recently I have purchased a Nokia CA-42 cable, that is used to connect cellular phone. It has the following IDs: vendor 0x0421 product 0x0802 I've looked for this IDs in NetBSD and Linux and failed to find them there. In Linux there are IDs for CA-42 cable, but they are different. However, I've found[1] that this cable is working in Linux if IDs are overriden: modprobe usbserial vendor=0x0421 product=0x0802 So I have tried to do same in FreeBSD (patch attached) but failed. Here goes debug data when I plug cable in: usbd_new_device bus=0xc1eee000 port=1 depth=1 speed=2 usbd_new_device: adding unit addr=2, rev=110, class=2, subclass=0, protocol=0, maxpacket=8, len=18, speed=2 usbd_new_device: new dev (addr 2), dev=0xc23b8100, parent=0xc1ef2000 usbd_probe_and_attach: trying device specific drivers ucom0: on uhub0 ucom0: vendor 0x0421 product 0x0802, rev 1.10/1.00, addr 2 uplcom attach: sc = 0xc2069800 uplcom_attach: chiptype 2303 usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150 usbd_set_config_index: set config 1 usbd_do_request: status = 0x0000 ucom0: uplcom_reset: STALLED ucom0: reset failed: NOMEM device_attach: ucom0 attach returned 6 usbd_probe_and_attach: no device specific driver found usbd_probe_and_attach: looping over 1 configurations usbd_set_config_index: free old config usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150 usbd_set_config_index: set config 1 usbd_probe_and_attach: no interface drivers found ucom0: on uhub0 ucom0: vendor 0x0421 product 0x0802, rev 1.10/1.00, addr 2 uplcom attach: sc = 0xc239b900 uplcom_attach: chiptype 2303 usbd_set_config_index: free old config usbd_set_config_index: (addr 1) cno=2 attr=0xa0, selfpowered=0, power=150 usbd_set_config_index: set config 1 usbd_do_request: status = 0x0000 ucom0: uplcom_reset: STALLED ucom0: reset failed: NOMEM device_attach: ucom0 attach returned 6 usbd_probe_and_attach: generic attach failed I'm lame in USB and I can't understand why Linux supports this device w/o any additional modifications, just recognising ID, but our driver doesn't. I'm seeking for advice, that will help me get this device working. [1] http://linux.seindal.dk/item97.html http://www.qbik.ch/usb/devices/showdev.php?id=3251 -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 11:50:07 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A73616A420 for ; Sun, 12 Feb 2006 11:50:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0F9243D46 for ; Sun, 12 Feb 2006 11:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1CBo6YX069412 for ; Sun, 12 Feb 2006 11:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1CBo651069411; Sun, 12 Feb 2006 11:50:06 GMT (envelope-from gnats) Date: Sun, 12 Feb 2006 11:50:06 GMT Message-Id: <200602121150.k1CBo651069411@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Tim Bishop" Cc: Subject: Re: usb/83504: [usb] SpeedTouch USB stop working on recent current (and RELENG_6) (regression) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tim Bishop List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2006 11:50:07 -0000 The following reply was made to PR usb/83504; it has been noted by GNATS. From: "Tim Bishop" To: "Raaf" Cc: Subject: Re: usb/83504: [usb] SpeedTouch USB stop working on recent current (and RELENG_6) (regression) Date: Sun, 12 Feb 2006 11:41:49 -0000 Raaf, That worked! It'd be great to see the bug fixed obviously, but at least I can now get back online without the aid of a modem :-) Tim. From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 15:52:11 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F09D116A420; Sun, 12 Feb 2006 15:52:11 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D55F43D48; Sun, 12 Feb 2006 15:52:11 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k1CFparY024693; Sun, 12 Feb 2006 08:51:36 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 12 Feb 2006 08:51:36 -0700 (MST) Message-Id: <20060212.085136.110773332.imp@bsdimp.com> To: glebius@freebsd.org From: "M. Warner Losh" In-Reply-To: <20060212094758.GP86448@cell.sick.ru> References: <20060212094758.GP86448@cell.sick.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 12 Feb 2006 08:51:36 -0700 (MST) Cc: freebsd-usb@freebsd.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 15:52:12 -0000 In message: <20060212094758.GP86448@cell.sick.ru> Gleb Smirnoff writes: : I'm lame in USB and I can't understand why Linux supports this device : w/o any additional modifications, just recognising ID, but our driver : doesn't. I'm seeking for advice, that will help me get this device : working. We have a lot of different usb serial drivers. Why did you pick uplcom to add the ID to? Linux has merged them all into a single driver, but that driver lacks the refinement our individual sub-drivers have (at least last time I checked). Maybe if you provided more information we could help you more. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 16:29:13 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B737F16A420 for ; Sun, 12 Feb 2006 16:29:13 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1243943D48 for ; Sun, 12 Feb 2006 16:29:12 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k1CGSfaW027213 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Feb 2006 19:28:41 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1CGSfAQ027212; Sun, 12 Feb 2006 19:28:41 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 12 Feb 2006 19:28:41 +0300 From: Gleb Smirnoff To: "M. Warner Losh" Message-ID: <20060212162841.GR86448@cell.sick.ru> References: <20060212094758.GP86448@cell.sick.ru> <20060212.085136.110773332.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060212.085136.110773332.imp@bsdimp.com> User-Agent: Mutt/1.5.6i Cc: freebsd-usb@FreeBSD.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 16:29:13 -0000 On Sun, Feb 12, 2006 at 08:51:36AM -0700, M. Warner Losh wrote: M> In message: <20060212094758.GP86448@cell.sick.ru> M> Gleb Smirnoff writes: M> : I'm lame in USB and I can't understand why Linux supports this device M> : w/o any additional modifications, just recognising ID, but our driver M> : doesn't. I'm seeking for advice, that will help me get this device M> : working. M> M> We have a lot of different usb serial drivers. Why did you pick M> uplcom to add the ID to? Linux has merged them all into a single M> driver, but that driver lacks the refinement our individual M> sub-drivers have (at least last time I checked). As I said, Linux has IDs for CA-42, but they are different to what I have: /* Nokia CA-42 Cable */ #define NOKIA_CA42_VENDOR_ID 0x078b #define NOKIA_CA42_PRODUCT_ID 0x1234 These IDs are utilised in pl2303.c, that's why I have chosen the uplcom(4) driver. M> Maybe if you provided more information we could help you more. What else can I provide? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 16:37:20 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B76EC16A420; Sun, 12 Feb 2006 16:37:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5164B43D45; Sun, 12 Feb 2006 16:37:20 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k1CGYl7D025222; Sun, 12 Feb 2006 09:34:47 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 12 Feb 2006 09:34:47 -0700 (MST) Message-Id: <20060212.093447.74725815.imp@bsdimp.com> To: glebius@FreeBSD.org From: Warner Losh In-Reply-To: <20060212162841.GR86448@cell.sick.ru> References: <20060212094758.GP86448@cell.sick.ru> <20060212.085136.110773332.imp@bsdimp.com> <20060212162841.GR86448@cell.sick.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 12 Feb 2006 09:34:47 -0700 (MST) Cc: freebsd-usb@FreeBSD.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 16:37:20 -0000 From: Gleb Smirnoff Subject: Re: Nokia CA-42 cable Date: Sun, 12 Feb 2006 19:28:41 +0300 > On Sun, Feb 12, 2006 at 08:51:36AM -0700, M. Warner Losh wrote: > M> In message: <20060212094758.GP86448@cell.sick.ru> > M> Gleb Smirnoff writes: > M> : I'm lame in USB and I can't understand why Linux supports this device > M> : w/o any additional modifications, just recognising ID, but our driver > M> : doesn't. I'm seeking for advice, that will help me get this device > M> : working. > M> > M> We have a lot of different usb serial drivers. Why did you pick > M> uplcom to add the ID to? Linux has merged them all into a single > M> driver, but that driver lacks the refinement our individual > M> sub-drivers have (at least last time I checked). > > As I said, Linux has IDs for CA-42, but they are different to what > I have: > > /* Nokia CA-42 Cable */ > #define NOKIA_CA42_VENDOR_ID 0x078b > #define NOKIA_CA42_PRODUCT_ID 0x1234 > > These IDs are utilised in pl2303.c, that's why I have chosen the > uplcom(4) driver. That ID is radically different. uplcom is a good first choice. However, maybe you could try each of the drivers. I know freebsd makes this a pain, but it is the only way to be sure we don't support it. Alternatively, you could open up the cable and find which chip is inside it. That might be what's called 'hard' or 'undesirable', but it may be the only way to know for sure, short of trial and error... > M> Maybe if you provided more information we could help you more. > > What else can I provide? Did I miss a dmesg from Linux in your earlier message? BTW, I agree we should make this sort of thing easier. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 16:47:04 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A01416A420 for ; Sun, 12 Feb 2006 16:47:04 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2116943D45 for ; Sun, 12 Feb 2006 16:47:01 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k1CGkpg1027575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Feb 2006 19:46:51 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1CGkokY027574; Sun, 12 Feb 2006 19:46:51 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Sun, 12 Feb 2006 19:46:50 +0300 From: Gleb Smirnoff To: Warner Losh Message-ID: <20060212164650.GT86448@cell.sick.ru> References: <20060212094758.GP86448@cell.sick.ru> <20060212.085136.110773332.imp@bsdimp.com> <20060212162841.GR86448@cell.sick.ru> <20060212.093447.74725815.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060212.093447.74725815.imp@bsdimp.com> User-Agent: Mutt/1.5.6i Cc: freebsd-usb@FreeBSD.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 16:47:04 -0000 On Sun, Feb 12, 2006 at 09:34:47AM -0700, Warner Losh wrote: W> > On Sun, Feb 12, 2006 at 08:51:36AM -0700, M. Warner Losh wrote: W> > M> In message: <20060212094758.GP86448@cell.sick.ru> W> > M> Gleb Smirnoff writes: W> > M> : I'm lame in USB and I can't understand why Linux supports this device W> > M> : w/o any additional modifications, just recognising ID, but our driver W> > M> : doesn't. I'm seeking for advice, that will help me get this device W> > M> : working. W> > M> W> > M> We have a lot of different usb serial drivers. Why did you pick W> > M> uplcom to add the ID to? Linux has merged them all into a single W> > M> driver, but that driver lacks the refinement our individual W> > M> sub-drivers have (at least last time I checked). W> > W> > As I said, Linux has IDs for CA-42, but they are different to what W> > I have: W> > W> > /* Nokia CA-42 Cable */ W> > #define NOKIA_CA42_VENDOR_ID 0x078b W> > #define NOKIA_CA42_PRODUCT_ID 0x1234 W> > W> > These IDs are utilised in pl2303.c, that's why I have chosen the W> > uplcom(4) driver. W> W> That ID is radically different. uplcom is a good first choice. W> However, maybe you could try each of the drivers. I know freebsd W> makes this a pain, but it is the only way to be sure we don't support W> it. Ok, I will try this. Or may be I should follow Linux source and see how it distinguishes device type? W> Alternatively, you could open up the cable and find which chip is W> inside it. That might be what's called 'hard' or 'undesirable', but W> it may be the only way to know for sure, short of trial and error... It is a monolithic piece of plastic, so I'll probably fail to assemble it after such a surgery. W> > M> Maybe if you provided more information we could help you more. W> > W> > What else can I provide? W> W> Did I miss a dmesg from Linux in your earlier message? Warner, I don't have Linux anywhere! :) I just found information in internet, that this cable works with Linux if IDs are supplied with insmod. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 21:16:14 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07C3C16A420; Sun, 12 Feb 2006 21:16:14 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C57043D45; Sun, 12 Feb 2006 21:16:13 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id k1CLExio027371; Sun, 12 Feb 2006 14:14:59 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 12 Feb 2006 14:14:58 -0700 (MST) Message-Id: <20060212.141458.01469052.imp@bsdimp.com> To: glebius@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <20060212164650.GT86448@cell.sick.ru> References: <20060212162841.GR86448@cell.sick.ru> <20060212.093447.74725815.imp@bsdimp.com> <20060212164650.GT86448@cell.sick.ru> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 12 Feb 2006 14:14:59 -0700 (MST) Cc: freebsd-usb@FreeBSD.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 21:16:14 -0000 In message: <20060212164650.GT86448@cell.sick.ru> Gleb Smirnoff writes: : On Sun, Feb 12, 2006 at 09:34:47AM -0700, Warner Losh wrote: : W> > On Sun, Feb 12, 2006 at 08:51:36AM -0700, M. Warner Losh wrote: : W> > M> In message: <20060212094758.GP86448@cell.sick.ru> : W> > M> Gleb Smirnoff writes: : W> > M> : I'm lame in USB and I can't understand why Linux supports this device : W> > M> : w/o any additional modifications, just recognising ID, but our driver : W> > M> : doesn't. I'm seeking for advice, that will help me get this device : W> > M> : working. : W> > M> : W> > M> We have a lot of different usb serial drivers. Why did you pick : W> > M> uplcom to add the ID to? Linux has merged them all into a single : W> > M> driver, but that driver lacks the refinement our individual : W> > M> sub-drivers have (at least last time I checked). : W> > : W> > As I said, Linux has IDs for CA-42, but they are different to what : W> > I have: : W> > : W> > /* Nokia CA-42 Cable */ : W> > #define NOKIA_CA42_VENDOR_ID 0x078b : W> > #define NOKIA_CA42_PRODUCT_ID 0x1234 : W> > : W> > These IDs are utilised in pl2303.c, that's why I have chosen the : W> > uplcom(4) driver. : W> : W> That ID is radically different. uplcom is a good first choice. : W> However, maybe you could try each of the drivers. I know freebsd : W> makes this a pain, but it is the only way to be sure we don't support : W> it. : : Ok, I will try this. Or may be I should follow Linux source and see : how it distinguishes device type? Maybe. : W> Alternatively, you could open up the cable and find which chip is : W> inside it. That might be what's called 'hard' or 'undesirable', but : W> it may be the only way to know for sure, short of trial and error... : : It is a monolithic piece of plastic, so I'll probably fail to assemble : it after such a surgery. :-(. Good things are unlikely to come from this... : W> > M> Maybe if you provided more information we could help you more. : W> > : W> > What else can I provide? : W> : W> Did I miss a dmesg from Linux in your earlier message? : : Warner, I don't have Linux anywhere! :) I just found information : in internet, that this cable works with Linux if IDs are supplied : with insmod. Ah, OK. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Feb 12 22:46:19 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DA5E16A420 for ; Sun, 12 Feb 2006 22:46:19 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 978B443D48 for ; Sun, 12 Feb 2006 22:46:18 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.3/8.13.3) with ESMTP id k1CMjvBh032707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 13 Feb 2006 01:45:57 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.3/8.13.1/Submit) id k1CMjv41032706; Mon, 13 Feb 2006 01:45:57 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Mon, 13 Feb 2006 01:45:57 +0300 From: Gleb Smirnoff To: "M. Warner Losh" Message-ID: <20060212224557.GV86448@cell.sick.ru> References: <20060212162841.GR86448@cell.sick.ru> <20060212.093447.74725815.imp@bsdimp.com> <20060212164650.GT86448@cell.sick.ru> <20060212.141458.01469052.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060212.141458.01469052.imp@bsdimp.com> User-Agent: Mutt/1.5.6i Cc: freebsd-usb@FreeBSD.org Subject: Re: Nokia CA-42 cable 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 Feb 2006 22:46:19 -0000 On Sun, Feb 12, 2006 at 02:14:58PM -0700, M. Warner Losh wrote: M> : W> That ID is radically different. uplcom is a good first choice. M> : W> However, maybe you could try each of the drivers. I know freebsd M> : W> makes this a pain, but it is the only way to be sure we don't support M> : W> it. M> : M> : Ok, I will try this. Or may be I should follow Linux source and see M> : how it distinguishes device type? M> M> Maybe. According to documentation, Linux uses the generic serial USB driver to handle a unknown device, when IDs are supplied as arguments to insmod. That is drivers/usb/serial/generic.c in Linux src tree. How do you think what is the corresponding driver in FreeBSD or NetBSD? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-usb@FreeBSD.ORG Mon Feb 13 11:02:52 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2486116A420 for ; Mon, 13 Feb 2006 11:02:52 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAABB43D45 for ; Mon, 13 Feb 2006 11:02:51 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1DB2pjE067497 for ; Mon, 13 Feb 2006 11:02:51 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1DB2ohb067491 for freebsd-usb@freebsd.org; Mon, 13 Feb 2006 11:02:50 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 13 Feb 2006 11:02:50 GMT Message-Id: <200602131102.k1DB2ohb067491@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 13 Feb 2006 11:02:52 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/10] usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_ o [2006/01/11] usb/91629 usb usbd_abort_pipe() may result in infinite 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2003/08/13] usb/55555 usb [ums] system freezes with access to /dev/ o [2003/09/06] usb/56513 usb [ugen] [panic] panic in ugen w/ moused -p o [2003/09/26] bin/57255 usb usbd and multi-function devices s [2003/12/15] usb/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/20] usb/61627 usb [usb] [patch] New USB printer not support o [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] usb/62309 usb [ugen] [panic] panic: ugen(4) driver o [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/06] usb/74771 usb [umass] mounting write-protected umass de o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, o [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " o [2005/01/21] usb/76554 usb Panram "yoyo" USB MP3 player causes panic o [2005/01/25] usb/76684 usb [hang] Toshiba PDR-M4 camera connected vi o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/16] usb/77604 usb Sluggish Logitch LX700 USB Mouse o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard o [2005/03/01] i386/78218 usb [kue] kue not detected on Sony PCG-F370 V o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via o [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f o [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond o [2005/05/04] usb/80628 usb recent USB MFCs cause panics o [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb [patch] USB locking issues: missing some o [2005/05/20] usb/81308 usb [ugen] [patch] polling a ugen(4) control o [2005/05/26] usb/81524 usb panic: usb_cold_explore: busses to explor o [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 o [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/15] usb/83504 usb [usb] SpeedTouch USB stop working on rece o [2005/07/16] usb/83563 usb [panic] Page Fault while detaching Mpman o [2005/07/18] usb/83677 usb [usb] usb controller often not detected ( o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/30] usb/84326 usb [umass] Panic trying to connect SCSI tape o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA o [2005/09/30] usb/86767 usb [usb] bogus "slice starts beyond end of t o [2005/10/08] usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not o [2005/10/16] usb/87519 usb [kbd] cannot install on USB-only system o [2005/10/17] usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS car o [2005/11/03] usb/88445 usb [panic] computer reboots after printing C o [2005/11/09] usb/88743 usb [hang] USB makes kernel hang at boot (reg o [2005/11/14] usb/88966 usb kldunload ucom.ko returns "Device busy" e o [2005/11/18] usb/89218 usb flash disk o [2005/12/05] usb/89954 usb [usb] USB Disk driver race condition? o [2005/12/05] usb/89997 usb [umass] [panic] panic on iPod mini detach o [2005/12/09] usb/90162 usb [usb] [patch] Add support for the MS Wire o [2005/12/20] usb/90700 usb Kernel panic on connect/mount/use umass d o [2006/01/02] usb/91238 usb USB tape unit fails to write a second tap o [2006/01/03] usb/91263 usb [patch] USB quirk needed for Logitec USB o [2006/01/09] usb/91538 usb Unable to print to EPSON CX3500 o [2006/01/17] usb/91906 usb FreeBSD hangs while booting with USB lega o [2006/01/20] usb/92052 usb usbd causes defunct process with busy fil o [2006/01/22] usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors fro o [2006/01/22] usb/92171 usb [panic] panic unplugging Vodafone Mobile o [2006/02/10] usb/93155 usb /dev/ulpt0: device busy USB printer doe 77 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m f [2001/12/09] usb/32652 usb [uscanner] [patch] A new ioctl to uscanne s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work f [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] usb/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [ugen] [patch] ugen does not allow O_NONB o [2003/08/28] usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fai o [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] usb/61234 usb [usb] [patch] usbhidaction(1) doesn't sup o [2004/03/06] usb/63837 usb [uhid] [patch] USB: hid_is_collection() o o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [ugen] [patch] ugen(4) isochronous handli o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] usb/71605 usb [umass] [patch] umass doesn't recognize m o [2004/10/06] usb/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/05] usb/73553 usb [usb] Microsoft USB Internet Keyboard not o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on o [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [usb] [patch] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch o [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails o [2005/03/07] usb/78543 usb [patch] Support for Trip-Lite USB 2 Seria o [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [usb] [patch] USB device speed is not dou o [2005/04/14] usb/79893 usb [umass] [patch] new usbdevs/umass quirks o [2005/04/16] usb/80010 usb [aue] [patch] add support for the AEI USB o [2005/04/27] usb/80420 usb atapicam stops iPod functionality o [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [udav] UDAV device driver shouldn't use u o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [umass] [patch] fix umass NO_GETMAXLUN qu o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to o [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr o [2005/09/21] usb/86438 usb Fix for non-working iPod over USB is in N o [2005/10/10] usb/87224 usb Cannot mount USB Zip750 o [2005/10/19] usb/87648 usb [mouse] Logitech USB-optical mouse proble o [2005/11/02] usb/88408 usb axe0 read PHY failed o [2005/11/13] usb/88939 usb Fix cheapy Myson USB-IDE adapter o [2005/11/15] usb/89087 usb usb external harddrive hangs with BBB res o [2006/01/01] usb/91191 usb HP LaserJet 1020 (USB printer) not recogn o [2006/01/08] usb/91516 usb [umass] umass0 problems, with Freecom Cla o [2006/01/09] usb/91546 usb [umodem][path] Nokia 6630 mobile phone do o [2006/01/15] usb/91811 usb Compact Flash in HP Photosmart 2610 retur o [2006/01/16] usb/91863 usb Philips USB webcam driver o [2006/01/17] usb/91896 usb Serial Number of USB Memory Sticks is not o [2006/01/25] usb/92306 usb [quirk] [patch] Support for iRiver U10 US o [2006/01/27] usb/92403 usb uplcom.c needs new entry for 4.00 revisio o [2006/01/28] usb/92462 usb [patch] Add support for Epson CX3500/3600 o [2006/02/05] usb/92852 usb Vertical scroll not working properly on A o [2006/02/08] usb/93011 usb HP ScanJet 6200C & uscanner problem 81 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Feb 14 11:20:18 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6215F16A420 for ; Tue, 14 Feb 2006 11:20:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECEFF43D46 for ; Tue, 14 Feb 2006 11:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1EBKHbQ073657 for ; Tue, 14 Feb 2006 11:20:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1EBKHxO073656; Tue, 14 Feb 2006 11:20:17 GMT (envelope-from gnats) Date: Tue, 14 Feb 2006 11:20:17 GMT Message-Id: <200602141120.k1EBKHxO073656@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: perrimd@copesd.k12.mi.us Cc: Subject: Re: usb/88408: axe0 read PHY failed X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: perrimd@copesd.k12.mi.us List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 11:20:18 -0000 The following reply was made to PR usb/88408; it has been noted by GNATS. From: perrimd@copesd.k12.mi.us To: "Tilman Linneweh" Cc: Subject: Re: usb/88408: axe0 read PHY failed Date: Mon, 13 Feb 2006 14:07:13 -0500 (EST) Nope it is still a problem in 6.0 for me. Seems to only want to do it when compiling a port from a telnet session.... Thanks Mike > > Am 02.11.2005 um 22:41 schrieb Mike: >>> Description: >> The axe interface when using a USB Netgear FA120 will get multiple >> read PHY failed and then become inoperative. Unloading if_axe.ko and >> then reloading brings the adapter back up. >> The OS is running on a VIA ML1000 mini itx motherboard. Unit boots >> from flash so root is read only. >> I have the same problem on the via CL1000 also. I have tried other >> FA120s and have ruled out bad adpater hardware. >> > > I had the same problem on RELENG_5 but since updating to RELENG_6 it > works without a problem. > Can you try updating to RELENG_6 ? > From owner-freebsd-usb@FreeBSD.ORG Tue Feb 14 16:50:14 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E7E116A420 for ; Tue, 14 Feb 2006 16:50:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D75043D6B for ; Tue, 14 Feb 2006 16:50:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1EGo47j002878 for ; Tue, 14 Feb 2006 16:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1EGo427002877; Tue, 14 Feb 2006 16:50:04 GMT (envelope-from gnats) Resent-Date: Tue, 14 Feb 2006 16:50:04 GMT Resent-Message-Id: <200602141650.k1EGo427002877@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Gustas Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F7AD16A420 for ; Tue, 14 Feb 2006 16:41:45 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0263443D46 for ; Tue, 14 Feb 2006 16:41:45 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1EGfiKj033531 for ; Tue, 14 Feb 2006 16:41:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1EGfi45033527; Tue, 14 Feb 2006 16:41:44 GMT (envelope-from nobody) Message-Id: <200602141641.k1EGfi45033527@www.freebsd.org> Date: Tue, 14 Feb 2006 16:41:44 GMT From: Nick Gustas To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/93347: Added support for Tripplite U209-000-R Usb-Serial adapter 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: Tue, 14 Feb 2006 16:50:14 -0000 >Number: 93347 >Category: usb >Synopsis: Added support for Tripplite U209-000-R Usb-Serial adapter >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 14 16:50:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Nick Gustas >Release: 6.1-BETA1 >Organization: SPI >Environment: FreeBSD captive.roc.lan 6.1-BETA1 FreeBSD 6.1-BETA1 #0: Wed Feb 1 21:59:39 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Patch to "add" support for the Tripplite U209-000-R usb to serial adapter. uplcom.c ver 1.29 from FreeBSD 6.1-BETA1 doesn't support the Tripplite U209-000-R, I tried 1.31 from HEAD, and it also didn't support it. Device shows up as gen0 instead of ucom0 Hopefully this can be added before 6.1 is released. >How-To-Repeat: captive# kldload /boot/kernel/uplcom.ko captive# kldstat Id Refs Address Size Name 1 7 0xc0400000 640478 kernel 2 1 0xc0a41000 58554 acpi.ko 3 2 0xc1bf5000 3000 ucom.ko 4 1 0xc1cae000 3000 uplcom.ko ugen0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 2 captive# usbdevs -a 2 -v Controller /dev/usb0: Controller /dev/usb1: addr 2: full speed, power 100 mA, config 1, USB-Serial Controller(0x2008), Prolific Technology Inc.(0x2478), rev 3.00 Controller /dev/usb2: >Fix: Patch for uplcom.c ver 1.29 --- uplcom.c~ Tue Feb 14 12:29:20 2006 +++ uplcom.c Tue Feb 14 12:29:20 2006 @@ -241,6 +241,8 @@ /* IOGEAR/ATEN UC-232A (also ST Lab USB-SERIAL-1) */ { USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, -1, TYPE_PL2303 }, /* TDK USB-PHS Adapter UHA6400 */ + /* Tripplite U209-000-R */ + { USB_VENDOR_TRIPPLITE, USB_PRODUCT_ATEN_UC232A, -1, TYPE_PL2303X }, { USB_VENDOR_TDK, USB_PRODUCT_TDK_UHA6400, -1, TYPE_PL2303 }, /* RATOC REX-USB60 */ { USB_VENDOR_RATOC, USB_PRODUCT_RATOC_REXUSB60, -1, TYPE_PL2303 }, ----- cd /usr/src/sys/dev/usb patch < patch Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- uplcom.c~ Tue Feb 14 12:29:20 2006 |+++ uplcom.c Tue Feb 14 12:29:20 2006 -------------------------- Patching file uplcom.c using Plan A... Hunk #1 succeeded at 241. done cd /usr/src/sys/modules/uplcom make kldload ./uplcom.ko ucom0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr 2 cu -l /dev/cuaU0 Connected at OK >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Tue Feb 14 18:30:20 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55DCD16A420 for ; Tue, 14 Feb 2006 18:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 253B343D45 for ; Tue, 14 Feb 2006 18:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1EIUJaL009918 for ; Tue, 14 Feb 2006 18:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1EIUJoV009915; Tue, 14 Feb 2006 18:30:19 GMT (envelope-from gnats) Date: Tue, 14 Feb 2006 18:30:19 GMT Message-Id: <200602141830.k1EIUJoV009915@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Nick Gustas Cc: Subject: Re: usb/93347: Added support for Tripplite U209-000-R Usb-Serial adapter X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nick Gustas List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Feb 2006 18:30:20 -0000 The following reply was made to PR usb/93347; it has been noted by GNATS. From: Nick Gustas To: bug-followup@FreeBSD.org, freebsdpr@tychl.txf.com Cc: Subject: Re: usb/93347: Added support for Tripplite U209-000-R Usb-Serial adapter Date: Tue, 14 Feb 2006 13:23:07 -0500 Patch inserted new lines in wrong spot, still works, but not right. Sorry. Updated below. --- uplcom.c.1.21 Tue Feb 14 12:29:20 2006 +++ uplcom.c Tue Feb 14 14:18:40 2006 @@ -240,6 +240,8 @@ 0x300, TYPE_PL2303X }, /* IOGEAR/ATEN UC-232A (also ST Lab USB-SERIAL-1) */ { USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_PL2303, -1, TYPE_PL2303 }, + /* Tripplite U209-000-R */ + { USB_VENDOR_TRIPPLITE, USB_PRODUCT_ATEN_UC232A, -1, TYPE_PL2303X }, /* TDK USB-PHS Adapter UHA6400 */ { USB_VENDOR_TDK, USB_PRODUCT_TDK_UHA6400, -1, TYPE_PL2303 }, /* RATOC REX-USB60 */ From owner-freebsd-usb@FreeBSD.ORG Wed Feb 15 13:40:05 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCD1E16A420 for ; Wed, 15 Feb 2006 13:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01DDD43D46 for ; Wed, 15 Feb 2006 13:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1FDe4aw030333 for ; Wed, 15 Feb 2006 13:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1FDe4bD030332; Wed, 15 Feb 2006 13:40:04 GMT (envelope-from gnats) Resent-Date: Wed, 15 Feb 2006 13:40:04 GMT Resent-Message-Id: <200602151340.k1FDe4bD030332@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Demin Alexander Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE38016A422 for ; Wed, 15 Feb 2006 13:39:19 +0000 (GMT) (envelope-from oldman@support.spectrum.ru) Received: from support.spectrum.ru (support.spectrum.ru [62.205.172.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1436943D48 for ; Wed, 15 Feb 2006 13:39:18 +0000 (GMT) (envelope-from oldman@support.spectrum.ru) Received: from support.spectrum.ru (localhost [127.0.0.1]) by support.spectrum.ru (8.13.4/8.13.4) with ESMTP id k1FDdFmv001170 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Wed, 15 Feb 2006 16:39:16 +0300 (MSK) (envelope-from oldman@support.spectrum.ru) Received: (from oldman@localhost) by support.spectrum.ru (8.13.4/8.13.3/Submit) id k1FDdFO4001169; Wed, 15 Feb 2006 16:39:15 +0300 (MSK) (envelope-from oldman) Message-Id: <200602151339.k1FDdFO4001169@support.spectrum.ru> Date: Wed, 15 Feb 2006 16:39:15 +0300 (MSK) From: Demin Alexander To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/93389: Digital Camera Pentax S60 don't work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Demin Alexander List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 13:40:06 -0000 >Number: 93389 >Category: usb >Synopsis: Digital Camera Pentax S60 don't work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 15 13:40:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Demin Alexander >Release: FreeBSD 5.5-PRERELEASE i386 >Organization: Group of companies Spectrum >Environment: System: FreeBSD support.spectrum.ru 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #22: Thu Feb 9 16:38:07 MSK 2006 root@support.spectrum.ru:/usr/obj/usr/src/sys/MYGENERIC i386 FreeBSD 5.5-PRERELEASE #22: Thu Feb 9 16:38:07 MSK 2006 root@support.spectrum.ru:/usr/obj/usr/src/sys/MYGENERIC ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2800.12-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebfbff real memory = 536805376 (511 MB) avail memory = 515629056 (491 MB) ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xdd980000-0xdd9fffff,0xd8000000-0xdbffffff,0xde000000-0xdeffffff irq 16 at device 0.0 on pci1 uhci0: port 0xd400-0xd41f irq 16 at device 29.0 on pci0 uhci0: LegSup = 0x2f00 usb0: on uhci0 usb0: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 19 at device 29.1 on pci0 uhci1: LegSup = 0x2f00 usb1: on uhci1 usb1: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xdc00-0xdc1f irq 18 at device 29.2 on pci0 uhci2: LegSup = 0x2f00 usb2: on uhci2 usb2: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xdffffc00-0xdfffffff irq 23 at device 29.7 on pci0 usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered pcib2: at device 30.0 on pci0 pci3: on pcib2 rl0: port 0xbc00-0xbcff mem 0xdfefff00-0xdfefffff irq 18 at device 2.0 on pci3 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:80:48:23:bc:f7 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xb800-0xb87f mem 0xdfeffe80-0xdfeffeff irq 17 at device 5.0 on pci3 miibus1: on xl0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:04:76:9c:b5:0e isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xfc00-0xfc0f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.3 (no driver attached) pcm0: port 0xcc00-0xcc3f,0xd000-0xd0ff mem 0xdffff900-0xdffff9ff,0xdffffa00-0xdffffbff irq 17 at device 31.5 on pci0 pcm0: acpi_button1: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 fdc0: port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 npx0: on motherboard npx0: INT 16 interface pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2800115568 Hz quality 800 Timecounters tick every 10.000 msec ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to accept, logging unlimited ad0: 286168MB [581421/16/63] at ata0-master UDMA100 acd0: CDRW at ata1-master UDMA33 acd1: DVDR at ata1-slave UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd1 at ata1 bus 0 target 1 lun 0 cd1: <_NEC DVD_RW ND-3500AG 2.16> Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present >Description: This message is displayed after connection digital camera: umass0: PENTAX product 0x0047, rev 1.10/0.00, addr 2 umass0: 8070i (ATAPI) over CBI with CCI (using CBI); quirks = 0x0002 umass0:2:0:-1: Attached to scbus2 umass0: CBI reset failed, STALLED umass0: CBI bulk-in stall clear failed, STALLED umass0: CBI bulk-out stall clear failed, STALLED (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0 (probe0:umass-sim0:0:0:0): Medium not present sks:0x80,0xffff (probe0:umass-sim0:0:0:0): Unretryable error >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Wed Feb 15 14:52:27 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F27A916A420; Wed, 15 Feb 2006 14:52:26 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AB3243D45; Wed, 15 Feb 2006 14:52:26 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd26.aul.t-online.de by mailout10.sul.t-online.com with smtp id 1F9O12-0001Cw-03; Wed, 15 Feb 2006 15:52:24 +0100 Received: from ramses.kicks-ass.net (ZYd41cZEweuVy6PjRmMQyZzLNdiEYJGo0eEKp7WKAFNgUweccyfhUw@[80.143.250.85]) by fwd26.sul.t-online.de with esmtp id 1F9O0x-0yeNo80; Wed, 15 Feb 2006 15:52:19 +0100 Received: from localhost (dslb-084-061-054-045.pools.arcor-ip.net [84.61.54.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id 25A75B833; Wed, 15 Feb 2006 15:52:22 +0100 (CET) From: Markus Brueffer To: freebsd-usb@freebsd.org Date: Wed, 15 Feb 2006 15:51:20 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1515827.EJBHUV7QcL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602151551.27188.markus@brueffer.de> X-ID: ZYd41cZEweuVy6PjRmMQyZzLNdiEYJGo0eEKp7WKAFNgUweccyfhUw@t-dialin.net X-TOI-MSGID: 04423a6b-709a-402f-90d6-8b764d0a1eab Cc: freebsd-bluetooth@freebsd.org Subject: [Patch] Fix collection entry parsing in libusbhid 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: Wed, 15 Feb 2006 14:52:27 -0000 --nextPart1515827.EJBHUV7QcL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, here is a patch for libusbhid which fixes parsing of collection entries if = the=20 collection has only non-variable Input/Output/Feature entries: http://people.freebsd.org/~markus/bt/parse.c.diff The problem ist that the output of collection pages has to be deferred unti= l=20 the report id is known. Without the patch, deferred collection pages are on= ly=20 reported correctly if variable Input/Output/Feature entries are present. The effect can be seen here (output of the hid descriptor dump of a Logitec= h=20 MX5000 keyboard using bthidcontrol): http://people.freebsd.org/~markus/bt/mx5000_before.txt http://people.freebsd.org/~markus/bt/mx5000_after.txt =46urthermore I have removed the loop in REPORT_SAVED_COLL. If someone know= s why=20 it was there in the first place, please share your wisdom :) Third change is the removal of REPORT_SAVED_COLL if the end of a collection= is=20 reached. All collection entries should have been reported by then. Ok to commit? Markus =2D-=20 Markus Brueffer =A0 =A0| GPG-Key: http://people.FreeBSD.org/~markus/markus.= asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart1515827.EJBHUV7QcL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD8z/v1I0Qcnj4qNQRAkjSAKDCBidrz0FyH8W6P16KEix76s5A0wCfXMlQ 9AOrEWxkT9hLGdKcoAAisRQ= =Q0xs -----END PGP SIGNATURE----- --nextPart1515827.EJBHUV7QcL-- From owner-freebsd-usb@FreeBSD.ORG Wed Feb 15 19:21:07 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B602416A420 for ; Wed, 15 Feb 2006 19:21:07 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F0A043D4C for ; Wed, 15 Feb 2006 19:21:05 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k1FJL3EL029411; Wed, 15 Feb 2006 20:21:03 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k1FJL37U029409; Wed, 15 Feb 2006 20:21:03 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k1FJ9MUb001593; Wed, 15 Feb 2006 20:09:22 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k1FJ9LUB001592; Wed, 15 Feb 2006 20:09:21 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Wed, 15 Feb 2006 20:09:20 +0100 To: Ian Dowse Message-ID: <20060215190920.GA942@saturn.kn-bremen.de> References: <20060127003118.GA17649@saturn.kn-bremen.de> <200601291808.aa03106@nowhere.iedowse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200601291808.aa03106@nowhere.iedowse.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: your RELENG_5 usb patches (was: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h) 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: Wed, 15 Feb 2006 19:21:07 -0000 On Sun, Jan 29, 2006 at 06:08:49PM +0000, Ian Dowse wrote: > In message <20060127003118.GA17649@saturn.kn-bremen.de>, Juergen Lock writes: > > > >Here is what I use on RELENG_5_4: > > Thanks - that's merged into RELENG_5 now. Could somebody test if > the following additional patch works? This includes a number of > changes that are in RELENG_6 but haven't made it to 5.x yet, including > ohci and ulpt bug fixes and improved umass and ums device support. > For this to apply you will need the latest RELENG_5 (29th Jan). I > don't have a RELENG_5 box here so this might not even compile. The > patch is at: > > http://people.freebsd.org/~iedowse/usb_releng_5.diff I finally got around testing this patch on today's RELENG_5. I built my custom kernel (mostly based on GENERIC but with ehci), booted that, copied the kernel to an 16 MB sdcard i had lying around using an usb multi-cardreader, which worked. umounted, disconnected, reconnected, mounted again and verified the kernel, which worked as well. Then I noticed this in dmesg: da3: 1.000MB/s transfers so it wasn't using ehci apparently. I thought, maybe this is intermittent too like with my externally powered devices, so I disconnected and reconnected again, but this time da3s1 didn't appear. (dmesg also shows da1, sometimes with 1 and sometimes with 40 MB/s, but I never saw a /dev/da1s1 appear.) I wanted to try again, and when disconnecting I got the following panic: bash 10.3# kgdb kernel.debug /var/crash/vmcore.20 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:160 160 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt #0 doadump () at pcpu.h:160 #1 0xc05e52d8 in boot (howto=260) at /usr/home/nox/src-r5/src/sys/kern/kern_shutdown.c:412 #2 0xc05e559c in panic (fmt=0xc07b83b0 "%s") at /usr/home/nox/src-r5/src/sys/kern/kern_shutdown.c:568 #3 0xc0777f8c in trap_fatal (frame=0xd41f6b90, eva=8) at /usr/home/nox/src-r5/src/sys/i386/i386/trap.c:822 #4 0xc0777ce3 in trap_pfault (frame=0xd41f6b90, usermode=0, eva=8) at /usr/home/nox/src-r5/src/sys/i386/i386/trap.c:737 #5 0xc07778e1 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1044148224, tf_esi = 0, tf_ebp = -736138280, tf_isp = -736138308, tf_ebx = -1040247808, tf_edx = 1, tf_ecx = -1044096896, tf_eax = -1040246016, tf_trapno = 12, tf_err = 2, tf_eip = -1069254537, tf_cs = 8, tf_eflags = 66118, tf_esp = -1034639872, tf_ss = -1040247808}) at /usr/home/nox/src-r5/src/sys/i386/i386/trap.c:427 #6 0xc076a17a in calltrap () at /usr/home/nox/src-r5/src/sys/i386/i386/exception.s:140 #7 0x00000018 in ?? () #8 0x00000010 in ?? () #9 0x00000010 in ?? () #10 0xc1c39000 in ?? () #11 0x00000000 in ?? () #12 0xd41f6bd8 in ?? () ---Type to continue, or q to quit--- #13 0xd41f6bbc in ?? () #14 0xc1ff1400 in ?? () #15 0x00000001 in ?? () #16 0xc1c45880 in ?? () #17 0xc1ff1b00 in ?? () #18 0x0000000c in ?? () #19 0x00000002 in ?? () #20 0xc0447877 in camq_remove (queue=0xc1ff1400, index=0) at /usr/home/nox/src-r5/src/sys/cam/cam_queue.c:182 #21 0xc044a364 in xpt_run_dev_allocq (bus=0xc1ff1300) at /usr/home/nox/src-r5/src/sys/cam/cam_xpt.c:3766 #22 0xc044ac06 in xpt_release_ccb (free_ccb=0x0) at /usr/home/nox/src-r5/src/sys/cam/cam_xpt.c:4317 #23 0xc044c30a in probedone (periph=0xc2450480, done_ccb=0xc1c29c00) at /usr/home/nox/src-r5/src/sys/cam/cam_xpt.c:5899 #24 0xc044d0dd in camisr (V_queue=0xc087aee0) at /usr/home/nox/src-r5/src/sys/cam/cam_xpt.c:7074 #25 0xc05d1399 in ithread_loop (arg=0xc198aa80) at /usr/home/nox/src-r5/src/sys/kern/kern_intr.c:547 #26 0xc05d062c in fork_exit (callout=0xc05d1248 , arg=0xc198aa80, frame=0xd41f6d38) at /usr/home/nox/src-r5/src/sys/kern/kern_fork.c:791 #27 0xc076a1dc in fork_trampoline () ---Type to continue, or q to quit--- at /usr/home/nox/src-r5/src/sys/i386/i386/exception.s:209 (kgdb) fr 20 #20 0xc0447877 in camq_remove (queue=0xc1ff1400, index=0) at /usr/home/nox/src-r5/src/sys/cam/cam_queue.c:182 182 heap_down(queue->queue_array, index, queue->entries - 1); (kgdb) p queue $1 = (struct camq *) 0xc1ff1400 (kgdb) p queue->queue_array $2 = (cam_pinfo **) 0xc1c45880 (kgdb) p queue->entries $3 = 1 (kgdb) p *queue $4 = {queue_array = 0xc1c45880, array_size = 3, entries = 1, generation = 17, qfrozen_cnt = 1} (kgdb) p *queue->queue_array $5 = (cam_pinfo *) 0xc254a008 (kgdb) p **queue->queue_array $6 = {priority = 1, generation = 17, index = 1} (kgdb) p index $7 = 0 (kgdb) q Thats doesnt tell me much tho. This is dmesg extracted from the dump, copying here beginning with the first connect of the cardreader: umass0: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 2 umass0:6:0:-1: Attached to scbus6 pass3 at umass-sim0 bus 0 target 0 lun 0 pass3: Removable Direct Access SCSI-0 device pass3: 1.000MB/s transfers GEOM: new disk da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 1.000MB/s transfers da1: 14MB (29120 512 byte sectors: 64H 32S/T 14C) (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 pass4 at umass-sim0 bus 0 target 0 lun 1 pass4: Removable Direct Access SCSI-0 device pass4: 1.000MB/s transfers GEOM: new disk da2 (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error da2 at umass-sim0 bus 0 target 0 lun 1 da2: Removable Direct Access SCSI-0 device da2: 1.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 pass5 at umass-sim0 bus 0 target 0 lun 2 pass5: Removable Direct Access SCSI-0 device pass5: 1.000MB/s transfers GEOM: new disk da3 da3 at umass-sim0 bus 0 target 0 lun 2 da3: Removable Direct Access SCSI-0 device da3: 1.000MB/s transfers da3: 14MB (29120 512 byte sectors: 64H 32S/T 14C) [0] f:00 typ:1 s(CHS):0/1/26 e(CHS):454/1/32 s:57 l:29063 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure da3s1, start 29184 length 14880256 end 14909439 pass6 at umass-sim0 bus 0 target 0 lun 3 pass6: Removable Direct Access SCSI-0 device pass6: 1.000MB/s transfers (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error da4 at umass-sim0 bus 0 target 0 lun 3 da4: Removable Direct Access SCSI-0 device da4: 1.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present pass7 at umass-sim0 bus 0 target 0 lun 4 pass7: Removable Direct Access SCSI-0 device pass7: 1.000MB/s transfers (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error da5 at umass-sim0 bus 0 target 0 lun 4 da5: Removable Direct Access SCSI-0 device da5: 1.000MB/s transfers da5: Attempt to query device size failed: NOT READY, Medium not present GEOM: new disk da4 GEOM: new disk da5 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 umass0: at uhub1 port 1 (addr 2) disconnected (da1:umass-sim0:0:0:0): lost device (da1:umass-sim0:0:0:0): removing device entry (pass3:umass-sim0:0:0:0): lost device (pass3:umass-sim0:0:0:0): removing device entry (da2:umass-sim0:0:0:1): lost device (da2:umass-sim0:0:0:1): removing device entry (pass4:umass-sim0:0:0:1): lost device (pass4:umass-sim0:0:0:1): removing device entry (da3:umass-sim0:0:0:2): lost device (da3:umass-sim0:0:0:2): removing device entry (pass5:umass-sim0:0:0:2): lost device (pass5:umass-sim0:0:0:2): removing device entry (da4:umass-sim0:0:0:3): lost device (da4:umass-sim0:0:0:3): removing device entry (pass6:umass-sim0:0:0:3): lost device (pass6:umass-sim0:0:0:3): removing device entry (da5:umass-sim0:0:0:4): lost device (da5:umass-sim0:0:0:4): removing device entry (pass7:umass-sim0:0:0:4): lost device (pass7:umass-sim0:0:0:4): removing device entry umass0: detached umass0: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 2 umass0:6:0:-1: Attached to scbus6 pass3 at umass-sim0 bus 0 target 0 lun 0 pass3: Removable Direct Access SCSI-0 device pass3: 40.000MB/s transfers GEOM: new disk da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 14MB (29120 512 byte sectors: 64H 32S/T 14C) (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 pass4 at umass-sim0 bus 0 target 0 lun 1 pass4: Removable Direct Access SCSI-0 device pass4: 40.000MB/s transfers GEOM: new disk da2 (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error da2 at umass-sim0 bus 0 target 0 lun 1 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present (da2:umass-sim0:0:0:1): AutoSense Failed (da2:umass-sim0:0:0:1): error 5 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 5 (probe0:umass-sim0:0:0:2): Request completed with CAM_REQ_CMP_ERR (probe0:umass-sim0:0:0:2): Retrying Command umass0: at uhub3 port 3 (addr 2) disconnected (da1:umass-sim0:0:0:0): lost device (da1:umass-sim0:0:0:0): removing device entry (pass3:umass-sim0:0:0:0): lost device (pass3:umass-sim0:0:0:0): removing device entry (da2:umass-sim0:0:0:1): lost device (pass4:umass-sim0:0:0:1): lost device (pass4:umass-sim0:0:0:1): removing device entry (probe0:umass-sim0:0:0:2): CAM Status 0x39 (probe0:umass-sim0:0:0:2): Retrying Command (probe0:umass-sim0:0:0:2): CAM Status 0x39 (probe0:umass-sim0:0:0:2): Retrying Command (probe0:umass-sim0:0:0:2): CAM Status 0x39 (probe0:umass-sim0:0:0:2): Retrying Command (probe0:umass-sim0:0:0:2): error 5 (probe0:umass-sim0:0:0:2): Retries Exhausted Fatal trap 12: page fault while in kernel mode fault virtual address = 0x8 fault code = supervisor write, page not present instruction pointer = 0x8:0xc0447877 stack pointer = 0x10:0xd41f6bd0 frame pointer = 0x10:0xd41f6bd8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 36 (swi3: cambio) trap number = 12 panic: page fault KDB: stack backtrace: kdb_backtrace(100,c198f180,10,d41f6b90,c) at kdb_backtrace+0x29 panic(c07b83b0,c07f6cdc,0,fffff,c19cd79b) at panic+0xa8 trap_fatal(d41f6b90,8,c198f180,0,c) at trap_fatal+0x280 trap_pfault(d41f6b90,0,8) at trap_pfault+0x1ef trap(18,10,10,c1c39000,0) at trap+0x315 calltrap() at calltrap+0x5 --- trap 0xc, eip = 0xc0447877, esp = 0xd41f6bd0, ebp = 0xd41f6bd8 --- camq_remove(c1ff1400,1,c07b05fe,c2450480,c254a600) at camq_remove+0x47 xpt_run_dev_allocq(c1ff1300) at xpt_run_dev_allocq+0x3c xpt_release_ccb(c1c29c00) at xpt_release_ccb+0xda probedone(c2450480,c1c29c00) at probedone+0x18a camisr(c087aee0) at camisr+0x1f1 ithread_loop(c198aa80,d41f6d38) at ithread_loop+0x151 fork_exit(c05d1248,c198aa80,d41f6d38) at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xd41f6d6c, ebp = 0 --- Uptime: 8m10s (da2:umass-sim0:0:0:1): Synchronize cache failed, status == 0x39, scsi status == 0x0 Dumping 511 MB 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 From owner-freebsd-usb@FreeBSD.ORG Wed Feb 15 21:10:11 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D47116A420 for ; Wed, 15 Feb 2006 21:10:11 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B221443D60 for ; Wed, 15 Feb 2006 21:10:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1FLA5Rx068903 for ; Wed, 15 Feb 2006 21:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1FLA56N068898; Wed, 15 Feb 2006 21:10:05 GMT (envelope-from gnats) Resent-Date: Wed, 15 Feb 2006 21:10:05 GMT Resent-Message-Id: <200602152110.k1FLA56N068898@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jakub Jozwicki Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 424F216A420 for ; Wed, 15 Feb 2006 21:08:55 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA54443D53 for ; Wed, 15 Feb 2006 21:08:54 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1FL8s76003776 for ; Wed, 15 Feb 2006 21:08:54 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1FL8sqJ003775; Wed, 15 Feb 2006 21:08:54 GMT (envelope-from nobody) Message-Id: <200602152108.k1FL8sqJ003775@www.freebsd.org> Date: Wed, 15 Feb 2006 21:08:54 GMT From: Jakub Jozwicki To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/93408: hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy mouse or system freeze when it is installed on flash disk 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: Wed, 15 Feb 2006 21:10:11 -0000 >Number: 93408 >Category: usb >Synopsis: hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes choppy mouse or system freeze when it is installed on flash disk >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 15 21:10:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jakub Jozwicki >Release: 6.1-beta1 i386 >Organization: >Environment: >Description: sysctl hw.acpi.cpu.cx_lowest=C3 causes system freeze when it is installed on usb flash disk, platform = AMD Turion 64. When installed on hdd mouse is choppy >How-To-Repeat: buy some laptop with AMD64 processor install FreeBSD sysctl hw.acpi.cpu.cx_lowest=C3 >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 02:05:04 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3F3916A420 for ; Thu, 16 Feb 2006 02:05:04 +0000 (GMT) (envelope-from iedowse@iedowse.com) Received: from nowhere.iedowse.com (nowhere.iedowse.com [82.195.144.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 6AB2443D72 for ; Thu, 16 Feb 2006 02:04:56 +0000 (GMT) (envelope-from iedowse@iedowse.com) Received: from localhost ([127.0.0.1] helo=iedowse.com) by nowhere.iedowse.com via local-iedowse id ; 16 Feb 2006 02:04:54 +0000 (GMT) To: Juergen Lock In-Reply-To: Your message of "Wed, 15 Feb 2006 20:09:20 +0100." <20060215190920.GA942@saturn.kn-bremen.de> Date: Thu, 16 Feb 2006 02:04:54 +0000 From: Ian Dowse Message-ID: <200602160204.aa07052@nowhere.iedowse.com> Cc: freebsd-usb@freebsd.org Subject: Re: your RELENG_5 usb patches (was: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h) 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: Thu, 16 Feb 2006 02:05:04 -0000 In message <20060215190920.GA942@saturn.kn-bremen.de>, Juergen Lock writes: >I finally got around testing this patch on today's RELENG_5. I built >my custom kernel (mostly based on GENERIC but with ehci), booted that, >copied the kernel to an 16 MB sdcard i had lying around using an usb >multi-cardreader, which worked. umounted, disconnected, reconnected, >mounted again and verified the kernel, which worked as well. Then I >noticed this in dmesg: > da3: 1.000MB/s transfers >so it wasn't using ehci apparently. I thought, maybe this is >intermittent too like with my externally powered devices, so I >disconnected and reconnected again, but this time da3s1 didn't appear. >(dmesg also shows da1, sometimes with 1 and sometimes with 40 MB/s, >but I never saw a /dev/da1s1 appear.) I wanted to try again, and when >disconnecting I got the following panic: I'm not sure about the intermittent probing behaviour, but there are known bugs in CAM that cause it to crash in camisr() if a device goes away while being probed. There have been some improvements in this area in -CURRENT, so if you like you could try a CAM patch too: http://people.freebsd.org/~iedowse/cam_remove_releng_5.diff Note that this is just a blind backport - I haven't even tested that it compiles. Ian From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 06:54:46 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9156016A420 for ; Thu, 16 Feb 2006 06:54:46 +0000 (GMT) (envelope-from bryan@kishka.net) Received: from gravy.kishka.net (c-69-139-12-128.hsd1.pa.comcast.net [69.139.12.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id F047B43D4C for ; Thu, 16 Feb 2006 06:54:45 +0000 (GMT) (envelope-from bryan@kishka.net) Received: from [192.168.1.2] (gravy.kishka.net [192.168.1.2]) by gravy.kishka.net (8.13.4/8.13.4) with ESMTP id k1G6sitY000654 for ; Thu, 16 Feb 2006 01:54:44 -0500 (EST) (envelope-from bryan@kishka.net) Message-ID: <43F421B3.8050607@kishka.net> Date: Thu, 16 Feb 2006 01:54:43 -0500 From: Bryan Liesner User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Kensington Bluetooth USB dongle 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: Thu, 16 Feb 2006 06:54:46 -0000 I have compiled in all (I think) of the necessary usb netgraph stuff into my kernel: options NETGRAPH options NETGRAPH_BLUETOOTH options NETGRAPH_BLUETOOTH_BT3C options NETGRAPH_BLUETOOTH_H4 options NETGRAPH_BLUETOOTH_HCI options NETGRAPH_BLUETOOTH_L2CAP options NETGRAPH_BLUETOOTH_SOCKET options NETGRAPH_BLUETOOTH_UBT and when the system boots, I see this: ubt0: Kensington Bluetooth EDR Dongle, rev 2.00/0.00, addr 3 ubt0: Kensington Bluetooth EDR Dongle, rev 2.00/0.00, addr 3 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPack etSize=49; nframes=6, buffer size=294 However, there is no ubt0 device in /dev, and Here's the output of usbdevs: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: low speed, power 100 mA, config 1, Trackball(0xc404), Logitech(0x046d), rev 2.20 port 2 addr 3: full speed, power 100 mA, config 1, Bluetooth EDR Dongle(0x105e), Kensington(0x047d), rev 0.00 I try and start the Bluetooth stack and get: % /etc/rc.d/bluetooth start ubt0 /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 Am I missing something here? Thanks. From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 07:25:30 2006 Return-Path: X-Original-To: usb@freebsd.org Delivered-To: freebsd-usb@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA5F816A422 for ; Thu, 16 Feb 2006 07:25:30 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF40143D53 for ; Thu, 16 Feb 2006 07:25:29 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5EC58.dip.t-dialin.net [84.165.236.88]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k1G7CwKb054478; Thu, 16 Feb 2006 08:12:59 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k1G7PPec044672; Thu, 16 Feb 2006 08:25:25 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 16 Feb 2006 08:25:24 +0100 Message-ID: <20060216082524.vykk55lrkskwcws4@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 16 Feb 2006 08:25:24 +0100 From: Alexander Leidinger To: Adrian Filipi References: <20060214162545.H4367@lorax.ubergeeks.com> In-Reply-To: <20060214162545.H4367@lorax.ubergeeks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: usb@freebsd.org Subject: Re: trouble using IBM USB Multi-Burner 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: Thu, 16 Feb 2006 07:25:30 -0000 Adrian Filipi wrote: Hi, this is not an multimedia@ issue, redirecting to usb@... but maybe it's a scsi issue. Bye, Alexander. > > I'm trying to get an "IBM USB 2.0 Portable Multi-Burner" working > fully on a 6-stable Thinkpad X31. > > I can get a table of contents with cdcontrol for audio discs, and > mounting data discs works, but I cannot write to anything, nor can I > read audio data from the disc. Oddly "cdcontrol play" works, but > given that there is no headphone jack, this is kind of pointless. > > I found some patches at > http://www.jaist.ac.jp/~uehara/etc/ThinkPadX40/ , but they don't seem > to improve the situation any. The resulting diff is attached for > reference. > > I've tried reading with cdparanoia, and here's what I get: > > : adrian@atf; sudo cdparanoia -v 1 > cdparanoia III release 9.8 (March 23, 2001) > ..... > Checking /dev/cd0 for cdrom... > > CDROM model sensed: IBM USB2 MultiBurner U0B1 > > Checking for ATAPICAM... > Drive is SCSI > > Checking for MMC style command set... > Drive does not have MMC CDDA support > Setting default read size to 26 sectors (61152 bytes). > > Verifying CDDA command set... > Could not find any audio tracks on this disk. > > Unable to open disc. > : adrian@atf; > > Additionally the "check drive" function of the xmms cdaudio plug-in > returns "Digital audio extraction test failed: inappropriate ioctl > for device". > > Anybody have suggestions on what to try next? This is a pretty > nifty drive, that I'd like to get fully functional. > > FYI, this is a link the the specific IBM drive: > > http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-53489 > > thanks, > > Adrian > -- > [ adrian@ubergeeks.com ] > -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 The shifts of Fortune test the reliability of friends. -- Marcus Tullius Cicero From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 07:47:25 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BE5116A420; Thu, 16 Feb 2006 07:47:25 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F2C443D46; Thu, 16 Feb 2006 07:47:24 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5EC58.dip.t-dialin.net [84.165.236.88]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k1G7Yswa054547; Thu, 16 Feb 2006 08:34:55 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k1G7lHXQ048690; Thu, 16 Feb 2006 08:47:17 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 16 Feb 2006 08:47:17 +0100 Message-ID: <20060216084717.yyj986z4ckow4w0w@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 16 Feb 2006 08:47:17 +0100 From: Alexander Leidinger To: Markus Brueffer References: <200602151551.27188.markus@brueffer.de> In-Reply-To: <200602151551.27188.markus@brueffer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [Patch] Fix collection entry parsing in libusbhid 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: Thu, 16 Feb 2006 07:47:25 -0000 Markus Brueffer wrote: > Furthermore I have removed the loop in REPORT_SAVED_COLL. If someone > knows why > it was there in the first place, please share your wisdom :) This is done in many places in the source. It's a common way of writting a macro which is usable like a function (yes, this macro returns, so it doesn't _work_ like a function, but this is not the point). Usually this is used with macros which take arguments. You just can add a ';' after the use of the macro without having to remember if you need to do it, or if your compiler may moan because of an empty statement. Have a look into style(9), it also has to say something about it. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 ANDROPHOBIA: Fear of men. From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 07:51:11 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BAC316A422 for ; Thu, 16 Feb 2006 07:51:11 +0000 (GMT) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAAC343D49 for ; Thu, 16 Feb 2006 07:51:09 +0000 (GMT) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1F9dus-0004GI-Uo for freebsd-usb@freebsd.org; Thu, 16 Feb 2006 08:51:07 +0100 Received: from h-68-164-219-99.cmbrmaor.covad.net ([68.164.219.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2006 08:51:06 +0100 Received: from mainland by h-68-164-219-99.cmbrmaor.covad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Feb 2006 08:51:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Geoffrey Mainland Date: Thu, 16 Feb 2006 02:41:14 -0500 Lines: 22 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: h-68-164-219-99.cmbrmaor.covad.net User-Agent: Thunderbird 1.5 (X11/20060112) X-Enigmail-Version: 0.94.0.0 Sender: news Subject: uftdi buffer problems with FT232BM? 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: Thu, 16 Feb 2006 07:51:11 -0000 I've been trying to get a tmote sky (http://www.moteiv.com/products-tmotesky.php) working with FreeBSD. This device uses an FT232BM chip and speaks a custom protocol to program a TI MSP430 chip (using a python program, pybsl, from http://mspgcc.sourceforge.net/tools.html). The device shows up as: ucom0: Moteiv tmote sky, rev 2.00/4.00, addr 2 and I get /dev/ttyU0 and /dev/cuaU0 as expected (I'm running 6.1-PRERELEASE). pybsl initially attempts to connect at 9600 baud. At this speed it would make some progress and then fall over. I found that if I lowered the speed to 2400 baud and inserted a couple sleep calls into the script it could program the device. However, at 9600 baud it never worked. I would love to get this thing fully working. I have no problems programming this exact same device under Linux or Windows, so the device itself does not seem to be the problem--there's clearly something weird going on with the uftdi driver, but I don't know where to start. I'm happy to hack on this, I just need someone to point me in the right direction :) Thanks, Geoff From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 13:00:05 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B9FD16A420; Thu, 16 Feb 2006 13:00:05 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from mailout11.sul.t-online.com (mailout11.sul.t-online.com [194.25.134.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58ECD43D49; Thu, 16 Feb 2006 13:00:04 +0000 (GMT) (envelope-from markus@brueffer.de) Received: from fwd27.aul.t-online.de by mailout11.sul.t-online.com with smtp id 1F9ijq-0008Uj-00; Thu, 16 Feb 2006 14:00:02 +0100 Received: from ramses.kicks-ass.net (SaTfB2ZCQeXzk3uSgvf7sKhFaxE64UBV9mXLj35A0076s4-mSKL7wT@[80.143.206.102]) by fwd27.sul.t-online.de with esmtp id 1F9iiY-1HrKcq0; Thu, 16 Feb 2006 13:58:42 +0100 Received: from localhost (dslb-084-061-048-181.pools.arcor-ip.net [84.61.48.181]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ramses.kicks-ass.net (Postfix) with ESMTP id F26EEB833; Thu, 16 Feb 2006 13:58:45 +0100 (CET) From: Markus Brueffer To: Alexander Leidinger Date: Thu, 16 Feb 2006 13:57:48 +0100 User-Agent: KMail/1.9.1 References: <200602151551.27188.markus@brueffer.de> <20060216084717.yyj986z4ckow4w0w@netchild.homeip.net> In-Reply-To: <20060216084717.yyj986z4ckow4w0w@netchild.homeip.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1249937.euqofBNrL1"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200602161357.54103.markus@brueffer.de> X-ID: SaTfB2ZCQeXzk3uSgvf7sKhFaxE64UBV9mXLj35A0076s4-mSKL7wT@t-dialin.net X-TOI-MSGID: ee67091d-6302-44ad-a539-0d43bb56a1bd Cc: freebsd-bluetooth@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [Patch] Fix collection entry parsing in libusbhid 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: Thu, 16 Feb 2006 13:00:05 -0000 --nextPart1249937.euqofBNrL1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Thursday 16 February 2006 08:47 schrieb Alexander Leidinger: > Markus Brueffer wrote: > > Furthermore I have removed the loop in REPORT_SAVED_COLL. If someone > > knows why > > it was there in the first place, please share your wisdom :) > > This is done in many places in the source. It's a common way of writting a > macro which is usable like a function (yes, this macro returns, so it > doesn't _work_ like a function, but this is not the point). Usually this = is > used with macros which take arguments. You just can add a ';' after the u= se > of the macro without having to remember if you need to do it, or if your > compiler may moan because of an empty statement. > > Have a look into style(9), it also has to say something about it. Ah, I see. Thanks for the explanation. I have updated the diff to not remov= e=20 the loop. Markus =2D-=20 Markus Brueffer =C2=A0 =C2=A0| GPG-Key: http://people.FreeBSD.org/~markus/m= arkus.asc markus@brueffer.de | FP: 3F9B EBE8 F290 E5CC 1447 8760 D48D 1072 78F8 A8D4 markus@FreeBSD.org | FreeBSD: The Power to Serve! --nextPart1249937.euqofBNrL1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBD9HbS1I0Qcnj4qNQRAlckAKCdeI1StIqz0d+WbGY3Sqci21xFlwCgmKai tR9oKVuJNuh//emY4O3mW1s= =HQbF -----END PGP SIGNATURE----- --nextPart1249937.euqofBNrL1-- From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 17:32:59 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA68116A442 for ; Thu, 16 Feb 2006 17:32:59 +0000 (GMT) (envelope-from mailings.freebsd@o0l0o.org) Received: from smartmx-07.inode.at (smartmx-07.inode.at [213.229.60.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E34B43D45 for ; Thu, 16 Feb 2006 17:32:58 +0000 (GMT) (envelope-from mailings.freebsd@o0l0o.org) Received: from [81.223.62.146] (port=52302 helo=masternotebo.mhr.lan) by smartmx-07.inode.at with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1F9mzx-0004iz-LT for freebsd-usb@freebsd.org; Thu, 16 Feb 2006 18:32:57 +0100 Content-Disposition: inline From: FreeBSD Prospect To: freebsd-usb@freebsd.org Date: Thu, 16 Feb 2006 18:30:10 +0100 User-Agent: KMail/1.9 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200602161830.10031.mailings.freebsd@o0l0o.org> Subject: FreeBSD: libusb with functions for asynchronous URB's receiption ??? 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: Thu, 16 Feb 2006 17:32:59 -0000 Hi! I am not a programmer, and I am only posting to this mail list, because I need support for my smartcard-reader (ReinerSCT cyberjack pinpad USB 0x300) in FreeBSD. The manufacturer of that device already offers an open souce driver for Linux, and they are willing to port it to FreeBSD, but they gave feedback, that it is not possible ATM, because the needed functions for asynchronous USB Request Blocks (URB's) only exist for the Linux impmentation of libusb by now. I do not know, what that means. That's why I sent a request to the libusb-devel mailing-list, and got this reply: ---------- Weitergeleitete Nachricht ---------- Subject: Re: [Libusb-devel] FreeBSD: libusb with functions for asynchronous URB's receiption ??? Date: Donnerstag, 16. Februar 2006 18:19 From: Peter Stuge To: libusb-devel@lists.sourceforge.net On Thu, Feb 16, 2006 at 05:08:28PM +0100, FreeBSD Prospect wrote: > The manufacturer of that device already offers an open souce driver > for Linux, and they are willing to port it to FreeBSD, but they gave > feedback, that it is not possible ATM, because the needed functions > for asynchronous USB Request Blocks (URB's) only exist for the > Linux impmentation of libusb by now. > > I do not know, what that means. Can anybody comment this? The current state of affairs is that there is no swiss-army-knife library available that successfully abstracts all popular operating systems' different USB programming interfaces. libusb is indeed aimed at accomplishing this very task but there's not a lot of FreeBSD experience in the project, even if some interesting FreeBSD documentation passed through the list a while ago. > Is anybody already working on such an asynchronous URB's receiption > functionality (either platform independent, or especially for > FreeBSD)? I believe development efforts currently go towards finishing libusb 1.0 and the new/revised API it will have, but I guess improved portability is also a high priority. //Peter ------------------------------------------------------- It is not quite clear to me, if this is now a matter to be handled by the libusb development team, of if it needs involvement of the FreeBSD dev-team as well. Maybe someone with more insight can provide more information. -- Sincerely, Michael A FreeBSD Prospect, who is actually using Gentoo Linux From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 20:22:49 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9523A16A422 for ; Thu, 16 Feb 2006 20:22:49 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id A27AE43D6A for ; Thu, 16 Feb 2006 20:22:39 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k1GKMceP019892; Thu, 16 Feb 2006 21:22:38 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k1GKMcMl019890; Thu, 16 Feb 2006 21:22:38 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k1GKJH19004472; Thu, 16 Feb 2006 21:19:17 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k1GKJGP2004471; Thu, 16 Feb 2006 21:19:16 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 16 Feb 2006 21:19:15 +0100 To: Ian Dowse Message-ID: <20060216201915.GA4455@saturn.kn-bremen.de> References: <20060127003118.GA17649@saturn.kn-bremen.de> <200601291808.aa03106@nowhere.iedowse.com> <20060215190920.GA942@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060215190920.GA942@saturn.kn-bremen.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: Re: your RELENG_5 usb patches (was: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h) 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: Thu, 16 Feb 2006 20:22:49 -0000 On Wed, Feb 15, 2006 at 08:09:20PM +0100, I wrote: >[...] > I finally got around testing this patch on today's RELENG_5. [...] PS: the usb 1.1 controller on this box is uhci and I dont have an usb printer so others will have to do the rest of the testing. (maybe you want to ask on -stable, i guess there are more ppl subscribed there than on -usb?) From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 20:22:52 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C271D16A43C for ; Thu, 16 Feb 2006 20:22:52 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7375C43D75 for ; Thu, 16 Feb 2006 20:22:39 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k1GKMcWC019887; Thu, 16 Feb 2006 21:22:38 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k1GKMcqc019885; Thu, 16 Feb 2006 21:22:38 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k1GK8ANg004272; Thu, 16 Feb 2006 21:08:10 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k1GK89NW004271; Thu, 16 Feb 2006 21:08:09 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 16 Feb 2006 21:08:09 +0100 To: Ian Dowse Message-ID: <20060216200809.GA3434@saturn.kn-bremen.de> References: <20060215190920.GA942@saturn.kn-bremen.de> <200602160204.aa07052@nowhere.iedowse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602160204.aa07052@nowhere.iedowse.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: Re: your RELENG_5 usb patches (was: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h) 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: Thu, 16 Feb 2006 20:22:53 -0000 On Thu, Feb 16, 2006 at 02:04:54AM +0000, Ian Dowse wrote: > In message <20060215190920.GA942@saturn.kn-bremen.de>, Juergen Lock writes: > >I finally got around testing this patch on today's RELENG_5. I built > >my custom kernel (mostly based on GENERIC but with ehci), booted that, > >copied the kernel to an 16 MB sdcard i had lying around using an usb > >multi-cardreader, which worked. umounted, disconnected, reconnected, > >mounted again and verified the kernel, which worked as well. Then I > >noticed this in dmesg: > > da3: 1.000MB/s transfers > >so it wasn't using ehci apparently. I thought, maybe this is > >intermittent too like with my externally powered devices, so I > >disconnected and reconnected again, but this time da3s1 didn't appear. > >(dmesg also shows da1, sometimes with 1 and sometimes with 40 MB/s, > >but I never saw a /dev/da1s1 appear.) I wanted to try again, and when > >disconnecting I got the following panic: > > I'm not sure about the intermittent probing behaviour, but there > are known bugs in CAM that cause it to crash in camisr() if a device > goes away while being probed. There have been some improvements in > this area in -CURRENT, so if you like you could try a CAM patch > too: > > http://people.freebsd.org/~iedowse/cam_remove_releng_5.diff > > Note that this is just a blind backport - I haven't even tested > that it compiles. It does, and i think it should go in because I couldnt panic the box by playing around with the cardreader anymore. This time (and i did that twice) I mounted, accessed, and disconnected it a few times until mounting gave an error again. Disconnected, got no panic as mentioned, reconnected, but still couldnt mount. ls -l /dev/da3* then found two instances of da3s1: bash 10.3# ll /dev/da3* crw-r----- 1 root operator 4, 108 Feb 16 17:00 /dev/da3 crw-r----- 1 root operator 4, 93 Feb 16 17:00 /dev/da3s1 crw-r----- 1 root operator 4, 93 Feb 16 17:00 /dev/da3s1 but it isnt accessible: bash 10.3# dd count=1 /dev/null bash: /dev/da3s1: Device not configured da3 is: bash 10.3# dd count=1 /dev/null 1+0 records in 1+0 records out 512 bytes transferred in 0.001324 secs (386725 bytes/sec) disconnecting leaves one instance of da3s1: bash 10.3# ll /dev/da3* crw-r----- 1 root operator 4, 93 Feb 16 17:00 /dev/da3s1 I had to reboot to get the cardreader mountable again. (the above log is from doing the whole thing a second time.) here is boot -v dmesg of a normal connect (btw, this time it did use ehci): umass0: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 2 umass0:6:0:-1: Attached to scbus6 pass3 at umass-sim0 bus 0 target 0 lun 0 pass3: Removable Direct Access SCSI-0 device pass3: 40.000MB/s transfers GEOM: new disk da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 14MB (29120 512 byte sectors: 64H 32S/T 14C) (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 pass4 at umass-sim0 bus 0 target 0 lun 1 pass4: Removable Direct Access SCSI-0 device pass4: 40.000MB/s transfers GEOM: new disk da2 (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error da2 at umass-sim0 bus 0 target 0 lun 1 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 pass5 at umass-sim0 bus 0 target 0 lun 2 pass5: Removable Direct Access SCSI-0 device pass5: 40.000MB/s transfers GEOM: new disk da3 da3 at umass-sim0 bus 0 target 0 lun 2 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 14MB (29120 512 byte sectors: 64H 32S/T 14C) [0] f:00 typ:1 s(CHS):0/1/26 e(CHS):454/1/32 s:57 l:29063 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure da3s1, start 29184 length 14880256 end 14909439 pass6 at umass-sim0 bus 0 target 0 lun 3 pass6: Removable Direct Access SCSI-0 device pass6: 40.000MB/s transfers (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error da4 at umass-sim0 bus 0 target 0 lun 3 da4: Removable Direct Access SCSI-0 device da4: 40.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present pass7 at umass-sim0 bus 0 target 0 lun 4 pass7: Removable Direct Access SCSI-0 device pass7: 40.000MB/s transfers (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error da5 at umass-sim0 bus 0 target 0 lun 4 da5: Removable Direct Access SCSI-0 device da5: 40.000MB/s transfers da5: Attempt to query device size failed: NOT READY, Medium not present GEOM: new disk da4 GEOM: new disk da5 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 disconnect: umass0: at uhub3 port 3 (addr 2) disconnected (da1:umass-sim0:0:0:0): lost device (da1:umass-sim0:0:0:0): removing device entry (pass3:umass-sim0:0:0:0): lost device (pass3:umass-sim0:0:0:0): removing device entry (da2:umass-sim0:0:0:1): lost device (da2:umass-sim0:0:0:1): removing device entry (pass4:umass-sim0:0:0:1): lost device (pass4:umass-sim0:0:0:1): removing device entry (da3:umass-sim0:0:0:2): lost device (da3:umass-sim0:0:0:2): removing device entry (pass5:umass-sim0:0:0:2): lost device (pass5:umass-sim0:0:0:2): removing device entry (da4:umass-sim0:0:0:3): lost device (da4:umass-sim0:0:0:3): removing device entry (pass6:umass-sim0:0:0:3): lost device (pass6:umass-sim0:0:0:3): removing device entry (da5:umass-sim0:0:0:4): lost device (da5:umass-sim0:0:0:4): removing device entry (pass7:umass-sim0:0:0:4): lost device (pass7:umass-sim0:0:0:4): removing device entry umass0: detached here is the first failed connect after which it wasnt mountable: umass0: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 2 umass0:6:0:-1: Attached to scbus6 pass3 at umass-sim0 bus 0 target 0 lun 0 pass3: Removable Direct Access SCSI-0 device pass3: 40.000MB/s transfers GEOM: new disk da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 14MB (29120 512 byte sectors: 64H 32S/T 14C) (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 pass4 at umass-sim0 bus 0 target 0 lun 1 pass4: Removable Direct Access SCSI-0 device pass4: 40.000MB/s transfers GEOM: new disk da2 (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error da2 at umass-sim0 bus 0 target 0 lun 1 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 pass5 at umass-sim0 bus 0 target 0 lun 2 pass5: Removable Direct Access SCSI-0 device pass5: 40.000MB/s transfers GEOM: new disk da3 da3 at umass-sim0 bus 0 target 0 lun 2 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 14MB (29120 512 byte sectors: 64H 32S/T 14C) [0] f:00 typ:1 s(CHS):0/1/26 e(CHS):454/1/32 s:57 l:29063 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure da3s1, start 29184 length 14880256 end 14909439 pass6 at umass-sim0 bus 0 target 0 lun 3 pass6: Removable Direct Access SCSI-0 device pass6: 40.000MB/s transfers (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error da4 at umass-sim0 bus 0 target 0 lun 3 da4: Removable Direct Access SCSI-0 device da4: 40.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present pass7 at umass-sim0 bus 0 target 0 lun 4 pass7: Removable Direct Access SCSI-0 device pass7: 40.000MB/s transfers (da5:umass-sim0:0:0:4): AutoSense Failed (da5:umass-sim0:0:0:4): error 5 (da5:umass-sim0:0:0:4): Unretryable Error (da5:umass-sim0:0:0:4): got CAM status 0x10 (da5:umass-sim0:0:0:4): fatal error, failed to attach to device (da5:umass-sim0:0:0:4): lost device (da5:umass-sim0:0:0:4): removing device entry umass0: Invalid CSW: tag 53 should be 54 (da3:umass-sim0:0:0:2): Synchronize cache failed, status == 0x4, scsi status == 0x0 disconnect: umass0: at uhub3 port 3 (addr 2) disconnected (da1:umass-sim0:0:0:0): lost device (da1:umass-sim0:0:0:0): removing device entry (pass3:umass-sim0:0:0:0): lost device (pass3:umass-sim0:0:0:0): removing device entry (da2:umass-sim0:0:0:1): lost device (da2:umass-sim0:0:0:1): removing device entry (pass4:umass-sim0:0:0:1): lost device (pass4:umass-sim0:0:0:1): removing device entry (da3:umass-sim0:0:0:2): lost device (pass5:umass-sim0:0:0:2): lost device (pass5:umass-sim0:0:0:2): removing device entry (da4:umass-sim0:0:0:3): lost device (da4:umass-sim0:0:0:3): removing device entry (pass6:umass-sim0:0:0:3): lost device (pass6:umass-sim0:0:0:3): removing device entry (pass7:umass-sim0:0:0:4): lost device (pass7:umass-sim0:0:0:4): removing device entry (da3:dead_sim0:0:0:2): removing device entry umass0: detached next attempted connect which leaves the two mentioned instances of da3s1: umass0: Genesys USB2.0 card Reader, rev 2.00/91.38, addr 2 umass0:6:0:-1: Attached to scbus6 pass3 at umass-sim0 bus 0 target 0 lun 0 pass3: Removable Direct Access SCSI-0 device pass3: 40.000MB/s transfers GEOM: new disk da1 da1 at umass-sim0 bus 0 target 0 lun 0 da1: Removable Direct Access SCSI-0 device da1: 40.000MB/s transfers da1: 14MB (29120 512 byte sectors: 64H 32S/T 14C) (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da1:umass-sim0:0:0:0): SCSI Status: Check Condition (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present (da1:umass-sim0:0:0:0): (da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da1:umass-sim0:0:0:0): NOT READY asc:3a,0 (da1:umass-sim0:0:0:0): Medium not present Unretryable error (da1:umass-sim0:0:0:0): error 6 (da1:umass-sim0:0:0:0): Unretryable Error Opened disk da1 -> 6 pass4 at umass-sim0 bus 0 target 0 lun 1 pass4: Removable Direct Access SCSI-0 device pass4: 40.000MB/s transfers GEOM: new disk da2 (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error da2 at umass-sim0 bus 0 target 0 lun 1 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error (da2:umass-sim0:0:0:1): SCSI Status: Check Condition (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present (da2:umass-sim0:0:0:1): (da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 (da2:umass-sim0:0:0:1): NOT READY asc:3a,0 (da2:umass-sim0:0:0:1): Medium not present Unretryable error (da2:umass-sim0:0:0:1): error 6 (da2:umass-sim0:0:0:1): Unretryable Error Opened disk da2 -> 6 pass5 at umass-sim0 bus 0 target 0 lun 2 pass5: Removable Direct Access SCSI-0 device pass5: 40.000MB/s transfers GEOM: new disk da3 da3 at umass-sim0 bus 0 target 0 lun 2 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: 14MB (29120 512 byte sectors: 64H 32S/T 14C) [0] f:00 typ:1 s(CHS):0/1/26 e(CHS):454/1/32 s:57 l:29063 [1] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [2] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 [3] f:00 typ:0 s(CHS):0/0/0 e(CHS):0/0/0 s:0 l:0 GEOM: Configure da3s1, start 29184 length 14880256 end 14909439 pass6 at umass-sim0 bus 0 target 0 lun 3 pass6: Removable Direct Access SCSI-0 device pass6: 40.000MB/s transfers (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error da4 at umass-sim0 bus 0 target 0 lun 3 da4: Removable Direct Access SCSI-0 device da4: 40.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present pass7 at umass-sim0 bus 0 target 0 lun 4 pass7: Removable Direct Access SCSI-0 device pass7: 40.000MB/s transfers (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error da5 at umass-sim0 bus 0 target 0 lun 4 da5: Removable Direct Access SCSI-0 device da5: 40.000MB/s transfers da5: Attempt to query device size failed: NOT READY, Medium not present GEOM: new disk da4 GEOM: new disk da5 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): CAM Status: SCSI Status Error (da4:umass-sim0:0:0:3): SCSI Status: Check Condition (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present (da4:umass-sim0:0:0:3): (da4:umass-sim0:0:0:3): READ CAPACITY. CDB: 25 60 0 0 0 0 0 0 0 0 (da4:umass-sim0:0:0:3): NOT READY asc:3a,0 (da4:umass-sim0:0:0:3): Medium not present Unretryable error (da4:umass-sim0:0:0:3): error 6 (da4:umass-sim0:0:0:3): Unretryable Error Opened disk da4 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): CAM Status: SCSI Status Error (da5:umass-sim0:0:0:4): SCSI Status: Check Condition (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present (da5:umass-sim0:0:0:4): (da5:umass-sim0:0:0:4): READ CAPACITY. CDB: 25 80 0 0 0 0 0 0 0 0 (da5:umass-sim0:0:0:4): NOT READY asc:3a,0 (da5:umass-sim0:0:0:4): Medium not present Unretryable error (da5:umass-sim0:0:0:4): error 6 (da5:umass-sim0:0:0:4): Unretryable Error Opened disk da5 -> 6 So this failure mode looks a little different from when i got the panic so i'm not entirely sure the patch was effective, but at least it didn't hurt. :) From owner-freebsd-usb@FreeBSD.ORG Thu Feb 16 20:35:13 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C621C16A420 for ; Thu, 16 Feb 2006 20:35:13 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17DBB43D46 for ; Thu, 16 Feb 2006 20:35:12 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1]) by gwyn.kn-bremen.de (8.13.4/8.13.4/Debian-3) with ESMTP id k1GKZB7q020591; Thu, 16 Feb 2006 21:35:11 +0100 Received: from saturn.kn-bremen.de (uucp@localhost) by gwyn.kn-bremen.de (8.13.4/8.13.4/Submit) with UUCP id k1GKZBWX020589; Thu, 16 Feb 2006 21:35:11 +0100 Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.3/8.13.1) with ESMTP id k1GKYHWK006033; Thu, 16 Feb 2006 21:34:17 +0100 (CET) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.3/8.13.1/Submit) id k1GKYF1M006032; Thu, 16 Feb 2006 21:34:15 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Thu, 16 Feb 2006 21:34:15 +0100 To: Ian Dowse Message-ID: <20060216203415.GA5867@saturn.kn-bremen.de> References: <20060201063254.GD678@turion.vk2pj.dyndns.org> <200602020239.aa88964@nowhere.iedowse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602020239.aa88964@nowhere.iedowse.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-usb@freebsd.org Subject: Re: cvs commit: src/sys/dev/usb ehci.c ehci_pci.c ehcivar.h 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: Thu, 16 Feb 2006 20:35:13 -0000 On Thu, Feb 02, 2006 at 02:39:01AM +0000, Ian Dowse wrote: > In message <20060201063254.GD678@turion.vk2pj.dyndns.org>, Peter Jeremy writes: > >On Tue, 2006-Jan-31 22:00:21 +0000, Ian Dowse wrote: > >>In the case of USB, there is actually no need for it to perform > >>large contiguous allocations because the host controllers all support > >>some limited scatter-gather functionality so they can mostly access > >>the caller's memory buffer directly via bus_dmamap_load(). This is > >>something I implemented a year or to ago but I haven't got around > >>to finishing the last few details of the patch yet. > > > >I'd looked into the specs far enough to determine that this was > >possible but haven't looked at how difficult it would be to implement > >it. I think this is a preferable solution and would be interested in > >helping you finish your patch. > > I've updated > > http://people.freebsd.org/~iedowse/usb.diff > > with the latest patch I have. I think there are still one or two > places where DMAADDR() calls have been replaced without all the > necessary logic to handle programming segment information into the > host controller descriptors (e.g. the "XXX, fixme" comment in > ohci.c). > > I only updated the OHCI interrupt transfer code and the sl811hs > driver recently so there may be problems there, but most of the > older changes have had a reasonable amount of testing as I've been > using them on a low-memory soekris box for a couple of years. Do you have a RELENG_5 version of that patch too? (And i guess others would be interested in a RELENG_6 one as well? :) From owner-freebsd-usb@FreeBSD.ORG Fri Feb 17 00:34:28 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC4BB16A420 for ; Fri, 17 Feb 2006 00:34:27 +0000 (GMT) (envelope-from adrian+usb@ubergeeks.com) Received: from mail.ubergeeks.com (lorax.ubergeeks.com [209.145.65.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EB2A43D46 for ; Fri, 17 Feb 2006 00:34:26 +0000 (GMT) (envelope-from adrian+usb@ubergeeks.com) Received: from mail.ubergeeks.com (localhost [127.0.0.1]) by mail.ubergeeks.com (8.13.4/8.13.4) with ESMTP id k1H0YOlV029183 for ; Thu, 16 Feb 2006 19:34:24 -0500 (EST) (envelope-from adrian+usb@ubergeeks.com) Received: from localhost (adrian@localhost) by mail.ubergeeks.com (8.13.4/8.13.4/Submit) with ESMTP id k1H0YOsV029180 for ; Thu, 16 Feb 2006 19:34:24 -0500 (EST) (envelope-from adrian+usb@ubergeeks.com) X-Authentication-Warning: lorax.ubergeeks.com: adrian owned process doing -bs Date: Thu, 16 Feb 2006 19:34:23 -0500 (EST) From: Adrian Filipi Sender: adrian@ubergeeks.com To: freebsd-usb@freebsd.org Message-ID: <20060216193057.B29161@lorax.ubergeeks.com> MIME-Version: 1.0 Content-Type: MULTIPART/Mixed; BOUNDARY="0-1476456374-1139954726=:4367" Content-ID: <20060216193057.U29161@lorax.ubergeeks.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on lorax.ubergeeks.com Subject: trouble using IBM USB Multi-Burner (fwd) 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: Fri, 17 Feb 2006 00:34:28 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1476456374-1139954726=:4367 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; FORMAT=flowed Content-ID: <20060216193057.B29161@lorax.ubergeeks.com> Sorry, if you've seen this before. I was redirected to freebsd-usb from freebsd-multimedia. I'm still stuck with no idea how to improve functionality of this featureful DVD-RW drive. Since the post, I upgraded to 6.1-PRERELEASE from yesterday with no change. thanks, Adrian -- [ adrian@ubergeeks.com ] ---------- Forwarded message ---------- Date: Tue, 14 Feb 2006 17:05:26 -0500 (EST) From: Adrian Filipi To: freebsd-multimedia@freebsd.org Subject: trouble using IBM USB Multi-Burner I'm trying to get an "IBM USB 2.0 Portable Multi-Burner" working fully on a 6-stable Thinkpad X31. I can get a table of contents with cdcontrol for audio discs, and mounting data discs works, but I cannot write to anything, nor can I read audio data from the disc. Oddly "cdcontrol play" works, but given that there is no headphone jack, this is kind of pointless. I found some patches at http://www.jaist.ac.jp/~uehara/etc/ThinkPadX40/ , but they don't seem to improve the situation any. The resulting diff is attached for reference. I've tried reading with cdparanoia, and here's what I get: : adrian@atf; sudo cdparanoia -v 1 cdparanoia III release 9.8 (March 23, 2001) ..... Checking /dev/cd0 for cdrom... CDROM model sensed: IBM USB2 MultiBurner U0B1 Checking for ATAPICAM... Drive is SCSI Checking for MMC style command set... Drive does not have MMC CDDA support Setting default read size to 26 sectors (61152 bytes). Verifying CDDA command set... Could not find any audio tracks on this disk. Unable to open disc. : adrian@atf; Additionally the "check drive" function of the xmms cdaudio plug-in returns "Digital audio extraction test failed: inappropriate ioctl for device". Anybody have suggestions on what to try next? This is a pretty nifty drive, that I'd like to get fully functional. FYI, this is a link the the specific IBM drive: http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-53489 thanks, Adrian -- [ adrian@ubergeeks.com ] --0-1476456374-1139954726=:4367 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=usb.diff Content-Transfer-Encoding: BASE64 Content-ID: <20060214170525.A4367@lorax.ubergeeks.com> Content-Description: Content-Disposition: ATTACHMENT; FILENAME=usb.diff LS0tIHVzYmRldnMJMjAwNS8wNy8yOCAyMjoyNDo0MgkxLjENCisrKyB1c2Jk ZXZzCTIwMDUvMDcvMjggMjI6Mjg6NDIJMS4yDQpAQCAtOTc0LDYgKzk3NCw4 IEBADQogDQogLyogSUJNIENvcnBvcmF0aW9uICovDQogcHJvZHVjdCBJQk0g VVNCQ0RST01EUklWRQkweDQ0MjcJVVNCIENELVJPTSBEcml2ZQ0KKy8qIGFk ZGVkIGJ5IFIuVWVoYXJhICovDQorcHJvZHVjdCBJQk0gVVNCX01VTFRJX0JV Uk5FUgkweDQ0MmIJVVNCIDIuMCBNdWx0aS1CdXJuZXIgRHJpdmUNCiANCiAv KiBJbnNpZGUgT3V0IE5ldHdvcmtzIHByb2R1Y3RzICovDQogcHJvZHVjdCBJ TlNJREVPVVQgRURHRVBPUlQ0CTB4MDAwMQlFZGdlUG9ydC80IHNlcmlhbCBw b3J0cw0KLS0tIHVtYXNzLmMJMjAwNS8wNy8yOCAyMTo1NzoyNAkxLjENCisr KyB1bWFzcy5jCTIwMDUvMDcvMjggMjI6Mjg6NDIJMS4yDQpAQCAtNDY3LDYg KzQ2NywxMCBAQA0KIAkgIFVNQVNTX1BST1RPX0FUQVBJIHwgVU1BU1NfUFJP VE9fQ0JJX0ksDQogCSAgRk9SQ0VfU0hPUlRfSU5RVUlSWQ0KIAl9LA0KKwl7 IFVTQl9WRU5ET1JfSUJNLCBVU0JfUFJPRFVDVF9JQk1fVVNCX01VTFRJX0JV Uk5FUiwgUklEX1dJTERDQVJELA0KKwkgIFVNQVNTX1BST1RPX1NDU0kgfCBV TUFTU19QUk9UT19CQkIsDQorCSAgTk9fUVVJUktTDQorCX0sDQogCXsgVklE X0VPVCwgUElEX0VPVCwgUklEX0VPVCwgMCwgMCB9DQogfTsNCiANCg== --0-1476456374-1139954726=:4367-- From owner-freebsd-usb@FreeBSD.ORG Fri Feb 17 21:10:07 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D138816A420 for ; Fri, 17 Feb 2006 21:10:07 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 721E343D49 for ; Fri, 17 Feb 2006 21:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1HLA6eu054833 for ; Fri, 17 Feb 2006 21:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1HLA6ps054832; Fri, 17 Feb 2006 21:10:06 GMT (envelope-from gnats) Resent-Date: Fri, 17 Feb 2006 21:10:06 GMT Resent-Message-Id: <200602172110.k1HLA6ps054832@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Wesha Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB05116A420 for ; Fri, 17 Feb 2006 21:05:27 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DA8343D45 for ; Fri, 17 Feb 2006 21:05:27 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k1HL5Qw4095863 for ; Fri, 17 Feb 2006 21:05:26 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k1HL5QCU095862; Fri, 17 Feb 2006 21:05:26 GMT (envelope-from nobody) Message-Id: <200602172105.k1HL5QCU095862@www.freebsd.org> Date: Fri, 17 Feb 2006 21:05:26 GMT From: Wesha To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/93496: USB2.0 umass stalls on VIA 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: Fri, 17 Feb 2006 21:10:08 -0000 >Number: 93496 >Category: usb >Synopsis: USB2.0 umass stalls on VIA >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 17 21:10:05 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Wesha >Release: 6.0 RELEASE >Organization: >Environment: FreeBSD xxxxx.xxxxxx.org 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Wed Dec 14 02:20:06 CST 2005 xxxxxx@xxxxx.xxxxxx.org:/usr/src/sys/i386/compile/COMCAST_SB_EHCI i386 >Description: When transferring files to/from USB2.0 external device, after a random amount of data has been transferred (usually > 300Mb, but theres no dependency, sometimes it works well even after 5GB), transfers to/from device completely cease, and resume only after about 30...60 seconds. The rest of the system keeps working as usual. Here's what I see in the log at that moment (hw.usb.ehci.debug = 1): -----------------------------------------(this is what it says while transfer is OK) Feb 16 15:51:37 wesha kernel: ehci_alloc_sqtd_chain: start len=16384 Feb 16 15:52:08 wesha last message repeated 12563 times Feb 16 15:54:09 wesha last message repeated 50086 times Feb 16 16:03:37 wesha last message repeated 195168 times -----------------------------------------(that's where it stalls) Feb 16 16:04:42 wesha kernel: ehci_timeout: exfer=0xc19d7500 Feb 16 16:04:42 wesha kernel: ehci_timeout_task: xfer=0xc19d7500 Feb 16 16:04:42 wesha kernel: ehci_abort_xfer: xfer=0xc19d7500 pipe=0xc220ec00 Feb 16 16:04:42 wesha kernel: ehci_intr1: door bell Feb 16 16:04:42 wesha kernel: ehci_idone: aborted xfer=0xc19d7500 Feb 16 16:04:42 wesha kernel: ehci_device_clear_toggle: epipe=0xc220ec00 status=0x0 Feb 16 16:04:42 wesha kernel: usbd_dump_pipe: pipe=0xc220ec00 Feb 16 16:04:42 wesha kernel: usbd_dump_iface: iface=0xc1faf520 Feb 16 16:04:42 wesha kernel: device=0xc1adf800 idesc=0xc1e6a1c9 index=0 altindex=0 priv=0 Feb 16 16:04:42 wesha kernel: usbd_dump_device: dev=0xc1adf800 Feb 16 16:04:42 wesha kernel: bus=0xc1593000 default_pipe=0xc17d3d80 Feb 16 16:04:42 wesha kernel: address=2 config=1 depth=1 speed=3 self_powered=1 power=0 langid=1033 Feb 16 16:04:42 wesha kernel: usbd_dump_endpoint: endp=0xc22284c8 Feb 16 16:04:42 wesha kernel: edesc=0xc1e6a1d9 refcnt=1 Feb 16 16:04:42 wesha kernel: bEndpointAddress=0x88 Feb 16 16:04:42 wesha kernel: (usbd_dump_pipe:) Feb 16 16:04:42 wesha kernel: refcnt=1 running=1 aborting=0 Feb 16 16:04:42 wesha kernel: intrxfer=0, repeat=0, interval=-1 Feb 16 16:05:47 wesha kernel: ehci_timeout: exfer=0xc19d7400 Feb 16 16:05:47 wesha kernel: ehci_timeout_task: xfer=0xc19d7400 Feb 16 16:05:47 wesha kernel: ehci_abort_xfer: xfer=0xc19d7400 pipe=0xc220ec00 Feb 16 16:05:47 wesha kernel: ehci_intr1: door bell Feb 16 16:05:47 wesha kernel: ehci_device_clear_toggle: epipe=0xc220ec00 status=0x0 Feb 16 16:05:47 wesha kernel: usbd_dump_pipe: pipe=0xc220ec00 Feb 16 16:05:47 wesha kernel: usbd_dump_iface: iface=0xc1faf520 Feb 16 16:05:47 wesha kernel: device=0xc1adf800 idesc=0xc1e6a1c9 index=0 altindex=0 priv=0 Feb 16 16:05:47 wesha kernel: usbd_dump_device: dev=0xc1adf800 Feb 16 16:05:47 wesha kernel: bus=0xc1593000 default_pipe=0xc17d3d80 Feb 16 16:05:47 wesha kernel: address=2 config=1 depth=1 speed=3 self_powered=1 power=0 langid=1033 Feb 16 16:05:47 wesha kernel: usbd_dump_endpoint: endp=0xc22284c8 Feb 16 16:05:47 wesha kernel: edesc=0xc1e6a1d9 refcnt=1 Feb 16 16:05:47 wesha kernel: bEndpointAddress=0x88 Feb 16 16:05:47 wesha kernel: (usbd_dump_pipe:) Feb 16 16:05:47 wesha kernel: refcnt=1 running=0 aborting=0 Feb 16 16:05:47 wesha kernel: intrxfer=0, repeat=0, interval=-1 Feb 16 16:05:47 wesha kernel: ehci_device_clear_toggle: epipe=0xc1a61180 status=0x9c00 Feb 16 16:05:47 wesha kernel: usbd_dump_pipe: pipe=0xc1a61180 Feb 16 16:05:47 wesha kernel: usbd_dump_iface: iface=0xc1faf520 Feb 16 16:05:47 wesha kernel: device=0xc1adf800 idesc=0xc1e6a1c9 index=0 altindex=0 priv=0 Feb 16 16:05:47 wesha kernel: usbd_dump_device: dev=0xc1adf800 Feb 16 16:05:47 wesha kernel: bus=0xc1593000 default_pipe=0xc17d3d80 Feb 16 16:05:47 wesha kernel: address=2 config=1 depth=1 speed=3 self_powered=1 power=0 langid=1033 Feb 16 16:05:47 wesha kernel: usbd_dump_endpoint: endp=0xc22284c0 Feb 16 16:05:47 wesha kernel: edesc=0xc1e6a1d2 refcnt=1 Feb 16 16:05:47 wesha kernel: bEndpointAddress=0x02 Feb 16 16:05:47 wesha kernel: (usbd_dump_pipe:) Feb 16 16:05:47 wesha kernel: refcnt=1 running=0 aborting=0 Feb 16 16:05:47 wesha kernel: intrxfer=0, repeat=0, interval=-1 Feb 16 16:05:47 wesha kernel: ehci_alloc_sqtd_chain: start len=16384 Feb 16 16:06:15 wesha last message repeated 18 times Feb 16 16:06:30 wesha kernel: ehci_alloc_sqtd_chain: start len=16384 -----------------------------------------(operation resumed) >How-To-Repeat: Just hook up a USB2.0 umass device and start copying. --------------------------------------------------- > usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: low speed, power 2 mA, config 1, Back-UPS ES 725 FW:802.n2.D USB FW:n2(0x0002), APC(0x051d), rev 1.06 port 2 powered Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: high speed, self powered, config 1, USB2.0 Storage Device(0x6830), Cypress Semiconductor(0x04b4), rev 0.01 port 2 powered port 3 powered port 4 powered ------------------------------------------------------- ------------------------------------------------------- > cat /var/run/dmesg.boot Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE #0: Wed Dec 14 02:20:06 CST 2005 xxxxxxxxxxx.xxxxxx.org:/usr/src/sys/i386/compile/COMCAST_SB_EHCI Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: VIA C3 Nehemiah+RNG (733.21-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x694 Stepping = 4 Features=0x380b03d real memory = 251592704 (239 MB) avail memory = 236716032 (225 MB) ath_hal: 0.9.14.9 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 11 on acpi0 pci_link1: irq 10 on acpi0 pci_link2: irq 7 on acpi0 pci_link3: irq 5 on acpi0 pci_link4: irq 0 on acpi0 pci_link5: irq 1 on acpi0 pci_link6: irq 1 on acpi0 pci_link7: irq 1 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff,0x4000-0x407f,0x5000-0x505f on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) rl0: port 0xf000-0xf0ff mem 0xf0000000-0xf00000ff irq 10 at device 8.0 on pci0 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:30:9d:81:00:10 cbb0: irq 7 at device 9.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 uhci0: port 0xf100-0xf11f irq 11 at device 16.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: LegSup = 0x0010 usb0: on uhci0 usb0: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xf120-0xf13f irq 10 at device 16.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: LegSup = 0x0010 usb1: on uhci1 usb1: USB revision 1.0 usbd_get_string: getting lang failed, using 0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered ehci0: mem 0xf0000400-0xf00004ff irq 5 at device 16.3 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 2 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 4 ports with 4 removable, self powered isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf160-0xf16f at device 17.1 on pci0 ata0: on atapci0 ata1: on atapci0 pcm0: port 0xf200-0xf2ff irq 7 at device 17.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: vr0: port 0xf400-0xf4ff mem 0xf0000800-0xf00008ff irq 11 at device 18.0 on pci0 miibus1: on vr0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:30:9d:82:00:10 acpi_tz0: on acpi0 speaker0: port 0x61 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 pmtimer0 on isa0 orm0: at iomem 0xe0000-0xeffff on isa0 fdc0: No FDOUT register! sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ugen0: APC Back-UPS ES 725 FW:802.n2.D USB FW:n2, rev 1.10/1.06, addr 2 Timecounter "TSC" frequency 733207166 Hz quality 800 Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding enabled, default to deny, logging disabled ath0: mem 0x88000000-0x8800ffff irq 7 at device 0.0 on cardbus0 ath0: Ethernet address: 00:0d:88:c7:51:19 ath0: mac 5.6 phy 4.1 radio 4.6 ad0: 28615MB at ata0-master UDMA100 ------------------------------------------------------- >Fix: >Release-Note: >Audit-Trail: >Unformatted: