From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 06:52:31 2005 Return-Path: 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 1FAC316A4CE; Sun, 9 Jan 2005 06:52:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECAD643D2F; Sun, 9 Jan 2005 06:52:30 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j096qUk1001213; Sun, 9 Jan 2005 06:52:30 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j096qUQv001209; Sun, 9 Jan 2005 06:52:30 GMT (envelope-from julian) Date: Sun, 9 Jan 2005 06:52:30 GMT From: Julian Elischer Message-Id: <200501090652.j096qUQv001209@freefall.freebsd.org> To: igla@batterybackups.net, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/30502: panics if logitech joystick usb attached to system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 06:52:31 -0000 Synopsis: panics if logitech joystick usb attached to system State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Sun Jan 9 06:51:22 GMT 2005 State-Changed-Why: I believe this was fixed by an import from NetBSD In any case the submitter seems to have disappeared and cannot confirm. http://www.freebsd.org/cgi/query-pr.cgi?pr=30502 From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 07:12:39 2005 Return-Path: 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 4917A16A4CE; Sun, 9 Jan 2005 07:12:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 218E143D3F; Sun, 9 Jan 2005 07:12:39 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j097Cdgp007227; Sun, 9 Jan 2005 07:12:39 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j097CckJ007215; Sun, 9 Jan 2005 07:12:38 GMT (envelope-from julian) Date: Sun, 9 Jan 2005 07:12:38 GMT From: Julian Elischer Message-Id: <200501090712.j097CckJ007215@freefall.freebsd.org> To: argentoff@rtelekom.ru, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/38736: kernel panic during memory stick removal X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 07:12:39 -0000 Synopsis: kernel panic during memory stick removal State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Sun Jan 9 07:11:45 GMT 2005 State-Changed-Why: Seems like pilot error. Submitter fails to respond to requests for more info. http://www.freebsd.org/cgi/query-pr.cgi?pr=38736 From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 07:50:27 2005 Return-Path: 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 BC5CE16A4CE for ; Sun, 9 Jan 2005 07:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6CFC43D54 for ; Sun, 9 Jan 2005 07:50: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.1/8.13.1) with ESMTP id j097oRUe020902 for ; Sun, 9 Jan 2005 07:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j097oRaV020901; Sun, 9 Jan 2005 07:50:27 GMT (envelope-from gnats) Date: Sun, 9 Jan 2005 07:50:27 GMT Message-Id: <200501090750.j097oRaV020901@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/62088: [usb] Logitech Cordless/Optical Mouse not working X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 07:50:27 -0000 The following reply was made to PR kern/62088; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, jonathan.heaney@blueyonder.co.uk Cc: Subject: Re: kern/62088: [usb] Logitech Cordless/Optical Mouse not working Date: Sat, 08 Jan 2005 23:42:43 -0800 A change was submitted recently that may afect this in 6.x and RELENG_5 (the ongoing 5 branch) can you look at trying that? re: the keyboard.. the ums entry in the usbd config file is turning off the keyboard when it detects a USB keyboard.. disable that and your keyboard should stop dissappearing when you plug in your USB device.. if this works for you, could you let me know so I can close the PR. From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 10:46:50 2005 Return-Path: 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 8B6E616A4CE for ; Sun, 9 Jan 2005 10:46:50 +0000 (GMT) Received: from mxsrv1.tranzpeer.net (mxsrv1.tranzpeer.net [202.180.66.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD84543D1F for ; Sun, 9 Jan 2005 10:46:49 +0000 (GMT) (envelope-from idownes@slingshot.co.nz) Received: from [202.180.66.1] (helo=localhost) by mxsrv1.tranzpeer.net with ESMTP (Exim 4.34) id 1Cnaau-0000Nz-EY for freebsd-usb@freebsd.org; Sun, 09 Jan 2005 23:46:48 +1300 Received: from p121.cpich1-n1.callplus.net.nz (p121.cpich1-n1.callplus.net.nz [202.180.104.121]) by ; Sun, 9 Jan 2005 23:46:48 +1300 Message-ID: <20050109234648.6j600g0ss4484wkk@webmail.slingshot.co.nz> Date: Sun, 9 Jan 2005 23:46:48 +1300 From: idownes@slingshot.co.nz To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 202.180.104.121 Subject: cardbus usb ports don't recognise any devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 10:46:50 -0000 hi all, I have a cardbus usb2 adaptor (NEC uPD chipset) which should work...(others have it working) However, the controllers are normally halted at config and even if they aren't the usb ports fail to recognise when anything is attached. I've tried my mouse, external dvd, hdd etc which are all recognised straight away on my on-board usb 1.1 ports but absolutely nothing on the cardbus ports. What can I do to try and debug what is going wrong in the usb? - I have the usb_debug option in my kernel and the sysctls set. - I run usbd with -d -v -v but still nothing from the cardbus ports. random information...? IRQ11 is shared by the cardbus -> usb, network interface and the modem. Every now and again I get interrupt floods on this irq. please help, it's very painful trying to burn dvds at 800KB/s!! I can provide any info and test anything... thanks Ian output when card is inserted... cardbus0: Resource not specified in CIS: id=10, size=1000 cardbus0: Non-prefetchable memory at c0202000-c0202fff ohci0: mem 0xc0202000-0xc0202fff irq 11 at device 0.0 on cardbus0 ohci0: [GIANT-LOCKED] usb3: OHCI version 1.0 usb3: on ohci0 usb3: USB revision 1.0 uhub3: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 3 ports with 3 removable, self powered cardbus0: Resource not specified in CIS: id=10, size=1000 cardbus0: Non-prefetchable memory at c0203000-c0203fff ohci1: mem 0xc0203000-0xc0203fff irq 11 at device 0.1 on cardbus0 ohci1: [GIANT-LOCKED] usb4: OHCI version 1.0 usb4: on ohci1 usb4: USB revision 1.0 uhub4: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub4: 2 ports with 2 removable, self powered cardbus0: Resource not specified in CIS: id=10, size=100 cardbus0: Non-prefetchable memory at c0204000-c02040ff ehci0: mem 0xc0204000-0xc02040ff irq 11 at device 0.2 on cardbus0 ehci0: [GIANT-LOCKED] ehci_pci_attach: companion usb3 ehci_pci_attach: companion usb4 usb5: EHCI version 1.0 usb5: companion controllers, 3 ports each: usb3 usb4 usb5: unrecoverable error, controller halted usb5: blocking intrs 0x10 usb5: run timeout ehci0: USB init failed err=13 device_attach: ehci0 attach returned 5 vmstat -i interrupt total rate irq0: clk 2433834 99 irq1: atkbd0 6183 0 irq6: fdc0 32 0 irq8: rtc 3115372 127 irq9: acpi0 14 0 irq11: cbb0 cbb1+++ 6550243 269 <----also fxp0 and ltmdm irq12: psm0 293340 12 irq13: npx0 1 0 irq14: ata0 65568 2 Total 12464587 512 pciconf -lv ... onboard usb 1.1 works fine uhci0@pci0:29:0: class=0x0c0300 card=0x02201014 chip=0x24828086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801CA/CAM (ICH3-S/ICH3-M) USB Controller #1' class = serial bus subclass = USB uhci1@pci0:29:1: class=0x0c0300 card=0x02201014 chip=0x24848086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801CA/CAM (ICH3-S/ICH3-M) USB Controller #2' class = serial bus subclass = USB uhci2@pci0:29:2: class=0x0c0300 card=0x02201014 chip=0x24878086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '82801CA/CAM (ICH3-S/ICH3-M) USB Controller #3' class = serial bus subclass = USB ... ... cardbus usb there but doesn't do anything! ohci0@pci3:0:0: class=0x0c0310 card=0x00353083 chip=0x00351033 rev=0x43 hdr=0x00 vendor = 'NEC Electronics Hong Kong' device = 'uPD9210/72010xx USB Open Host Controller' class = serial bus subclass = USB ohci1@pci3:0:1: class=0x0c0310 card=0x00353083 chip=0x00351033 rev=0x43 hdr=0x00 vendor = 'NEC Electronics Hong Kong' device = 'uPD9210/72010xx USB Open Host Controller' class = serial bus subclass = USB ehci0@pci3:0:2: class=0x0c0320 card=0x00e03083 chip=0x00e01033 rev=0x04 hdr=0x00 vendor = 'NEC Electronics Hong Kong' device = 'uPD720100A/101 USB 2.0 Enhanced Host Controller' class = serial bus subclass = USB From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 15:47:07 2005 Return-Path: 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 04D1916A4CE for ; Sun, 9 Jan 2005 15:47:07 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B5BF43D2F for ; Sun, 9 Jan 2005 15:47:06 +0000 (GMT) (envelope-from dinkevich@gmail.com) Received: by rproxy.gmail.com with SMTP id f1so552465rne for ; Sun, 09 Jan 2005 07:47:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:x-sender:x-mailer:date:to:subject:mime-version:content-type:from; b=LrQixhfIRAoBMJeH2pPu2dVe/IiY6XU2MjDzyR6eOjoslcsVm42Hv+D+hALN/vKQJWH4lCYgwBmG740ePt6R7leYDphZv6aPmHBh2CZmWWrmtIIqx9pIWLdnv0JW6Y/hhxQBh1SprO06vDQnkznfnwBBflEeN2SrdSKgKwlDtW4= Received: by 10.38.72.31 with SMTP id u31mr49130rna; Sun, 09 Jan 2005 07:47:06 -0800 (PST) Received: from becker.Dinkevich.com ([194.90.113.98]) by smtp.gmail.com with ESMTP id 74sm60838rnb.2005.01.09.07.47.05; Sun, 09 Jan 2005 07:47:05 -0800 (PST) Message-Id: <6.1.2.0.2.20050109174427.0802c640@pop3> X-Sender: dinkevich@pop.gmail.com X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Sun, 09 Jan 2005 17:45:01 +0200 To: freebsd-usb@hub.freebsd.org Mime-Version: 1.0 Content-Type: text/plain; From: Boris Dinkevich Subject: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 15:47:07 -0000 Hello everyone, When going over the usb-host stack, it appears that synchronization is done via splusb/x. But in the 5.3 release, these functions are implemented at stubs. How is the sync done then ? Also, with soft_interrupts, it appears there is no need for spls, am I correct ? Thanks in advance Boris From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 19:53:28 2005 Return-Path: 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 8C1DD16A4CE for ; Sun, 9 Jan 2005 19:53:28 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 164DC43D53 for ; Sun, 9 Jan 2005 19:53:28 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j09JpZZl013134; Sun, 9 Jan 2005 12:51:35 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 09 Jan 2005 12:52:13 -0700 (MST) Message-Id: <20050109.125213.02300240.imp@bsdimp.com> To: dinkevich@gmail.com From: "M. Warner Losh" In-Reply-To: <6.1.2.0.2.20050109174427.0802c640@pop3> References: <6.1.2.0.2.20050109174427.0802c640@pop3> 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 cc: freebsd-usb@hub.freebsd.org Subject: Re: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 19:53:28 -0000 In message: <6.1.2.0.2.20050109174427.0802c640@pop3> Boris Dinkevich writes: : Hello everyone, : : When going over the usb-host stack, it appears that synchronization is done : via splusb/x. : But in the 5.3 release, these functions are implemented at stubs. : : How is the sync done then ? : : Also, with soft_interrupts, it appears there is no need for spls, am I : correct ? Giant locking. I have patches to move the interrupt outside of giant, but the rest of the stack is still under giant locking. Warner From owner-freebsd-usb@FreeBSD.ORG Sun Jan 9 23:12:18 2005 Return-Path: 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 2979116A4CF; Sun, 9 Jan 2005 23:12:18 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0505B43D2F; Sun, 9 Jan 2005 23:12:18 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j09NCHus045599; Sun, 9 Jan 2005 23:12:17 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j09NCHqP045595; Sun, 9 Jan 2005 23:12:17 GMT (envelope-from julian) Date: Sun, 9 Jan 2005 23:12:17 GMT From: Julian Elischer Message-Id: <200501092312.j09NCHqP045595@freefall.freebsd.org> To: blaze@rootshell.be, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/39341: ppp + USB modem problem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jan 2005 23:12:18 -0000 Synopsis: ppp + USB modem problem State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Sun Jan 9 23:10:48 GMT 2005 State-Changed-Why: Can't contact submitter but have heard success stories from others with this driver. http://www.freebsd.org/cgi/query-pr.cgi?pr=39341 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 00:07:49 2005 Return-Path: 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 BEC0216A4CE; Mon, 10 Jan 2005 00:07:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9625343D2D; Mon, 10 Jan 2005 00:07:49 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A07nf8059411; Mon, 10 Jan 2005 00:07:49 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A07njQ059407; Mon, 10 Jan 2005 00:07:49 GMT (envelope-from julian) Date: Mon, 10 Jan 2005 00:07:49 GMT From: Julian Elischer Message-Id: <200501100007.j0A07njQ059407@freefall.freebsd.org> To: dgilbert@daveg.ca, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/60217: EHCI controller halts when USB 2.0 device attached. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 00:07:49 -0000 Synopsis: EHCI controller halts when USB 2.0 device attached. State-Changed-From-To: feedback->closed State-Changed-By: julian State-Changed-When: Mon Jan 10 00:07:01 GMT 2005 State-Changed-Why: Submitters not having the problem any more. http://www.freebsd.org/cgi/query-pr.cgi?pr=60217 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 00:14:08 2005 Return-Path: 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 07EF116A4CE for ; Mon, 10 Jan 2005 00:14:08 +0000 (GMT) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CC0D43D1F for ; Mon, 10 Jan 2005 00:14:07 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-216-100-134-143.dsl.snfc21.pacbell.net [216.100.134.143])j0A0DwHg333130; Sun, 9 Jan 2005 19:14:03 -0500 Message-ID: <41E1C8C5.4070605@elischer.org> Date: Sun, 09 Jan 2005 16:13:57 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8a3) Gecko/20041017 X-Accept-Language: en, hu MIME-Version: 1.0 To: "M. Warner Losh" References: <6.1.2.0.2.20050109174427.0802c640@pop3> <20050109.125213.02300240.imp@bsdimp.com> In-Reply-To: <20050109.125213.02300240.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@hub.freebsd.org cc: dinkevich@gmail.com Subject: Re: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 00:14:08 -0000 M. Warner Losh wrote: > In message: <6.1.2.0.2.20050109174427.0802c640@pop3> > Boris Dinkevich writes: > : Hello everyone, > : > : When going over the usb-host stack, it appears that synchronization is done > : via splusb/x. > : But in the 5.3 release, these functions are implemented at stubs. > : > : How is the sync done then ? > : > : Also, with soft_interrupts, it appears there is no need for spls, am I > : correct ? > > Giant locking. > > I have patches to move the interrupt outside of giant, but the rest of > the stack is still under giant locking. it may be worth just adding a single "usb system" lock.. > > Warner > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 00:28:55 2005 Return-Path: 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 D9B5516A4CE; Mon, 10 Jan 2005 00:28:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1E9743D31; Mon, 10 Jan 2005 00:28:55 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from freefall.freebsd.org (peadar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A0St3a091368; Mon, 10 Jan 2005 00:28:55 GMT (envelope-from peadar@freefall.freebsd.org) Received: (from peadar@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A0St3Y091364; Mon, 10 Jan 2005 00:28:55 GMT (envelope-from peadar) Date: Mon, 10 Jan 2005 00:28:55 GMT From: Peter Edwards Message-Id: <200501100028.j0A0St3Y091364@freefall.freebsd.org> To: bremner@unb.ca, peadar@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/66248: [panic] bootloader is confused by booting from USB flash, trashes main drives boot block X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 00:28:56 -0000 Synopsis: [panic] bootloader is confused by booting from USB flash, trashes main drives boot block State-Changed-From-To: open->patched State-Changed-By: peadar State-Changed-When: Mon Jan 10 00:27:44 GMT 2005 State-Changed-Why: Patch appied to -current. http://www.freebsd.org/cgi/query-pr.cgi?pr=66248 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 03:11:43 2005 Return-Path: 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 83AF216A4CE for ; Mon, 10 Jan 2005 03:11:43 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18EEE43D2D for ; Mon, 10 Jan 2005 03:11:43 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j0A38kSt028052; Sun, 9 Jan 2005 20:08:50 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 09 Jan 2005 20:09:10 -0700 (MST) Message-Id: <20050109.200910.28786915.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41E1C8C5.4070605@elischer.org> References: <6.1.2.0.2.20050109174427.0802c640@pop3> <20050109.125213.02300240.imp@bsdimp.com> <41E1C8C5.4070605@elischer.org> 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 cc: freebsd-usb@hub.freebsd.org cc: dinkevich@gmail.com Subject: Re: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 03:11:43 -0000 In message: <41E1C8C5.4070605@elischer.org> Julian Elischer writes: : M. Warner Losh wrote: : > In message: <6.1.2.0.2.20050109174427.0802c640@pop3> : > Boris Dinkevich writes: : > : Hello everyone, : > : : > : When going over the usb-host stack, it appears that synchronization is done : > : via splusb/x. : > : But in the 5.3 release, these functions are implemented at stubs. : > : : > : How is the sync done then ? : > : : > : Also, with soft_interrupts, it appears there is no need for spls, am I : > : correct ? : > : > Giant locking. : > : > I have patches to move the interrupt outside of giant, but the rest of : > the stack is still under giant locking. : : it may be worth just adding a single "usb system" lock.. well duh! However, there's a lot of things that can trivially be done with giant. Locking with a usb subsystem lock takes a lot more effort... Warner From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 03:50:24 2005 Return-Path: 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 7E9CB16A4CE; Mon, 10 Jan 2005 03:50:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FFCF43D45; Mon, 10 Jan 2005 03:50:24 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A3oO5V016436; Mon, 10 Jan 2005 03:50:24 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A3oNn4016432; Mon, 10 Jan 2005 03:50:23 GMT (envelope-from julian) Date: Mon, 10 Jan 2005 03:50:23 GMT From: Julian Elischer Message-Id: <200501100350.j0A3oNn4016432@freefall.freebsd.org> To: apostbackup@yahoo.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/66324: [usb] usb driver memory leak grows wired X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 03:50:24 -0000 Synopsis: [usb] usb driver memory leak grows wired State-Changed-From-To: open->closed State-Changed-By: julian State-Changed-When: Mon Jan 10 03:48:41 GMT 2005 State-Changed-Why: Unable to contact author. have not been able to duplicae it since updating the USB stack some time ago. Assume fixed unless proved otherwise.. http://www.freebsd.org/cgi/query-pr.cgi?pr=66324 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 03:51:49 2005 Return-Path: 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 C721516A4CF; Mon, 10 Jan 2005 03:51:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9714943D2D; Mon, 10 Jan 2005 03:51:49 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A3pnAK016835; Mon, 10 Jan 2005 03:51:49 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A3pl3q016831; Mon, 10 Jan 2005 03:51:47 GMT (envelope-from julian) Date: Mon, 10 Jan 2005 03:51:47 GMT From: Julian Elischer Message-Id: <200501100351.j0A3pl3q016831@freefall.freebsd.org> To: sehh@altered.com, julian@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/31659: USB controller driver will die after some hours/heavy load. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 03:51:49 -0000 Synopsis: USB controller driver will die after some hours/heavy load. State-Changed-From-To: analyzed->closed State-Changed-By: julian State-Changed-When: Mon Jan 10 03:50:40 GMT 2005 State-Changed-Why: I believe this to have been fixed during the stack upgrade. Unable to confirm the continued existance of the bug. http://www.freebsd.org/cgi/query-pr.cgi?pr=31659 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 03:55:31 2005 Return-Path: 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 A348E16A4CE; Mon, 10 Jan 2005 03:55:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CA8E43D3F; Mon, 10 Jan 2005 03:55:31 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A3tVlJ016921; Mon, 10 Jan 2005 03:55:31 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A3tVKg016917; Mon, 10 Jan 2005 03:55:31 GMT (envelope-from julian) Date: Mon, 10 Jan 2005 03:55:31 GMT From: Julian Elischer Message-Id: <200501100355.j0A3tVKg016917@freefall.freebsd.org> To: julian@FreeBSD.org, freebsd-usb@FreeBSD.org, peadar@FreeBSD.org Subject: Re: kern/66248: [panic] bootloader is confused by booting from U.S.B flash, trashes main drives boot block X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 03:55:31 -0000 Old Synopsis: [panic] bootloader is confused by booting from USB flash, trashes main drives boot block New Synopsis: [panic] bootloader is confused by booting from U.S.B flash, trashes main drives boot block Responsible-Changed-From-To: freebsd-usb->peadar Responsible-Changed-By: julian Responsible-Changed-When: Mon Jan 10 03:52:32 GMT 2005 Responsible-Changed-Why: Taken over by peadar.. stop it showing up in the USB 'to-do' list :-) http://www.freebsd.org/cgi/query-pr.cgi?pr=66248 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 04:00:47 2005 Return-Path: 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 4258816A4CE for ; Mon, 10 Jan 2005 04:00:47 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BD2943D3F for ; Mon, 10 Jan 2005 04:00:47 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A40k6K017369 for ; Mon, 10 Jan 2005 04:00:46 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A40knE017368; Mon, 10 Jan 2005 04:00:46 GMT (envelope-from gnats) Date: Mon, 10 Jan 2005 04:00:46 GMT Message-Id: <200501100400.j0A40knE017368@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/48359: SiS 5597/8 USB + uscanner breakage X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 04:00:47 -0000 The following reply was made to PR kern/48359; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, brad@brad-x.com Cc: Subject: Re: kern/48359: SiS 5597/8 USB + uscanner breakage Date: Sun, 09 Jan 2005 19:58:56 -0800 can you still test this? I believe it to be fixed.. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 04:00:56 2005 Return-Path: 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 545AF16A4CE for ; Mon, 10 Jan 2005 04:00:56 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2CE7A43D1D for ; Mon, 10 Jan 2005 04:00:56 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A40tXG017394 for ; Mon, 10 Jan 2005 04:00:56 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A40t2E017393; Mon, 10 Jan 2005 04:00:55 GMT (envelope-from gnats) Date: Mon, 10 Jan 2005 04:00:55 GMT Message-Id: <200501100400.j0A40t2E017393@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/48359: SiS 5597/8 USB + uscanner breakage X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 04:00:56 -0000 The following reply was made to PR kern/48359; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, brad@brad-x.com Cc: Subject: Re: kern/48359: SiS 5597/8 USB + uscanner breakage Date: Sun, 09 Jan 2005 19:59:34 -0800 can you still test this? I believe it to be fixed.. http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/48359 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 04:33:33 2005 Return-Path: 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 CAA3D16A4CE; Mon, 10 Jan 2005 04:33:33 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B812E43D2D; Mon, 10 Jan 2005 04:33:33 +0000 (GMT) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (bms@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A4XX7O026065; Mon, 10 Jan 2005 04:33:33 GMT (envelope-from bms@freefall.freebsd.org) Received: (from bms@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A4XXId026059; Mon, 10 Jan 2005 04:33:33 GMT (envelope-from bms) Date: Mon, 10 Jan 2005 04:33:33 GMT From: Bruce M Simpson Message-Id: <200501100433.j0A4XXId026059@freefall.freebsd.org> To: bms@spc.org, bms@FreeBSD.org, freebsd-usb@FreeBSD.org, bms@FreeBSD.org Subject: Re: i386/43366: Cannot format media in USB floppy devices X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 04:33:33 -0000 Synopsis: Cannot format media in USB floppy devices State-Changed-From-To: feedback->analyzed State-Changed-By: bms State-Changed-When: Mon Jan 10 04:32:43 GMT 2005 State-Changed-Why: I've written a tool to format USB floppy media but have not yet committed it pending further review (it appears to work with at least Y-E Data FlashBuster type USB floppy drives). Nudged by: julian@ Responsible-Changed-From-To: freebsd-usb->bms Responsible-Changed-By: bms Responsible-Changed-When: Mon Jan 10 04:32:43 GMT 2005 Responsible-Changed-Why: I've written a tool to format USB floppy media but have not yet committed it pending further review (it appears to work with at least Y-E Data FlashBuster type USB floppy drives). Nudged by: julian@ http://www.freebsd.org/cgi/query-pr.cgi?pr=43366 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 05:13:23 2005 Return-Path: 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 DCDFA16A4CE; Mon, 10 Jan 2005 05:13:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B504F43D1D; Mon, 10 Jan 2005 05:13:23 +0000 (GMT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A5DNxi001184; Mon, 10 Jan 2005 05:13:23 GMT (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A5DNJo001180; Mon, 10 Jan 2005 05:13:23 GMT (envelope-from julian) Date: Mon, 10 Jan 2005 05:13:23 GMT From: Julian Elischer Message-Id: <200501100513.j0A5DNJo001180@freefall.freebsd.org> To: julian@FreeBSD.org, freebsd-usb@FreeBSD.org, sos@FreeBSD.org Subject: Re: i386/63521: 5.2.1 doesn't detect drives on SATA controllers, 5.2 does X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 05:13:24 -0000 Synopsis: 5.2.1 doesn't detect drives on SATA controllers, 5.2 does Responsible-Changed-From-To: freebsd-usb->sos Responsible-Changed-By: julian Responsible-Changed-When: Mon Jan 10 05:12:23 GMT 2005 Responsible-Changed-Why: This has NOTHING to do with USB. http://www.freebsd.org/cgi/query-pr.cgi?pr=63521 From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 05:20:25 2005 Return-Path: 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 911B316A4CE for ; Mon, 10 Jan 2005 05:20:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AE0543D4C for ; Mon, 10 Jan 2005 05:20:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A5KPqO009295 for ; Mon, 10 Jan 2005 05:20:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A5KPRS009294; Mon, 10 Jan 2005 05:20:25 GMT (envelope-from gnats) Date: Mon, 10 Jan 2005 05:20:25 GMT Message-Id: <200501100520.j0A5KPRS009294@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 05:20:25 -0000 The following reply was made to PR kern/71887; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, sthommerel@osiatis.com Cc: Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle Date: Sun, 09 Jan 2005 21:19:57 -0800 This should probably be in "doc" or somewhere.. maybe in the bluetooth handbook page. My Bt adapter also has a keyboard and mouse adapter built in and the same thing happens.. It produces the keyboard device whether or not it has found a bluetooth keyboard to attach to, so having a USB keyboard automatically over-ride teh standard keyboard in this situation is dubious at best. It probably should not be a USB PR but I can't think of a better place.. maybe the PR should just be closed and the problem documented. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 05:30:22 2005 Return-Path: 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 5D71316A4CF for ; Mon, 10 Jan 2005 05:30:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35A5A43D5F for ; Mon, 10 Jan 2005 05:30:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0A5UMHD013192 for ; Mon, 10 Jan 2005 05:30:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0A5UMtr013191; Mon, 10 Jan 2005 05:30:22 GMT (envelope-from gnats) Date: Mon, 10 Jan 2005 05:30:22 GMT Message-Id: <200501100530.j0A5UMtr013191@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: usb/75941: system halted during booting due to ehci X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 05:30:22 -0000 The following reply was made to PR usb/75941; it has been noted by GNATS. From: Julian Elischer To: freebsd-gnats-submit@FreeBSD.org, sergio.jorde@sportsystems.es Cc: Subject: Re: usb/75941: system halted during booting due to ehci Date: Sun, 09 Jan 2005 21:21:58 -0800 please try with teh latest version of ehci.c and ehcivar.h from RELENG_5 or -current. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 07:07:51 2005 Return-Path: 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 BF8A316A4CE for ; Mon, 10 Jan 2005 07:07:51 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D1EE43D2D for ; Mon, 10 Jan 2005 07:07:51 +0000 (GMT) (envelope-from dinkevich@gmail.com) Received: by rproxy.gmail.com with SMTP id z35so313025rne for ; Sun, 09 Jan 2005 23:07:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:x-sender:x-mailer:date:to:subject:cc:in-reply-to:references:mime-version:content-type:from; b=QxrAHwdgXfOgkjT/XSmzzF+osh1eitj41GCmifEWv4skWSKCkb/rQ4U8G8goW2Ral5z8puLat/QGFOkGTV1KRhNOyvAiilACvCtSQ/xdw8W/RVoghlMh8PR3wUJFvmAWwHUL0ED9UpGRiYVPmRCV9LhrWCkxCfPpiG3EOmI9WCU= Received: by 10.38.96.67 with SMTP id t67mr346142rnb; Sun, 09 Jan 2005 23:07:50 -0800 (PST) Received: from becker.Dinkevich.com ([194.90.113.98]) by smtp.gmail.com with ESMTP id 73sm1302581rna.2005.01.09.23.07.48; Sun, 09 Jan 2005 23:07:50 -0800 (PST) Message-Id: <6.1.2.0.2.20050110085622.0338a980@pop.gmail.com> X-Sender: dinkevich@pop.gmail.com X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Mon, 10 Jan 2005 09:05:46 +0200 To: "M. Warner Losh" In-Reply-To: <20050109.200910.28786915.imp@bsdimp.com> References: <6.1.2.0.2.20050109174427.0802c640@pop3> <20050109.125213.02300240.imp@bsdimp.com> <41E1C8C5.4070605@elischer.org> <20050109.200910.28786915.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; From: Boris Dinkevich cc: freebsd-usb@hub.freebsd.org cc: dinkevich@gmail.com cc: julian@elischer.org Subject: Re: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 07:07:51 -0000 Hello everyone, I see no reference to giant locking in 5.3 (except in event/task threads) Does this not affect performance when multiple devices are connected to the host ? Also, I have seen a modification to the bsd stack by Hans Petter Selasky, where he uses per bus mtxes for locking, is this not the better approach to the problem ? Interrupt is synced via Giant ? Best Regards Boris Dinkevich At 05:09 AM 10/1/2005, M. Warner Losh wrote: >In message: <41E1C8C5.4070605@elischer.org> > Julian Elischer writes: >: M. Warner Losh wrote: >: > In message: <6.1.2.0.2.20050109174427.0802c640@pop3> >: > Boris Dinkevich writes: >: > : Hello everyone, >: > : >: > : When going over the usb-host stack, it appears that synchronization >is done >: > : via splusb/x. >: > : But in the 5.3 release, these functions are implemented at stubs. >: > : >: > : How is the sync done then ? >: > : >: > : Also, with soft_interrupts, it appears there is no need for spls, am I >: > : correct ? >: > >: > Giant locking. >: > >: > I have patches to move the interrupt outside of giant, but the rest of >: > the stack is still under giant locking. >: >: it may be worth just adding a single "usb system" lock.. > >well duh! However, there's a lot of things that can trivially be done >with giant. Locking with a usb subsystem lock takes a lot more >effort... > >Warner From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 07:20:45 2005 Return-Path: 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 77C7216A4CE for ; Mon, 10 Jan 2005 07:20:45 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7AFB43D46 for ; Mon, 10 Jan 2005 07:20:44 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j0A7Jb60030400; Mon, 10 Jan 2005 00:19:38 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 10 Jan 2005 00:20:16 -0700 (MST) Message-Id: <20050110.002016.127178679.imp@bsdimp.com> To: dinkevich@gmail.com From: "M. Warner Losh" In-Reply-To: <6.1.2.0.2.20050110085622.0338a980@pop.gmail.com> References: <41E1C8C5.4070605@elischer.org> <20050109.200910.28786915.imp@bsdimp.com> <6.1.2.0.2.20050110085622.0338a980@pop.gmail.com> 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 cc: freebsd-usb@hub.freebsd.org cc: julian@elischer.org Subject: Re: stack synchronization X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 07:20:45 -0000 In message: <6.1.2.0.2.20050110085622.0338a980@pop.gmail.com> Boris Dinkevich writes: : I see no reference to giant locking in 5.3 (except in event/task threads) It is implicit... : Does this not affect performance when multiple devices are connected to the : host ? Yes. : Also, I have seen a modification to the bsd stack by Hans Petter Selasky, : where he uses per bus mtxes for locking, : is this not the better approach to the problem ? Likely, but there are some issues with Hans' driver still. : Interrupt is synced via Giant ? Yes. Warner From owner-freebsd-usb@FreeBSD.ORG Mon Jan 10 11:03:16 2005 Return-Path: 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 7A78716A4CE for ; Mon, 10 Jan 2005 11:03:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CC6243D1F for ; Mon, 10 Jan 2005 11:03:16 +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.1/8.13.1) with ESMTP id j0AB3FnD095610 for ; Mon, 10 Jan 2005 11:03:16 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0AB3ENh095604 for freebsd-usb@freebsd.org; Mon, 10 Jan 2005 11:03:14 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 10 Jan 2005 11:03:14 GMT Message-Id: <200501101103.j0AB3ENh095604@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 Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 11:03:16 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt f [2002/01/13] kern/33839 usb usb0: host controller halted (involving A f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/06/24] kern/39805 usb 4.6R install panics with umass0 device co o [2002/07/19] kern/40792 usb signals lead to data loss on device ugen o [2002/12/10] kern/46176 usb umass causes kernel panic if device remov o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c o [2003/02/17] kern/48359 usb SiS 5597/8 USB + uscanner breakage a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot o [2003/03/05] kern/48952 usb uscanner0 hangs a [2003/03/20] kern/50149 usb Using Alcatel SpeedTouch results in "usb0 a [2003/08/14] kern/55587 usb null dereference in usbdi.c: usb_transfer o [2003/09/26] bin/57255 usb usbd and multi-function devices f [2003/12/11] kern/60131 usb [usb] Page fault on disconnect of USB dev o [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( o [2004/01/11] kern/61191 usb [usb] panic: USB vs. Serial problems o [2004/01/15] kern/61377 usb [kbd] usb keyboard not functional after b o [2004/01/20] kern/61627 usb [usb] [patch] New USB printer not support f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB o [2004/01/24] kern/61841 usb [boot] 5.2 Boot freeze if memorybird (USB f [2004/01/30] kern/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re o [2004/02/23] i386/63251 usb [usb] USB stops working after 2nd APM sus o [2004/02/26] kern/63375 usb [patch] panic: unplugging USB devices pan o [2004/03/01] kern/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/04/07] kern/65292 usb [panic] random page faults (usb-related?) o [2004/04/19] i386/65783 usb [panic] Panic when attaching card reader o [2004/07/13] kern/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] kern/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/09/18] kern/71887 usb [kbd] Losing keyboard after plugging a bl o [2004/09/27] kern/72119 usb Detaching USB Memory Stick w/o umount cau f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 o [2004/10/29] kern/73295 usb Lock order reversal in USB code. o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti o [2005/01/08] usb/75941 usb system halted during booting due to ehci 37 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 o [2001/12/09] kern/32652 usb [patch] A new ioctl to uscanner s [2001/12/09] ports/32653 usb Added patches to improve USB scanner supp f [2002/04/23] kern/37374 usb [PATCH] closing ums0 blocks with wmesg uh f [2002/05/04] conf/37732 usb usbd start in wrong place in /etc/rc in 4 o [2002/05/23] kern/38452 usb [usb] Logitech USB iFeel: device_probe_an o [2002/07/16] kern/40657 usb [usb] Logitech iFeel usb mouse will not a o [2002/07/24] kern/40948 usb [usb] USB HP CDW8200 does not work o [2002/08/07] kern/41415 usb [usb] [patch] Some USB scanners cannot ta f [2002/08/30] bin/42213 usb moused(8) seems to delay some mouse event f [2002/10/25] kern/44450 usb USB support FAILURE for device that was s o [2003/01/18] kern/47200 usb USB port is disabled when Kodak DX4900 is o [2003/02/06] kern/48014 usb [usb] moused fails to correctly identify o [2003/02/16] bin/48342 usb [PATCH] usbd dynamic device list. o [2003/03/19] kern/50110 usb [usb] Astra 2100U scanner being detected 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 f [2003/05/19] bin/52432 usb [sysinstall] drivers.flp won't load with o [2003/06/08] kern/53025 usb [PATCH] ugen does not allow O_NONBLOCK fo f [2003/09/19] kern/56999 usb FreeCom USB CD/RW problem on FreeBSD 5.1 o [2003/11/10] i386/59147 usb [usb] USB active extension cable not reco o [2003/11/11] kern/59169 usb [patch] ulpt is missing read operation o [2003/12/15] kern/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] bin/61234 usb [usb] [patch] usbhidaction doesn't suppor o [2004/01/14] kern/61365 usb FreeBSD resets when I turn off monitor w/ o [2004/02/13] kern/62788 usb need quirks for Super Talent Flash USB 2. o [2004/03/04] kern/63779 usb [usb] USB-mass storage (USB to IDE Conver o [2004/03/06] kern/63837 usb [patch] USB: hid_is_collection() only loo o [2004/04/11] kern/65436 usb QUIRK: [patch] to add support for PNY Att 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/27] kern/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/07/06] i386/68719 usb [usb] USB 2.0 mobil rack+ fat32 performan o [2004/08/16] kern/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] kern/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] kern/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] kern/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] kern/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul o [2004/10/05] kern/72344 usb [usb] [patch] QUIRK: Dane-Elec zMate 512 f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has 45 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 00:14:46 2005 Return-Path: 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 8FFB416A4CE for ; Tue, 11 Jan 2005 00:14:46 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1857843D5D for ; Tue, 11 Jan 2005 00:14:45 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j0B0DZg2029808 for ; Tue, 11 Jan 2005 10:43:35 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 11 Jan 2005 10:44:37 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j0B09SQ29565 for ; Tue, 11 Jan 2005 10:39:28 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK378NCG; Tue, 11 Jan 2005 10:39:13 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j0B09uKG032806 for ; Tue, 11 Jan 2005 10:39:56 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j0B09upW032805 for usb@freebsd.org; Tue, 11 Jan 2005 10:39:56 +1030 (CST) (envelope-from wilkinsa) Date: Tue, 11 Jan 2005 10:39:56 +1030 From: "Wilkinson, Alex" To: usb@freebsd.org Message-ID: <20050111000956.GB32601@squash.dsto.defence.gov.au> Mail-Followup-To: usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <41DE4E52.2040301@elischer.org> User-Agent: Mutt/1.5.6i Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query device sizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 00:14:46 -0000 > > >> >>Hi all, >> >>I have a new 1GB JetFlash TS1GJF2B 2.00 thumb drive. >> >>When I plug in the thumb drive dmesg(8) outputs the following: >> >> umass0: USB Flash Disk, rev 2.00/2.00, addr 2 >> da0 at umass-sim0 bus 0 target 0 lun 0 >> da0: Removable Direct Access SCSI-2 device >> da0: 1.000MB/s transfers >> da0: Attempt to query device size failed: UNIT ATTENTION, Not ready to >> ready change, >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retries Exhausted >> Opened disk da0 -> 6 >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have >> changed >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) >> >># camcontrol devlist -v >> .... >> >> at scbus5 target 0 lun 0 (da0) >> scbus-1 on xpt0 bus 0: >> < > at scbus-1 target -1 lun -1 (xpt0) >> >># mount -t msdos /dev/da0 /mnt >>msdosfs: /dev/da0: Resource temporarily unavailable >> >>and then after trying to mount I get these errors in dmesg(8) >> >> fsync: giving up on dirty: 0xc2c24420: tag devfs, type VCHR, usecount >> 1, writecount 0, refcount 33, flags (VV_OBJBUF), lock type devfs: EXCL >> (count 1) by thread 0xc309c320 (pid 9693) >> dev da0 >> >>I have the following in my kernel: >> >>device ehci # Enchanced Host Controller Int >>device uhci # UHCI PCI->USB interface >>device ohci # OHCI PCI->USB interface >> >>OS: FreeBSD 5.3-STABLE #21: Thu Jan 6 16:45:52 CST 2005 >> >>Not sure what to make of this. Anyone ? 0n Fri, Jan 07, 2005 at 12:54:42AM -0800, Julian Elischer wrote: >we may need to make it use a quirk to use a different read capacity command >or skip it.. > >I'll have to look to remember what collection of 'quirks' we have in our >collection. Okay, well can someone please define what is meant by a "Quirk" ? Once that is done can someone please recommend to me the necessary quirk that I need to get this device working. Thanks - aW From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 01:26:28 2005 Return-Path: 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 A593D16A4CE for ; Tue, 11 Jan 2005 01:26:28 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AA5A43D46 for ; Tue, 11 Jan 2005 01:26:28 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 4EFC87A403 for ; Mon, 10 Jan 2005 17:26:28 -0800 (PST) Message-ID: <41E32B44.90807@elischer.org> Date: Mon, 10 Jan 2005 17:26:28 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: usb@freebsd.org References: <200501101103.j0AB3ENh095604@freefall.freebsd.org> In-Reply-To: <200501101103.j0AB3ENh095604@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 01:26:28 -0000 FreeBSD bugmaster wrote: >Current FreeBSD problem reports >Critical problems > down from 1 -> 0 >Serious problems > >S Submitted Tracker Resp. Description >------------------------------------------------------------------------------- >f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt > > [...] >o [2004/10/30] kern/73307 usb Kernel panics on USB disconnect >o [2004/11/18] kern/74088 usb ohci ehci uhub: port disabled on connecti >o [2005/01/08] usb/75941 usb system halted during booting due to ehci > >37 problems total. > down from 51 last I have record of. > >Non-critical problems > >S Submitted Tracker Resp. Description >------------------------------------------------------------------------------- >o [2001/09/30] conf/30929 usb [patch] use usbd to initialize USB ADSL m > > [...] >f [2004/10/06] i386/72380 usb [usb] USB does not work [dual Celeron Abi >o [2004/10/23] i386/73056 usb [usb] Sun Microsystems Type 6 USB mouse n >o [2004/11/02] i386/73421 usb [usb] USB not recgnized/working on Toshib >o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge >o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has > >45 problems total. > up by one.. dammit. still lots to work on, however, thre are some low hanging fruit still. e.g. PRs with patches and some duplicates. I think :-) From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 01:36:16 2005 Return-Path: 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 D7A8216A4CE for ; Tue, 11 Jan 2005 01:36:16 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0E0043D3F for ; Tue, 11 Jan 2005 01:36:16 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 889667A403; Mon, 10 Jan 2005 17:36:16 -0800 (PST) Message-ID: <41E32D90.4070801@elischer.org> Date: Mon, 10 Jan 2005 17:36:16 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: "Wilkinson, Alex" References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> In-Reply-To: <20050111000956.GB32601@squash.dsto.defence.gov.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 01:36:17 -0000 Wilkinson, Alex wrote: > > > > > >> > >>Hi all, > >> > > > >we may need to make it use a quirk to use a different read capacity command > >or skip it.. > > > >I'll have to look to remember what collection of 'quirks' we have in our > >collection. > >Okay, well can someone please define what is meant by a "Quirk" ? >Once that is done can someone please recommend to me the necessary >quirk that I need to get this device working. > > there are two sets of "quirks" involved here.. umass acts as a connector between the CAM (e.g. SCSI) system and the USB system. There are USB quirks defined in: src/sys/dev/usb/ usb_quirks.c and usb_quirks.h basically if a specific USB device is seen then the USB code should do something in a different manner to normal. THe currently defined USB quirks are: struct usbd_quirks { u_int32_t uq_flags; /* Device problems: */ #define UQ_NO_SET_PROTO 0x0001 /* cannot handle SET PROTOCOL. */ #define UQ_SWAP_UNICODE 0x0002 /* has some Unicode strings swapped. */ #define UQ_MS_REVZ 0x0004 /* mouse has Z-axis reversed */ #define UQ_NO_STRINGS 0x0008 /* string descriptors are broken. */ #define UQ_BAD_ADC 0x0010 /* bad audio spec version number. */ #define UQ_BUS_POWERED 0x0020 /* device is bus powered, despite claim */ #define UQ_BAD_AUDIO 0x0040 /* device claims audio class, but isn't */ #define UQ_SPUR_BUT_UP 0x0080 /* spurious mouse button up events */ #define UQ_AU_NO_XU 0x0100 /* audio device has broken extension unit */ #define UQ_POWER_CLAIM 0x0200 /* hub lies about power status */ #define UQ_AU_NO_FRAC 0x0400 /* don't adjust for fractional samples */ #define UQ_AU_INP_ASYNC 0x0800 /* input is async despite claim of adaptive */ #define UQ_ASSUME_CM_OVER_DATA 0x1000 /* modem device breaks on cm over data */ #define UQ_BROKEN_BIDIR 0x2000 /* printer has broken bidir mode */ }; There are CAM/SCSI quirks. src/sys/cam for disks theae are in : scsi/scsi_da.c in the array static struct da_quirk_entry da_quirk_table[] = { /* SPI, FC devices */ { /* * Fujitsu M2513A MO drives. * Tested devices: M2513A2 firmware versions 1200 & 1300. * (dip switch selects whether T_DIRECT or T_OPTICAL device) * Reported by: W.Scholten */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "FUJITSU", "M2513A", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { [...] /* USB mass storage devices supported by umass(4) */ { /* * EXATELECOM (Sigmatel) i-Bead 100/105 USB Flash MP3 Player * PR: kern/51675 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "EXATEL", "i-BEAD10*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * Power Quotient Int. (PQI) USB flash key * PR: kern/53067 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Generic*", "USB Flash Disk*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * Creative Nomad MUVO mp3 player (USB) * PR: kern/53094 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "CREATIVE", "NOMAD_MUVO", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT }, { /* * Jungsoft NEXDISK USB flash key * PR: kern/54737 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "JUNGSOFT", "NEXDISK*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * FreeDik USB Mini Data Drive * PR: kern/54786 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "FreeDik*", "Mini Data Drive", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * Sigmatel USB Flash MP3 Player * PR: kern/57046 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "SigmaTel", "MSCN", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT }, { /* * Neuros USB Digital Audio Computer * PR: kern/63645 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "NEUROS", "dig. audio comp.", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * SEAGRAND NP-900 MP3 Player * PR: kern/64563 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "SEAGRAND", "NP-900*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE|DA_Q_NO_PREVENT }, { /* * iRiver iFP MP3 player (with UMS Firmware) * PR: kern/54881, i386/63941, kern/66124 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "iRiver", "iFP*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { /* * Frontier Labs NEX IA+ Digital Audio Player, rev 1.10/0.01 * PR: kern/70158 */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "FL" , "NexIA+*", "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, }; From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 01:44:43 2005 Return-Path: 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 E54CF16A4CE for ; Tue, 11 Jan 2005 01:44:42 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A72F43D39 for ; Tue, 11 Jan 2005 01:44:41 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j0B1hVwZ009559 for ; Tue, 11 Jan 2005 12:13:32 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 11 Jan 2005 12:14:29 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j0B1cvQ17671 for ; Tue, 11 Jan 2005 12:08:57 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK378RKZ; Tue, 11 Jan 2005 12:08:42 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j0B1dP8D033160 for ; Tue, 11 Jan 2005 12:09:25 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j0B1dPKX033159 for usb@freebsd.org; Tue, 11 Jan 2005 12:09:25 +1030 (CST) (envelope-from wilkinsa) Date: Tue, 11 Jan 2005 12:09:25 +1030 From: "Wilkinson, Alex" To: usb@freebsd.org Message-ID: <20050111013925.GD32601@squash.dsto.defence.gov.au> Mail-Followup-To: usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20050111000956.GB32601@squash.dsto.defence.gov.au> User-Agent: Mutt/1.5.6i Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 01:44:43 -0000 0n Tue, Jan 11, 2005 at 10:39:56AM +1030, Wilkinson, Alex wrote: > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have > >> changed > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) Okay, I'm trying to make sense of the aforementioned debug output. 1. (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error I'm suspecting that this means that the READ CAPACITY command failed, therefore we are unable to determine the device's physical parameters. 2. (da0:umass-sim0:0:0:0): SCSI Status: Check Condition Looks like we are waiting to for the device to become ready to be accessed. 3. (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed This 'Additional Sense Code' seems to be where it fails. Looking at the RBC specs we should see an ASC/ASCQ of 'NEW MEDIA READY FOR ACCESS'. However, we don't. This is as far as I can go without having my hand held. I would dearly like to get this UMASS device working. Can any USB wizards please suggest quirks etc that could result in a solution. Thanks - Alex From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 02:34:58 2005 Return-Path: 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 2256416A4CE; Tue, 11 Jan 2005 02:34:58 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B049A43D39; Tue, 11 Jan 2005 02:34:52 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j0B2Xgfn013887; Tue, 11 Jan 2005 13:03:42 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Tue, 11 Jan 2005 13:04:41 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j0B2TMQ00973; Tue, 11 Jan 2005 12:59:22 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK378TK4; Tue, 11 Jan 2005 12:59:07 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j0B2TpIf033365 ; Tue, 11 Jan 2005 12:59:51 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j0B2To6Q033364; Tue, 11 Jan 2005 12:59:50 +1030 (CST) (envelope-from wilkinsa) Date: Tue, 11 Jan 2005 12:59:50 +1030 From: "Wilkinson, Alex" To: freebsd-current@freebsd.org, usb@freebsd.org Message-ID: <20050111022946.GA33309@squash.dsto.defence.gov.au> Mail-Followup-To: freebsd-current@freebsd.org, usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <41DE4E52.2040301@elischer.org> User-Agent: Mutt/1.5.6i Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query device sizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 02:34:58 -0000 0n Fri, Jan 07, 2005 at 12:54:42AM -0800, Julian Elischer wrote: >Wilkinson, Alex wrote: >>No response from usb@ so hopefully someone (julian) will respond here >>;) > >well you posted there at 8:49 and here at 10:47 > >I guess I didn't happen to read the usb list in that 1 hour and 58 minutes. > >we may need to make it use a quirk to use a different read capacity command >or skip it.. > >I'll have to look to remember what collection of 'quirks' we have in our >collection. Interestingly, if the thumb drive is plugged in whilst boot strapping a get a panic: umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: at uhub1 port 1 (addr 2) disconnected Fatal trap 12: page fault while in kernel mode fault virtual address = 0x1c fault code = supervisor read, page not present instruction pointer = 0x8:0xc04a5907 stack pointer = 0x10:0xe36f7ca4 frame pointer = 0x10:0xe36f7cb8 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 = 29 (irq19: uhci1) [thread pid 29 tid 100000 ] Stopped at uhci_softintr+0x23: movl 0x1c(%eax),%eax db> db> tr Tracing pid 29 tid 100000 td 0xc2664000 uhci_softintr(c275e000,0,c2766d00,4,c2661400) at uhci_softintr+0x23 uhci_intr1(c275e000,c2664000,0,0,0) at uhci_intr1+0xcd ithread_loop(c2661400,e36f7d48,0,0,0) at ithread_loop+0xb7 fork_exit(c04e4c20,c2661400,e36f7d48) at fork_exit+0x64 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe36f7d7c, ebp = 0 --- db> From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 03:49:45 2005 Return-Path: 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 5B25116A4CE for ; Tue, 11 Jan 2005 03:49:45 +0000 (GMT) Received: from cenn.mc.mpls.visi.com (cenn.mc.mpls.visi.com [208.42.156.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03C6F43D5C for ; Tue, 11 Jan 2005 03:49:45 +0000 (GMT) (envelope-from danolson@visi.com) Received: from [192.168.240.220] (danolson.dsl.visi.com [209.98.225.50]) by cenn.mc.mpls.visi.com (Postfix) with ESMTP id 2E6E381B9; Mon, 10 Jan 2005 21:49:44 -0600 (CST) Message-ID: <41E34CCE.7080808@visi.com> Date: Mon, 10 Jan 2005 21:49:34 -0600 From: Dan Olson User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Wilkinson, Alex" References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> In-Reply-To: <20050111013925.GD32601@squash.dsto.defence.gov.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: usb@freebsd.org Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 03:49:45 -0000 Wilkinson, Alex wrote: > 0n Tue, Jan 11, 2005 at 10:39:56AM +1030, Wilkinson, Alex wrote: > > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > >> (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > > >> (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > >> (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > >> (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > > >> (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have > > >> changed > > >> (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) > > Okay, I'm trying to make sense of the aforementioned debug output. > > 1. (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 > (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error > > I'm suspecting that this means that the READ CAPACITY command > failed, therefore we are unable to determine the device's > physical parameters. > > 2. (da0:umass-sim0:0:0:0): SCSI Status: Check Condition > > Looks like we are waiting to for the device to become ready to be > accessed. > > 3. (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 > (da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed > > This 'Additional Sense Code' seems to be where it fails. Looking at > the RBC specs we should see an ASC/ASCQ of 'NEW MEDIA READY FOR > ACCESS'. However, we don't. > > This is as far as I can go without having my hand held. I would dearly > like to get this UMASS device working. > > Can any USB wizards please suggest quirks etc that could result in a > solution. > > Thanks > > - Alex I too am having this problem but with a Kingston DataTraveler Elite 1GB usb drive. In the dmesg of 6.0 CURRENT from Dec 22 I get: FreeBSD 6.0-CURRENT #0: Wed Dec 22 17:10:48 CST 2004 umass0: Kingston DT Elite HS 2.0, rev 2.00/2.00, addr 4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: UNIT ATTENTION, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retrying Command (per Sense Data) (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): UNIT ATTENTION asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Retries Exhausted Which is a little different from the OP. But in a stock NetBSD 2.0 it works as shown below. NetBSD 2.0 (GENERIC) #0: Wed Dec 1 10:58:25 UTC 2004 builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj... /big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC umass0 at uhub3 port 5 configuration 1 interface 0 umass0: Kingston DT Elite HS 2.0, rev 2.00/2.00, addr 4 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, 1 lun per target sd0 at scsibus0 target 0 lun 0: disk removable sd0: 1002 MB, 844 cyl, 128 head, 19 sec, 512 bytes/sect x 2052607 sectors umass0: at uhub3 port 5 (addr 4) disconnected sd0 detached scsibus0 detached umass0 detached If it is any help, it may work in NetBSD 2.0 which might provide a basis of code to be ported over to FreeBSD. To get mine to work, I will have to wait for the port over as I am a newbie. Thanks Dan Olson From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 06:06:59 2005 Return-Path: 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 A473E16A4CE; Tue, 11 Jan 2005 06:06:59 +0000 (GMT) Received: from phws.ph.noda.tus.ac.jp (phws.ph.noda.tus.ac.jp [133.31.102.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01A7443D1D; Tue, 11 Jan 2005 06:06:59 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost (unknown [133.31.111.131]) by phws.ph.noda.tus.ac.jp (Postfix) with ESMTP id 262F04D8002; Tue, 11 Jan 2005 15:07:49 +0900 (JST) Date: Tue, 11 Jan 2005 15:06:56 +0900 (JST) Message-Id: <20050111.150656.521220515.kazuhito@ph.noda.tus.ac.jp> To: arved@freebsd.org From: Kazuhito HONDA In-Reply-To: <20041231122817.GT687@arved.at> References: <20041229105800.GS687@arved.at> <41D47F90.1080500@elischer.org> <20041231122817.GT687@arved.at> X-Mailer: Mew version 3.3 on XEmacs 21.5-b18 (chestnut) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: julian@elischer.org cc: freebsd-usb@freebsd.org Subject: Re: Latest uaudio commits break Logitech USB Headset X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 06:06:59 -0000 Hello. From: Tilman Linneweh Subject: Re: Latest uaudio commits break Logitech USB Headset Date: Fri, 31 Dec 2004 13:28:17 +0100 > * Julian Elischer [2004-12-30 23:22]: > > > > --- patch begins here --- > > --- src/sys/dev/sound/usb/uaudio_pcm.c.orig Sun Oct 31 02:56:01 2004 > > +++ src/sys/dev/sound/usb/uaudio_pcm.c Thu Dec 9 04:21:10 2004 > > > > @@ -58,7 +58,7 @@ > > > > static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; > > > > -#define UAUDIO_PCM_BUFF_SIZE 16*1024 > > +#define UAUDIO_PCM_BUFF_SIZE (16*1024-1) > > > > /************************************************************/ > > static void * > > --- patch ends here --- > > Thanks a lot! > Playback now works again. Please commit! Your headphone included your Logitech USB headset is 16-bit stereo, isn't it? If it's true, I'm afraid that left sound is heard from your right ear and right sound is from yuur left ear. Because my USB auduio device, Sound Blaster Digital Music is such. Would you please check it? If right and left are opposite, you have to change decrease quantity of UAUDIO_PCM_BUFF_SIZE. In the case of Sound Blaster Digital Music, the following was enough: -#define UAUDIO_PCM_BUFF_SIZE 16*1024 +#define UAUDIO_PCM_BUFF_SIZE (16*1024-4) ~~ > Recording, as far as I remember never worked with the device. > With CURRENT+your patch, recording results in a kernel panic: I can't redo panic in my USB audio, and I couldn't find Logitech USB headset in my electrical town. We may be able to get more information when USB_DEBUG is valid in uaudio.c, perhaps. In the first place, uaudio system of FreeBSD can't record and play simultaneously. To explain in detail, though it can record and play simultaneously, USB system become runaway when recording or playing is stopped. So I forbidden simultaneous use. Therefore, I regret that USB headsets can't be used as a headset. reagards, kazuhito HONDA kazuhito@ph.noda.tus.ac.jp From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 11:16:31 2005 Return-Path: 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 DCC3116A4CE for ; Tue, 11 Jan 2005 11:16:31 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-26-34.dclient.hispeed.ch [84.72.26.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3435343D46 for ; Tue, 11 Jan 2005 11:16:30 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:1a22:0:2c0:49ff:fef2:85dc]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j0BBGOXj008370NO) for ; Tue, 11 Jan 2005 12:16:27 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j0BBGOOx008367; Tue, 11 Jan 2005 12:16:24 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Tue, 11 Jan 2005 12:16:24 +0100 (CET) Message-Id: <200501111116.j0BBGOOx008367@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: usb@freebsd.org Mail-Followup-To: usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 11:16:32 -0000 > This is as far as I can go without having my hand held. I would dearly > like to get this UMASS device working. > Can any USB wizards please suggest quirks etc that could result in a > solution. Seeing as no wizards have spoken up, I'll just say that as someone who has no clue what I'm doing, try anything you can until something works, which is what I've needed to do to get a few things working as I prefer. A binary search is what I needed at least once. Add a quirk entry for your device, then include half the kitchen sink, and see if any of them make a difference; then try the rest. Some quirks may not be independent of others, though. Through a slow process of elimination, if you, like me, can't put a quirk to its effects, you might come up with something to help. In my 4.x source (where I do my work), I've played with things like FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE NO_TEST_UNIT_READY | NO_GETMAXLUN | NO_INQUIRY | WRONG_CSWTAG This is an unscientific trial-and-error thing, but if it's gotten me results, it can't be all bad, given that I have no clue what I'm doing, no? (Three of my devices have gotten quirks this way) barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 11:29:46 2005 Return-Path: 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 80BD116A4CE for ; Tue, 11 Jan 2005 11:29:46 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC73843D48 for ; Tue, 11 Jan 2005 11:29:44 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j0BBSXqt023913 for ; Tue, 11 Jan 2005 21:58:33 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 11 Jan 2005 21:59:34 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j0BBNAQ28614 for ; Tue, 11 Jan 2005 21:53:10 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK379FM6; Tue, 11 Jan 2005 21:52:55 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j0BBNeGG035279 for ; Tue, 11 Jan 2005 21:53:40 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j0BBNe0a035278 for usb@freebsd.org; Tue, 11 Jan 2005 21:53:40 +1030 (CST) (envelope-from wilkinsa) Date: Tue, 11 Jan 2005 21:53:40 +1030 From: "Wilkinson, Alex" To: usb@freebsd.org Message-ID: <20050111112337.GA35255@squash.dsto.defence.gov.au> Mail-Followup-To: usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> <200501111116.j0BBGOOx008367@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <200501111116.j0BBGOOx008367@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.5.6i Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 11:29:46 -0000 0n Tue, Jan 11, 2005 at 12:16:24PM +0100, Barry Bouwsma wrote: > >> This is as far as I can go without having my hand held. I would dearly >> like to get this UMASS device working. > >> Can any USB wizards please suggest quirks etc that could result in a >> solution. > >Seeing as no wizards have spoken up, I'll just say that as someone who >has no clue what I'm doing, try anything you can until something works, >which is what I've needed to do to get a few things working as I prefer. > >A binary search is what I needed at least once. Add a quirk entry for >your device, then include half the kitchen sink, and see if any of them >make a difference; then try the rest. Some quirks may not be independent >of others, though. > >Through a slow process of elimination, if you, like me, can't put a quirk >to its effects, you might come up with something to help. > >In my 4.x source (where I do my work), I've played with things like >FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE >NO_TEST_UNIT_READY | NO_GETMAXLUN | NO_INQUIRY | WRONG_CSWTAG > >This is an unscientific trial-and-error thing, but if it's gotten me >results, it can't be all bad, given that I have no clue what I'm doing, >no? (Three of my devices have gotten quirks this way) Okay, well then where do I find out how to add a quirk that skips the 'READ CAPACITY' command ? - aW From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 12:05:10 2005 Return-Path: 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 782D716A4CE for ; Tue, 11 Jan 2005 12:05:10 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-26-34.dclient.hispeed.ch [84.72.26.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBBB343D55 for ; Tue, 11 Jan 2005 12:05:08 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:1a22:0:2c0:49ff:fef2:85dc]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j0BC545v015906NO) for ; Tue, 11 Jan 2005 13:05:07 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j0BC53T2015903; Tue, 11 Jan 2005 13:05:03 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Tue, 11 Jan 2005 13:05:03 +0100 (CET) Message-Id: <200501111205.j0BC53T2015903@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: freebsd-usb@freebsd.org Mail-Followup-To: freebsd-usb@freebsd.org References: <200501101103.j0AB3ENh095604@freefall.freebsd.org> <41E32B44.90807@elischer.org> Subject: Re: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 12:05:10 -0000 On Mon, 10 Jan 2005 17:26:28 -0800, Julian Elischer wrote: > >Serious problems > >f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt > >o [2005/01/08] usb/75941 usb system halted during booting due to ehci > >37 problems total. > down from 51 last I have record of. Probably some are so out-of-date that they've been solved unnoticed... (Gotta check if I have a recently-introduced panic when disconnecting a USB mouse dongle, with my nonstandard codes, though I hate to crash a running system; apart from that, I'm running mostly stable with 4.x, with the exception that combining USB ethernet and consoles appears to cause a total freeze eventually with redrawing the screen -- also a problem with network over serial-port PPP) > >Non-critical problems > >45 problems total. > up by one.. > dammit. > still lots to work on, however, thre are some low hanging fruit still. Let me see if I can help, without really participating in the PRs: | a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot I have such a device, and the only problem I've had (4.x) is minor, for which I added the NO_GETMAXLUN quirk. I use it all the time. | o [2005/01/08] usb/75941 usb system halted during booting due to ehci Could this be the thing described some time back, where I needed to change usb.c in 4.x in order to avoid a panic? /* XXX HACK disable to see if ehci re-attach panic doesn't happen, as well as still allowing USB2 hubs to attach to non-ehci ... */ #if 1 /* * Turning this code off will delay attachment of USB devices * until the USB event thread is running, which means that * the keyboard will not work until after cold boot. */ (I don't use EHCI due to eventual problems with it after some time; I need the stability, as of a few months ago) | f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 Could this be the same thing? I have two WD disks, and they work, though there is a difference in reported size from USB and Firewire... (add that to my list of USB problems) | o [2003/12/15] kern/60276 usb [usb] Kernel panic when plugging in USB ( | f [2004/01/23] kern/61804 usb [panic] panic with hitachi travelstar USB | o [2004/01/30] kern/62123 usb [usb] LaCie 160GB USB drive umass: BBB re These all seem to be describing the same thing. Admittedly, I haven't seen it, but I'd only tried two chipsets (and have only one at hand now). | o [2004/09/11] kern/71605 usb [usb] [patch] umass doesn't recognize mul This is a 4.x problem; my 4.x umass.c hacks don't have this problem, but the patch in this PR is not in my hacked umass.c ... My umass.c is based on -current, which also does not have this problem. barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 14:07:59 2005 Return-Path: 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 B32D516A4CE for ; Tue, 11 Jan 2005 14:07:59 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-26-34.dclient.hispeed.ch [84.72.26.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2043C43D2D for ; Tue, 11 Jan 2005 14:07:58 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [IPv6:2002:5448:1a22:0:2c0:49ff:fef2:85dc]) (8.13.2/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id j0BE7mXf063021NO) for ; Tue, 11 Jan 2005 15:07:55 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.13.2/FNORD) id j0BE7kqd063020; Tue, 11 Jan 2005 15:07:47 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Tue, 11 Jan 2005 15:07:47 +0100 (CET) Message-Id: <200501111407.j0BE7kqd063020@Mail.NOSPAM.DynDNS.dK> X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: beer set sender to bounce@NOSPAM.dyndns.dk using -f X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed from queue /tmp X-Authentication-Warning: localhost.newsbastards.org.72.27.172.IN-addr.A: Processed by beer with -C /etc/mail/sendmail.cf-LOCAL From: Barry Bouwsma To: freebsd-usb@freebsd.org Mail-Followup-To: freebsd-usb@freebsd.org References: <20050107064748.GE18554@squash.dsto.defence.gov.au> <41DE4E52.2040301@elischer.org> <20050111000956.GB32601@squash.dsto.defence.gov.au> <20050111013925.GD32601@squash.dsto.defence.gov.au> <200501111116.j0BBGOOx008367@Mail.NOSPAM.DynDNS.dK> <20050111112337.GA35255@squash.dsto.defence.gov.au> Subject: Re: [USB] JetFlash TS1GJF2B 2.00 Attempt to query devicesizefailed: UNIT ATTENTION X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barry Bouwsma List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 14:07:59 -0000 On Tue, 11 Jan 2005 21:53:40 +1030, "Wilkinson, Alex" wrote: > >This is an unscientific trial-and-error thing, but if it's gotten me > >results, it can't be all bad, given that I have no clue what I'm doing, > >no? (Three of my devices have gotten quirks this way) > Okay, well then where do I find out how to add a quirk that skips the > 'READ CAPACITY' command ? Use the existing quirk entries in umass.c as a reference. Simply copy one of them, change the product to match your device, and adjust to fit. Here's an example of what I've added to add a new quirks entry for an external drive, that speeds up boots by not waiting until one particular command fails: /* XXX HACK */ { USB_VENDOR_MAXTOR, USB_PRODUCT_MAXTOR_5000, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_GETMAXLUN }, If your product and vendor IDs are already in usbdevs(*.h), then it's a matter of tweaking the quirks (NO_GETMAXLUN in the above example); alternatively your protocol could be wrong, in which case you might see results by tweaking the PROTO strings given. Look at the other products in this area for a feel of how it's done. If your product isn't in usbdevs, then you can either add it to your usbdevs and regenerate the .h files if needed, and submit your addition up to the developers if it's necessary for your quirk, or more quickly, you can use the ID values directly, values that you see either in dmesg or via usbdevs or another usb utility. For exmaple, without the vendor/product IDs in usbdevs, I'd need to use a line like { 0x0d49, 0x5000, RID_WILDCARD, and then later, after figuring out which quirks work, adding a suitable description to usbdevs. Then go through the various quirks, or cut'n'paste those from other similar-sounding devices, and for speed, build a module of umass.ko for each change you make, try it out, and see if there's any difference. Julian quoted from cam/scsi quirks, I'm not sure if you would need to go that far, as there are already some quirks in sys/dev/usb/umass.c which I've used. Though in one case, I'd still see a warning thrown up by CAM that probably could be ignored or quieted within CAM, where the USB layer returned the error to CAM rather than letting the device return the error (and then throw up further errors). I hope this is what you're asking. Unfortunately, you'll need to contact a wizard to learn which quirks affect what errors. barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Tue Jan 11 19:46:18 2005 Return-Path: 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 654A616A4CE for ; Tue, 11 Jan 2005 19:46:18 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31E6143D39 for ; Tue, 11 Jan 2005 19:46:18 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id C0E1C7A403; Tue, 11 Jan 2005 11:46:16 -0800 (PST) Message-ID: <41E42D08.90407@elischer.org> Date: Tue, 11 Jan 2005 11:46:16 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Barry Bouwsma References: <200501101103.j0AB3ENh095604@freefall.freebsd.org> <41E32B44.90807@elischer.org> <200501111205.j0BC53T2015903@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200501111205.j0BC53T2015903@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 19:46:18 -0000 Barry Bouwsma wrote: >On Mon, 10 Jan 2005 17:26:28 -0800, Julian Elischer wrote: > > > >>>Serious problems >>>f [2001/12/12] kern/32713 usb [usb] mouse detaches from hub and doesnt >>>o [2005/01/08] usb/75941 usb system halted during booting due to ehci >>>37 problems total. >>> >>> > > > >>down from 51 last I have record of. >> >> > >Probably some are so out-of-date that they've been solved unnoticed... > yes, most of those I've closed have been like that.. >Let me see if I can help, without really participating in the PRs: > heh > >| a [2003/03/02] kern/48849 usb Maxtor XT5000 causes panic in boot > >I have such a device, and the only problem I've had (4.x) is minor, >for which I added the NO_GETMAXLUN quirk. I use it all the time. > got a patch? I'll add it and close the PR. >| o [2005/01/08] usb/75941 usb system halted during booting due to ehci > >Could this be the thing described some time back, where I needed to change >usb.c in 4.x in order to avoid a panic? > >/* XXX HACK disable to see if ehci re-attach panic doesn't happen, as > well as still allowing USB2 hubs to attach to non-ehci ... */ >#if 1 > /* > * Turning this code off will delay attachment of USB devices > * until the USB event thread is running, which means that > * the keyboard will not work until after cold boot. > */ > > this is a new PR and I have not looked at it yet.. >(I don't use EHCI due to eventual problems with it after some time; I need >the stability, as of a few months ago) > ehci is improving.. transacions can now time out without crashing the system.. > > >| f [2004/10/11] i386/72497 usb WD USB Disk Panics -stable and 5.2.1 > >Could this be the same thing? I have two WD disks, and they work, though >there is a difference in reported size from USB and Firewire... (add that >to my list of USB problems) > the question is: Which returns the wrong number, USB or SBP? > > > From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 02:00:55 2005 Return-Path: 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 584EE16A4CE; Wed, 12 Jan 2005 02:00:55 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 228D243D5D; Wed, 12 Jan 2005 02:00:55 +0000 (GMT) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0C20te9023147; Wed, 12 Jan 2005 02:00:55 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0C20sig023143; Wed, 12 Jan 2005 02:00:54 GMT (envelope-from linimon) Date: Wed, 12 Jan 2005 02:00:54 GMT From: Mark Linimon Message-Id: <200501120200.j0C20sig023143@freefall.freebsd.org> To: kaa@in-line.FreeBSD.ORG, linimon@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/60276: [usb] Kernel panic when plugging in USB (umass) device (XClef-HD500) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 02:00:55 -0000 Synopsis: [usb] Kernel panic when plugging in USB (umass) device (XClef-HD500) State-Changed-From-To: open->suspended State-Changed-By: linimon State-Changed-When: Wed Jan 12 01:58:43 GMT 2005 State-Changed-Why: Include text from original submitter noting that he no longer uses FreeBSD. Since there is a patch submitted to allegedly fix the problem, leave this PR open but suspended in case someone else is in a position to investigate. http://www.freebsd.org/cgi/query-pr.cgi?pr=60276 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 15:40:47 2005 Return-Path: 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 ED27416A4CE for ; Wed, 12 Jan 2005 15:40:47 +0000 (GMT) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id A882E43D39 for ; Wed, 12 Jan 2005 15:40:47 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay02.plus.net with esmtp (Exim) id 1Cokby-000OY1-HP for freebsd-usb@freebsd.org; Wed, 12 Jan 2005 15:40:42 +0000 Message-ID: <41E54591.70109@freebsd.org> Date: Wed, 12 Jan 2005 15:43:13 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 15:40:48 -0000 Canon Powershot A70 FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 1 18:37:13 GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 This camera used to work just fine in digikam but now doesn't (can't say exactly when it stopped though). Keep getting "Can't connect to camera" error when trying to open the camera although digikam does auto-detect it. Googling threw up some info at http://gphoto.org/doc/manual/permissions-usb.html about allowing USB devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x near the bottom of the page) which says to add the following to /etc/rc.local: /sbin/devfs ruleset 10 /sbin/devfs rule applyset /sbin/devfs rule add path ugen1* mode 666 /sbin/devfs rule show I've done that, but now instead of "Can't connect to camera" the computer locks up and after about 10 seconds reboots - all the filesystems are reported as not being properly dismounted on reboot. Nothing is written to any logs (obviously) so I can't provide any info. BTW, this problem also happens when trying to connect to the camera in Konqueror using camera:/ both as root and non-root users. I imagine it would also occur in digikam as root but for some reason the OK button is disabled in the configure dialogue when running as root so I can't save the camera in order to connect to it. I don't know if this is related, but I see this error 8 times when booting: ACPI-0252: *** Error: No object was returned from [\\_SB_.PCI0.UAR2._STA] (Node 0xc22e14a0), AE_NOT_EXIST Can anyone shed any light on this please? Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 19:56:50 2005 Return-Path: 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 9C03D16A4CE; Wed, 12 Jan 2005 19:56:50 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AC3F43D2D; Wed, 12 Jan 2005 19:56:50 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 4C22C7A403; Wed, 12 Jan 2005 11:56:50 -0800 (PST) Message-ID: <41E58102.8010603@elischer.org> Date: Wed, 12 Jan 2005 11:56:50 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mark Ovens References: <41E54591.70109@freebsd.org> In-Reply-To: <41E54591.70109@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 19:56:50 -0000 Mark Ovens wrote: > Canon Powershot A70 > > FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 1 18:37:13 > GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 > > ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 > > This camera used to work just fine in digikam but now doesn't (can't > say exactly when it stopped though). Keep getting "Can't connect to > camera" error when trying to open the camera although digikam does > auto-detect it. > > Googling threw up some info at > http://gphoto.org/doc/manual/permissions-usb.html about allowing USB > devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x > near the bottom of the page) which says to add the following to > /etc/rc.local: > > /sbin/devfs ruleset 10 > /sbin/devfs rule applyset > /sbin/devfs rule add path ugen1* mode 666 > /sbin/devfs rule show > > I've done that, but now instead of "Can't connect to camera" the > computer locks up and after about 10 seconds reboots - all the > filesystems are reported as not being properly dismounted on reboot. > Nothing is written to any logs (obviously) so I can't provide any info. you probably need to run with ddb, kdb and a serial console, or at least from the console, outside of X11 so you can see the error messages. The system will not go int ddb if the console is being controlled by X11. From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 20:37:44 2005 Return-Path: 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 8EE1416A4CE for ; Wed, 12 Jan 2005 20:37:44 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 241B643D53 for ; Wed, 12 Jan 2005 20:37:44 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay01.plus.net with esmtp (Exim) id 1CopFO-0000en-Ud; Wed, 12 Jan 2005 20:37:43 +0000 Message-ID: <41E58B2D.2040505@freebsd.org> Date: Wed, 12 Jan 2005 20:40:13 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> In-Reply-To: <41E58102.8010603@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 20:37:44 -0000 Julian Elischer wrote: > > Mark Ovens wrote: > >> Canon Powershot A70 >> >> FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 1 18:37:13 >> GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 >> >> ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 >> >> This camera used to work just fine in digikam but now doesn't (can't >> say exactly when it stopped though). Keep getting "Can't connect to >> camera" error when trying to open the camera although digikam does >> auto-detect it. >> >> Googling threw up some info at >> http://gphoto.org/doc/manual/permissions-usb.html about allowing USB >> devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x >> near the bottom of the page) which says to add the following to >> /etc/rc.local: >> >> /sbin/devfs ruleset 10 >> /sbin/devfs rule applyset >> /sbin/devfs rule add path ugen1* mode 666 >> /sbin/devfs rule show >> >> I've done that, but now instead of "Can't connect to camera" the >> computer locks up and after about 10 seconds reboots - all the >> filesystems are reported as not being properly dismounted on reboot. >> Nothing is written to any logs (obviously) so I can't provide any info. > > > you probably need to run with ddb, kdb and a serial console, or at least > from the console, outside of > X11 so you can see the error messages. The system will not go int ddb if > the console is being controlled by X11. > I guess I can't do that then as I don't have serial console and can only force the crash from within X - and there's no time to switch back to the console before it hangs. Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 22:49:31 2005 Return-Path: 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 E0B0316A4CE; Wed, 12 Jan 2005 22:49:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC48E43D46; Wed, 12 Jan 2005 22:49:31 +0000 (GMT) (envelope-from emax@FreeBSD.org) Received: from freefall.freebsd.org (emax@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0CMnVo9023631; Wed, 12 Jan 2005 22:49:31 GMT (envelope-from emax@freefall.freebsd.org) Received: (from emax@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0CMnVt4023627; Wed, 12 Jan 2005 22:49:31 GMT (envelope-from emax) Date: Wed, 12 Jan 2005 22:49:31 GMT From: Maksim Yevmenkin Message-Id: <200501122249.j0CMnVt4023627@freefall.freebsd.org> To: sthommerel@osiatis.com, emax@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 22:49:32 -0000 Synopsis: [kbd] Losing keyboard after plugging a bluetooth usb dongle State-Changed-From-To: open->closed State-Changed-By: emax State-Changed-When: Wed Jan 12 22:40:29 GMT 2005 State-Changed-Why: This is NOT USB problem NOR its Bluetooth problem. Few USB Bluetooth dongles have this feature to allow use of Bluetooth keyboard and mouse on non-Bluetooth enabled systems. Hardware MUST pretend that there is USB keyboard, because actual Bluetooth keyboard (or mouse) could be powered off or it could be out of range. It just easier to pretend that keyboard is connected but it just does not send any data. This is just like KVM switch - it pretends that PS/2 keyboard and mouse are plugged in, even if actual keyboard/mouse input is redirected to another port on KVM switch. This is just another example why we need keyboard mux driver. http://www.freebsd.org/cgi/query-pr.cgi?pr=71887 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 23:06:17 2005 Return-Path: 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 BD00516A4CE; Wed, 12 Jan 2005 23:06:17 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DCBC43D1D; Wed, 12 Jan 2005 23:06:17 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j0CN9EMG030801; Wed, 12 Jan 2005 15:09:14 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j0CN9EEc030799; Wed, 12 Jan 2005 15:09:14 -0800 Date: Wed, 12 Jan 2005 15:09:14 -0800 From: Brooks Davis To: freebsd-gnats-submit@freebsd.org Message-ID: <20050112230914.GB29795@odin.ac.hmc.edu> References: <200501122249.j0CMnVt4023627@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <200501122249.j0CMnVt4023627@freefall.freebsd.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: Maksim Yevmenkin cc: sthommerel@osiatis.com cc: freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 23:06:17 -0000 The fact that: > Removing the USB dongle at this point causes a kernel panic. is presumably either a USB or bluetooth problem (I'd bet on USB). It would be nice to know if that still happens. Hopefully it was fixed in all the recent USB fixes. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 23:10:33 2005 Return-Path: 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 794C016A4CF for ; Wed, 12 Jan 2005 23:10:33 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 651D843D1D for ; Wed, 12 Jan 2005 23:10:33 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0CNAXhF028484 for ; Wed, 12 Jan 2005 23:10:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0CNAXxu028479; Wed, 12 Jan 2005 23:10:33 GMT (envelope-from gnats) Date: Wed, 12 Jan 2005 23:10:33 GMT Message-Id: <200501122310.j0CNAXxu028479@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Brooks Davis Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Brooks Davis List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 23:10:33 -0000 The following reply was made to PR kern/71887; it has been noted by GNATS. From: Brooks Davis To: freebsd-gnats-submit@freebsd.org Cc: Maksim Yevmenkin , sthommerel@osiatis.com, freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle Date: Wed, 12 Jan 2005 15:09:14 -0800 The fact that: > Removing the USB dongle at this point causes a kernel panic. is presumably either a USB or bluetooth problem (I'd bet on USB). It would be nice to know if that still happens. Hopefully it was fixed in all the recent USB fixes. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 12 23:59:36 2005 Return-Path: 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 A82F116A4CE for ; Wed, 12 Jan 2005 23:59:36 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B28243D39 for ; Wed, 12 Jan 2005 23:59:36 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so178119rne for ; Wed, 12 Jan 2005 15:59:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=S0j1GNkGd1lms9aS8zw0U6BRxpvQuFGb3Lb4KUH6Po4hAAqTuhHXGSTEI+SO3AzvxaHKoriNMKnM4srEyVqRNMu/YRzVlqFSMQc/7BjYiAsA3L1dgGLEF2J989jAFoORjPVwJ/iP7qnuHLA/NRMTZe5U7METBfVB6oNwgBrYaXE= Received: by 10.38.171.5 with SMTP id t5mr194229rne; Wed, 12 Jan 2005 15:59:34 -0800 (PST) Received: by 10.38.208.75 with HTTP; Wed, 12 Jan 2005 15:59:34 -0800 (PST) Message-ID: Date: Wed, 12 Jan 2005 15:59:34 -0800 From: Maksim Yevmenkin To: Brooks Davis In-Reply-To: <20050112230914.GB29795@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200501122249.j0CMnVt4023627@freefall.freebsd.org> <20050112230914.GB29795@odin.ac.hmc.edu> cc: freebsd-gnats-submit@freebsd.org cc: Maksim Yevmenkin cc: sthommerel@osiatis.com cc: freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maksim Yevmenkin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 23:59:36 -0000 Brooks, > The fact that: > > > Removing the USB dongle at this point causes a kernel panic. > > is presumably either a USB or bluetooth problem (I'd bet on USB). It i would think this is a usb related problem. i doubt it is a bluetooth problem because none of the bluetooth related modules were involved. > would be nice to know if that still happens. Hopefully it was fixed in > all the recent USB fixes. indeed. the system should not crash when usb device is unplugged. thanks, max From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 00:00:54 2005 Return-Path: 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 13D6416A4CE for ; Thu, 13 Jan 2005 00:00:54 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEDA643D48 for ; Thu, 13 Jan 2005 00:00:53 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0D00rqS032836 for ; Thu, 13 Jan 2005 00:00:53 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0D00rrR032835; Thu, 13 Jan 2005 00:00:53 GMT (envelope-from gnats) Date: Thu, 13 Jan 2005 00:00:53 GMT Message-Id: <200501130000.j0D00rrR032835@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Maksim Yevmenkin Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maksim Yevmenkin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 00:00:54 -0000 The following reply was made to PR kern/71887; it has been noted by GNATS. From: Maksim Yevmenkin To: Brooks Davis Cc: freebsd-gnats-submit@freebsd.org, Maksim Yevmenkin , sthommerel@osiatis.com, freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle Date: Wed, 12 Jan 2005 15:59:34 -0800 Brooks, > The fact that: > > > Removing the USB dongle at this point causes a kernel panic. > > is presumably either a USB or bluetooth problem (I'd bet on USB). It i would think this is a usb related problem. i doubt it is a bluetooth problem because none of the bluetooth related modules were involved. > would be nice to know if that still happens. Hopefully it was fixed in > all the recent USB fixes. indeed. the system should not crash when usb device is unplugged. thanks, max From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 00:55:20 2005 Return-Path: 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 2274616A4CE; Thu, 13 Jan 2005 00:55:20 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 085B843D2D; Thu, 13 Jan 2005 00:55:20 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 07CBA7A403; Wed, 12 Jan 2005 16:55:20 -0800 (PST) Message-ID: <41E5C6F7.2070807@elischer.org> Date: Wed, 12 Jan 2005 16:55:19 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mark Ovens References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E58B2D.2040505@freebsd.org> In-Reply-To: <41E58B2D.2040505@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 00:55:20 -0000 Mark Ovens wrote: >> >> >> you probably need to run with ddb, kdb and a serial console, or at >> least from the console, outside of >> X11 so you can see the error messages. The system will not go int ddb >> if the console is being controlled by X11. >> > > I guess I can't do that then as I don't have serial console and can > only force the crash from within X - and there's no time to switch > back to the console before it hangs. can you run the program with $DISPLAY set to another machine? > > > Regards, > > Mark From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 00:57:22 2005 Return-Path: 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 3331216A4CE; Thu, 13 Jan 2005 00:57:22 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1480443D49; Thu, 13 Jan 2005 00:57:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 078A37A403; Wed, 12 Jan 2005 16:57:22 -0800 (PST) Message-ID: <41E5C771.50405@elischer.org> Date: Wed, 12 Jan 2005 16:57:21 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Maksim Yevmenkin References: <200501122249.j0CMnVt4023627@freefall.freebsd.org> <20050112230914.GB29795@odin.ac.hmc.edu> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-gnats-submit@freebsd.org cc: Maksim Yevmenkin cc: sthommerel@osiatis.com cc: freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 00:57:22 -0000 Maksim Yevmenkin wrote: >Brooks, > > > >>would be nice to know if that still happens. Hopefully it was fixed in >>all the recent USB fixes. >> >> > >indeed. the system should not crash when usb device is unplugged. > it doesn't crash when I remove miine.... > > > From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 01:00:36 2005 Return-Path: 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 B03CB16A4CE for ; Thu, 13 Jan 2005 01:00:36 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BF3B43D1D for ; Thu, 13 Jan 2005 01:00:36 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0D10aIS039661 for ; Thu, 13 Jan 2005 01:00:36 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0D10aLO039660; Thu, 13 Jan 2005 01:00:36 GMT (envelope-from gnats) Date: Thu, 13 Jan 2005 01:00:36 GMT Message-Id: <200501130100.j0D10aLO039660@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Julian Elischer Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Julian Elischer List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 01:00:36 -0000 The following reply was made to PR kern/71887; it has been noted by GNATS. From: Julian Elischer To: Maksim Yevmenkin Cc: Brooks Davis , freebsd-gnats-submit@freebsd.org, Maksim Yevmenkin , sthommerel@osiatis.com, freebsd-usb@freebsd.org Subject: Re: kern/71887: [kbd] Losing keyboard after plugging a bluetooth usb dongle Date: Wed, 12 Jan 2005 16:57:21 -0800 Maksim Yevmenkin wrote: >Brooks, > > > >>would be nice to know if that still happens. Hopefully it was fixed in >>all the recent USB fixes. >> >> > >indeed. the system should not crash when usb device is unplugged. > it doesn't crash when I remove miine.... > > > From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 06:43:18 2005 Return-Path: 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 A77D016A4CE for ; Thu, 13 Jan 2005 06:43:18 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B75B43D41 for ; Thu, 13 Jan 2005 06:43:16 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.13.1/8.12.11) with ESMTP id j0D6hFwu001300 for ; Wed, 12 Jan 2005 22:43:15 -0800 (PST) (envelope-from sandy@szamoca.krvarr.bc.ca) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.13.1/8.12.11/Submit) id j0D6hFT9001297; Wed, 12 Jan 2005 22:43:15 -0800 (PST) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> Date: Wed, 12 Jan 2005 22:43:15 -0800 To: freebsd-usb@freebsd.org X-Mailer: VM 7.07 under Emacs 21.3.1 Subject: ulpt hangs on offline status X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 06:43:18 -0000 I have an Entrega USB->Centronics adapter attached to an HP Laserjet III. When the printer (printer name is lp) runs out of paper, I get the usual "waiting for lp to become ready (offline?)" message from lpq. However, when I refill the printer and bring it back online, ultp, seems not to notice. It stays stuck in this state. With a direct parallel connection, the status is updated and the printer queue starts moving again. I have found that the only way to get ultp to update the status is to disconnect and reconnect the USB cable, forcing a detach/attach event. This is with FreeBSD 4.10 / i386. 1. Has anybody else seen this behaviour? 2. Is it a driver bug or a problem with the Entrega adapter? The specs of my adapter and USB controller are below. 3. Does anybody know of a patch to ultp.c to fix this problem? 4. Any ideas for a (software) workaround, such as a way to force a soft detach/attach? [root@szamoca:14] usbdevs -v -d Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub0 port 1 powered port 2 addr 2: full speed, power 98 mA, config 1, Centronics connector(0x0006), Entrega(0x1645), rev 1.00 ulpt0 I am willing to muck around with the driver to try to fix this myself, but it would be useful to know if anybody else has seen or worked on this problem. Thanks, Sandy From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 08:43:37 2005 Return-Path: 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 305BD16A4CE for ; Thu, 13 Jan 2005 08:43:37 +0000 (GMT) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA26643D2F for ; Thu, 13 Jan 2005 08:43:36 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay02.plus.net with esmtp (Exim) id 1Cp0Zq-000DcF-8K; Thu, 13 Jan 2005 08:43:34 +0000 Message-ID: <41E6354C.5010404@freebsd.org> Date: Thu, 13 Jan 2005 08:46:04 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E58B2D.2040505@freebsd.org> <41E5C6F7.2070807@elischer.org> In-Reply-To: <41E5C6F7.2070807@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 08:43:37 -0000 Julian Elischer wrote: > > Mark Ovens wrote: > >>> >>> >>> you probably need to run with ddb, kdb and a serial console, or at >>> least from the console, outside of >>> X11 so you can see the error messages. The system will not go int ddb >>> if the console is being controlled by X11. >>> >> >> I guess I can't do that then as I don't have serial console and can >> only force the crash from within X - and there's no time to switch >> back to the console before it hangs. > > > can you run the program with $DISPLAY set to another machine? > Someone mailed me off-list with that suggestion. I've got another machine that can just about manage to run X so I'll try it; got to rebuild the world first to make sure the kernel and userland are in synch as I've cvsup'd my tree since my last build. What, in particular should I be looking for when it crashes? Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 11:00:18 2005 Return-Path: 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 1CF1216A4CE for ; Thu, 13 Jan 2005 11:00:18 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB6BC43D4C for ; Thu, 13 Jan 2005 11:00:17 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay01.plus.net with esmtp (Exim) id 1Cp2i6-000KQA-RT; Thu, 13 Jan 2005 11:00:14 +0000 Message-ID: <41E65559.6030300@freebsd.org> Date: Thu, 13 Jan 2005 11:02:49 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> In-Reply-To: <41E58102.8010603@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 11:00:18 -0000 Julian Elischer wrote: > > Mark Ovens wrote: > >> Canon Powershot A70 >> >> FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Sat Jan 1 18:37:13 >> GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 >> >> ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 >> >> This camera used to work just fine in digikam but now doesn't (can't >> say exactly when it stopped though). Keep getting "Can't connect to >> camera" error when trying to open the camera although digikam does >> auto-detect it. >> >> Googling threw up some info at >> http://gphoto.org/doc/manual/permissions-usb.html about allowing USB >> devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x >> near the bottom of the page) which says to add the following to >> /etc/rc.local: >> >> /sbin/devfs ruleset 10 >> /sbin/devfs rule applyset >> /sbin/devfs rule add path ugen1* mode 666 >> /sbin/devfs rule show >> >> I've done that, but now instead of "Can't connect to camera" the >> computer locks up and after about 10 seconds reboots - all the >> filesystems are reported as not being properly dismounted on reboot. >> Nothing is written to any logs (obviously) so I can't provide any info. > > > you probably need to run with ddb, kdb and a serial console, or at least > from the console, outside of > X11 so you can see the error messages. The system will not go int ddb if > the console is being controlled by X11. > Here's the ouput when it panics: WARNING: Driver mistake: destroy_dev on 0/0 panic: don't do that cpuid = 0 KDB: stack backtrace: kdb_backtrace(c076d635,0,c0757f6f,e9b559e0,5) at kdb_backtrace+0x2e panic(c0757f6f,0,0,1,c2bac000) at panic+0x128 idestroy_dev(c07b7b50,e9b55a10,c04ff092,c07b7b50,3) at idestroy_dev+0x42 destroy_dev(c07b7b50,3,0,e9b55a50,c04ff2cc) at destroy_dev+0x16 ugen_destroy_devnodes(c2bac000,2,2,1,c23db830) at ugen_destroy_devnodes+0x52 ugen_set_config(c2bac000,1,180,c3000640,c301c108) at ugen_set_config+0x22c ugen_do_ioctl(c2bac000,0,80045565,e9b55c54,3,c3000640) at ugen_do_ioctl+0x253 ugenioctl(c07b7c38,80045565,e9b55c54,3,c3000640) at ugenioctl+0x5f spec_ioctl(e9b55b7c,e9b55c28,c05e23c5,e9b55b7c,e0e8c330) at spec_ioctl+0x16e spec_vnoperate(e9b55b7c,e0e8c330,c2f15dd0,10,bfca6ff8) at spec_vnoperate+0x18 vn_ioctl(c2f15dd0,80045565,e9b55c54,c2b41b80,c3000640) at vn_ioctl+0x195 ioctl(c3000640,e9b55d14,c,c3000640,c27a1bb8) at ioctl+0x6a8 syscall(2f,2f,2f,8369200) at syscall+0x300 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x298f19cf, esp = 0xbfaeb394, ebp = oxbfaeb3c0 --- KDB: enter: panic [thread pid 678 tid 100184 ] Stopped at kbd_enter+0x30: leave db> Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 15:00:49 2005 Return-Path: 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 7DC3D16A4CE for ; Thu, 13 Jan 2005 15:00:49 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5167743D2F for ; Thu, 13 Jan 2005 15:00:49 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0DF0nGX077361 for ; Thu, 13 Jan 2005 15:00:49 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0DF0ncq077360; Thu, 13 Jan 2005 15:00:49 GMT (envelope-from gnats) Resent-Date: Thu, 13 Jan 2005 15:00:49 GMT Resent-Message-Id: <200501131500.j0DF0ncq077360@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, Mira Chlastak Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C849416A4CE for ; Thu, 13 Jan 2005 14:57:18 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B51243D2F for ; Thu, 13 Jan 2005 14:57:18 +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 j0DEvITC086894 for ; Thu, 13 Jan 2005 14:57:18 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0DEvHAo086893; Thu, 13 Jan 2005 14:57:17 GMT (envelope-from nobody) Message-Id: <200501131457.j0DEvHAo086893@www.freebsd.org> Date: Thu, 13 Jan 2005 14:57:17 GMT From: Mira Chlastak To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/76204: panic while using usb attached modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 15:00:49 -0000 >Number: 76204 >Category: usb >Synopsis: panic while using usb attached modem >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 13 15:00:48 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mira Chlastak >Release: 5.3 stable >Organization: >Environment: FreeBSD cdmarouter.internet.free 5.3-STABLE FreeBSD 5.3-STABLE #3: Thu Jan 13 00:47:29 CET 2005 root@cdmarouter.internet.free:/usr/obj/usr/src/sys/CDMAROUTER i386 >Description: I have a big problem with usb modem GTRAN CDMA evdo 1x on FreeBSD 5.3-STABLE/5.3-RELEASE (updated 10. Jan 2005). I use userland ppp to dial cdma connection and modem is connected to USB 1.1. When I download data from Internet via this connection, so kernel often (several times every day) generate core dump. It's usually when my connection work at high pressure. 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 addr 2: full speed, power 100 mA, config 1, Qualcomm CDMA Technologies MSM(0x3196), Qualcomm, Incorporated(0x05c6), rev 0.00 kgdb kernel.debug /var/crash/vmcore.0: [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". doadump () at pcpu.h:159 (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc04f7dc3 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410 #2 0xc04f8146 in panic ( fmt=0xc065e63b "uhci_abort_xfer: not in process context") at /usr/src/sys/kern/kern_shutdown.c:566 #3 0xc049d9ca in uhci_abort_xfer (xfer=0xc11d7c00, status=USBD_NORMAL_COMPLETION) at /usr/src/sys/dev/usb/uhci.c:1956 #4 0xc049d129 in uhci_timeout_task (addr=0x0) at /usr/src/sys/dev/usb/uhci.c:1534 #5 0xc04a4c9c in usb_task_thread (arg=0x0) at /usr/src/sys/dev/usb/usb.c:464 #6 0xc04dd0ff in fork_exit (callout=0xc04a4bd0 , arg=0x0, frame=0x0) at /usr/src/sys/kern/kern_fork.c:807 #7 0xc062980c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209 >How-To-Repeat: I will provide any necessary info if desired. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 20:05:23 2005 Return-Path: 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 BF29B16A4CE for ; Thu, 13 Jan 2005 20:05:23 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C1A343D49 for ; Thu, 13 Jan 2005 20:05:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 789C17A403; Thu, 13 Jan 2005 12:05:23 -0800 (PST) Message-ID: <41E6D483.8050005@elischer.org> Date: Thu, 13 Jan 2005 12:05:23 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Sandy Rutherford References: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> In-Reply-To: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: ulpt hangs on offline status X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 20:05:23 -0000 Sandy Rutherford wrote: >I have an Entrega USB->Centronics adapter attached to an HP Laserjet >III. When the printer (printer name is lp) runs out of paper, I get >the usual > > "waiting for lp to become ready (offline?)" > >message from lpq. However, when I refill the printer and bring it >back online, ultp, seems not to notice. It stays stuck in this state. >With a direct parallel connection, the status is updated and the >printer queue starts moving again. > >I have found that the only way to get ultp to update the status is to >disconnect and reconnect the USB cable, forcing a detach/attach >event. > >This is with FreeBSD 4.10 / i386. > >1. Has anybody else seen this behaviour? > >2. Is it a driver bug or a problem with the Entrega adapter? The > specs of my adapter and USB controller are below. > >3. Does anybody know of a patch to ultp.c to fix this problem? > >4. Any ideas for a (software) workaround, such as a way to force a soft > detach/attach? > You might close and reopen the device. I have had no problems with my USB HP deskjet. > >[root@szamoca:14] usbdevs -v -d >Controller /dev/usb0: >addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 > uhub0 > port 1 powered > port 2 addr 2: full speed, power 98 mA, config 1, Centronics connector(0x0006), Entrega(0x1645), rev 1.00 > ulpt0 > >I am willing to muck around with the driver to try to fix this myself, >but it would be useful to know if anybody else has seen or worked on >this problem. > not yet but I'm willing to believe that you may need to poll the device to see the change in status. That would be handled in the "interrupt" type transfers.. We do not support them very well yet. > >Thanks, >Sandy >_______________________________________________ >freebsd-usb@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-usb >To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > > From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 20:31:23 2005 Return-Path: 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 6BD7A16A4CE; Thu, 13 Jan 2005 20:31:23 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B93F43D2D; Thu, 13 Jan 2005 20:31:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 2BCF97A403; Thu, 13 Jan 2005 12:31:23 -0800 (PST) Message-ID: <41E6DA9A.2070207@elischer.org> Date: Thu, 13 Jan 2005 12:31:22 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mark Ovens References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E65559.6030300@freebsd.org> In-Reply-To: <41E65559.6030300@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 20:31:23 -0000 I MFC'd a relevent fix on Dec 31. Yuo may have just messed it (depending on when you got your sources) what revision is your ugen.c? you want 1.88.2.2 Mark Ovens wrote: >> > > Here's the ouput when it panics: > > WARNING: Driver mistake: destroy_dev on 0/0 > panic: don't do that > cpuid = 0 > KDB: stack backtrace: > kdb_backtrace(c076d635,0,c0757f6f,e9b559e0,5) at kdb_backtrace+0x2e > panic(c0757f6f,0,0,1,c2bac000) at panic+0x128 > idestroy_dev(c07b7b50,e9b55a10,c04ff092,c07b7b50,3) at idestroy_dev+0x42 > destroy_dev(c07b7b50,3,0,e9b55a50,c04ff2cc) at destroy_dev+0x16 > ugen_destroy_devnodes(c2bac000,2,2,1,c23db830) at > ugen_destroy_devnodes+0x52 > ugen_set_config(c2bac000,1,180,c3000640,c301c108) at > ugen_set_config+0x22c > ugen_do_ioctl(c2bac000,0,80045565,e9b55c54,3,c3000640) at > ugen_do_ioctl+0x253 > ugenioctl(c07b7c38,80045565,e9b55c54,3,c3000640) at ugenioctl+0x5f > spec_ioctl(e9b55b7c,e9b55c28,c05e23c5,e9b55b7c,e0e8c330) at > spec_ioctl+0x16e > spec_vnoperate(e9b55b7c,e0e8c330,c2f15dd0,10,bfca6ff8) at > spec_vnoperate+0x18 > vn_ioctl(c2f15dd0,80045565,e9b55c54,c2b41b80,c3000640) at vn_ioctl+0x195 > ioctl(c3000640,e9b55d14,c,c3000640,c27a1bb8) at ioctl+0x6a8 > syscall(2f,2f,2f,8369200) at syscall+0x300 > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x298f19cf, esp = > 0xbfaeb394, ebp = oxbfaeb3c0 --- > KDB: enter: panic > [thread pid 678 tid 100184 ] > Stopped at kbd_enter+0x30: leave > db> > > > Regards, > > Mark > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Thu Jan 13 21:31:16 2005 Return-Path: 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 D3D0416A4CE for ; Thu, 13 Jan 2005 21:31:16 +0000 (GMT) Received: from ptb-relay03.plus.net (ptb-relay03.plus.net [212.159.14.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7093143D55 for ; Thu, 13 Jan 2005 21:31:16 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay03.plus.net with esmtp (Exim) id 1CpCpn-000NGL-G2; Thu, 13 Jan 2005 21:48:51 +0000 Message-ID: <41E6E93E.7090809@freebsd.org> Date: Thu, 13 Jan 2005 21:33:50 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E65559.6030300@freebsd.org> <41E6DA9A.2070207@elischer.org> In-Reply-To: <41E6DA9A.2070207@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jan 2005 21:31:17 -0000 Julian Elischer wrote: > I MFC'd a relevent fix on Dec 31. Yuo may have just messed it > (depending on when you got your sources) > what revision is your ugen.c? > > you want 1.88.2.2 > That's the version I've got. Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Fri Jan 14 01:23:10 2005 Return-Path: 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 6BDE116A4CE; Fri, 14 Jan 2005 01:23:10 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B4B243D2F; Fri, 14 Jan 2005 01:23:10 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 408417A403; Thu, 13 Jan 2005 17:23:10 -0800 (PST) Message-ID: <41E71EFE.50807@elischer.org> Date: Thu, 13 Jan 2005 17:23:10 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mark Ovens References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E65559.6030300@freebsd.org> <41E6DA9A.2070207@elischer.org> <41E6E93E.7090809@freebsd.org> In-Reply-To: <41E6E93E.7090809@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 01:23:10 -0000 Mark Ovens wrote: > Julian Elischer wrote: > >> I MFC'd a relevent fix on Dec 31. Yuo may have just messed it >> (depending on when you got your sources) >> what revision is your ugen.c? >> >> you want 1.88.2.2 >> > > That's the version I've got. pitty :-/ ok, well I guess there are more problems there.. I'll try look at it next week unless someone else gets there first (unlikely) can you submit a PR? There is now a 'usb' class for PRs though your send-pr program may not yet reflect that. > > > Regards, > > Mark > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Fri Jan 14 02:32:34 2005 Return-Path: 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 4ECC016A4CE for ; Fri, 14 Jan 2005 02:32:34 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 093FE43D55 for ; Fri, 14 Jan 2005 02:32:34 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.13.1/8.12.11) with ESMTP id j0E2WJGO046705; Thu, 13 Jan 2005 18:32:19 -0800 (PST) (envelope-from sandy@szamoca.krvarr.bc.ca) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.13.1/8.12.11/Submit) id j0E2WIup046702; Thu, 13 Jan 2005 18:32:18 -0800 (PST) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16871.12082.427060.456051@szamoca.krvarr.bc.ca> Date: Thu, 13 Jan 2005 18:32:18 -0800 To: freebsd-usb@freebsd.org X-Mailer: VM 7.07 under Emacs 21.3.1 cc: julian@elischer.org Subject: Re: ulpt hangs on offline status X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 02:32:34 -0000 Julian Elischer wrote: Sandy Rutherford wrote: >This is with FreeBSD 4.10 / i386. > >1. Has anybody else seen this behaviour? > >2. Is it a driver bug or a problem with the Entrega adapter? The > specs of my adapter and USB controller are below. > >3. Does anybody know of a patch to ultp.c to fix this problem? > >4. Any ideas for a (software) workaround, such as a way to force a soft > detach/attach? > You might close and reopen the device. Can that be done from userland? >I am willing to muck around with the driver to try to fix this myself, >but it would be useful to know if anybody else has seen or worked on >this problem. > not yet but I'm willing to believe that you may need to poll the device to see the change in status. That would be handled in the "interrupt" type transfers.. We do not support them very well yet. That was my guess as well. Thanks, Sandy From owner-freebsd-usb@FreeBSD.ORG Fri Jan 14 09:00:45 2005 Return-Path: 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 3022916A4CE for ; Fri, 14 Jan 2005 09:00:45 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D13043D5E for ; Fri, 14 Jan 2005 09:00:41 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0E90f1l050144 for ; Fri, 14 Jan 2005 09:00:41 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0E90fN0050132; Fri, 14 Jan 2005 09:00:41 GMT (envelope-from gnats) Resent-Date: Fri, 14 Jan 2005 09:00:41 GMT Resent-Message-Id: <200501140900.j0E90fN0050132@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, Mark Ovens Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4EB3316A4CE for ; Fri, 14 Jan 2005 08:56:16 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 301BE43D39 for ; Fri, 14 Jan 2005 08:56:16 +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 j0E8uGsE026660 for ; Fri, 14 Jan 2005 08:56:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j0E8uFWi026658; Fri, 14 Jan 2005 08:56:15 GMT (envelope-from nobody) Message-Id: <200501140856.j0E8uFWi026658@www.freebsd.org> Date: Fri, 14 Jan 2005 08:56:15 GMT From: Mark Ovens To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: usb/76240: USB camera panics kernel X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 09:00:45 -0000 >Number: 76240 >Category: usb >Synopsis: USB camera panics kernel >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 Jan 14 09:00:41 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Mark Ovens >Release: FreeBSD 5.3-STABLE i386 >Organization: >Environment: FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Jan 13 08:47:21 GMT 2005 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 >Description: ohci1: mem 0xec800000-0xec800fff irq 18 at device 5.0 on pci2 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0 usb1: on ohci1 usb1: USB revision 1.0 uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered ohci2: mem 0xec000000-0xec000fff irq 19 at device 5.1 on pci2 ohci2: [GIANT-LOCKED] usb2: OHCI version 1.0 usb2: on ohci2 usb2: USB revision 1.0 uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ugen1: Canon Inc. Canon Digital Camera, rev 1.10/0.01, addr 2 This camera used to work just fine in digikam but now doesn't (can't say exactly when it stopped though). Kept getting "Can't connect to camera" error when trying to open the camera although digikam does auto-detect it. Googling threw up some info at http://gphoto.org/doc/manual/permissions-usb.html about allowing USB devices to be accessed by non-root users (section 4.3.3.1. FreeBSD 5.x near the bottom of the page) which says to add the following to /etc/rc.local: /sbin/devfs ruleset 10 /sbin/devfs rule applyset /sbin/devfs rule add path ugen1* mode 666 /sbin/devfs rule show I've done that, but now instead of "Can't connect to camera" the computer crashes with a kernel panic This problem also happens when trying to connect to the camera in Konqueror using camera:/ and in gtkam. Backtrace: WARNING: Driver mistake: destroy_dev on 0/0 panic: don't do that cpuid = 0 KDB: stack backtrace: kdb_backtrace(c076d635,0,c0757f6f,e9b559e0,5) at kdb_backtrace+0x2e panic(c0757f6f,0,0,1,c2bac000) at panic+0x128 idestroy_dev(c07b7b50,e9b55a10,c04ff092,c07b7b50,3) at idestroy_dev+0x42 destroy_dev(c07b7b50,3,0,e9b55a50,c04ff2cc) at destroy_dev+0x16 ugen_destroy_devnodes(c2bac000,2,2,1,c23db830) at ugen_destroy_devnodes+0x52 ugen_set_config(c2bac000,1,180,c3000640,c301c108) at ugen_set_config+0x22c ugen_do_ioctl(c2bac000,0,80045565,e9b55c54,3,c3000640) at ugen_do_ioctl+0x253 ugenioctl(c07b7c38,80045565,e9b55c54,3,c3000640) at ugenioctl+0x5f spec_ioctl(e9b55b7c,e9b55c28,c05e23c5,e9b55b7c,e0e8c330) at spec_ioctl+0x16e spec_vnoperate(e9b55b7c,e0e8c330,c2f15dd0,10,bfca6ff8) at spec_vnoperate+0x18 vn_ioctl(c2f15dd0,80045565,e9b55c54,c2b41b80,c3000640) at vn_ioctl+0x195 ioctl(c3000640,e9b55d14,c,c3000640,c27a1bb8) at ioctl+0x6a8 syscall(2f,2f,2f,8369200) at syscall+0x300 Xint0x80_syscall() at Xint0x80_syscall+0x1f --- syscall (54, FreeBSD ELF32, ioctl), eip = 0x298f19cf, esp = 0xbfaeb394, ebp = oxbfaeb3c0 --- KDB: enter: panic [thread pid 678 tid 100184 ] Stopped at kbd_enter+0x30: leave db> >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Fri Jan 14 09:06:56 2005 Return-Path: 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 6D16616A4CE for ; Fri, 14 Jan 2005 09:06:56 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A97543D31 for ; Fri, 14 Jan 2005 09:06:56 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay01.plus.net with esmtp (Exim) id 1CpNPz-000I0R-4N; Fri, 14 Jan 2005 09:06:55 +0000 Message-ID: <41E78C49.1020702@freebsd.org> Date: Fri, 14 Jan 2005 09:09:29 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050110) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <41E54591.70109@freebsd.org> <41E58102.8010603@elischer.org> <41E65559.6030300@freebsd.org> <41E6DA9A.2070207@elischer.org> <41E6E93E.7090809@freebsd.org> <41E71EFE.50807@elischer.org> In-Reply-To: <41E71EFE.50807@elischer.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB camera causing OS crash? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 09:06:56 -0000 Julian Elischer wrote: > > Mark Ovens wrote: > >> Julian Elischer wrote: >> >>> I MFC'd a relevent fix on Dec 31. Yuo may have just messed it >>> (depending on when you got your sources) >>> what revision is your ugen.c? >>> >>> you want 1.88.2.2 >>> >> >> That's the version I've got. > > > pitty :-/ > ok, well I guess there are more problems there.. > I'll try look at it next week unless someone else gets there first > (unlikely) > can you submit a PR? > There is now a 'usb' class for PRs though your send-pr program may not > yet reflect that. Done, usb/76240 Thanks for your help Regards, Mark From owner-freebsd-usb@FreeBSD.ORG Sat Jan 15 10:38:47 2005 Return-Path: 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 D20E616A4CE for ; Sat, 15 Jan 2005 10:38:47 +0000 (GMT) Received: from szamoca.krvarr.bc.ca (s142-179-111-232.bc.hsia.telus.net [142.179.111.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3393B43D1F for ; Sat, 15 Jan 2005 10:38:45 +0000 (GMT) (envelope-from sandy@krvarr.bc.ca) Received: from szamoca.krvarr.bc.ca (localhost [127.0.0.1]) by szamoca.krvarr.bc.ca (8.13.1/8.12.11) with ESMTP id j0FAbsTZ000862; Sat, 15 Jan 2005 02:37:54 -0800 (PST) (envelope-from sandy@szamoca.krvarr.bc.ca) Received: (from sandy@localhost) by szamoca.krvarr.bc.ca (8.13.1/8.12.11/Submit) id j0FAbrIw000859; Sat, 15 Jan 2005 02:37:53 -0800 (PST) (envelope-from sandy) From: Sandy Rutherford MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="W0AcZiywTF" Content-Transfer-Encoding: 7bit Message-ID: <16872.62081.209945.743448@szamoca.krvarr.bc.ca> Date: Sat, 15 Jan 2005 02:37:53 -0800 To: Julian Elischer In-Reply-To: <41E6D483.8050005@elischer.org> References: <16870.6275.128262.61361@szamoca.krvarr.bc.ca> <41E6D483.8050005@elischer.org> X-Mailer: VM 7.07 under Emacs 21.3.1 cc: freebsd-usb@freebsd.org Subject: Re: ulpt hangs on offline status X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 10:38:48 -0000 --W0AcZiywTF Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit Julian, On Thu, 13 Jan 2005 you wrote: > Sandy Rutherford wrote: >> >> [root@szamoca:14] usbdevs -v -d >> Controller /dev/usb0: >> addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 >> uhub0 >> port 1 powered >> port 2 addr 2: full speed, power 98 mA, config 1, Centronics connector(0x0006), Entrega(0x1645), rev 1.00 >> ulpt0 >> >> I am willing to muck around with the driver to try to fix this myself, >> but it would be useful to know if anybody else has seen or worked on >> this problem. >> > not yet but I'm willing to believe that you may need to poll the device > to see the change in status. > That would be handled in the "interrupt" type transfers.. > We do not support them very well yet. This evening, I threw a bunch of print statements into ulpt.c to see what was happening. This is for /sys/dev/usb/ulpt.c in FreeBSD 4.10. As expected, it hangs trying to open the connection. First it runs a tsleep loop: for (spin = 0; (ulpt_status(sc) & LPS_SELECT) == 0; spin += STEP) { DPRINTF(("ulpt_open: waiting a while\n")); if (spin >= TIMEOUT) { error = EBUSY; sc->sc_state = 0; goto done; } /* wait 1/4 second, give up if we get a signal */ error = tsleep(sc, LPTPRI | PCATCH, "ulptop", STEP); if (error != EWOULDBLOCK) { sc->sc_state = 0; goto done; } if (sc->sc_dying) { error = ENXIO; sc->sc_state = 0; goto done; } } If the printer is offline, the tsleap returns an EAGAIN (resource temporarily unavailable) error. After the loop, it tries to open input and output pipes. If any of these fail, `error' is set to one of EIO or ENOMEM and we `goto done'. The problem is that if the printer comes back on line during the tsleep loop, this is not caught and the tsleep loop exits with `error == EAGAIN'. If subsequently, the input and output pipes are opened successfully, `error' remains set to EAGAIN and this is what `ulptopen' returns. It should really return 0, because we have a good connection and we should start writing data. Therefore, I stuck the following just before the `done: ' tag: /* If we get to here with error == EAGAIN (resource temporarily */ /* unavailable), it means open out and open in succeeded, even */ /* though the tsleep failed. This probably means that */ /* the printer came online during the tsleep loop and we now */ /* have a connection. Return 0 to start ulptwrite. */ /* --SR sandy@krvarr.bc.ca */ if (error == EAGAIN) { DPRINTF(("error=%d. Connection established?", error)); error = 0; } done: if (--sc->sc_refcnt < 0) usb_detach_wakeup(USBDEV(sc->sc_dev)); DPRINTF(("ulptopen: done, error=%d\n", error)); return (error); } It does the job for me. ulpt now starts up when the printer comes back online. If anybody else has a similar problem, you might try this patch. I'll attach a proper patch file below. If anybody does try this and it messes something else up, please let me know. USB devices are notoriously flakey. After testing this further for a few days, I'll send in a pr with the patch. BTW, I am running FreeBSD on i386 hardware. The specifics of my USB setup are: usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, power 98 mA, config 1, Centronics connector(0x0006), Entrega(0x1645), rev 1.00 Sandy --W0AcZiywTF Content-Type: application/octet-stream Content-Description: ulpt.c patch Content-Disposition: attachment; filename="ulpt.c.patch" Content-Transfer-Encoding: base64 KioqIHVscHQuYy5vcmlnCVdlZCBKYW4gMTIgMjA6MTM6MTggMjAwNQotLS0gdWxwdC5jCVNhdCBK YW4gMTUgMDE6NTI6MDAgMjAwNQoqKioqKioqKioqKioqKioKKioqIDYwNyw2MTIgKioqKgotLS0g NjA3LDYyNCAtLS0tCiAgCiAgCXNjLT5zY19zdGF0ZSA9IFVMUFRfT1BFTjsKICAKKyAKKyAJLyog SWYgd2UgZ2V0IHRvIGhlcmUgd2l0aCBlcnJvciA9PSBFQUdBSU4gKHJlc291cmNlIHRlbXBvcmFy aWx5ICovCisgCS8qIHVuYXZhaWxhYmxlKSwgaXQgbWVhbnMgb3BlbiBvdXQgYW5kIG9wZW4gaW4g c3VjY2VlZGVkLCBldmVuICAqLworICAgICAgICAgLyogdGhvdWdoIHRoZSB0c2xlZXAgZmFpbGVk LiAgVGhpcyBwcm9iYWJseSBtZWFucyB0aGF0ICAgICAgICAgICovCisgICAgICAgICAvKiB0aGUg cHJpbnRlciBjYW1lIG9ubGluZSBkdXJpbmcgdGhlIHRzbGVlcCBsb29wIGFuZCB3ZSBub3cgICAg Ki8gCisgICAgICAgICAvKiBoYXZlIGEgY29ubmVjdGlvbi4gIFJldHVybiAwIHRvIHN0YXJ0IHVs cHR3cml0ZS4gICAgICAgICAgICAgKi8KKyAgICAgICAgIC8qIC0tU1Igc2FuZHlAa3J2YXJyLmJj LmNhICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqLworIAlpZiAoZXJyb3Ig PT0gIEVBR0FJTikgeworIAkgIERQUklOVEYoKCJlcnJvcj0lZC4gIENvbm5lY3Rpb24gZXN0YWJs aXNoZWQ/IiwgZXJyb3IpKTsKKyAJICBlcnJvciA9IDA7CisgCX0KKyAKICAgZG9uZToKICAJaWYg KC0tc2MtPnNjX3JlZmNudCA8IDApCiAgCQl1c2JfZGV0YWNoX3dha2V1cChVU0JERVYoc2MtPnNj X2RldikpOwo= --W0AcZiywTF-- From owner-freebsd-usb@FreeBSD.ORG Sat Jan 15 17:14:41 2005 Return-Path: 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 2123016A4CE for ; Sat, 15 Jan 2005 17:14:41 +0000 (GMT) Received: from postfix3-1.free.fr (postfix3-1.free.fr [213.228.0.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 695E143D2D for ; Sat, 15 Jan 2005 17:14:40 +0000 (GMT) (envelope-from irchat@free.fr) Received: from imp3-q.free.fr (imp3-q.free.fr [212.27.42.3]) by postfix3-1.free.fr (Postfix) with ESMTP id 421411734AA for ; Sat, 15 Jan 2005 18:14:39 +0100 (CET) Received: by imp3-q.free.fr (Postfix, from userid 33) id E80F329F0E; Sat, 15 Jan 2005 18:14:38 +0100 (MET) Received: from AAmiens-152-1-33-14.w83-192.abo.wanadoo.fr (AAmiens-152-1-33-14.w83-192.abo.wanadoo.fr [83.192.207.14]) by imp3-q.free.fr (IMP) with HTTP for ; Sat, 15 Jan 2005 18:14:38 +0100 Message-ID: <1105809278.41e94f7ed0e32@imp3-q.free.fr> Date: Sat, 15 Jan 2005 18:14:38 +0100 From: irchat@free.fr To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 83.192.207.14 Subject: Prism54 USB Wireless Adapters X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jan 2005 17:14:41 -0000 Hello, I am trying to port the prism54-usb Linux driver to FreeBSD (see http://jbnote.free.fr/prism54usb/index.html). There's a big problem, I don't get the interrupt which should occur right after the firmware upload to the ISL3886. I have spent hours trying to debug this, I can't figure out why it doesn't work. The interrupt callback functions seems to be properly set up, when I unplug the device it is called to report the error (but should it be when the device sends the interrupt, according to the way I've set up the pipe ?). The log (download from http://yoshiyo.ath.cx/no_interrupt.log.bz2) looks the same as the Linux driver's which gets that interrupt (http://yoshiyo.ath.cx/seb/download/p54ulog_1612_good.txt.bz2). (I have checked all data sent and received on each bulk pipe, it's the same). The delays between data sends are respected. My source code is at http://yoshiyo.ath.cx/p54u_nointerrupt.tar.bz2 Information about my wireless adapter (Siemens Gigaset USB Adapter 54) can be found at http://yoshiyo.ath.cx/seb/prism54.html I hope someone will be able to give me a clue, that's just driving me mad. Thank you ! Sebastien