From owner-freebsd-usb@FreeBSD.ORG Sun Nov 28 20:37:25 2004 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 8FC0B16A4CE; Sun, 28 Nov 2004 20:37:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A3DD43D49; Sun, 28 Nov 2004 20:37:25 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iASKbPTw054004; Sun, 28 Nov 2004 20:37:25 GMT (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iASKbOL8054000; Sun, 28 Nov 2004 20:37:24 GMT (envelope-from iedowse) Date: Sun, 28 Nov 2004 20:37:24 GMT From: Ian Dowse Message-Id: <200411282037.iASKbOL8054000@freefall.freebsd.org> To: dan@obluda.cz, iedowse@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: bin/71615: [usb] [patch] cleanup of the usr.sbin/usbd code 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, 28 Nov 2004 20:37:25 -0000 Synopsis: [usb] [patch] cleanup of the usr.sbin/usbd code State-Changed-From-To: open->closed State-Changed-By: iedowse State-Changed-When: Sun Nov 28 20:36:34 GMT 2004 State-Changed-Why: Patch committed, thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=71615 From owner-freebsd-usb@FreeBSD.ORG Sun Nov 28 20:46:12 2004 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 649CF16A4CE; Sun, 28 Nov 2004 20:46:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BB1143D1D; Sun, 28 Nov 2004 20:46:12 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iASKkCNl054263; Sun, 28 Nov 2004 20:46:12 GMT (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iASKkBpm054259; Sun, 28 Nov 2004 20:46:11 GMT (envelope-from iedowse) Date: Sun, 28 Nov 2004 20:46:11 GMT From: Ian Dowse Message-Id: <200411282046.iASKkBpm054259@freefall.freebsd.org> To: Danovitsch@Vitsch.net, iedowse@FreeBSD.org, freebsd-usb@FreeBSD.org, iedowse@FreeBSD.org Subject: Re: conf/73239: [usb] [patch] Teach usbd.conf about axe(4) 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, 28 Nov 2004 20:46:12 -0000 Synopsis: [usb] [patch] Teach usbd.conf about axe(4) devices State-Changed-From-To: open->patched State-Changed-By: iedowse State-Changed-When: Sun Nov 28 20:44:49 GMT 2004 State-Changed-Why: Committed to -current, thanks. Responsible-Changed-From-To: freebsd-usb->iedowse Responsible-Changed-By: iedowse Responsible-Changed-When: Sun Nov 28 20:44:49 GMT 2004 Responsible-Changed-Why: My reminder to MFC. http://www.freebsd.org/cgi/query-pr.cgi?pr=73239 From owner-freebsd-usb@FreeBSD.ORG Sun Nov 28 20:50:29 2004 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 9D81616A4CE for ; Sun, 28 Nov 2004 20:50:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8951843D54 for ; Sun, 28 Nov 2004 20:50:29 +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 iASKoTKn054371 for ; Sun, 28 Nov 2004 20:50:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iASKoToB054369; Sun, 28 Nov 2004 20:50:29 GMT (envelope-from gnats) Date: Sun, 28 Nov 2004 20:50:29 GMT Message-Id: <200411282050.iASKoToB054369@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Mark Ovens Subject: Re: kern/70607: [patch] Add Support for USB Microsoft Intellimouse (possibly others) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mark Ovens List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Nov 2004 20:50:29 -0000 The following reply was made to PR kern/70607; it has been noted by GNATS. From: Mark Ovens To: freebsd-gnats-submit@freebsd.org, amistry@am-productions.biz Cc: Subject: Re: kern/70607: [patch] Add Support for USB Microsoft Intellimouse (possibly others) Date: Sun, 28 Nov 2004 20:42:03 +0000 I've just tried the latest patch (with the 'dt' field removed from the mousestatus structure) and it works just fine :-) FreeBSD redshift 5.3-STABLE FreeBSD 5.3-STABLE #1: Sun Nov 28 20:17:32 GMT 2004 mark@redshift:/usr/obj/usr/src/sys/REDSHIFT i386 I haven't tested the tilt wheel because I don't use it and am not sure how to set it up. Kudos to Anish and Matt for fixing this. Mark From owner-freebsd-usb@FreeBSD.ORG Sun Nov 28 21:41:40 2004 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 6BAAC16A4D0; Sun, 28 Nov 2004 21:41:40 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2478A43D45; Sun, 28 Nov 2004 21:41:40 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from freefall.freebsd.org (iedowse@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iASLfd93062562; Sun, 28 Nov 2004 21:41:39 GMT (envelope-from iedowse@freefall.freebsd.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iASLfdd9062558; Sun, 28 Nov 2004 21:41:39 GMT (envelope-from iedowse) Date: Sun, 28 Nov 2004 21:41:39 GMT From: Ian Dowse Message-Id: <200411282141.iASLfdd9062558@freefall.freebsd.org> To: Danovitsch@Vitsch.net, iedowse@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/73286: [usb] [patch] Add another USB WLAN device for atuwi 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, 28 Nov 2004 21:41:40 -0000 Synopsis: [usb] [patch] Add another USB WLAN device for atuwi State-Changed-From-To: open->closed State-Changed-By: iedowse State-Changed-When: Sun Nov 28 21:41:21 GMT 2004 State-Changed-Why: Committed, thanks. http://www.freebsd.org/cgi/query-pr.cgi?pr=73286 From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 04:54:33 2004 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 1BBB216A4CF for ; Mon, 29 Nov 2004 04:54:33 +0000 (GMT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id B80F943D49 for ; Mon, 29 Nov 2004 04:54:32 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [192.168.1.102] (adsl-68-123-122-146.dsl.snfc21.pacbell.net [68.123.122.146])iAT4sV6M188052 for ; Sun, 28 Nov 2004 23:54:31 -0500 Message-ID: <41AAAB86.80300@elischer.org> Date: Sun, 28 Nov 2004 20:54:30 -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: usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: working on EHCI bug in 4.x 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, 29 Nov 2004 04:54:33 -0000 general report to the list.. I'm working on a bug that is hitting my employer in FBSD4.10 and may (not sure yet) also exist in 5.x/6. (Need to get a 5.x test machine with EHCI). The symptom is that an IO timeout removes the 'xfer' from the interface but fails to handshake with the hardware correctly, resulting in the hardware DMA-ing to the buffer which has been added back to the free list. The code in question is the same in 4/5/6 so it may be that it is everywhere.. I now undersand the EHCI interface enough to say it is not an OBVIOUS bug as teh code SEEMS to be doing the handshake correctly. *sigh* anyhow.. back to your regularly scheduled hacking.. Anyone with ideas should feel free to speak up :-) From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 09:27:34 2004 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 5514F16A4CE; Mon, 29 Nov 2004 09:27:34 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32ED343D39; Mon, 29 Nov 2004 09:27:34 +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 iAT9RY5W093889; Mon, 29 Nov 2004 09:27:34 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAT9RYcL093885; Mon, 29 Nov 2004 09:27:34 GMT (envelope-from linimon) Date: Mon, 29 Nov 2004 09:27:34 GMT From: Mark Linimon Message-Id: <200411290927.iAT9RYcL093885@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/74301: patch for USB Scanner: Cannon LIDE 20 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, 29 Nov 2004 09:27:34 -0000 Synopsis: patch for USB Scanner: Cannon LIDE 20 Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon Nov 29 09:27:08 GMT 2004 Responsible-Changed-Why: Reassign to appropriate mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=74301 From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 09:29:12 2004 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 20AC116A4CE; Mon, 29 Nov 2004 09:29:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F18D343D2D; Mon, 29 Nov 2004 09:29:11 +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 iAT9TBJ8094028; Mon, 29 Nov 2004 09:29:11 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAT9TBUB094024; Mon, 29 Nov 2004 09:29:11 GMT (envelope-from linimon) Date: Mon, 29 Nov 2004 09:29:11 GMT From: Mark Linimon Message-Id: <200411290929.iAT9TBUB094024@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-usb@FreeBSD.org Subject: Re: kern/73872: [patch] Palm Zire 72 not recognized by uvisor 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, 29 Nov 2004 09:29:12 -0000 Synopsis: [patch] Palm Zire 72 not recognized by uvisor Responsible-Changed-From-To: freebsd-bugs->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Mon Nov 29 09:29:04 GMT 2004 Responsible-Changed-Why: Reassign to appropriate mailing list. http://www.freebsd.org/cgi/query-pr.cgi?pr=73872 From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 11:02:11 2004 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 84C7F16A4D3 for ; Mon, 29 Nov 2004 11:02:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57CB343D1F for ; Mon, 29 Nov 2004 11:02:11 +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 iATB2Bsh008179 for ; Mon, 29 Nov 2004 11:02:11 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iATB2A10008173 for freebsd-usb@freebsd.org; Mon, 29 Nov 2004 11:02:10 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 29 Nov 2004 11:02:10 GMT Message-Id: <200411291102.iATB2A10008173@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, 29 Nov 2004 11:02:11 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/05/04] kern/66248 usb [panic] bootloader is confused by booting 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [2001/09/11] kern/30502 usb panics if logitech joystick usb attached a [2001/10/31] kern/31659 usb USB controller driver will die after some 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/02/17] kern/35061 usb After printing to HP Deskjet 656c USB pri f [2002/04/07] i386/36850 usb Page Fault using ppp with USB Modem [4.9] f [2002/05/30] kern/38736 usb kernel panic during memory stick removal f [2002/06/15] kern/39341 usb ppp + USB modem problem 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/09/13] kern/42748 usb USB does not work (Fujitsu Lifebook) f [2002/09/25] i386/43366 usb Cannot format media in USB floppy devices o [2002/09/29] kern/43462 usb copying files from olympus C-4040 digital o [2002/10/13] bin/43993 usb /usr/sbin/usbd does not handle an usb eve f [2002/11/22] kern/45579 usb Panic from USB stack after device detach 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 f [2002/12/24] i386/46506 usb [usb] [hang] Crash Before Initialization o [2002/12/29] kern/46618 usb USB (UHCI/ICH3) PALM connect/disconnect/c f [2003/01/12] kern/47005 usb OHCI USB not noticing device detachments 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 f [2003/12/13] kern/60217 usb EHCI controller halts when USB 2.0 device 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/02/29] i386/63521 usb 5.2.1 doesn't detect drives on SATA contr 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/05/06] kern/66324 usb [usb] usb driver memory leak grows wired 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 p [2004/09/08] kern/71491 usb [usb] [panic] printing under usb printer 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 52 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/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 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/18] kern/70607 usb [patch] Add Support for USB Microsoft Int 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/07] kern/73636 usb [usb] usb microsoft mouse with ps/2 conve o [2004/11/12] kern/73872 usb [patch] Palm Zire 72 not recognized by uv o [2004/11/16] kern/73999 usb [usb] USB Freezes when a device is plugge o [2004/11/23] kern/74301 usb patch for USB Scanner: Cannon LIDE 20 46 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 16:50:26 2004 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 2A21216A4CE for ; Mon, 29 Nov 2004 16:50:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F351743D4C for ; Mon, 29 Nov 2004 16:50: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 iATGoPGu068240 for ; Mon, 29 Nov 2004 16:50:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iATGoPOC068239; Mon, 29 Nov 2004 16:50:25 GMT (envelope-from gnats) Date: Mon, 29 Nov 2004 16:50:25 GMT Message-Id: <200411291650.iATGoPOC068239@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Craig Rodrigues Subject: Re: kern/53025: [PATCH] ugen does not allow O_NONBLOCK for interrupt endpts. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Craig Rodrigues List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2004 16:50:26 -0000 The following reply was made to PR kern/53025; it has been noted by GNATS. From: Craig Rodrigues To: freebsd-gnats-submit@freebsd.org Cc: yeasah@apocalypse.org Subject: Re: kern/53025: [PATCH] ugen does not allow O_NONBLOCK for interrupt endpts. Date: Mon, 29 Nov 2004 11:46:51 -0500 Hi, A simpler version of this patch is in -CURRENT: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ugen.c.diff?r1=1.96&r2=1.97 It's not on the RELENG_4 branch. -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 20:50:57 2004 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 74CD816A4CF for ; Mon, 29 Nov 2004 20:50:57 +0000 (GMT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07AE143D48 for ; Mon, 29 Nov 2004 20:50:57 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (sccrmhc13) with ESMTP id <20041129205055016001jnr3e>; Mon, 29 Nov 2004 20:50:56 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) iATKotib039435 for ; Mon, 29 Nov 2004 15:50:55 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)iATKotfh039434 for freebsd-usb@freebsd.org; Mon, 29 Nov 2004 15:50:55 -0500 (EST) (envelope-from rodrigc) Date: Mon, 29 Nov 2004 15:50:54 -0500 From: Craig Rodrigues To: freebsd-usb@freebsd.org Message-ID: <20041129205054.GA39414@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Add 'usb' to send-pr? 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, 29 Nov 2004 20:50:57 -0000 Hi, Is it worth adding a new category to send-pr for USB? --- gnu/usr.bin/send-pr/categories.orig Mon Nov 29 15:48:22 2004 +++ gnu/usr.bin/send-pr/categories Mon Nov 29 15:48:32 2004 @@ -16,4 +16,5 @@ sparc64 standards threads +usb www -- Craig Rodrigues rodrigc@crodrigues.org From owner-freebsd-usb@FreeBSD.ORG Mon Nov 29 20:52:30 2004 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 8E79A16A4CE for ; Mon, 29 Nov 2004 20:52:30 +0000 (GMT) Received: from mailfe02.swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF12243D64 for ; Mon, 29 Nov 2004 20:52:29 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.216.45.132] (HELO curly.tele2.no) by mailfe02.swip.net (CommuniGate Pro SMTP 4.2.6) with ESMTP id 233221215 for freebsd-usb@freebsd.org; Mon, 29 Nov 2004 21:52:27 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id iATKw88t007678 for freebsd-usb@freebsd.org; Mon, 29 Nov 2004 21:58:08 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Mon, 29 Nov 2004 21:58:06 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Message-ID: <20041129215805.A1107@curly.tele2.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: Re: new USB driver 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, 29 Nov 2004 20:52:30 -0000 Hi, I've hacked together a new version of my USB driver, which should be up to date with FreeBSD-5-current. All memory is now allocated using bus_dma_xxx. A compatibility layer has been added so that the old USB drivers will work. The USB driver supports OHCI, UHCI and EHCI. You need FreeBSD 5.2/5.3 to get it compiled. Anyone who wants to give it a try? Create a new directory and download the following files and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 Yours -HPS From owner-freebsd-usb@FreeBSD.ORG Tue Nov 30 06:48:43 2004 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 7BC7816A4CE for ; Tue, 30 Nov 2004 06:48:43 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40FC443D4C for ; Tue, 30 Nov 2004 06:48:43 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (rwcrmhc13) with ESMTP id <2004113006483901500c8vlhe>; Tue, 30 Nov 2004 06:48:40 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) iAU6mcHQ001613; Tue, 30 Nov 2004 01:48:38 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)iAU6mbE7001612; Tue, 30 Nov 2004 01:48:37 -0500 (EST) (envelope-from rodrigc) Date: Tue, 30 Nov 2004 01:48:37 -0500 From: Craig Rodrigues To: freebsd-usb@freebsd.org Message-ID: <20041130064837.GA1541@crodrigues.org> References: <20041107064227.GA79915@crodrigues.org> <20041107.125814.34760598.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline In-Reply-To: <20041107.125814.34760598.imp@bsdimp.com> User-Agent: Mutt/1.4.1i Subject: Re: Changing permissions of /dev/usb[n] to 664? 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, 30 Nov 2004 06:48:43 -0000 --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Nov 07, 2004 at 12:58:14PM -0700, M. Warner Losh wrote: > This looks good, but we should audit all the ioctls to make sure the > ones that modify anything have the proper checks to make sure the fd > was opened for write. OK. Here is another iteration of the patch. It does the following: - opens /dev/usb[n] as 664 - puts suser() permission checks in the following paths: USB_REQUEST ioctl() usbpoll() usbread() This is what a non-root user can and cannot do on /dev/usb[n]: Allowed ======= USB_DISCOVER USB_DEVICEINFO USB_DEVICESTATS usbopen() usbclose() Forbidden ========= USB_REQUEST usbread() usbpoll() The result of this patch is that a non-root user can run usbdevs without a problem. I also have a small test program where I tried running different ioctl's as non-root and this is the output I got: Executing ioctl(): USB_REQUEST Operation not permitted Executing ioctl(): USB_DISCOVER...OK Executing ioctl(): USB_DEVICEINFO...OK Executing ioctl(): USB_DEVICESTATS...OK Comments? -- Craig Rodrigues rodrigc@crodrigues.org --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usb.c.patch.txt" --- usb.c.orig Mon Nov 29 23:27:20 2004 +++ usb.c Tue Nov 30 00:04:00 2004 @@ -320,11 +320,11 @@ /* The per controller devices (used for usb_discover) */ /* XXX This is redundant now, but old usbd's will want it */ sc->sc_usbdev = make_dev(&usb_cdevsw, device_get_unit(self), UID_ROOT, - GID_OPERATOR, 0660, "usb%d", device_get_unit(self)); + GID_OPERATOR, 0664, "usb%d", device_get_unit(self)); if (usb_ndevs++ == 0) { /* The device spitting out events */ usb_dev = make_dev(&usb_cdevsw, USB_DEV_MINOR, UID_ROOT, - GID_OPERATOR, 0660, "usb"); + GID_OPERATOR, 0664, "usb"); } #endif @@ -515,13 +515,16 @@ int unit = USBUNIT(dev); int s, error, n; + error = suser(curthread); + if (error) + return error; + if (unit != USB_DEV_MINOR) return (ENODEV); if (uio->uio_resid != sizeof(struct usb_event)) return (EINVAL); - error = 0; s = splusb(); for (;;) { n = usb_get_next_event(&ue); @@ -605,6 +608,10 @@ usbd_status err; int error = 0; + error = suser(p); + if (error) + return error; + DPRINTF(("usbioctl: USB_REQUEST addr=%d len=%d\n", addr, len)); if (len < 0 || len > 32768) return (EINVAL); @@ -680,6 +687,10 @@ { int revents, mask, s; int unit = USBUNIT(dev); + int error = suser(p); + + if (error) + return error; if (unit == USB_DEV_MINOR) { revents = 0; --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="usbtest.c" #include #include #include #include #include #include void execute_ioctl(int fd, int cmd, void *arg, const char *name) { int e; printf("Executing ioctl(): %s", name); e = ioctl(fd, cmd, arg); if (e == -1 ) { printf(" %s\n", strerror(errno)); } else { printf("...OK\n"); } } int main(int argc, char *argv[]) { struct usb_ctl_request ucr; struct usb_device_stats uds; struct usb_device_info udi; int fd = open("/dev/usb1", O_RDONLY); if (fd == -1 ) { perror(":"); exit(1); } ucr.ucr_request.wLength[0] = 0x00; ucr.ucr_request.wLength[1] = 0x80; udi.udi_addr = 1; execute_ioctl(fd, USB_REQUEST, &ucr, "USB_REQUEST"); execute_ioctl(fd, USB_DISCOVER, NULL, "USB_DISCOVER"); execute_ioctl(fd, USB_DEVICEINFO, &udi, "USB_DEVICEINFO"); execute_ioctl(fd, USB_DEVICESTATS, &uds, "USB_DEVICESTATS"); close(fd); return 0; } --Q68bSM7Ycu6FN28Q-- From owner-freebsd-usb@FreeBSD.ORG Tue Nov 30 12:20:16 2004 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 2127716A4CE for ; Tue, 30 Nov 2004 12:20:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F9AB43D31 for ; Tue, 30 Nov 2004 12:20:16 +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 iAUCKFQH049416 for ; Tue, 30 Nov 2004 12:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iAUCKFNi049415; Tue, 30 Nov 2004 12:20:15 GMT (envelope-from gnats) Date: Tue, 30 Nov 2004 12:20:15 GMT Message-Id: <200411301220.iAUCKFNi049415@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Dmitry Morozovsky Subject: Re: kern/63621: [usb] USB MemoryStick Reader stalls/crashes system X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dmitry Morozovsky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 12:20:16 -0000 The following reply was made to PR kern/63621; it has been noted by GNATS. From: Dmitry Morozovsky To: Herve Quiroz Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/63621: [usb] USB MemoryStick Reader stalls/crashes system Date: Tue, 30 Nov 2004 15:12:58 +0300 (MSK) I just test this with: - today's RELENG_4: just the same. data transfers stall, remounting crashes (most probably msdosfs refers to invalid address) - 5.3-R: data transfers stall; however, msdosfs survives `umount -f' and remounting. So, I presume some msdosfs fixes should be merged to RELENG_4; and usb issue should be attacked independently, and via some other way. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-usb@FreeBSD.ORG Tue Nov 30 16:58:09 2004 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 4697E16A4CE for ; Tue, 30 Nov 2004 16:58:09 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC5D143D48 for ; Tue, 30 Nov 2004 16:58:08 +0000 (GMT) (envelope-from mike.holcomb@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so552333rnf for ; Tue, 30 Nov 2004 08:58:05 -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:mime-version:content-type:content-transfer-encoding; b=orb7D/PmEhrAAqJFquSiUoEdAu7+mJnm+vD5LIFy1QqoUVVJTRlhWUpgvVO4xiSgYDqyJ+hoE92jie6JssTmQBbEWseuDLvkt6VTadzfQL1RfLLZdXXG3lbjQ/sMTnddOr28B6Yn3FL3eI5jrXZhSAKPvA4jcH6vDNeycEpTuVM= Received: by 10.38.77.63 with SMTP id z63mr567051rna; Tue, 30 Nov 2004 08:58:05 -0800 (PST) Received: by 10.38.77.64 with HTTP; Tue, 30 Nov 2004 08:58:05 -0800 (PST) Message-ID: Date: Tue, 30 Nov 2004 08:58:05 -0800 From: Mike Holcomb To: freebsd-usb@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: RE: kern/71491: [usb] [panic] printing under usb printer causes a kernel panic X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mike Holcomb List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 16:58:09 -0000 I was wondering if this fix is going to go into -STABLE? If so, any ideas on a time estimate? Thanks, Mike From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 03:11:18 2004 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 5ABBE16A4CE for ; Wed, 1 Dec 2004 03:11:18 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id A098543D41 for ; Wed, 1 Dec 2004 03:11:17 +0000 (GMT) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 1 Dec 2004 03:11:16 +0000 (GMT) To: Mike Holcomb In-Reply-To: Your message of "Tue, 30 Nov 2004 08:58:05 PST." Date: Wed, 01 Dec 2004 03:11:16 +0000 From: Ian Dowse Message-ID: <200412010311.aa44210@salmon.maths.tcd.ie> cc: freebsd-usb@freebsd.org Subject: Re: kern/71491: [usb] [panic] printing under usb printer causes a kernel panic 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, 01 Dec 2004 03:11:18 -0000 In message , Mike Holcomb writes: >I was wondering if this fix is going to go into -STABLE? > >If so, any ideas on a time estimate? I've just MFC'd most of the recent USB framework and host controller changes to RELENG_5, and Julian has merged many changes into RELENG_4. Could you check to see if you can reproduce the problem with a recent -STABLE? Ian From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 07:27:24 2004 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 A2CA616A4CE for ; Wed, 1 Dec 2004 07:27:24 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id D004543D49 for ; Wed, 1 Dec 2004 07:27:20 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB17RDR07497 verified NO); Wed, 1 Dec 2004 08:27:18 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB17RCT07496; Wed, 1 Dec 2004 08:27:13 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Wed, 1 Dec 2004 08:27:13 +0100 (CET) Message-Id: <200412010727.iB17RCT07496@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 References: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> <20041130181603.A1352@curly.tele2.no> To: freebsd-usb@freebsd.org Subject: Re: USB OHCI problems... 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, 01 Dec 2004 07:27:24 -0000 [drop my e-mail from replies, and I'll catch the archives] On Tue, 30 Nov 2004 18:16:03 +0100, Hans Petter Selasky wrote: > I've got a new USB driver (with OHCI isoc fixed). You need FreeBSD 5.2/5.3 to get it compiled. > You might be able to get it compiled on FreeBSD 4.x, but you will need to to some hacking. Great! I've downloaded it, and I'll commence hacking -- most of my present 4.x USB stack comes from -current as it is. Many thanks! > Maybe this thread should be moved to freebsd-usb@FreeBSD.org ? Well, blow me down. A new list (`new' on the glacial scale) that didn't exist last time I was seriously online. I'm there, and I'll be soaking in the archives Real Soon Now... thanks for the tip, barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 13:07:48 2004 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 7DE9116A4CE for ; Wed, 1 Dec 2004 13:07:48 +0000 (GMT) Received: from web41206.mail.yahoo.com (web41206.mail.yahoo.com [66.218.93.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E23743D2D for ; Wed, 1 Dec 2004 13:07:48 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 55763 invoked by uid 60001); 1 Dec 2004 13:07:48 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=CBJMu7pLv1h+k7hzjCpdkrpM526IeOJBvsSTElrp1T4fseRJtGALRnSS2/tr+NgUQx0bN57sg4NUfs/7gDZtNXQz57vi2YopCG3ToCf7pi0gjuRtzgXy7tT2kwWg3cEXmNXzhbWWwJFwTQSFxWmMGWoMQ7TgAU6YQpqKMWr8kFw= ; Message-ID: <20041201130748.55761.qmail@web41206.mail.yahoo.com> Received: from [83.129.185.205] by web41206.mail.yahoo.com via HTTP; Wed, 01 Dec 2004 05:07:48 PST Date: Wed, 1 Dec 2004 05:07:48 -0800 (PST) From: Arne "Wörner" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: UCR 61S2B / card reader 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, 01 Dec 2004 13:07:48 -0000 Does somebody here know, how to solve my bug problem report kern/62257 (http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/62257)? Thx. -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 14:19:25 2004 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 A8A7E16A4CE for ; Wed, 1 Dec 2004 14:19:25 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5F8443D53 for ; Wed, 1 Dec 2004 14:19:21 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB1EJDR10869 verified NO) for ; Wed, 1 Dec 2004 15:19:19 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB1EJDs10868; Wed, 1 Dec 2004 15:19:13 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Wed, 1 Dec 2004 15:19:13 +0100 (CET) Message-Id: <200412011419.iB1EJDs10868@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 References: <20041115000815.GD57138@tuatara.fishballoon.org> Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 01 Dec 2004 14:19:25 -0000 [drop me from replies and I'll catch up via the archives, thankz] Apologies for not finding this until a couple weeks late... On Mon, 15 Nov 2004 00:08:15 +0000, Scott Mitchell wrote: > Is anyone else using USB Ethernet - particularly anything that uses the > aue(4) driver - on FreeBSD 4.10, with or without success? I have a > reproducible panic when aue(4) devices are first brought up, ie. on the > first ifconfig(8) of the device, with two different adapters on two Ah, I'm actually trying to get an axe-type device working based on code lifted from -current, as I picked up one of those type of adapters recently. Is there any work/plan to MFC if_axe into 4.x before sending it to its demise? The panic I see (with both OHCI and EHCI and FreeBSD 4.x) is the same as the panic you reported in the PR -- thanks! For all I know, the axe(4) device I have -- a USB2-capable unit -- already is in 4.x, but I found a relevant PR about what I experience on my 4.x when attaching via UHCI: kern/73000 Unfortunately, when I built my latest -current-based 4.x USB kernel modules, the patch in PR 73000 failed to solve the problem of eternal UHCI attach. Perhaps there's something in 5.x/-current that's missing from my 4.x; alternatively the one-month MT4 that was announced has probably passed so I should check the latest source. I experience the panic when I `ifconfig axe0 something' the interface -- after a second or two, an endless stream of messages, no debugger, at best auto-reboot. Anyway, I'll report back when I bring my 4.x system a bit more up-to-speed. I've connected the device to NetBSD- current and if I recall, it works with EHCI (don't remember if I actually did any networking with it), but I don't remember if I saw the same eternal-attach with UHCI -- if so, I probably put it down to incompatibility of the adapter with USB1. One more note, if I remember, the if_axe code has been added to DragonFly, though I haven't gotten around to check if that code is cleaner than my hack, in case anyone is looking to add if_axe to 4.11. (And this is really the wrong place to ask, but are there any plans -- if not already done -- to merge the not-USB if_re for gigabit ethernet, now that those cards are dirt- cheap, into 4.11? I've done hacks that I think get it to work for me, and I think again DFly has added if_re as well.) > The attached patch restores the tsleep hack and fixes a couple of other > problems I found while looking into this: [ ... ] > - Fix ioctl handling to return EINVAL for commands that don't make sense > for this device. Otherwise ifconfig(8) prints a lot of irrelevant data, > such as wireless settings. I also had to hack this in if_axe and 4.x, FWIW... If I don't find that this has all already been done, I'll give a report about my hacks, if there's interest in adding if_axe to 4.11. thanks barry bouwsma (oh, did I ask about merging if_axe into 4.x at all? ... ) From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 15:52:08 2004 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 A800916A4CE for ; Wed, 1 Dec 2004 15:52:08 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94C8843D5A for ; Wed, 1 Dec 2004 15:52:08 +0000 (GMT) (envelope-from rob3@pythonemproject.com) Received: from [192.168.1.102] (c-67-169-203-186.client.comcast.net[67.169.203.186]) by comcast.net (rwcrmhc12) with ESMTP id <20041201155207014004g67pe>; Wed, 1 Dec 2004 15:52:08 +0000 Message-ID: <41ADE937.7050203@pythonemproject.com> Date: Wed, 01 Dec 2004 07:54:31 -0800 From: Rob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Barry Bouwsma References: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> <20041130181603.A1352@curly.tele2.no> <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB OHCI problems... X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rob3@pythonemproject.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 15:52:08 -0000 I tried that usb list and there was 0 traffic (other than my questions that went unanswered) for the few days I was on it. Rob. From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 16:15:33 2004 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 BA17316A4CF for ; Wed, 1 Dec 2004 16:15:33 +0000 (GMT) Received: from mta05-winn.mailhost.ntl.com (mailhost.ntl.com [212.250.162.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id B466143D58 for ; Wed, 1 Dec 2004 16:15:32 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta04-winn.mailhost.ntl.com ([212.250.162.8]) by mta05-winn.mailhost.ntl.com with ESMTP <20041201161531.DKQW7230.mta05-winn.mailhost.ntl.com@aamta04-winn.mailhost.ntl.com> for ; Wed, 1 Dec 2004 16:15:31 +0000 Received: from llama.fishballoon.org ([82.4.146.133]) by aamta04-winn.mailhost.ntl.com with ESMTP <20041201161531.PELI2076.aamta04-winn.mailhost.ntl.com@llama.fishballoon.org> for ; Wed, 1 Dec 2004 16:15:31 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.43 (FreeBSD)) id 1CZX8g-000JPB-0m for freebsd-usb@freebsd.org; Wed, 01 Dec 2004 16:15:34 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id iB1GGFJl001382 for freebsd-usb@freebsd.org; Wed, 1 Dec 2004 16:16:15 GMT (envelope-from scott) Date: Wed, 1 Dec 2004 16:16:15 +0000 From: Scott Mitchell Cc: freebsd-usb@freebsd.org Message-ID: <20041201161615.GA523@tuatara.fishballoon.org> References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE i386 Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 01 Dec 2004 16:15:33 -0000 On Wed, Dec 01, 2004 at 03:19:13PM +0100, Barry Bouwsma wrote: > [drop me from replies and I'll catch up via the archives, thankz] > > > Apologies for not finding this until a couple weeks late... > On Mon, 15 Nov 2004 00:08:15 +0000, Scott Mitchell wrote: > > > Is anyone else using USB Ethernet - particularly anything that uses the > > aue(4) driver - on FreeBSD 4.10, with or without success? I have a > > reproducible panic when aue(4) devices are first brought up, ie. on the > > first ifconfig(8) of the device, with two different adapters on two > > Ah, I'm actually trying to get an axe-type device working based > on code lifted from -current, as I picked up one of those type > of adapters recently. Is there any work/plan to MFC if_axe into > 4.x before sending it to its demise? I can have a go at MFCing if_axe, but I don't have any suitable hardware to test on... hopefully you're volunteering to make sure it works before it's committed? :-) If you already have some code that at least builds, that would be a great start. > I experience the panic when I `ifconfig axe0 something' the > interface -- after a second or two, an endless stream of > messages, no debugger, at best auto-reboot. My patch for this was committed a few days ago, so you should be able to get a bit further now... > If I don't find that this has all already been done, I'll > give a report about my hacks, if there's interest in adding > if_axe to 4.11. Please do - it would be good to have this in 4.11, and now would be the right time to do it - the 4.11 code freeze starts on Dec 13th. Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 21:05:39 2004 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 1F93F16A4D1 for ; Wed, 1 Dec 2004 21:05:38 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B5F943D1F for ; Wed, 1 Dec 2004 21:05:05 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB1L4tR13838 verified NO); Wed, 1 Dec 2004 22:05:00 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB1L4s313837; Wed, 1 Dec 2004 22:04:54 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Wed, 1 Dec 2004 22:04:54 +0100 (CET) Message-Id: <200412012104.iB1L4s313837@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 References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> cc: Scott Mitchell Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 01 Dec 2004 21:05:40 -0000 [drop me from replies, or if you need to send mail but don't have IPv6 connectivity, remove *only* the host part of my address] > > Ah, I'm actually trying to get an axe-type device working based > > on code lifted from -current, as I picked up one of those type > > of adapters recently. Is there any work/plan to MFC if_axe into > > 4.x before sending it to its demise? > I can have a go at MFCing if_axe, but I don't have any suitable hardware to > test on... hopefully you're volunteering to make sure it works before it's > committed? :-) Yes, of course... And I'll give an update once I catch up enough to rebuild things. > If you already have some code that at least builds, that would be a great > start. I've put what I *think* I've compiled into a module up at https://NOSPAM.dydnds.dk/hacks/ just to get it out there. I haven't even looked at it yet to see if it's fit for public viewing -- I'll try to clean it up and recompile things Real Soon Now. > > give a report about my hacks, if there's interest in adding > > if_axe to 4.11. > Please do - it would be good to have this in 4.11, and now would be the > right time to do it - the 4.11 code freeze starts on Dec 13th. Ah, I hate deadlines -- well, at least, I'm hoping that this time I'll be mostly online until then, instead of once every month or two. Well, look at the above URL that I'll try to keep full of my latest hacking endeavours, so long as I'm able to be online, and feel free to ignore the ugliness and use it as a basis for something to add to 4.11 ... (I can't guarantee I'll be able to be online past this coming sunday, or even until then, but I'll do my best given the circumstances, just so you don't expect too much from me, and my apologies about this) thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 22:59:04 2004 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 D85DD16A4CE for ; Wed, 1 Dec 2004 22:59:04 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id A579343D1D for ; Wed, 1 Dec 2004 22:59:04 +0000 (GMT) (envelope-from fernando@bsdmail.org) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180])89EB618001A4 for ; Wed, 1 Dec 2004 22:59:04 +0000 (GMT) X-OB-Received: from unknown (205.158.62.86) by wfilter.us4.outblaze.com; 1 Dec 2004 22:59:04 -0000 Received: by ws5-4.us4.outblaze.com (Postfix, from userid 1001) id 35FA323EF6B; Wed, 1 Dec 2004 22:59:03 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [216.213.8.24] by ws5-4.us4.outblaze.com with http for fernando@bsdmail.org; Thu, 02 Dec 2004 06:59:03 +0800 From: "Fernando Durango" To: freebsd-usb@freebsd.org Date: Thu, 02 Dec 2004 06:59:03 +0800 X-Originating-Ip: 216.213.8.24 X-Originating-Server: ws5-4.us4.outblaze.com Message-Id: <20041201225903.35FA323EF6B@ws5-4.us4.outblaze.com> Subject: Fw: trouble sending bytes to uhid (Griffin PowerMate on 5.3-STABLE/i386) 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, 01 Dec 2004 22:59:05 -0000 Hello all, I originally posted this to hackers@ a while back. Mathew Kanner suggested I try NetBSD as their USB framework seemed a bit more up to date. Then I noticed the new usb@ list and figured I'd try my request here. TIA, -F ----- Original Message ----- From: "Fernando Durango" To: freebsd-hackers@freebsd.org Subject: trouble sending bytes to uhid (Griffin PowerMate on 5.3-STABLE/i38= 6) Date: Wed, 17 Nov 2004 03:36:11 +0800 >=20 > Hello all, >=20 > I have a Griffin PowerMate[1] that I would love to be able to manipulate > via uhid on FreeBSD. Running a USB sniffer on a win32 box shows the device > spews 6 bytes of data on dial movement and/or button pressing, and the pc > sending one byte to the PowerMate occasionally, which seems to effect LED > brightness on the Powermate. I am able to read and interpret the device > output with perl(sysopen & sysread), but I am unable to send bytes back to > the device (syswrite). >=20 > The device shows up as follows: > $ dmesg | grep uhid > uhid0: Griffin Technology, Inc. Griffin PowerMate, rev 1.00/4.00,=20 > addr 2, iclass 3/0 > $ usbdevs -d -v > addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),=20 > Intel(0x0000), rev 1.00 > uhub1 > port 1 addr 2: low speed, power 100 mA, config 1, Griffin=20 > PowerMate(0x0410), Griffin Technology, Inc.(0x077d), rev 4.00 > uhid0 > $ usbhidctl -r -f /dev/uhid0 > Report descriptor: > Collection page=3DConsumer usage=3DConsumer_Control > Input size=3D1 count=3D1 page=3DButton usage=3DButton_1, logical range = 0..1 > Input size=3D8 count=3D1 page=3DGeneric_Desktop usage=3DRx, logical ran= ge -127..127 > Input size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Input size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Input size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Input size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Output size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > Feature size=3D8 count=3D1 page=3DConsumer usage=3DConsumer_Control,=20 > logical range 0..255 > End collection > Total input size 6 bytes > Total output size 0 bytes > Total feature size 0 bytes >=20 > perl code for reading: > sysopen(DATA, "/dev/uhid0", O_RDONLY | O_NODELAY | O_BINARY) > or die "could not open $device!\n"; >=20 > while (1) { > my $buf; > if (sysread(DATA, $buf, 6)) { > my @ascii =3D map { ord } split //, $buf; > foreach ( @ascii ) { > print "$_\t"; > } > print "\n"; > } > } >=20 > perl code for writing: > sysopen(DATA, "/dev/uhid0", O_RDWR) > or die "could not open $device!\n"; >=20 > $val =3D 0xff; > if (length($val) !=3D syswrite(DATA, $val, length($val))) { > die "This is Bad: $!\n"; > } >=20 > close(DATA); >=20 > When trying to write, I get the error "This is Bad: Bad file descriptor" > Is it not possible to write to a uhid device? >=20 > Thanks in advance! >=20 > -F >=20 > [1] http://www.griffintechnology.com/products/powermate/ >=20 --=20 _______________________________________________ Get your free email from http://mymail.bsdmail.com Powered by Outblaze From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 23:09:21 2004 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 BDC1A16A4CE for ; Wed, 1 Dec 2004 23:09:21 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46E1143D54 for ; Wed, 1 Dec 2004 23:09:21 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB1N7Uq2074498 for ; Wed, 1 Dec 2004 16:07:31 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 01 Dec 2004 16:08:33 -0700 (MST) Message-Id: <20041201.160833.35218540.imp@bsdimp.com> To: freebsd-usb@freebsd.org From: "M. Warner Losh" 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 Subject: Question about pipes and ugen 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, 01 Dec 2004 23:09:21 -0000 Right now, when the usb stack opens a pipe, it resets the pipe using the ClearFeature(Stall) message. This appears to work great for the vast majority of usb devices that use things like ugen. However, there are some that do not like this at all. Fidora Core 1 Linux, for example, never seems to send these reset messages. Consequently, there are some devices that work well on Linux, but fail utterly on FreeBSD. >From my reading of the standard, it appears that FreeBSD is doing standards conforming things. Can anybody confirm this? Even if it is standards conforming, is there a desire for FreeBSD to not do this? Thanks much Warner From owner-freebsd-usb@FreeBSD.ORG Wed Dec 1 23:53:41 2004 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 C16C116A4CE for ; Wed, 1 Dec 2004 23:53:41 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FE6A43D1F for ; Wed, 1 Dec 2004 23:53:41 +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 6E17D7A44A; Wed, 1 Dec 2004 15:53:41 -0800 (PST) Message-ID: <41AE5985.10401@elischer.org> Date: Wed, 01 Dec 2004 15:53:41 -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: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> <20041130181603.A1352@curly.tele2.no> <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB OHCI problems... 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, 01 Dec 2004 23:53:41 -0000 Barry Bouwsma wrote: >[drop my e-mail from replies, and I'll catch the archives] > > >On Tue, 30 Nov 2004 18:16:03 +0100, Hans Petter Selasky wrote: > > > >>I've got a new USB driver (with OHCI isoc fixed). You need FreeBSD 5.2/5.3 to get it compiled. >>You might be able to get it compiled on FreeBSD 4.x, but you will need to to some hacking. >> >> > >Great! I've downloaded it, and I'll commence hacking -- most of >my present 4.x USB stack comes from -current as it is. Many thanks! > I'm intrigued.. why do you have a 4.x system with a 5.x USB stack? > > > > >>Maybe this thread should be moved to freebsd-usb@FreeBSD.org ? >> >> > >Well, blow me down. A new list (`new' on the glacial scale) that >didn't exist last time I was seriously online. I'm there, and I'll >be soaking in the archives Real Soon Now... > > >thanks for the tip, >barry bouwsma > >_______________________________________________ >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 Dec 2 00:01:01 2004 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 0873316A4CE for ; Thu, 2 Dec 2004 00:01:01 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE84243D1F for ; Thu, 2 Dec 2004 00:01:00 +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 C14807A451; Wed, 1 Dec 2004 16:01:00 -0800 (PST) Message-ID: <41AE5B3C.8010003@elischer.org> Date: Wed, 01 Dec 2004 16:01:00 -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: "M. Warner Losh" References: <20041201.160833.35218540.imp@bsdimp.com> In-Reply-To: <20041201.160833.35218540.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 02 Dec 2004 00:01:01 -0000 M. Warner Losh wrote: >Right now, when the usb stack opens a pipe, it resets the pipe using >the ClearFeature(Stall) message. This appears to work great for the >vast majority of usb devices that use things like ugen. However, >there are some that do not like this at all. Fidora Core 1 Linux, for >example, never seems to send these reset messages. Consequently, >there are some devices that work well on Linux, but fail utterly on >FreeBSD. > On the other hand linux's usblib sends a ClearFeature(halt) as well, which we don't even have in our version yet.. I'm slowly working on this.. > >>From my reading of the standard, it appears that FreeBSD is doing >standards conforming things. Can anybody confirm this? Even if it is >standards conforming, is there a desire for FreeBSD to not do this? > I believe that this would have to be a "quirk" and enterred into the "quirk" database so that such devices don't try do that.. (The quirks database is something we did in SCSI and has been duplicated in USB ,where badly behaved devices are identified and special behaviour can be requested for them.) > >Thanks much > >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 Thu Dec 2 00:07:49 2004 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 29D2316A4CE for ; Thu, 2 Dec 2004 00:07:49 +0000 (GMT) Received: from mta08-winn.mailhost.ntl.com (mailhost.ntl.com [212.250.162.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A40643D2D for ; Thu, 2 Dec 2004 00:07:48 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta01-winn.mailhost.ntl.com ([212.250.162.8]) by mta08-winn.mailhost.ntl.com with ESMTP <20041202000747.GYVQ20947.mta08-winn.mailhost.ntl.com@aamta01-winn.mailhost.ntl.com> for ; Thu, 2 Dec 2004 00:07:47 +0000 Received: from llama.fishballoon.org ([82.4.146.133]) by aamta01-winn.mailhost.ntl.com with ESMTP <20041202000747.DZGD27146.aamta01-winn.mailhost.ntl.com@llama.fishballoon.org> for ; Thu, 2 Dec 2004 00:07:47 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.43 (FreeBSD)) id 1CZeVh-000KTE-Je for freebsd-usb@freebsd.org; Thu, 02 Dec 2004 00:07:49 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id iB208Vwo001878 for freebsd-usb@freebsd.org; Thu, 2 Dec 2004 00:08:31 GMT (envelope-from scott) Date: Thu, 2 Dec 2004 00:08:31 +0000 From: Scott Mitchell Cc: freebsd-usb@freebsd.org Message-ID: <20041202000831.GC523@tuatara.fishballoon.org> References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE i386 Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 02 Dec 2004 00:07:49 -0000 On Wed, Dec 01, 2004 at 10:04:54PM +0100, Barry Bouwsma wrote: > > > I can have a go at MFCing if_axe, but I don't have any suitable hardware to > > test on... hopefully you're volunteering to make sure it works before it's > > committed? :-) > > Yes, of course... And I'll give an update once I catch up enough > to rebuild things. > > > > If you already have some code that at least builds, that would be a great > > start. > > I've put what I *think* I've compiled into a module up at > https://NOSPAM.dydnds.dk/hacks/ > just to get it out there. I haven't even looked at it yet to > see if it's fit for public viewing -- I'll try to clean it up > and recompile things Real Soon Now. Cool. I'll take a look at this over the weekend. if_axe looks similar enough to the rest of the USB Ethernet drivers (they were all wpaul creations to begin with) so it shouldn't be too hard to put together something that's mostly right... Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 03:45:29 2004 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 C0AA316A4CE for ; Thu, 2 Dec 2004 03:45:29 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2070843D58 for ; Thu, 2 Dec 2004 03:45:29 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB23hvAp078092; Wed, 1 Dec 2004 20:43:57 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Wed, 01 Dec 2004 20:45:02 -0700 (MST) Message-Id: <20041201.204502.51859780.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41AE5B3C.8010003@elischer.org> References: <20041201.160833.35218540.imp@bsdimp.com> <41AE5B3C.8010003@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@freebsd.org Subject: Re: Question about pipes and ugen 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, 02 Dec 2004 03:45:29 -0000 In message: <41AE5B3C.8010003@elischer.org> Julian Elischer writes: : >Right now, when the usb stack opens a pipe, it resets the pipe using : >the ClearFeature(Stall) message. This appears to work great for the : >vast majority of usb devices that use things like ugen. However, : >there are some that do not like this at all. Fidora Core 1 Linux, for : >example, never seems to send these reset messages. Consequently, : >there are some devices that work well on Linux, but fail utterly on : >FreeBSD. : > : : On the other hand linux's usblib sends a ClearFeature(halt) as well, : which we don't even have : in our version yet.. : : I'm slowly working on this.. Actually, linux's stack does no such thing in Fidora Core 1. I've verified this with a usb sniffer. : >>From my reading of the standard, it appears that FreeBSD is doing : >standards conforming things. Can anybody confirm this? Even if it is : >standards conforming, is there a desire for FreeBSD to not do this? : > : : I believe that this would have to be a "quirk" and enterred into the : "quirk" database so that : such devices don't try do that.. (The quirks database is something we : did in SCSI : and has been duplicated in USB ,where badly behaved devices are : identified and : special behaviour can be requested for them.) I'm not sure that the pipe open commands have access to the requisite information... or if things would even work since the toggle would be messed up if we don't send this command... Warner From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 10:20:13 2004 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 9767916A4CE for ; Thu, 2 Dec 2004 10:20:13 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id A611D43D5A for ; Thu, 2 Dec 2004 10:20:09 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB2AK0R19933 verified NO) for ; Thu, 2 Dec 2004 11:20:03 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB2AJxi19931; Thu, 2 Dec 2004 11:19:59 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 2 Dec 2004 11:19:59 +0100 (CET) Message-Id: <200412021019.iB2AJxi19931@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 References: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> <20041130181603.A1352@curly.tele2.no> <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> <41AE5985.10401@elischer.org> To: freebsd-usb@freebsd.org Subject: Re: USB OHCI problems... 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, 02 Dec 2004 10:20:13 -0000 Julian Elischer asked of me... > >my present 4.x USB stack comes from -current as it is. Many thanks! > I'm intrigued.. with good reason, i may add > why do you have a 4.x system with a 5.x USB stack? Hysterical raisins, mostly, if you ask me. Some many months back, Ian Dowse announced his P4 work as a patchset to -current, which sounded like it addressed many of the USB problems I had been experiencing. So, I took that and merged it as best I could with my system, borrowing from -current when needed. Sometime around this time, you also did work to bring the 4.x USB code more in line with current. Since your mega-merge, I've seen a few commits to -current USB while 4.x code has gone mostly untouched. As I discover more problems (mostly OHCI-related), I figure the best thing is for me to try out the latest code, as due to my mostly-offline status, I can only make large incremental updates, that are not so easy to keep track of -- then I can see if the problem is solved there. Also, FWIW, it appears that my ehci.c that I compiled was taken directly from NetBSD, as I had still experienced data-toggle problems with all FBSD source of that time, while they were less frequent (though occasionally present) with NetBSD. My last source update was made late October, before the latest recent updates. At that time, I didn't notice any 4.x updates of interest since May or so. I'm going to see if I can solve my known USB/OHCI issues with the code I have, then if so, I'll set this aside and try out clean 4.x source, in order to try and reduce the differences between my source and that released, but without having to suffer through bugs that may still affect me in original 4.x code. And in particular, the if_axe code I was trying to get working some weeks/months ago was only present in -current, and part of what I tried in order to avoid the panics I saw was to try and use as much -current code as possible to minimize differences. Oh, and most importantly, because I don't have the foggiest idea what I'm doing, so doing things all wrong is a good way to help me learn. next question? barry bouwsma (sheesh, ask a quick question, get a novel in response) From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 10:39:29 2004 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 6B2F116A4CE for ; Thu, 2 Dec 2004 10:39:29 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 835CA43D48 for ; Thu, 2 Dec 2004 10:39:25 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB2AdKR20084 verified NO) for ; Thu, 2 Dec 2004 11:39:23 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB2AdJc20083; Thu, 2 Dec 2004 11:39:20 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 2 Dec 2004 11:39:20 +0100 (CET) Message-Id: <200412021039.iB2AdJc20083@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 Subject: USB modules (4.x) and debug levels 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, 02 Dec 2004 10:39:29 -0000 [feel free to drop me from replies, or the hostname part of this IPv6- only address if you don't have IPv6 mail connectivity] Moin, I'm reviewing the differences between my hacked USB code and the latest I've downloaded, and I see that I've added the following (in a reversed diff; cut'n'paste no less, to make it useless) --- uhub.c Thu Sep 23 14:21:29 2004 +++ uhub.c-pre-4.11 Wed Nov 24 19:55:46 2004 @@ -67,19 +67,6 @@ #define UHUB_INTR_INTERVAL 255 /* ms */ -/* XXX Hm, seems like it's impossible to enable debugging in kernel - modules without explicitly recompiling... Looks as if the - default of 0 doesn't do anything disruptive, so let's play - like firewire and always define these too... */ - /* Stolen from my hack to usb.c */ -int uhubdebug = 0; -SYSCTL_NODE(_hw_usb, OID_AUTO, uhub, CTLFLAG_RW, 0, "USB uhub"); -SYSCTL_INT(_hw_usb_uhub, OID_AUTO, debug, CTLFLAG_RW, - &uhubdebug, 0, "uhub debug level"); -#define DPRINTF(x) if (uhubdebug) logprintf x -#define DPRINTFN(n,x) if (uhubdebug>(n)) logprintf x - -#if 0 /* XXX HACK */ #ifdef USB_DEBUG #define DPRINTF(x) if (uhubdebug) logprintf x #define DPRINTFN(n,x) if (uhubdebug>(n)) logprintf x @@ -91,7 +78,6 @@ @@ -91,7 +78,6 @@ #define DPRINTF(x) #define DPRINTFN(n,x) #endif -#endif /* HAXK */ struct uhub_softc { USBBASEDEVICE sc_dev; /* base device */ Basically, my problem is (as per the comment) that I build my USB support as modules, under 4.x, which as far as I know, does not pay attention to what I may have defined in my kernel config file. So I basically stole the code from firewire, where it seems that debugging via sysctl is always available... debug.firewire_debug: 0 debug.fwmem_debug: 0 debug.sbp_debug: 1 Then I have at hand a tunable, should I want to enable debugging with my USB modules... hw.usb.uhub.debug: 0 hw.usb.debug: 0 (I've probably done the same for uhci/ehci/ohci but haven't merged this hack into the latest code I'm trying) Does it seem to anyone else to be a good idea to enable dynamic debug tuning this way (or a more correct debug.usb_debug-like thing), particularly for kernel modules, instead of requiring the sufferer to rebuild the kernel and/or modules? thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 10:59:27 2004 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 35B8016A4CE for ; Thu, 2 Dec 2004 10:59:27 +0000 (GMT) Received: from mailfe08.swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74E2D43D46 for ; Thu, 2 Dec 2004 10:59:26 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.216.45.225] (HELO curly.tele2.no) by mailfe08.swip.net (CommuniGate Pro SMTP 4.2.6) with ESMTP id 36243305; Thu, 02 Dec 2004 11:59:24 +0100 Received: (from root@localhost) by curly.tele2.no (8.12.5/8.12.3) id iB2B5Bhr000432; Thu, 2 Dec 2004 12:05:11 +0100 (CET) (envelope-from hselasky@c2i.net) Date: Thu, 2 Dec 2004 12:05:09 +0100 From: Hans Petter Selasky To: Craig Rodrigues Message-ID: <20041202120509.A277@curly.tele2.no> References: <20041107064227.GA79915@crodrigues.org> <20041107.125814.34760598.imp@bsdimp.com> <20041130064837.GA1541@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20041130064837.GA1541@crodrigues.org>; from rodrigc@crodrigues.org on Tue, Nov 30, 2004 at 01:48:37AM -0500 cc: freebsd-usb@freebsd.org Subject: Re: Changing permissions of /dev/usb[n] to 664? 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, 02 Dec 2004 10:59:27 -0000 On Tue, Nov 30, 2004 at 01:48:37AM -0500, Craig Rodrigues wrote: > On Sun, Nov 07, 2004 at 12:58:14PM -0700, M. Warner Losh wrote: > > This looks good, but we should audit all the ioctls to make sure the > > ones that modify anything have the proper checks to make sure the fd > > was opened for write. > > OK. Here is another iteration of the patch. > It does the following: > - opens /dev/usb[n] as 664 > - puts suser() permission checks in the following paths: > USB_REQUEST ioctl() > usbpoll() > usbread() You don't need /dev/usb to be accessable by non-root users, to run usbdevs. That way you only need to check suser() when unit == USB_DEV_MINOR. usbpoll should return zero on error? What if a user which belongs to the group "operator" tries to open /dev/usbX and uses the ioctl USB_REQUEST? > > This is what a non-root user can and cannot do on /dev/usb[n]: > > Allowed > ======= > USB_DISCOVER > USB_DEVICEINFO > USB_DEVICESTATS > usbopen() > usbclose() > > Forbidden > ========= > USB_REQUEST > usbread() > usbpoll() > > The result of this patch is that a non-root user can > run usbdevs without a problem. > > I also have a small test program where I tried running > different ioctl's as non-root and this is the output I got: > > Executing ioctl(): USB_REQUEST Operation not permitted > Executing ioctl(): USB_DISCOVER...OK > Executing ioctl(): USB_DEVICEINFO...OK > Executing ioctl(): USB_DEVICESTATS...OK > > Comments? > Yours -HPS From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 11:19:25 2004 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 ED4B016A4CE for ; Thu, 2 Dec 2004 11:19:25 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-27-39.dclient.hispeed.ch [84.72.27.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3571943D46 for ; Thu, 2 Dec 2004 11:19:22 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1b27:0:220:afff:fed4:dbcb]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB2BJHR20422 verified NO) for ; Thu, 2 Dec 2004 12:19:20 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB2BJGl20421; Thu, 2 Dec 2004 12:19:16 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 2 Dec 2004 12:19:16 +0100 (CET) Message-Id: <200412021119.iB2BJGl20421@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 Subject: Dorky usbdevs question 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, 02 Dec 2004 11:19:26 -0000 If I may ask, what sort of policy is there on updating usbdevs and its ilk? (also concerning 4.x) Are new entries added on a case-by-case basis, or is an occasional wholesale sync against some other source -- say, the NetBSD usbdevs for example -- performed on occasion? I ask because I've added a few devices locally to my usbdevs, and many of them have already been present in NetBSD. At the last time I hacked my usbdevs, I came up with size differences like this: -rw-r--r-- 1 beer wheel 65281 Sep 23 10:13 usbdevs.h-LATEST_RELENG4 -rw-r--r-- 1 beer wheel 2300 Oct 8 21:21 usbdevs.h-latest-patch -rw-r--r-- 1 beer wheel 65763 Oct 9 09:12 usbdevs.h-before-NetBSD -r--r--r-- 1 beer wheel 90900 Nov 2 19:52 usbdevs.h As you see, there's a heap more in the netbsd-based usbdevs.h that I ended up using, than is present in today's 4.x usbdevs.h (unchanged since 20.sep as seen above). I think it would be nice if all the usbdevs files (4.x, 5.x, -current, netbsd, others) were as similar as possible. Otherwise, I'll need to see how much in addition to the -latest-patch above I need for 4.x to perform for me as the Big File, and submit that... thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 12:17:25 2004 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 BFC7516A4CE for ; Thu, 2 Dec 2004 12:17:25 +0000 (GMT) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 116C843D4C for ; Thu, 2 Dec 2004 12:17:25 +0000 (GMT) (envelope-from talon@niobe.lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1])iB2CHNui050253 for ; Thu, 2 Dec 2004 13:17:23 +0100 (CET) X-Ids: 166 Received: from niobe (niobe.lpthe.jussieu.fr [134.157.10.41]) iB2CHMxp009842 for ; Thu, 2 Dec 2004 13:17:22 +0100 Received: by niobe (Postfix, from userid 2005) id CAF3C5B02D; Thu, 2 Dec 2004 13:17:21 +0100 (CET) Date: Thu, 2 Dec 2004 13:17:21 +0100 From: Michel TALON To: freebsd-usb@freebsd.org Message-ID: <20041202121721.GA1656@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.11 (shiva.jussieu.fr [134.157.0.166]); Thu, 02 Dec 2004 13:17:23 +0100 (CET) X-Miltered: at shiva.jussieu.fr with ID 41AF07D3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Antivirus: scanned by sophie at shiva.jussieu.fr Subject: ohci patch 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, 02 Dec 2004 12:17:25 -0000 Hello, just a remember that there is still a patch to ohci for FreeBSD-5.3 in the ueagle-1.5 driver that can be found at: http://damien.bergamini.free.fr/ueagle/download.html This driver works perfectly well, hence it can be presumed that the patch is really necessary to get ohci working correctly. -- Michel TALON From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 16:02:54 2004 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 D1EE316A4CE; Thu, 2 Dec 2004 16:02:54 +0000 (GMT) Received: from smtp1.jazztel.es (smtp1.jazztel.es [62.14.3.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 903A843D1F; Thu, 2 Dec 2004 16:02:54 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp1.jazztel.es with antivirus id 1CZtQF-0000yE-00 Thu, 02 Dec 2004 17:03:11 +0100 Received: from [212.106.252.204] (helo=rguez.homeunix.net) by smtp1.jazztel.es with esmtp id 1CZtQE-0000w3-00 Thu, 02 Dec 2004 17:03:10 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iB2G2prh000912; Thu, 2 Dec 2004 17:02:51 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id iB2G2s8A000998; Thu, 2 Dec 2004 17:02:54 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: freebsd-usb@freebsd.org Date: Thu, 2 Dec 2004 17:02:53 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200412021702.53996.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.19; VDF: 6.28.0.101; host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: "freebsd-hackers@freebsd.org.freebsd-net"@freebsd.org Subject: about a usb adsl modem driver 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, 02 Dec 2004 16:02:55 -0000 Hi, I've got a eagle usb adsl modem and get ready to work on FreeBSD support for it. I found two proyects on this, one for alcatel modems and other for this (eagle). I can connect with the latest via pppoa on RELENG_5, but I don't like this too much. After a some days searching on inet, I found enough docs and ideas for a real usb adsl modem driver. My first idea was a sppp based one, that can be ported to all xBSD. But now I think that a netgraph thing must be a better first contact. Anyone interested in help with this? Any comments on this are welcome. -- josemi From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 18:55:37 2004 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 1481516A4CE for ; Thu, 2 Dec 2004 18:55:36 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64C2243D49 for ; Thu, 2 Dec 2004 18:55:36 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CZw73-00057R-00 for freebsd-usb@freebsd.org Thu, 02 Dec 2004 19:55:33 +0100 Received: from [212.106.252.204] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CZw73-00056W-00 for freebsd-usb@freebsd.org Thu, 02 Dec 2004 19:55:33 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iB2ItYT0001284 for ; Thu, 2 Dec 2004 19:55:34 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id iB2Itb63000838 for freebsd-usb@freebsd.org; Thu, 2 Dec 2004 19:55:37 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez Date: Thu, 2 Dec 2004 19:55:36 +0100 User-Agent: KMail/1.7.1 To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412021955.37159.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.19; VDF: 6.28.0.101; host: antares.redesjm.local) X-Virus-Scanned: by antivirus Subject: Re: about a usb adsl modem driver 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, 02 Dec 2004 18:55:37 -0000 El Jueves, 2 de Diciembre de 2004 18:38, Michel TALON escribi=F3: > > I've got a eagle usb adsl modem and get ready to work on FreeBSD > > support for it. > > [...] > > The reference i gave > > http://damien.bergamini.free.fr/ueagle/download.html > > has a working driver for the ueagle modem, which works on FreeBSD-4 > FreeBSD-5, NetBSD and OpenBSD, and even DragonFlyBSD. What do you > want more? Yes, it does pppoa or ipoa but this is providing maximal > throughput, since no ethernet encapsulation is necessary. Moreover > Damien has a pppoe or ipoa driver, it is ueagle-2.0, the only problem > being it is unsupported. > > By the way i am using this driver day and night on a very bad and > noisy line, so when i say it works, it really works. By comparison, > the Linux driver is crap, and moreover is written as crap. well, but: =2D It needs atm, so can't work with GENERIC =2D Its 1.5 version doesn't support FreeBSD 4 =2D From 2.0/1.4 it's more and more eagle chipset specific. I think that another alternative, using sppp/netgraph can't hurt. Also, most of this work can be used with alcatel and other brands chipsets. I also use the 1.5 driver on RELENG_5_3 in pppoa with very good results. =2D- josemi From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 20:15:28 2004 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 7D76E16A4CE for ; Thu, 2 Dec 2004 20:15:28 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-24-80.dclient.hispeed.ch [84.72.24.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADA6A43D39 for ; Thu, 2 Dec 2004 20:15:26 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1850:0:210:60ff:fe25:f1e5]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB2KFL200865 verified NO) for ; Thu, 2 Dec 2004 21:15:24 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB2KFK600864; Thu, 2 Dec 2004 21:15:21 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 2 Dec 2004 21:15:21 +0100 (CET) Message-Id: <200412022015.iB2KFK600864@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 References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> <20041202000831.GC523@tuatara.fishballoon.org> Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 02 Dec 2004 20:15:28 -0000 On Thu, 2 Dec 2004 00:08:31 +0000, Scott Mitchell wrote: > > I've put what I *think* I've compiled into a module up at > > https://NOSPAM.dydnds.dk/hacks/ > Cool. I'll take a look at this over the weekend. if_axe looks similar > enough to the rest of the USB Ethernet drivers (they were all wpaul > creations to begin with) so it shouldn't be too hard to put together > something that's mostly right... I'm overjoyed to report that your patches to if_aue and its ilk (and uhbdi-whatnot) are what I needed to get if_axe working, whee And that's what I'm sending this mail out on, no less. Though I haven't done a Real Test -- I've only made a 10Mbit/sec connection to a Cabal Modem. I'll probably try a 100Mbit/sec switch sometime Real Soon Now. There are two more if_axe.c files in the location given above to be downloaded now -- -NEWTEST, and -THIS_REALLY_WORKS!!@!! The latter is what I'm using. The only real difference between it and -NEWTEST is that the former has splx(s) and the like, taken from either NetBSD or DragonFly's if_axe code. I don't think that locking was what caused me to have panics in nd6_timer; I think it's one of my homebrewed scripts I use to assign IPv6 addresses, that is sub-optimal when more than one dhclient'ed interface is present. (Not that I should be able to induce an IPv6-related panic by ifconfig'ing interfaces, but it's been that way for years) Anyway, I still plan to take the latest -current code, and merge in what's needed from my ugly-hacked versions as neatly as possible, and put that up eventually as if_axe.c with no suffix. Note that both NetBSD-current and DragonFlyBSD have if_axe.c in their source trees nowadays, so someone knowledgeable may well want to review what they've done and if it's applicable. I took the splx() and such from one of them in a vain attempt to get a non-crashing module months ago, without having the faintest idea what I'm doing, so I'd welcome comments from anyone who can set me straight. currently being tested connected to OHCI. Haven't tried it with UHCI or EHCI to see if the eternal-probe problem is present with the former, and to verify the latter works. Only been online for some minutes. Problems will be reported. OHCI is mostly that from the latest 4.x at present. Device is a Linksys USB200M. `dmesg' output relevant to it is whoops, not in dmesg.boot as I came out of single-user, hmmm, try this axe0: Linksys USB 2.0 10/100 ethernet controller, rev 2.00/0.01, addr 3 axe0: Ethernet address: 00:10:60:25:f1:e5 miibus0: on axe0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: axe0 attached. `ifconfig' looks like axe0: flags=8843 mtu 1500 inet6 fe80::210:60ff:fe25:f1e5%axe0 prefixlen 64 scopeid 0x1 inet 84.72.24.80 netmask 0xfffff000 broadcast 255.255.255.255 inet6 2002:5448:1850:0:210:60ff:fe25:f1e5 prefixlen 64 inet6 2002:5448:1850:feed:babe:dead:c0de:d00d prefixlen 48 inet 172.27.72.27 netmask 0xffffff00 broadcast 172.27.72.255 ether 00:10:60:25:f1:e5 media: Ethernet autoselect (10baseT/UTP) status: active guess I'll let it run for a while with OHCI and see if there are any showstoppers -- but I should probably boot cleanly with it too... I loaded it as a kernel module thkans barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 20:41:11 2004 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 8F33816A4CF for ; Thu, 2 Dec 2004 20:41:11 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-24-80.dclient.hispeed.ch [84.72.24.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11AC243D2F for ; Thu, 2 Dec 2004 20:41:09 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1850:0:210:60ff:fe25:f1e5]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB2Kf4200922 verified NO) for ; Thu, 2 Dec 2004 21:41:06 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB2Kf3l00921; Thu, 2 Dec 2004 21:41:03 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Thu, 2 Dec 2004 21:41:03 +0100 (CET) Message-Id: <200412022041.iB2Kf3l00921@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 References: <200410242008.i9OK8jd10485@Mail.NOSPAM.DynDNS.dK> <200412010929.iB19TLW08470@Mail.NOSPAM.DynDNS.dK> From: Barry Bouwsma To: freebsd-usb@freebsd.org Subject: Re: USB uaudio soundcards question 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, 02 Dec 2004 20:41:11 -0000 On Wed, 1 Dec 2004 10:29:22 +0100 (CET) I wrote to freebsd-multimedia something about one external USB-attached sound device (sound card they call it, but it sure doesn't look like a card, though it has the functions of one) I thought I'd clarify/update my post, should anyone be interested. The original can be found in multimedia@ around the above time. See my References: header. (oops, this isn't usenet, sorry) > > in shops too, as well as a Hercules Muse knob that supposedly > > also works on a Mac as only 2-channel, so may well work on BSD... > There are issues with my OHCI source code that cause playback to > stop after 10 to 13 minutes; this is not an issue with UHCI and > playback for several hours -- nor did I notice this problem with > OHCI when booted into NetBSD. This still happens with the latest 4.x OHCI code downloaded this morning, with negligible hacks (probably due to having leftovers from Ian Dowse's patchsets somewhere else). My USB stack at present is rather close to 4-stable. When I did the test this time, I was in single-user, no swap active. I noted the following from the kernel after about 11 minutes of playback: swap_pager_getswapspace: failed Playing a file (waveplay) was the only thing I was doing. Then something like half a minute later, the usual usb0: isoc TD alloc failed (x2) pcm1:play:0: play interrupt timeout, channel dead And that was that. Interesting? > I didn't think to check this with NetBSD, as all my audio samples > are at 48kHz samplerate, but attempts to use a lower rate for > playback with FreeBSD did not work well at all: the pitch tries > to remain the same as the samples are stretched to an extended Argh, forgot to check this when booted into netbsd > I noticed that when playing over UHCI, the first fraction of a > second would be repeated at the beginning of playback. Ah, this > also affects OHCI. I'll need to try NetBSD again. Perhaps this This is *NOT* a problem with NetBSD. The audio starts and stops cleanly, with no stuttering or repeated bits. I suspect this is not USB-related, but has to do with FreeBSD 4.x audio. (hmmm, can I build uaudio into 3.x, which if I remember, plays audio much more cleanly than 4.x ? hmmm) thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Thu Dec 2 22:54:51 2004 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 CBE6616A4CE for ; Thu, 2 Dec 2004 22:54:51 +0000 (GMT) Received: from mta13-winn.mailhost.ntl.com (mailhost.ntl.com [212.250.162.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id E1A7E43D45 for ; Thu, 2 Dec 2004 22:54:50 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta03-winn.mailhost.ntl.com ([212.250.162.8]) by mta13-winn.mailhost.ntl.com with ESMTP <20041202225450.HXNY20193.mta13-winn.mailhost.ntl.com@aamta03-winn.mailhost.ntl.com> for ; Thu, 2 Dec 2004 22:54:50 +0000 Received: from llama.fishballoon.org ([82.4.146.133]) by aamta03-winn.mailhost.ntl.com with ESMTP <20041202225449.ODAF1113.aamta03-winn.mailhost.ntl.com@llama.fishballoon.org> for ; Thu, 2 Dec 2004 22:54:49 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.43 (FreeBSD)) id 1CZzqe-000NIJ-Ar for freebsd-usb@freebsd.org; Thu, 02 Dec 2004 22:54:52 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id iB2MtZnx043634 for freebsd-usb@freebsd.org; Thu, 2 Dec 2004 22:55:35 GMT (envelope-from scott) Date: Thu, 2 Dec 2004 22:55:35 +0000 From: Scott Mitchell Cc: freebsd-usb@freebsd.org Message-ID: <20041202225535.GB515@tuatara.fishballoon.org> References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> <20041202000831.GC523@tuatara.fishballoon.org> <200412022015.iB2KFK600864@Mail.NOSPAM.DynDNS.dK> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412022015.iB2KFK600864@Mail.NOSPAM.DynDNS.dK> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE i386 Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 02 Dec 2004 22:54:52 -0000 On Thu, Dec 02, 2004 at 09:15:21PM +0100, Barry Bouwsma wrote: > On Thu, 2 Dec 2004 00:08:31 +0000, Scott Mitchell wrote: > > > > I've put what I *think* I've compiled into a module up at > > > https://NOSPAM.dydnds.dk/hacks/ > > > Cool. I'll take a look at this over the weekend. if_axe looks similar > > enough to the rest of the USB Ethernet drivers (they were all wpaul > > creations to begin with) so it shouldn't be too hard to put together > > something that's mostly right... > > I'm overjoyed to report that your patches to if_aue and its ilk > (and uhbdi-whatnot) are what I needed to get if_axe working, whee > > And that's what I'm sending this mail out on, no less. Though I > haven't done a Real Test -- I've only made a 10Mbit/sec connection > to a Cabal Modem. I'll probably try a 100Mbit/sec switch sometime > Real Soon Now. Excellent news! Certainly makes my job a lot easier if you've already done all the hard work to get the thing running :-) > There are two more if_axe.c files in the location given above to > be downloaded now -- -NEWTEST, and -THIS_REALLY_WORKS!!@!! > The latter is what I'm using. The only real difference between > it and -NEWTEST is that the former has splx(s) and the like, taken > from either NetBSD or DragonFly's if_axe code. > > I don't think that locking was what caused me to have panics in > nd6_timer; I think it's one of my homebrewed scripts I use to > assign IPv6 addresses, that is sub-optimal when more than one > dhclient'ed interface is present. (Not that I should be able to > induce an IPv6-related panic by ifconfig'ing interfaces, but it's > been that way for years) I'm pretty sure we don't need the locking in these drivers anymore, although I'm not 100% clear on the details. Certainly all the splusb()/splx() stuff disappeared with Julian's mega-MFC after 4.10. > Anyway, I still plan to take the latest -current code, and merge > in what's needed from my ugly-hacked versions as neatly as possible, > and put that up eventually as if_axe.c with no suffix. Looking forward to it. Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 16:50:06 2004 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 AA43716A4CE for ; Fri, 3 Dec 2004 16:50:06 +0000 (GMT) Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B87743D58 for ; Fri, 3 Dec 2004 16:50:05 +0000 (GMT) (envelope-from rik@cronyx.ru) Received: (from root@localhost) by hanoi.cronyx.ru (8.13.0/vak/3.0) id iB3GrbBm087212 for freebsd-usb@freebsd.org.checked; Fri, 3 Dec 2004 19:53:37 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from [144.206.181.94] (hi.cronyx.ru [144.206.181.94]) by hanoi.cronyx.ru (8.13.0/vak/3.0) with ESMTP id iB3GqpBK087191; Fri, 3 Dec 2004 19:52:51 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <41B09971.1080209@cronyx.ru> Date: Fri, 03 Dec 2004 19:50:57 +0300 From: Roman Kurakin User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose M Rodriguez References: <200412021702.53996.freebsd@redesjm.local> In-Reply-To: <200412021702.53996.freebsd@redesjm.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: about a usb adsl modem driver 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, 03 Dec 2004 16:50:06 -0000 Jose M Rodriguez wrote: >Hi, > >I've got a eagle usb adsl modem and get ready to work on FreeBSD support >for it. > >I found two proyects on this, one for alcatel modems and other for this >(eagle). > >I can connect with the latest via pppoa on RELENG_5, but I don't like >this too much. > >After a some days searching on inet, I found enough docs and ideas for a >real usb adsl modem driver. > >My first idea was a sppp based one, that can be ported to all xBSD. But >now I think that a netgraph thing must be a better first contact. > > Note, with Netgraph you may use sppp via ng_sppp(4). Also it is not to hard to implement a dual driver. But I sugest to not do that way, especialy if you want to support multiple branches. I know how hard is that ;-). (http://www.cronyx.ru/software/sigma.html) If your implementation would work with sppp (via ng_sppp(4)) or you would need smth additional from sppp(4) let me know. rik >Anyone interested in help with this? > >Any comments on this are welcome. > >-- > josemi > > >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 19:40:10 2004 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 6965016A4CE for ; Fri, 3 Dec 2004 19:40: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 EBC7343D53 for ; Fri, 3 Dec 2004 19:40:09 +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 C17C47A44B; Fri, 3 Dec 2004 11:40:08 -0800 (PST) Message-ID: <41B0C118.8070001@elischer.org> Date: Fri, 03 Dec 2004 11:40:08 -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: "M. Warner Losh" References: <20041201.160833.35218540.imp@bsdimp.com> <41AE5B3C.8010003@elischer.org> <20041201.204502.51859780.imp@bsdimp.com> In-Reply-To: <20041201.204502.51859780.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 19:40:10 -0000 M. Warner Losh wrote: >In message: <41AE5B3C.8010003@elischer.org> > Julian Elischer writes: >: >Right now, when the usb stack opens a pipe, it resets the pipe using >: >the ClearFeature(Stall) message. This appears to work great for the >: >vast majority of usb devices that use things like ugen. However, >: >there are some that do not like this at all. Fidora Core 1 Linux, for >: >example, never seems to send these reset messages. Consequently, >: >there are some devices that work well on Linux, but fail utterly on >: >FreeBSD. >: > >: >: On the other hand linux's usblib sends a ClearFeature(halt) as well, >: which we don't even have >: in our version yet.. >: >: I'm slowly working on this.. > >Actually, linux's stack does no such thing in Fidora Core 1. I've >verified this with a usb sniffer. > I didn't say stack.. I said libusb (excepty I spelled it usblib) it recovers on several machines where FreeBSD looses communications with the target after an error. > >: >>From my reading of the standard, it appears that FreeBSD is doing >: >standards conforming things. Can anybody confirm this? Even if it is >: >standards conforming, is there a desire for FreeBSD to not do this? >: > >: >: I believe that this would have to be a "quirk" and enterred into the >: "quirk" database so that >: such devices don't try do that.. (The quirks database is something we >: did in SCSI >: and has been duplicated in USB ,where badly behaved devices are >: identified and >: special behaviour can be requested for them.) > >I'm not sure that the pipe open commands have access to the requisite >information... or if things would even work since the toggle would be >messed up if we don't send this command... > >Warner > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 19:44:28 2004 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 A414C16A4CE for ; Fri, 3 Dec 2004 19:44: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 503DA43D53 for ; Fri, 3 Dec 2004 19:44: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 B2CA77A425; Fri, 3 Dec 2004 11:44:27 -0800 (PST) Message-ID: <41B0C21B.1000508@elischer.org> Date: Fri, 03 Dec 2004 11:44:27 -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: <200410201612.i9KGClg05229@Mail.NOSPAM.DynDNS.dK> <200411301310.iAUDAJl01186@Mail.NOSPAM.DynDNS.dK> <20041130181603.A1352@curly.tele2.no> <200412010727.iB17RCT07496@Mail.NOSPAM.DynDNS.dK> <41AE5985.10401@elischer.org> <200412021019.iB2AJxi19931@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200412021019.iB2AJxi19931@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB OHCI problems... 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, 03 Dec 2004 19:44:28 -0000 Barry Bouwsma wrote: >Julian Elischer asked of me... > > > >>>my present 4.x USB stack comes from -current as it is. Many thanks! >>> >>> > > > >>I'm intrigued.. >> >> > >with good reason, i may add > > > >>why do you have a 4.x system with a 5.x USB stack? >> >> > >Hysterical raisins, mostly, if you ask me. > >Some many months back, Ian Dowse announced his P4 work as a patchset >to -current, which sounded like it addressed many of the USB problems >I had been experiencing. > >So, I took that and merged it as best I could with my system, borrowing >from -current when needed. > >Sometime around this time, you also did work to bring the 4.x USB >code more in line with current. > well, some of it.. > >Since your mega-merge, I've seen a few commits to -current USB while >4.x code has gone mostly untouched. As I discover more problems >(mostly OHCI-related), I figure the best thing is for me to try out >the latest code, as due to my mostly-offline status, I can only >make large incremental updates, that are not so easy to keep track >of -- then I can see if the problem is solved there. > I can only really concentrate on USB (and usb in 4.x) in short bursts as work allows. I'm currently on that again, looking for some bugs (in but -current and 4.x) > >Also, FWIW, it appears that my ehci.c that I compiled was taken >directly from NetBSD, as I had still experienced data-toggle >problems with all FBSD source of that time, while they were less >frequent (though occasionally present) with NetBSD. > at WHAT time? > >My last source update was made late October, before the latest >recent updates. At that time, I didn't notice any 4.x updates >of interest since May or so. I'm going to see if I can solve my >known USB/OHCI issues with the code I have, then if so, I'll set >this aside and try out clean 4.x source, in order to try and reduce >the differences between my source and that released, but without >having to suffer through bugs that may still affect me in original >4.x code. > Is there any possibility that instead of just doing 5.x stacks on 4.x I can convince you to try make that the defautl case (in other words help with MFC-ing current code back into 4.x?) :-) > >And in particular, the if_axe code I was trying to get working some >weeks/months ago was only present in -current, and part of what I >tried in order to avoid the panics I saw was to try and use as much >-current code as possible to minimize differences. > >Oh, and most importantly, because I don't have the foggiest idea >what I'm doing, so doing things all wrong is a good way to help me >learn. > > >next question? > >barry bouwsma >(sheesh, ask a quick question, get a novel in response) > >_______________________________________________ >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 Dec 3 19:45:03 2004 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 647DD16A4CE; Fri, 3 Dec 2004 19:45:03 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A84843D39; Fri, 3 Dec 2004 19:45:02 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CaJML-0006I1-00 Fri, 03 Dec 2004 20:44:53 +0100 Received: from [212.106.254.37] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CaJMK-0006HZ-00 Fri, 03 Dec 2004 20:44:52 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iB3Jir3L000494; Fri, 3 Dec 2004 20:44:53 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id iB3Jiu8a001493; Fri, 3 Dec 2004 20:44:56 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: Roman Kurakin Date: Fri, 3 Dec 2004 20:44:55 +0100 User-Agent: KMail/1.7.1 References: <200412021702.53996.freebsd@redesjm.local> <41B09971.1080209@cronyx.ru> In-Reply-To: <41B09971.1080209@cronyx.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412032044.56370.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.19; VDF: 6.28.0.103; host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: hackers@freebsd.org cc: freebsd-usb@freebsd.org cc: net@freebsd.org Subject: Re: about a usb adsl modem driver 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, 03 Dec 2004 19:45:03 -0000 El Viernes, 3 de Diciembre de 2004 17:50, Roman Kurakin escribi=F3: > Jose M Rodriguez wrote: > >Hi, > > > >I've got a eagle usb adsl modem and get ready to work on FreeBSD > > support for it. > > [...]=20 > > > >My first idea was a sppp based one, that can be ported to all xBSD.=20 > > But now I think that a netgraph thing must be a better first > > contact. > > Note, with Netgraph you may use sppp via ng_sppp(4). Also it is not > to hard to > implement a dual driver. But I sugest to not do that way, especialy > if you want to > support multiple branches. I know how hard is that ;-). > (http://www.cronyx.ru/software/sigma.html) > If your implementation would work with sppp (via ng_sppp(4)) or you > would need > smth additional from sppp(4) let me know. > > rik > Well, this may depend of noted interest. I can work on RELENG_5_3 or RELENG_4, but I need some commiter that can=20 take this into HEAD. I found Netgraph the easy path. A, let's say, ng_uadsl limited only to=20 move aal5 between the modem and netgraph may be enough to use routed=20 protocols, bridged mode, pppoe, pppoa, pptp, user-ppp, sppp, ... just=20 with some equivalents of frame relay nodes and atm_llc, adapted to=20 rfc2684. The hard part of this solution is that we need more userland work to=20 sync all this stuff. Also, I noted that most of home adsl connections are of just only three=20 categories: =2D IPv4 routed (generally LLC) =2D pppoe over ethernet bridge (Only LLC) =2D pppoa (generally VCMux, but also LLC) I think this can be taken by a sppp derived work. pppoa may be really direct (just PDU test/adjust), but the other need=20 more work. IPv4 routed needs some kinda of bypass control, to use only the basic if=20 interface after sppp. pppoe (only client) may be implemented in a single step with ethernet=20 bridge encapsulation as a dial extension. Also, an auto mode for pppoe/pppoa-LLC/pppoa-VCMux may be implemented=20 without too much problem (rotatory mode selection in sucesive dial=20 attemps). Support form OpenBSD must be easy, but NetBSD is another story. This=20 implementation is heavily affected by pppoe works and really differ=20 from FreeBSD/OpenBSD. Also, the usb part needs works. A eagle implementation based on ueagle must be easy. but this driver is,=20 right now, too much 'eagle oriented'. I'll prefer a 'ugen derived' model (used by net/pppoa). Or, at last, a=20 more generic driver. This needs really 'too much manpower' that I can expend now. So, if noboby else have any more to say, I'll work it only two basic=20 directions, time permitting: =2D a sppp based, pppoa only driver for eagle, derived from ueagle, for=20 RELENG_5. =2D a ng_ueagle node for RELENG_5 derived from ueagle. thanks for your time, =2D- josemi From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 19:47:59 2004 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 31E5E16A4D0 for ; Fri, 3 Dec 2004 19:47:59 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0D6043D31 for ; Fri, 3 Dec 2004 19:47:58 +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 112697A455; Fri, 3 Dec 2004 11:47:58 -0800 (PST) Message-ID: <41B0C2ED.5000706@elischer.org> Date: Fri, 03 Dec 2004 11:47:57 -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: <200412021119.iB2BJGl20421@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200412021119.iB2BJGl20421@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Dorky usbdevs question 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, 03 Dec 2004 19:47:59 -0000 Barry Bouwsma wrote: >If I may ask, what sort of policy is there on updating usbdevs >and its ilk? (also concerning 4.x) > >Are new entries added on a case-by-case basis, or is an occasional >wholesale sync against some other source -- say, the NetBSD usbdevs >for example -- performed on occasion? > >I ask because I've added a few devices locally to my usbdevs, and >many of them have already been present in NetBSD. > we add entries whenever we find some and we have the time/energy. > >At the last time I hacked my usbdevs, I came up with size differences >like this: >-rw-r--r-- 1 beer wheel 65281 Sep 23 10:13 usbdevs.h-LATEST_RELENG4 >-rw-r--r-- 1 beer wheel 2300 Oct 8 21:21 usbdevs.h-latest-patch >-rw-r--r-- 1 beer wheel 65763 Oct 9 09:12 usbdevs.h-before-NetBSD >-r--r--r-- 1 beer wheel 90900 Nov 2 19:52 usbdevs.h > >As you see, there's a heap more in the netbsd-based usbdevs.h that I >ended up using, than is present in today's 4.x usbdevs.h (unchanged >since 20.sep as seen above). > >I think it would be nice if all the usbdevs files (4.x, 5.x, -current, >netbsd, others) were as similar as possible. Otherwise, I'll need to >see how much in addition to the -latest-patch above I need for 4.x to >perform for me as the Big File, and submit that... > If you submit patches for merging in from all sources, the we can certainly commit them. there isn't much risk in identifying extra devices. > > >thanks >barry bouwsma > >_______________________________________________ >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 Dec 3 19:51:31 2004 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 B9A4A16A4CE for ; Fri, 3 Dec 2004 19:51:31 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F5E543D53 for ; Fri, 3 Dec 2004 19:51:31 +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 6FA947A451; Fri, 3 Dec 2004 11:51:29 -0800 (PST) Message-ID: <41B0C3C1.5040306@elischer.org> Date: Fri, 03 Dec 2004 11:51:29 -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: Jose M Rodriguez References: <200412021702.53996.freebsd@redesjm.local> In-Reply-To: <200412021702.53996.freebsd@redesjm.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: about a usb adsl modem driver 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, 03 Dec 2004 19:51:31 -0000 Jose M Rodriguez wrote: >Hi, > >I've got a eagle usb adsl modem and get ready to work on FreeBSD support >for it. > >I found two proyects on this, one for alcatel modems and other for this >(eagle). > >I can connect with the latest via pppoa on RELENG_5, but I don't like >this too much. > >After a some days searching on inet, I found enough docs and ideas for a >real usb adsl modem driver. > >My first idea was a sppp based one, that can be ported to all xBSD. But >now I think that a netgraph thing must be a better first contact. > >Anyone interested in help with this? > >Any comments on this are welcome. > if you want to mix USB and Netgraph look at dev/usb/udbp.c > >-- > josemi > > >_______________________________________________ >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 Dec 3 19:55:15 2004 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 9CAF916A4CE for ; Fri, 3 Dec 2004 19:55:15 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7930043D53 for ; Fri, 3 Dec 2004 19:55:15 +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 5535B7A451; Fri, 3 Dec 2004 11:55:15 -0800 (PST) Message-ID: <41B0C4A3.9080308@elischer.org> Date: Fri, 03 Dec 2004 11:55:15 -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: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> <20041202000831.GC523@tuatara.fishballoon.org> <200412022015.iB2KFK600864@Mail.NOSPAM.DynDNS.dK> In-Reply-To: <200412022015.iB2KFK600864@Mail.NOSPAM.DynDNS.dK> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 03 Dec 2004 19:55:15 -0000 Barry Bouwsma wrote: >I'm overjoyed to report that your patches to if_aue and its ilk >(and uhbdi-whatnot) are what I needed to get if_axe working, whee > > If you can generate good unified diffs I can commit them for you. we rely on users of devices to submit their changes when they fix them.. :-) From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 19:58:40 2004 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 EE61816A4D0 for ; Fri, 3 Dec 2004 19:58:39 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4E4143D2F for ; Fri, 3 Dec 2004 19:58:38 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 39180 invoked from network); 3 Dec 2004 19:49:26 -0000 Received: from dotat.atdotat.at (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 3 Dec 2004 19:49:26 -0000 Message-ID: <41B0C569.9070704@freebsd.org> Date: Fri, 03 Dec 2004 20:58:33 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a5) Gecko/20041122 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose M Rodriguez References: <200412021702.53996.freebsd@redesjm.local> <41B09971.1080209@cronyx.ru> <200412032044.56370.freebsd@redesjm.local> In-Reply-To: <200412032044.56370.freebsd@redesjm.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: net@freebsd.org cc: hackers@freebsd.org cc: freebsd-usb@freebsd.org cc: Roman Kurakin Subject: Re: about a usb adsl modem driver 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, 03 Dec 2004 19:58:40 -0000 Jose M Rodriguez wrote: > El Viernes, 3 de Diciembre de 2004 17:50, Roman Kurakin escribió: > >>Jose M Rodriguez wrote: >> >>>Hi, >>> >>>I've got a eagle usb adsl modem and get ready to work on FreeBSD >>>support for it. >>>[...] >>> >>>My first idea was a sppp based one, that can be ported to all xBSD. >>>But now I think that a netgraph thing must be a better first >>>contact. >> >>Note, with Netgraph you may use sppp via ng_sppp(4). Also it is not >>to hard to >>implement a dual driver. But I sugest to not do that way, especialy >>if you want to >>support multiple branches. I know how hard is that ;-). >>(http://www.cronyx.ru/software/sigma.html) >>If your implementation would work with sppp (via ng_sppp(4)) or you >>would need >>smth additional from sppp(4) let me know. >> >>rik >> > > Well, this may depend of noted interest. > > I can work on RELENG_5_3 or RELENG_4, but I need some commiter that can > take this into HEAD. > > I found Netgraph the easy path. A, let's say, ng_uadsl limited only to > move aal5 between the modem and netgraph may be enough to use routed > protocols, bridged mode, pppoe, pppoa, pptp, user-ppp, sppp, ... just > with some equivalents of frame relay nodes and atm_llc, adapted to > rfc2684. There is an extensive Netgraph ATM framework in FreeBSD 5.x written by harti@freebsd.org. The only thing you need to do is the hardware driver for the ADSL USB modem. -- Andre > The hard part of this solution is that we need more userland work to > sync all this stuff. > > Also, I noted that most of home adsl connections are of just only three > categories: > > - IPv4 routed (generally LLC) > - pppoe over ethernet bridge (Only LLC) > - pppoa (generally VCMux, but also LLC) > > I think this can be taken by a sppp derived work. > > pppoa may be really direct (just PDU test/adjust), but the other need > more work. > > IPv4 routed needs some kinda of bypass control, to use only the basic if > interface after sppp. > > pppoe (only client) may be implemented in a single step with ethernet > bridge encapsulation as a dial extension. > > Also, an auto mode for pppoe/pppoa-LLC/pppoa-VCMux may be implemented > without too much problem (rotatory mode selection in sucesive dial > attemps). > > Support form OpenBSD must be easy, but NetBSD is another story. This > implementation is heavily affected by pppoe works and really differ > from FreeBSD/OpenBSD. > > Also, the usb part needs works. > > A eagle implementation based on ueagle must be easy. but this driver is, > right now, too much 'eagle oriented'. > > I'll prefer a 'ugen derived' model (used by net/pppoa). Or, at last, a > more generic driver. > > This needs really 'too much manpower' that I can expend now. > > So, if noboby else have any more to say, I'll work it only two basic > directions, time permitting: > > - a sppp based, pppoa only driver for eagle, derived from ueagle, for > RELENG_5. > > - a ng_ueagle node for RELENG_5 derived from ueagle. > > thanks for your time, > -- > josemi > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 20:26:00 2004 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 D0C3F16A4CE; Fri, 3 Dec 2004 20:26:00 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A91843D3F; Fri, 3 Dec 2004 20:26:00 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CaK05-0000iS-00 Fri, 03 Dec 2004 21:25:57 +0100 Received: from [212.106.254.37] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CaK04-0000gl-00 Fri, 03 Dec 2004 21:25:57 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iB3KPsGC000649; Fri, 3 Dec 2004 21:25:54 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.1/8.13.1/Submit) id iB3KPvSr001806; Fri, 3 Dec 2004 21:25:57 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: Andre Oppermann Date: Fri, 3 Dec 2004 21:25:56 +0100 User-Agent: KMail/1.7.1 References: <200412021702.53996.freebsd@redesjm.local> <200412032044.56370.freebsd@redesjm.local> <41B0C569.9070704@freebsd.org> In-Reply-To: <41B0C569.9070704@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412032125.57063.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.19; VDF: 6.28.0.103; host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: hackers@freebsd.org cc: freebsd-usb@freebsd.org cc: net@freebsd.org Subject: Re: about a usb adsl modem driver 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, 03 Dec 2004 20:26:01 -0000 El Viernes, 3 de Diciembre de 2004 20:58, Andre Oppermann escribi=F3: > Jose M Rodriguez wrote: > > El Viernes, 3 de Diciembre de 2004 17:50, Roman Kurakin escribi=F3: > >>Jose M Rodriguez wrote: > >>>Hi, > >>> > >>>I've got a eagle usb adsl modem and get ready to work on FreeBSD > >>>support for it. > >>>[...] [...] > > I found Netgraph the easy path. A, let's say, ng_uadsl limited only > > to move aal5 between the modem and netgraph may be enough to use > > routed protocols, bridged mode, pppoe, pppoa, pptp, user-ppp, sppp, > > ... just with some equivalents of frame relay nodes and atm_llc, > > adapted to rfc2684. > > There is an extensive Netgraph ATM framework in FreeBSD 5.x written > by harti@freebsd.org. The only thing you need to do is the hardware > driver for the ADSL USB modem. This one of the main reasons to 'go netgraph'. In fact, the actual=20 ueagle driver uses NATM. But noted strong differences between atm boards and adsl modems. =2D atm boards are hardware assisted. usb adsl modems are bare assisted. =2D atm boards support better signaling, multiple channels, ... usb adsl=20 modems just one PVC with uni signaling. So I realize that try to get a NATM/NETGRAPH hardware driver may be too=20 work for little gain. Right now, I think that maintain a ng_uadsl closer enough to ng_atm must=20 be a better solution. In other words, take harti work as a reference, but let uadsl=20 independent of atm works. =2D- josemi From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 20:34:09 2004 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 C37FA16A4CE for ; Fri, 3 Dec 2004 20:34:09 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D33743D3F for ; Fri, 3 Dec 2004 20:34:09 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB3KXDNx007276; Fri, 3 Dec 2004 13:33:13 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 03 Dec 2004 13:34:22 -0700 (MST) Message-Id: <20041203.133422.67680751.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41B0C118.8070001@elischer.org> References: <41AE5B3C.8010003@elischer.org> <20041201.204502.51859780.imp@bsdimp.com> <41B0C118.8070001@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@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 20:34:09 -0000 In message: <41B0C118.8070001@elischer.org> Julian Elischer writes: : I didn't say stack.. I said libusb (excepty I spelled it usblib) OK. I got confused... : it recovers on several machines where FreeBSD looses communications with : the target after an error. Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of pipes by the driver (which ugen does each time the pipe subdevice is opened). ClearFeature(Stall) was unfortunately typed from memory rather than looking at the standard (section 9.4.5). What were you thinking about chaning in this area? Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 21:37:37 2004 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 545E416A4CE for ; Fri, 3 Dec 2004 21:37:37 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AFFA43D55 for ; Fri, 3 Dec 2004 21:37:37 +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 BEB967A44B; Fri, 3 Dec 2004 13:37:36 -0800 (PST) Message-ID: <41B0DCA0.7060508@elischer.org> Date: Fri, 03 Dec 2004 13:37:36 -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: "M. Warner Losh" References: <41AE5B3C.8010003@elischer.org> <20041201.204502.51859780.imp@bsdimp.com> <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> In-Reply-To: <20041203.133422.67680751.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 21:37:37 -0000 M. Warner Losh wrote: >In message: <41B0C118.8070001@elischer.org> > Julian Elischer writes: >: I didn't say stack.. I said libusb (excepty I spelled it usblib) > >OK. I got confused... > >: it recovers on several machines where FreeBSD looses communications with >: the target after an error. > >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of >pipes by the driver (which ugen does each time the pipe subdevice is >opened). ClearFeature(Stall) was unfortunately typed from memory >rather than looking at the standard (section 9.4.5). What were you >thinking about chaning in this area? > Well for start implementing the call in libusb so it matches linux :-) It's a stub in the freeBSD version. Then it is possible that on an endpoint after it has timed out, you sholdl do a "Get Status" on the endpoint to check if it is in halt state and if it is then clear it. ( see section 9.4.5 of the usb-2 spec) (page 254) believe it or not we are using a device that gets in this state pretty easily and **Doesn't respond to a USB reset** but for some reason it does respond to a ClearFeature(halt) on the endpoint. (I'd like to get my hands on the idiots that decided to make "reset" not work on that device. >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 Fri Dec 3 21:39:37 2004 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 25CF916A4CE for ; Fri, 3 Dec 2004 21:39:37 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 078DC43D45 for ; Fri, 3 Dec 2004 21:39:37 +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 E1DE27A44B; Fri, 3 Dec 2004 13:39:36 -0800 (PST) Message-ID: <41B0DD18.9080300@elischer.org> Date: Fri, 03 Dec 2004 13:39:36 -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: "M. Warner Losh" References: <41AE5B3C.8010003@elischer.org> <20041201.204502.51859780.imp@bsdimp.com> <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> In-Reply-To: <20041203.133422.67680751.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 21:39:37 -0000 M. Warner Losh wrote: >In message: <41B0C118.8070001@elischer.org> > Julian Elischer writes: >: I didn't say stack.. I said libusb (excepty I spelled it usblib) > >OK. I got confused... > >: it recovers on several machines where FreeBSD looses communications with >: the target after an error. > >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of >pipes by the driver (which ugen does each time the pipe subdevice is >opened). ClearFeature(Stall) was unfortunately typed from memory >rather than looking at the standard (section 9.4.5). What were you >thinking about changing in this area? > BTW it does the halt too late.. by that time it has already tried to do other opertations that have probably timed out (at least on the stupid device I have) so it's aborted before it ever gets to the ClearFeature(Halt). > >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 Fri Dec 3 21:46:24 2004 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 1E5BE16A4CE for ; Fri, 3 Dec 2004 21:46:24 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id A755B43D55 for ; Fri, 3 Dec 2004 21:46:23 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB3LhNAr008297; Fri, 3 Dec 2004 14:43:23 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 03 Dec 2004 14:44:32 -0700 (MST) Message-Id: <20041203.144432.89673091.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41B0DD18.9080300@elischer.org> References: <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> <41B0DD18.9080300@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@FreeBSD.ORG Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 21:46:24 -0000 In message: <41B0DD18.9080300@elischer.org> Julian Elischer writes: : : : M. Warner Losh wrote: : : >In message: <41B0C118.8070001@elischer.org> : > Julian Elischer writes: : >: I didn't say stack.. I said libusb (excepty I spelled it usblib) : > : >OK. I got confused... : > : >: it recovers on several machines where FreeBSD looses communications with : >: the target after an error. : > : >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of : >pipes by the driver (which ugen does each time the pipe subdevice is : >opened). ClearFeature(Stall) was unfortunately typed from memory : >rather than looking at the standard (section 9.4.5). What were you : >thinking about changing in this area? : > : : BTW it does the halt too late.. by that time it has already tried to do : other opertations that : have probably timed out (at least on the stupid device I have) so it's : aborted before it ever gets : to the ClearFeature(Halt). It does this as soon as the driver opens the pipe. Nothing can have happened on the pipe before that. I don't understand what you are saying here. It might also do it other times, but it definitely does it on open... Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:08:33 2004 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 69A8716A4CE for ; Fri, 3 Dec 2004 22:08:33 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BCA743D2D for ; Fri, 3 Dec 2004 22:08:33 +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 1FFB87A452; Fri, 3 Dec 2004 14:08:33 -0800 (PST) Message-ID: <41B0E3E0.4030207@elischer.org> Date: Fri, 03 Dec 2004 14:08:32 -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: "M. Warner Losh" References: <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> In-Reply-To: <20041203.144432.89673091.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@FreeBSD.ORG Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:08:33 -0000 M. Warner Losh wrote: >In message: <41B0DD18.9080300@elischer.org> > Julian Elischer writes: >: >: >: M. Warner Losh wrote: >: >: >In message: <41B0C118.8070001@elischer.org> >: > Julian Elischer writes: >: >: I didn't say stack.. I said libusb (excepty I spelled it usblib) >: > >: >OK. I got confused... >: > >: >: it recovers on several machines where FreeBSD looses communications with >: >: the target after an error. >: > >: >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of >: >pipes by the driver (which ugen does each time the pipe subdevice is >: >opened). ClearFeature(Stall) was unfortunately typed from memory >: >rather than looking at the standard (section 9.4.5). What were you >: >thinking about changing in this area? >: > >: >: BTW it does the halt too late.. by that time it has already tried to do >: other opertations that >: have probably timed out (at least on the stupid device I have) so it's >: aborted before it ever gets >: to the ClearFeature(Halt). > >It does this as soon as the driver opens the pipe. Nothing can have >happened on the pipe before that. I don't understand what you are >saying here. It might also do it other times, but it definitely does >it on open... > when we open the ugen device the first thing that happens is that the device fetches some descriptors.. some of these requests fail .. I'm still investigating however. it would be good thuogh if a timeout woudl result in the clearing of the halt state if it exists as well as an open.. we may not want to have to close the device.. (as I said.. openning it again fails :-/) The reason I'm still investigating is because it's almost 100% that this is because of the incredibally broken device so I don't want to do anything that is detrimental to well behaved devices.. I hope to have more info next week. When the device times out on endpoint 3, Linux (thorugh libusb) issues a ClearFeature(Halt) which seems to get everything going again. FreeBSD doesn't, so we have to power teh device down and re-power it (!yuk!). There must be other devices that need this or Linux wouldn't do it. I'm looking whether the kernel couldn't take care of this or whether we shoudl implement it in libusb like Linux does. > >Warner > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:16:40 2004 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 790E316A4CE for ; Fri, 3 Dec 2004 22:16:40 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A1C43D41 for ; Fri, 3 Dec 2004 22:16:40 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB3MFLWm008811; Fri, 3 Dec 2004 15:15:21 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 03 Dec 2004 15:16:30 -0700 (MST) Message-Id: <20041203.151630.29463265.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41B0E3E0.4030207@elischer.org> References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E3E0.4030207@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@FreeBSD.ORG Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:16:40 -0000 In message: <41B0E3E0.4030207@elischer.org> Julian Elischer writes: : When the device times out on endpoint 3, Linux (thorugh libusb) issues a : ClearFeature(Halt) : which seems to get everything going again. FreeBSD doesn't, so we have : to power teh device : down and re-power it (!yuk!). I have a device that times out. I'll note that FreeBSD does send a ClearFeature(Halt) to that device's endpoint in that case, as I've verified with my usb sniffer. However, we didn't always do that, and some older 4.x versions of FreeBSD definitely don't do it right and sends nothing. I'm having a hard time understanding when this is needed and not actually done by our -current stack. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:20:30 2004 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 A58F216A4CE for ; Fri, 3 Dec 2004 22:20:30 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B02D43D54 for ; Fri, 3 Dec 2004 22:20:30 +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 634817A403; Fri, 3 Dec 2004 14:20:30 -0800 (PST) Message-ID: <41B0E6AE.4030207@elischer.org> Date: Fri, 03 Dec 2004 14:20:30 -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: "M. Warner Losh" References: <41B0C118.8070001@elischer.org> <20041203.133422.67680751.imp@bsdimp.com> <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> In-Reply-To: <20041203.144432.89673091.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:20:30 -0000 M. Warner Losh wrote: >In message: <41B0DD18.9080300@elischer.org> > Julian Elischer writes: >: >: >: M. Warner Losh wrote: >: >: >In message: <41B0C118.8070001@elischer.org> >: > Julian Elischer writes: >: >: I didn't say stack.. I said libusb (excepty I spelled it usblib) >: > >: >OK. I got confused... >: > >: >: it recovers on several machines where FreeBSD looses communications with >: >: the target after an error. >: > >: >Hmmmm. Actually, FreeBSD does do the ClearFeature(Halt) on opening of >: >pipes by the driver (which ugen does each time the pipe subdevice is >: >opened). ClearFeature(Stall) was unfortunately typed from memory >: >rather than looking at the standard (section 9.4.5). What were you >: >thinking about changing in this area? >: > >: >: BTW it does the halt too late.. by that time it has already tried to do >: other opertations that >: have probably timed out (at least on the stupid device I have) so it's >: aborted before it ever gets >: to the ClearFeature(Halt). > >It does this as soon as the driver opens the pipe. Nothing can have >happened on the pipe before that. I don't understand what you are >saying here. It might also do it other times, but it definitely does >it on open... > on our usb-scope the first commands on open are : bmRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 followed by an IN from EP0 to retrieve a descriptor string. the IN never completes.. so the full picture is: OUT to EP2 (1 byte command requesting status to be fetched from EP3) program exits due to some unspecified reason.. so IN on EP3 is never done.. [device apparently times out somehow and sets HALT feature "HALT" on EP3] re-run program. opens ugen0.0 results in: bmRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 IN [never completes] (receives millions of NACKs from the device). Linux apparently doesn't do the setup request on open but instead just goes straight to allowing libusb to access the device.. libusb does, times out and doesn the ClearFeature(Halt) which apparently fixes everything. and then continues on its merry way. as ai said.. the device seems broken.. you can unplug it and re-plug it and it is still in this state.. But it would be nice to be able to actually open the ugen device so that we could try fix it like Linux does.. > >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 Fri Dec 3 22:25:15 2004 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 99E3B16A4CE for ; Fri, 3 Dec 2004 22:25:15 +0000 (GMT) Received: from mta09-winn.mailhost.ntl.com (mailhost.ntl.com [212.250.162.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFDB443D1D for ; Fri, 3 Dec 2004 22:25:14 +0000 (GMT) (envelope-from scott@fishballoon.org) Received: from aamta01-winn.mailhost.ntl.com ([212.250.162.8]) by mta09-winn.mailhost.ntl.com with ESMTP <20041203222513.YFEG3596.mta09-winn.mailhost.ntl.com@aamta01-winn.mailhost.ntl.com>; Fri, 3 Dec 2004 22:25:13 +0000 Received: from llama.fishballoon.org ([82.4.146.133]) by aamta01-winn.mailhost.ntl.com with ESMTP <20041203222513.ECJH27146.aamta01-winn.mailhost.ntl.com@llama.fishballoon.org>; Fri, 3 Dec 2004 22:25:13 +0000 Received: from tuatara.fishballoon.org ([192.168.1.6]) by llama.fishballoon.org with esmtp (Exim 4.43 (FreeBSD)) id 1CaLrY-000PxX-O8; Fri, 03 Dec 2004 22:25:16 +0000 Received: (from scott@localhost) by tuatara.fishballoon.org (8.13.1/8.13.1/Submit) id iB3MMr8V069205; Fri, 3 Dec 2004 22:22:53 GMT (envelope-from scott) Date: Fri, 3 Dec 2004 22:22:53 +0000 From: Scott Mitchell To: Julian Elischer Message-ID: <20041203222253.GA68061@tuatara.fishballoon.org> References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> <20041202000831.GC523@tuatara.fishballoon.org> <200412022015.iB2KFK600864@Mail.NOSPAM.DynDNS.dK> <41B0C4A3.9080308@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41B0C4A3.9080308@elischer.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE i386 cc: Barry Bouwsma cc: freebsd-usb@freebsd.org Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 03 Dec 2004 22:25:15 -0000 On Fri, Dec 03, 2004 at 11:55:15AM -0800, Julian Elischer wrote: > > > Barry Bouwsma wrote: > > >I'm overjoyed to report that your patches to if_aue and its ilk > >(and uhbdi-whatnot) are what I needed to get if_axe working, whee > > > > > If you can generate good unified diffs > I can commit them for you. > > we rely on users of devices to submit their changes when they fix them.. :-) Julian, I can look at this if you like. It should be pretty straighforward, but I want to make sure it works on a stock 4-stable box, since Barry seems to be running a slightly unusual USB stack... Cheers, Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott at fishballoon.org | 0xAA775B8B | -- Anon From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:31:03 2004 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 D319516A4CE for ; Fri, 3 Dec 2004 22:31:03 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A311C43D46 for ; Fri, 3 Dec 2004 22:31:03 +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 7AC057A452; Fri, 3 Dec 2004 14:31:03 -0800 (PST) Message-ID: <41B0E927.5020904@elischer.org> Date: Fri, 03 Dec 2004 14:31:03 -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: "M. Warner Losh" References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E3E0.4030207@elischer.org> <20041203.151630.29463265.imp@bsdimp.com> In-Reply-To: <20041203.151630.29463265.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@FreeBSD.ORG Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:31:03 -0000 M. Warner Losh wrote: >In message: <41B0E3E0.4030207@elischer.org> > Julian Elischer writes: >: When the device times out on endpoint 3, Linux (thorugh libusb) issues a >: ClearFeature(Halt) >: which seems to get everything going again. FreeBSD doesn't, so we have >: to power teh device >: down and re-power it (!yuk!). > >I have a device that times out. I'll note that FreeBSD does send a >ClearFeature(Halt) to that device's endpoint in that case, as I've >verified with my usb sniffer. However, we didn't always do that, and >some older 4.x versions of FreeBSD definitely don't do it right and >sends nothing. > Have you seen crashed resulting from EHCI timeouts? the EHCI driver releases teh xfer and buffers before teh hardware has finished with them and if the command then completes, teh data is DMA's into the now "free" buffer, currupting th elinked list pointers for the free list. (verified on 4.x and -current). > >I'm having a hard time understanding when this is needed and not >actually done by our -current stack. > Well, I'll check again because I'm runnig 4-stable at the USB sniffer.. I have however confirmed that the same behaviour is seen on a 6-current machine but I didn't have the sniffer on that (too far away). I'll go check that it actually looks the same on the wire.. (requires hauling the sniffer machine..) > >Warner > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:34:16 2004 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 A52E216A4CE for ; Fri, 3 Dec 2004 22:34:16 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DD4043D58 for ; Fri, 3 Dec 2004 22:34:16 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB3MX1rD009043; Fri, 3 Dec 2004 15:33:01 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 03 Dec 2004 15:34:10 -0700 (MST) Message-Id: <20041203.153410.130545387.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41B0E6AE.4030207@elischer.org> References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E6AE.4030207@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@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:34:16 -0000 In message: <41B0E6AE.4030207@elischer.org> Julian Elischer writes: : on our usb-scope the first commands on open are : : : bmRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 : followed by an IN from EP0 to retrieve a descriptor string. : the IN never completes.. That's like the device that I've noticed the problem on. I usually see a ClearFeature(Halt) go to the device before the first request to an endpoint after a pipe has been opened with ugen. Are you not seeing that? : so the full picture is: : : OUT to EP2 (1 byte command requesting status to be fetched from EP3) : program exits due to some unspecified reason.. so IN on EP3 is never done.. : [device apparently times out somehow and sets HALT feature "HALT" on EP3] The device that I have doesn't set the HALT feature. I see on my scope: ClearFeature(Halt, EP1) Send Packet to EP1 ClearFeature(HALT, EP2) IN transaction from EP2 The IN transaction doesn't finish the second time. If the read is retried, the kernel will send another ClearFeature(HALT,EP2), and the device will timeout again. If another packet is sent to EP1, I get the same error. But on the third time, it succeeds. : re-run program. : opens ugen0.0 : results in: : bmRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 : IN [never completes] (receives millions of NACKs from the : device). Is this the ClearFeature(Halt) packet to endpoint 1? I'm guessing not, but thought I'd ask. Our device at least will accept the packet, but the firmware on the device goes catatonic until we send the write command a few more times and issue the reset a few more times. : Linux apparently doesn't do the setup request on open but : instead just goes straight to allowing libusb to access the device.. older linux never sends the ClearFeature(Halt) packets on pipe open, so that matches what I'm seeing as well. : libusb does, times out and doesn the ClearFeature(Halt) : which apparently fixes everything. and then continues on its merry way. : : as ai said.. the device seems broken.. Yes. And in a different way than my device is broken :-) : you can unplug it and re-plug it and it is still in this state.. : : But it would be nice to be able to actually open the ugen device so that : we could try fix it like Linux does.. Yes, but we may still be talking past eachother a little on the problem... Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:39:50 2004 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 94D0816A4CE for ; Fri, 3 Dec 2004 22:39: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 6E80E43D5C for ; Fri, 3 Dec 2004 22:39: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 20F4F7A403; Fri, 3 Dec 2004 14:39:50 -0800 (PST) Message-ID: <41B0EB36.2010205@elischer.org> Date: Fri, 03 Dec 2004 14:39: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: "M. Warner Losh" References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E6AE.4030207@elischer.org> <20041203.153410.130545387.imp@bsdimp.com> In-Reply-To: <20041203.153410.130545387.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:39:50 -0000 M. Warner Losh wrote: > >Yes, but we may still be talking past eachother a little on the >problem... > yeah As I stated earlier.. I'm still investigating this.. > >Warner > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 22:43:16 2004 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 4550D16A4CE for ; Fri, 3 Dec 2004 22:43:16 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id D162A43D54 for ; Fri, 3 Dec 2004 22:43:08 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id iB3MgwgF009321; Fri, 3 Dec 2004 15:42:58 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 03 Dec 2004 15:44:07 -0700 (MST) Message-Id: <20041203.154407.72660111.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: <41B0EB36.2010205@elischer.org> References: <41B0E6AE.4030207@elischer.org> <20041203.153410.130545387.imp@bsdimp.com> <41B0EB36.2010205@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@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 22:43:16 -0000 In message: <41B0EB36.2010205@elischer.org> Julian Elischer writes: : >Yes, but we may still be talking past eachother a little on the : >problem... : yeah As I stated earlier.. : I'm still investigating this.. I'll see if I can recreate the issue here and post a full packet dump of what I'm seeing so we can compare notes. Warner From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 23:26:38 2004 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 C126116A4CE for ; Fri, 3 Dec 2004 23:26:38 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FF3443D53 for ; Fri, 3 Dec 2004 23:26:38 +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 496AD7A44F; Fri, 3 Dec 2004 15:26:38 -0800 (PST) Message-ID: <41B0F62E.5060502@elischer.org> Date: Fri, 03 Dec 2004 15:26:38 -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: "M. Warner Losh" References: <41B0DD18.9080300@elischer.org> <20041203.144432.89673091.imp@bsdimp.com> <41B0E6AE.4030207@elischer.org> <20041203.153410.130545387.imp@bsdimp.com> In-Reply-To: <20041203.153410.130545387.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 23:26:38 -0000 M. Warner Losh wrote: >In message: <41B0E6AE.4030207@elischer.org> > Julian Elischer writes: >: on our usb-scope the first commands on open are : >: >: bmRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 >: followed by an IN from EP0 to retrieve a descriptor string. >: the IN never completes.. > >That's like the device that I've noticed the problem on. I usually >see a ClearFeature(Halt) go to the device before the first request to >an endpoint after a pipe has been opened with ugen. Are you not >seeing that? > >: so the full picture is: >: >: OUT to EP2 (1 byte command requesting status to be fetched from EP3) >: program exits due to some unspecified reason.. so IN on EP3 is never done.. >: [device apparently times out somehow and sets HALT feature "HALT" on EP3] > > > >Is this the ClearFeature(Halt) packet to endpoint 1? I'm guessing >not, but thought I'd ask. Our device at least will accept the packet, >but the firmware on the device goes catatonic until we send the write >command a few more times and issue the reset a few more times. > > I take that back Here's a better description. endpoints are: 0 setup 1 control channel in 2 control channel out 3 data in the request for status is made to 2 (OUT, 1 byte) the read that never happens would be on 1 On Linux: After a large delay, we (after restarting the program) try to do the OUT to EP2 again. (this is the first USB wire transaction since restarting the program) we get 288000 NAKS (literally) before we time out. To get things going again, linux libusb sends a ClearFeature(HALT) to EP2 and then follows it with a GetStatus(EP2) to check and then retries the OUT to EP2 again, which now succeeds, On FreeBSD 4-stable, the action of openning ugen.1 results in mRequestrType (setup packet to EP0) 80 06 01 03 00 00 00 02 00 followed by an IN on EP0 which just hangs. (apparently the backing firmware is still waiting to respond to an IN on EP1.) Since the setup packet is part of the open() of ugen 0.1 and 0.0 we don't know to do a ClearFeature(HALT) to EP1 or EP2 as we never are able to get to teh point of trying the write. I will see if I need to MFC somethign in usb.c or usbdi.c or ugen.c to do the endpoint clear as needed. > >older linux never sends the ClearFeature(Halt) packets on pipe open, >so that matches what I'm seeing as well. > >: libusb does, times out and doesn the ClearFeature(Halt) >: which apparently fixes everything. and then continues on its merry way. >: >: as ai said.. the device seems broken.. > >Yes. And in a different way than my device is broken :-) > not working on a check scanner are you? :-) > > From owner-freebsd-usb@FreeBSD.ORG Fri Dec 3 23:27:21 2004 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 55A5F16A4CE for ; Fri, 3 Dec 2004 23:27:21 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DC9043D60 for ; Fri, 3 Dec 2004 23:27:21 +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 BF25E7A44B; Fri, 3 Dec 2004 15:27:20 -0800 (PST) Message-ID: <41B0F658.8030403@elischer.org> Date: Fri, 03 Dec 2004 15:27:20 -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: "M. Warner Losh" References: <41B0E6AE.4030207@elischer.org> <20041203.153410.130545387.imp@bsdimp.com> <41B0EB36.2010205@elischer.org> <20041203.154407.72660111.imp@bsdimp.com> In-Reply-To: <20041203.154407.72660111.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-usb@freebsd.org Subject: Re: Question about pipes and ugen 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, 03 Dec 2004 23:27:21 -0000 do you have a 4-STABLE machine? M. Warner Losh wrote: >In message: <41B0EB36.2010205@elischer.org> > Julian Elischer writes: >: >Yes, but we may still be talking past eachother a little on the >: >problem... >: yeah As I stated earlier.. >: I'm still investigating this.. > >I'll see if I can recreate the issue here and post a full packet dump >of what I'm seeing so we can compare notes. > >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 Sat Dec 4 00:56:12 2004 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 3729616A4CE; Sat, 4 Dec 2004 00:56:12 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9519043D41; Sat, 4 Dec 2004 00:56:11 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id D5E596546C; Sat, 4 Dec 2004 00:56:09 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32540-04-3; Sat, 4 Dec 2004 00:56:09 +0000 (GMT) Received: from empiric.dek.spc.org (dhcp120.icir.org [192.150.187.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id C7C4C65418; Sat, 4 Dec 2004 00:56:08 +0000 (GMT) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id EBF2D6710; Fri, 3 Dec 2004 16:56:06 -0800 (PST) Date: Fri, 3 Dec 2004 16:56:06 -0800 From: Bruce M Simpson To: Jose M Rodriguez Message-ID: <20041204005606.GF745@empiric.icir.org> References: <200412021702.53996.freebsd@redesjm.local> <200412032044.56370.freebsd@redesjm.local> <41B0C569.9070704@freebsd.org> <200412032125.57063.freebsd@redesjm.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200412032125.57063.freebsd@redesjm.local> cc: hackers@freebsd.org cc: Andre Oppermann cc: freebsd-usb@freebsd.org cc: net@freebsd.org Subject: Re: about a usb adsl modem driver 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, 04 Dec 2004 00:56:12 -0000 On Fri, Dec 03, 2004 at 09:25:56PM +0100, Jose M Rodriguez wrote: > But noted strong differences between atm boards and adsl modems. > > - atm boards are hardware assisted. usb adsl modems are bare assisted. > - atm boards support better signaling, multiple channels, ... usb adsl > modems just one PVC with uni signaling. Not really. See below. > So I realize that try to get a NATM/NETGRAPH hardware driver may be too > work for little gain. Actually writing a NATM driver is far easier than writing a HARP driver. And Harti's newer drivers for ATM cards are, in fact, NATM drivers. You only need to implement Netgraph hooks. You don't need to worry about implementing Netgraph protocol nodes, generally. You might want to contact Benno Rice, he was working on a software AAL5 kernel module to augment netnatm, which would help if you're targeting the lower end ADSL hardware. Regards, BMS From owner-freebsd-usb@FreeBSD.ORG Sat Dec 4 04:24:59 2004 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 C76FE16A4CE for ; Sat, 4 Dec 2004 04:24:59 +0000 (GMT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FC9443D55 for ; Sat, 4 Dec 2004 04:24:59 +0000 (GMT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (andy@localhost [127.0.0.1]) iB44Or0T054080; Fri, 3 Dec 2004 23:24:54 -0500 (EST) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)iB44Or55054077; Fri, 3 Dec 2004 23:24:53 -0500 (EST) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Fri, 3 Dec 2004 23:24:53 -0500 (EST) From: Andre Guibert de Bruet To: Antonin Bonte In-Reply-To: <200411161417.30416.a.bonte@netheos.net> Message-ID: <20041203232219.T5933@alpha.siliconlandmark.com> References: <200411081050.iA8AoS4s008816@freefall.freebsd.org> <200411151456.59506.mistry.7@osu.edu> <200411161417.30416.a.bonte@netheos.net> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1406528735-1102134286=:5933" Content-ID: <20041203232451.C5933@alpha.siliconlandmark.com> X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean cc: freebsd-usb@freebsd.org Subject: Re: kern/70607: [patch] Add Support for USB Microsoft Intellimouse (possibly others) 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, 04 Dec 2004 04:24:59 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1406528735-1102134286=:5933 Content-Type: TEXT/PLAIN; CHARSET=iso-8859-1; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <20041203232451.R5933@alpha.siliconlandmark.com> On Tue, 16 Nov 2004, Antonin Bonte wrote: > Le Lundi 15 Novembre 2004 20:56, Anish Mistry a =E9crit=A0: >> Well it isn't working since it's not being detected as a mouse. You'll >> want to add the device id to the ums driver and see if that fixes it. > > using the "usbdevs -v" command i got the product Id for the mouse : > > #> usbdevs -v > port 1 addr 2: low speed, power 50 mA, config 1, Microsoft USB Wireless > Mouse(0x00b9), Microsoft(0x045e), rev 0.17 > port 2 powered > > then i added : > > product MICROSOFT WIFIINTELLIMOUSE 0x00b9 Wireless IntelliMouse "WIFI" in this case is misleading... "WLESSINTELLIMOUSE" or something like= =20 that would be optimal. > to src/sys/dev/usb/usbdevs ( to regenerate the files usbdevs.h and > usbdevs_data.h ) This is done by running make in that directory, yes. > and i rebuild my new kernel. But the mouse still isn't detected as ums, b= ut > as uhid0. Is there other files i must modify to get that mice recognized > as ums ? This wouldn't happen to be a bluetooth mouse, would it? Regards, Andy | Andre Guibert de Bruet | Enterprise Software Consultant > | Silicon Landmark, LLC. | http://siliconlandmark.com/ > --0-1406528735-1102134286=:5933-- From owner-freebsd-usb@FreeBSD.ORG Sat Dec 4 07:46:48 2004 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 3608716A4CE for ; Sat, 4 Dec 2004 07:46:48 +0000 (GMT) Received: from dastardly.newsbastards.org.72.27.172.IN-addr.ARPA.NOSPAM.dyndns.dk (84-72-24-80.dclient.hispeed.ch [84.72.24.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 316AE43D5E for ; Sat, 4 Dec 2004 07:46:46 +0000 (GMT) (envelope-from bounce@NOSPAM.dyndns.dk) Received: from Mail.NOSPAM.DynDNS.dK (ipv6.NOSPAM.dyndns.dk [2002:5448:1850:0:210:60ff:fe25:f1e5]) (8.11.6/8.11.6-SPAMMERS-DeLiGHt) with ESMTP id iB47kLc02177 verified NO) for ; Sat, 4 Dec 2004 08:46:33 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Received: (from beer@localhost) by Mail.NOSPAM.DynDNS.dK (8.11.6/FNORD) id iB47kJ802176; Sat, 4 Dec 2004 08:46:20 +0100 (CET) (envelope-from bounce@NOSPAM.dyndns.dk) Date: Sat, 4 Dec 2004 08:46:20 +0100 (CET) Message-Id: <200412040746.iB47kJ802176@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 References: <20041115000815.GD57138@tuatara.fishballoon.org> <200412011419.iB1EJDs10868@Mail.NOSPAM.DynDNS.dK> <20041201161615.GA523@tuatara.fishballoon.org> <200412012104.iB1L4s313837@Mail.NOSPAM.DynDNS.dK> <20041202000831.GC523@tuatara.fishballoon.org> <41B0C4A3.9080308@elischer.org> <20041203222253.GA68061@tuatara.fishballoon.org> From: Barry Bouwsma To: freebsd-usb@freebsd.org Subject: Re: USB Ethernet (aue) panics on 4.10 (kern/69319) 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, 04 Dec 2004 07:46:48 -0000 [if you get bounces, you may ignore them, as the hostname part of my address makes it IPv6-only, and I download the archives regularly] Julian Elischer done did sayed: > > >I'm overjoyed to report that your patches to if_aue and its ilk > > >(and uhbdi-whatnot) are what I needed to get if_axe working, whee > > > > > If you can generate good unified diffs > > I can commit them for you. Not quite diffs yet, but I cleaned up most of the foolishness and my ignorance from the previous hacks, and based on yesterday morning's current, made a cleaner if_axe.c file that can be found as https://nospam.dyndns.dk/hacks/if_axe.c-clean-against-latest-current (should also be available without SSL -- except when I'm panicking my machine or running single-user, so try later) The reason my #if's are as ugly as they are in this, is that I'm special-casing FreeBSD4 here, leaving open the possibility to merge in DragonFly, NetBSD, and OpenBSD code in the future for the fun of it. In the testing I've done so far, I can say that it works splendidly with my OHCI controller. As an aside, I mentioned data corruption I had observed a while back with OHCI; it seems this is introduced by the usb.diff patch that Ian Dowse put out for -current-ish, which is what I had been using at that time. As soon as I merged in the latest usb.diff, I heard and saw data corruption. I had already merged in the usb2_sync.diff and usb_race.diff with no noted ill effects. Hmmm... It also sorta works with EHCI, but not as well for me as with OHCI. I get watchdog timeouts for some outgoing packets. It still works though, as I'm using EHCI now to send this mail (and download the archive I'm replying to). But for some reason, my machine gets noticeably more sluggish with EHCI than OHCI. (75MHz Pentium so I can see a difference from tree sloth to garden slug.) The usb.diff patch mentioned above didn't improve things that I could see. With my hardware, UHCI has the problem with my adapter that is mentioned in kern/73000 when the device is connected, and I see a bogus MAC address; however, applying the patch in this PR does not make any difference for me. So I haven't been able to test it with UHCI. That controller needs much more work and testing from me to see what's normal for it on this machine, as it worked flawlessly on another machine I was using except for attaching this adapter. I haven't bothered with a man page, or cleaning up the Makefile for the kernel module, or the .h file -- nor have I tried to figure out how to properly incorporate these into a build in the kernel and modules. I hope these things are trivial enough for someone with experience to do them while half asleep, while I play around with the if_axe.c file and the rest of my USB stack to work on the problems I've noted. I really would like someone else with this hardware but different controller chips (and a different motherboard) to try and see if I'm imagining the above, or if my limitation of one type of box is causing what I see. Perhaps I should ask this in -stable? -hackers? -hardware? -mobile? -questions? -newbies? Scott Mitchell up'n done did scrawled out like so: > I can look at this if you like. It should be pretty straighforward, but I > want to make sure it works on a stock 4-stable box, since Barry seems to be > running a slightly unusual USB stack... I'm sort of figuring out what I have, in the process of working towards 4-ish-ness while trying not to break things that had been broken months ago for me. I think my uhci.c and ohci.c and ehci.c are mostly the latest from 4.x with a few things tossed in due to leftovers from previously applying Ian Dowse's Big Diff. Give me time and I'll start clean, then try usb2_sync.diff and usb_race.diff (that so far don't give me problems). As an aside, should I expect to experience problems with clean 4.x source and the above three diffs from Ian? If not, then I'll see if I can figure out the cause of the OHCI corruption that occurs with the Big Diff (makes no difference with the OHCI isoc problem, though) -- and perhaps I should mention this machine has only 40MB RAM in case that may have anything to do with anything. thanks barry bouwsma From owner-freebsd-usb@FreeBSD.ORG Sat Dec 4 09:09:53 2004 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 77EB516A4CE; Sat, 4 Dec 2004 09:09:53 +0000 (GMT) Received: from smtp2.jazztel.es (smtp2.jazztel.es [62.14.3.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F04C43D41; Sat, 4 Dec 2004 09:09:52 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from antivirus by smtp2.jazztel.es with antivirus id 1CaVv6-0005Uk-00 Sat, 04 Dec 2004 10:09:36 +0100 Received: from [212.106.254.37] (helo=rguez.homeunix.net) by smtp2.jazztel.es with esmtp id 1CaVv5-0005UN-00 Sat, 04 Dec 2004 10:09:35 +0100 Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) by rguez.homeunix.net (8.13.1/8.13.1) with ESMTP id iB499aLM000544; Sat, 4 Dec 2004 10:09:36 +0100 (CET) (envelope-from freebsd@redesjm.local) Received: by redesjm.local (8.13.1/8.13.1/Submit) id iB499en5083031; Sat, 4 Dec 2004 10:09:40 +0100 (CET) (envelope-from freebsd@redesjm.local) From: Jose M Rodriguez To: Bruce M Simpson Date: Sat, 4 Dec 2004 10:09:37 +0100 User-Agent: KMail/1.7.1 References: <200412021702.53996.freebsd@redesjm.local> <200412032125.57063.freebsd@redesjm.local> <20041204005606.GF745@empiric.icir.org> In-Reply-To: <20041204005606.GF745@empiric.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200412041009.39629.freebsd@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1; AVE: 6.28.0.19; VDF: 6.28.0.104; host: antares.redesjm.local) X-Virus-Scanned: by antivirus cc: hackers@freebsd.org cc: Andre Oppermann cc: freebsd-usb@freebsd.org cc: net@freebsd.org Subject: Re: about a usb adsl modem driver 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, 04 Dec 2004 09:09:53 -0000 El S=E1bado, 4 de Diciembre de 2004 01:56, Bruce M Simpson escribi=F3: > On Fri, Dec 03, 2004 at 09:25:56PM +0100, Jose M Rodriguez wrote: > > But noted strong differences between atm boards and adsl modems. > > > > - atm boards are hardware assisted. usb adsl modems are bare > > assisted. - atm boards support better signaling, multiple channels, > > ... usb adsl modems just one PVC with uni signaling. > > Not really. See below. > > > So I realize that try to get a NATM/NETGRAPH hardware driver may be > > too work for little gain. > > Actually writing a NATM driver is far easier than writing a HARP > driver. And Harti's newer drivers for ATM cards are, in fact, NATM > drivers. You only need to implement Netgraph hooks. You don't need to > worry about implementing Netgraph protocol nodes, generally. > I think so. The actual ueagle driver do that, only needs NetGraph=20 aditions. My objections to implement NATM are related to the final operation. =20 What you get througt NATM is of low interest for usb adsl users. You don't need signaling managers, multipe channels, ... I think that a direct, one PVC, usb adsl version of ng_atm will do the=20 work. I think implement the netgraph support directly in the usb=20 driver. About the rest of the ng_ nodes involved, I think the only problem is=20 ng_atmllc. To be a generic aal5 frame diverter, it lacks some funtionality like=20 VCMux support or ppp VcMux/LLC autoswitch. > You might want to contact Benno Rice, he was working on a software > AAL5 kernel module to augment netnatm, which would help if you're > targeting the lower end ADSL hardware. > My initial plans was implement this as part of the driver, but I no=20 have any objections to this. But I'll prefer take this in the future,=20 when we have a working driver (Well, another. ueagle really works on=20 RELENG_5). Any pointer on this is welcome. =2D- josemi > Regards, > BMS From owner-freebsd-usb@FreeBSD.ORG Sat Dec 4 22:51:32 2004 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 2B50716A4CE for ; Sat, 4 Dec 2004 22:51:32 +0000 (GMT) Received: from freenix.no (atreides.freenix.no [212.33.142.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B2D143D53 for ; Sat, 4 Dec 2004 22:51:31 +0000 (GMT) (envelope-from shamz@atreides.freenix.no) Received: from atreides.freenix.no (localhost [127.0.0.1]) by freenix.no (8.12.11/8.12.11) with ESMTP id iB4MpSkV011646 for ; Sat, 4 Dec 2004 23:51:29 +0100 (CET) (envelope-from shamz@atreides.freenix.no) Received: (from shamz@localhost) by atreides.freenix.no (8.12.11/8.12.11/Submit) id iB4MpNHe011645 for freebsd-usb@freebsd.org; Sat, 4 Dec 2004 23:51:23 +0100 (CET) (envelope-from shamz) Date: Sat, 4 Dec 2004 23:51:23 +0100 From: Shaun Jurrens To: freebsd-usb@freebsd.org Message-ID: <20041204225123.GS90420@atreides.freenix.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-RELEASE-p2 X-Philosophy: If you can read this, you're too close. X-Virus-Scanned: ClamAV 0.80/571/Wed Nov 3 01:15:45 2004 clamav-milter version 0.80j on atreides.freenix.no X-Virus-Status: Clean Subject: kern/74690: [patch] support for SanDisk 8-in-1 in umass.c 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, 04 Dec 2004 22:51:32 -0000 hi guys, I just submitted this PR via the web thing. The miniature patch is mangled, but without it my box hangs at boot right before cam device scan output (I have four other scsi disks attached). This started occuring after the last round of usb updates, I believe. I've been patching this for some in an attempt to get rid of the ugly verbose output of scanning every sim on this unit. It'd be nice if it just could react like a cdrom drive (NOT READY, Medium not present). I don't know enough to get this to do that though, obviously. I believe I stopped patching for a while after 5.3-R, but commits recently made this a non-option. It'd be nice if someone could take a look at this and commit it. I could, of course, test any improvements. -- Yours truly, Shaun D. Jurrens shaun@shamz.net Norway