From owner-freebsd-usb@FreeBSD.ORG Sun May 14 08:54:42 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A65116A400; Sun, 14 May 2006 08:54:42 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C175043D46; Sun, 14 May 2006 08:54:41 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k4E8sdd3079422; Sun, 14 May 2006 12:54:40 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Sun, 14 May 2006 12:54:39 +0400 (MSD) From: Maxim Konovalov To: current@freebsd.org Message-ID: <20060514124527.Y79102@mp2.macomnet.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-usb@freebsd.org Subject: umass/usb quirks policy X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 08:54:42 -0000 Hello, Remind me what our policy (if any) for adding usb quirks? There are a lot of PRs: usb/96901, usb/96599, usb/96546, usb/94439, usb/93484 etc. -- Maxim Konovalov From owner-freebsd-usb@FreeBSD.ORG Sun May 14 14:10:58 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7565416A53F for ; Sun, 14 May 2006 14:10:58 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (ns.ciam.ru [213.247.195.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 380FE43D5F for ; Sun, 14 May 2006 14:10:48 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from [87.240.16.199] (helo=[192.168.0.3]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1FfHIz-000PhF-3y for freebsd-usb@freebsd.org; Sun, 14 May 2006 18:10:45 +0400 Message-ID: <44673A71.8040904@FreeBSD.org> Date: Sun, 14 May 2006 18:10:57 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5 (X11/20060115) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Subject: rue(4). USB problem CURRENT? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 14:10:58 -0000 I try to run USB modem that works as RTL8150 network card. When I kldload if_rue and plug the device it's detected fine, MAC address is right, but the last line claim: rue0: if_start running deferred for Giant And when I try to assign an IP address I got a panic: panic: Trying sleep, but thread marked as sleeping prohibited KDB: enter: panic panic: from debugger Uptime: 5h55m48s Physical memory: 1014 MB Dumping 149 MB: 134 118 102 86 70 54 38 22 6 #0 doadump () at pcpu.h:166 166 pcpu.h: No such file or directory. in pcpu.h (kgdb) bt full #0 doadump () at pcpu.h:166 No locals. #1 0xc05454aa in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 first_buf_printf = 1 #2 0xc0545818 in panic (fmt=0xc071cb43 "from debugger") at /usr/src/sys/kern/kern_shutdown.c:565 td = (struct thread *) 0xc33d96c0 bootopt = 260 newpanic = 0 ap = 0xe1ece824 "Ôèìá©\203DÀ`rVÀ" buf = "Trying sleep, but thread marked as sleeping prohibited", '\0' #3 0xc0448432 in db_panic (addr=-1068076448, have_addr=0, count=-1, modif=0xe1ece848 "") at /usr/src/sys/ddb/db_command.c:426 No locals. #4 0xc04483a9 in db_command (last_cmdp=0xc0791624, cmd_table=0x0) at /usr/src/sys/ddb/db_command.c:395 cmd = (struct command *) 0xc070a500 t = 0 modif = "\000\037yÀÀ\226=Ãdèìá\r\000\000\000ÀP\200À\r\000\000\000\001\00 0\000\000\204èìá\026\003mÀà\037\177À\aK\000 DQ\200À@\t~À \037yÀx\000\000\000 \03 7yÀÀ\226=èèìáA«DÀû\037sÀ\220§DÀ\000\000\000\000\n\000\000\000À\226=à \037yÀ¦\23 5DÀ \037yÀÈ\027yÀx\000\000\000\004éìá" addr = -1068076448 count = -1 have_addr = 0 result = 0 #5 0xc04484a5 in db_command_loop () at /usr/src/sys/ddb/db_command.c:446 No locals. #6 0xc044a6c5 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221 jb = {{_jb = {-504567548, -504567576, -504567496, 3, -1019373888, -1069242778, -504567284, -504567296, -1068065845, 10, -504567496, -1068075808}}} prev_jb = (void *) 0x0 bkpt = 0 #7 0xc0567565 in kdb_trap (type=0, code=0, tf=0x0) at /usr/src/sys/kern/subr_kdb.c:481 handled = 0 #8 0xc06efa2a in trap (frame= {tf_fs = -1066205176, tf_es = 40, tf_ds = -504627160, tf_edi = 1, tf_esi = -1066185042, tf_ebp = -504567248, tf_isp = -504567276, tf_ebx = -504567192, tf_ edx = 0, tf_ecx = -1056878592, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1068076448, tf_cs = 32, tf_eflags = 524418, tf_esp = -1066187795, tf_ss = -1066 197304}) at /usr/src/sys/i386/i386/trap.c:622 td = (struct thread *) 0xc33d96c0 p = (struct proc *) 0xc33d8b04 i = 0 ucode = 0 type = 3 code = 0 addr = 0 eva = 0 ksi = {ksi_link = {tqe_next = 0x0, tqe_prev = 0xc07343f9}, ksi_info = { si_signo = -1066197299, si_errno = 4291221, si_code = -504567376, si_pid = -1066196826, si_uid = 3229181622, si_status = -2147483648, si_addr = 0x369e99, si_value = {sival_int = 0, sival_ptr = 0x0}, _reason = {_fault = {_trapno = 0}, _timer = {_timerid = 0, _overrun = 1}, _mesgq = {_mqd = 0}, _poll = {_band = 0}, __spare__ = {__spare1__ = 0, __spare2__ = {1, -1019373888, 5000, 0, -504567332, -1068114655, -1065786288}}}}, ksi_flags = 2, ksi_sigq = 0xc0733719} #9 0xc06de34a in calltrap () at /usr/src/sys/i386/i386/exception.s:138 No locals. #10 0xc0567260 in kdb_enter (msg=0x12
) at cpufunc.h:60 No locals. #11 0xc05457a5 in panic ( fmt=0xc0734eae "Trying sleep, but thread marked as sleeping prohibited") at /usr/src/sys/kern/kern_shutdown.c:549 td = (struct thread *) 0xc33d96c0 bootopt = 256 newpanic = 1 ap = 0xe1ecea68 "\001" buf = "Trying sleep, but thread marked as sleeping prohibited", '\0' #12 0xc056e0d5 in sleepq_add (wchan=0xc49df600, lock=0x0, wmesg=0x12
, flags=0) at /usr/src/sys/kern/subr_sleepqueue.c:278 sc = (struct sleepqueue_chain *) 0xc0799708 sq = (struct sleepqueue *) 0xc1015000 td = (struct thread *) 0xc33d96c0 #13 0xc054d8b2 in msleep (ident=0xc49df600, mtx=0x0, priority=76, wmesg=0xc0729b2e "usbsyn", timo=0) at /usr/src/sys/kern/kern_synch.c:191 _giantcnt = 1 Giant__wf = 0xc073315d "/usr/src/sys/kern/kern_timeout.c" Giant__wl = 240 td = (struct thread *) 0xc33d96c0 p = (struct proc *) 0x1 catch = 0 rval = 0 flags = 0 mtx__wf = 0x1
mtx__wl = -996280832 #14 0xc04e122c in usbd_transfer (xfer=0xc49df600) at /usr/src/sys/dev/usb/usbdi.c:344 pipe = 0xc4b54100 dmap = (usb_dma_t *) 0xc49df63c err = USBD_IN_PROGRESS size = 1 #15 0xc04e125c in usbd_sync_transfer (xfer=0x12) at /usr/src/sys/dev/usb/usbdi.c:355 No locals. #16 0xc04e1c5d in usbd_do_request_flags_pipe (dev=0xc496f280, pipe=0x12, req=0xe1eceb90, data=0x12, flags=0, actlen=0x0, timeout=18) at /usr/src/sys/dev/usb/usbdi.c:982 xfer = 0xc49df600 err = 3790400400 #17 0xc04e1bdc in usbd_do_request_flags (dev=0xc1015000, req=0x12, data=0x12, flags=0, actlen=0x12, timo=18) at /usr/src/sys/dev/usb/usbdi.c:953 No locals. #18 0xc04e1b97 in usbd_do_request (dev=0x12, req=0x12, data=0x12) at /usr/src/sys/dev/usb/usbdi.c:945 No locals. #19 0xc54a388d in ?? () No symbol table info available. #20 0xc496f280 in ?? () No symbol table info available. #21 0xe1eceb90 in ?? () No symbol table info available. #22 0xe1ecebb7 in ?? () No symbol table info available. #23 0x013705c0 in ?? () No symbol table info available. #24 0x00010000 in ?? () No symbol table info available. #25 0x00000137 in ?? () No symbol table info available. #26 0xe1ecebb8 in ?? () No symbol table info available. #27 0xc54a399c in ?? () No symbol table info available. #28 0xc4eec800 in ?? () No symbol table info available. #29 0x00000137 in ?? () No symbol table info available. #30 0xe1ecebb7 in ?? () No symbol table info available. #31 0x00000001 in ?? () No symbol table info available. #32 0x00733719 in ?? () No symbol table info available. #33 0xe1ecebcc in ?? () No symbol table info available. #34 0xc54a3b3f in ?? () No symbol table info available. #35 0xc4eec800 in ?? () No symbol table info available. #36 0x00000137 in ?? () No symbol table info available. #37 0xc4dd3000 in ?? () No symbol table info available. #38 0xe1ecebec in ?? () No symbol table info available. #39 0xc0489c34 in miibus_readreg (dev=0x12, phy=311, reg=-504566857) at miibus_if.h:25 No locals. Previous frame inner to this frame (corrupt stack?) (kgdb) quit -- Dixi. Sem. From owner-freebsd-usb@FreeBSD.ORG Sun May 14 16:20:19 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C61316A401 for ; Sun, 14 May 2006 16:20:19 +0000 (UTC) (envelope-from nitro@263.net) Received: from smtp.263.net (263.net.cn [211.150.96.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81DCE43D48 for ; Sun, 14 May 2006 16:20:18 +0000 (GMT) (envelope-from nitro@263.net) Received: from secure (unknown [127.0.0.1]) by smtp.263.net (Postfix) with SMTP id 98B6CF0B24 for ; Mon, 15 May 2006 00:20:16 +0800 (CST) X-KSVirus-check: 0 References: <20060513232248.GA7904@turion.vk2pj.dyndns.org> In-Reply-To: <20060513232248.GA7904@turion.vk2pj.dyndns.org> From: mag@intron.ac To: freebsd-usb@freebsd.org Date: Mon, 15 May 2006 00:13:59 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-Id: <20060514162016.98B6CF0B24@smtp.263.net> Subject: Re: umass not working with MP3 Player X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 16:20:19 -0000 So does my digital camera. Mmm ... Peter Jeremy wrote: > My wife got a MP3 player for mother's day. Whilst I managed to confirm > that it was a standard USB mass storage device before buying it, it > seems that FreeBSD (6.1-RELEASE) doesn't like it. > > It identifies as: > umass0: EM706S EM706S MP3 Player, rev 1.10/10.01, addr 2 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:2:0:-1: Attached to scbus2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-4 device > da0: 1.000MB/s transfers > da0: 491MB (251456 2048 byte sectors: 64H 32S/T 122C) > > usbdevs reports: > port 3 addr 2: full speed, power 100 mA, config 1, EM706S MP3 Player(0x0706), EM706S(0x067f), rev 10.01 > > But an attempt to read from it (with hw.usb.umass.debug=0xffff0000) returns: > turion% dd if=/dev/da0 bs=512 count=1 >/dev/null > umass0:2:0:0:XPT_SCSI_IO: cmd: 0x25, flags: 0x40, 10b cmd/8b data/32b sense > umass0: CBW 50: cmd = 10b (0x250000000000...), data = 8b, dir = in > umass0: Handling BBB state 2 (BBB CBW), xfer=0xffffff002a822a00, NORMAL_COMPLETION > umass0: Handling BBB state 3 (BBB Data), xfer=0xffffff002992f800, NORMAL_COMPLETION > umass0: 0x 0003d63f00000800 buffer=0xffffff001aac8240, buflen=8 > umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xffffff0028b48800, NORMAL_COMPLETION > umass0: CSW 50: sig = 0x53425355 (valid), tag = 50, res = 0, status = 0x00 (good) > umass0:2:0:0:XPT_SCSI_IO: cmd: 0x1e, flags: 0xc0, 6b cmd/0b data/32b sense > umass0: CBW 51: cmd = 6b (0x1e0000000100), data = 0b, dir = out > umass0: Handling BBB state 2 (BBB CBW), xfer=0xffffff002a822a00, NORMAL_COMPLETION > umass0: no data phase > umass0: Handling BBB state 5 (BBB CSW, 1st attempt), xfer=0xffffff0028b48800, NORMAL_COMPLETION > umass0: CSW 51: sig = 0x53425355 (valid), tag = 51, res = 0, status = 0x00 (good) > dd: /dev/da0: Invalid argument > 0+0 records in > 0+0 records out > 0 bytes transferred in 0.000197 secs (0 bytes/sec) > > I've tried comparing it with a BBB umass device that works and there > is no immediately obvious difference except that the good device > continues to perform further SCSI commands instead of returning EINVAL. > > Any suggestions on how to proceed further? > > -- > Peter Jeremy > _______________________________________________ > 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 Beijing, China From owner-freebsd-usb@FreeBSD.ORG Sun May 14 20:20:28 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895A416A402 for ; Sun, 14 May 2006 20:20:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF98743D46 for ; Sun, 14 May 2006 20:20:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4EKKR0E012338 for ; Sun, 14 May 2006 20:20:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4EKKR2T012334; Sun, 14 May 2006 20:20:27 GMT (envelope-from gnats) Resent-Date: Sun, 14 May 2006 20:20:27 GMT Resent-Message-Id: <200605142020.k4EKKR2T012334@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Anish Mistry" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 96F7A16A403 for ; Sun, 14 May 2006 20:11:51 +0000 (UTC) (envelope-from amistry@am-productions.biz) Received: from smtp3.fuse.net (mail-out3.fuse.net [216.68.8.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1CC6143D48 for ; Sun, 14 May 2006 20:11:50 +0000 (GMT) (envelope-from amistry@am-productions.biz) Received: from gx5.fuse.net ([69.61.164.22]) by smtp3.fuse.net (InterMail vM.6.01.04.04 201-2131-118-104-20050224) with ESMTP id <20060514201150.IMGN12345.smtp3.fuse.net@gx5.fuse.net> for ; Sun, 14 May 2006 16:11:50 -0400 Received: from bigguy.am-productions.biz ([69.61.164.22]) by gx5.fuse.net (InterMail vG.1.02.00.02 201-2136-104-102-20041210) with ESMTP id <20060514201149.GYCY4651.gx5.fuse.net@bigguy.am-productions.biz> for ; Sun, 14 May 2006 16:11:49 -0400 Message-Id: <1147637538.57596@bigguy.am-productions.biz> Date: Sun, 14 May 2006 16:12:18 -0400 From: "Anish Mistry" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.7 Cc: Subject: usb/97271: Fix Multiple ugen panics X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 May 2006 20:20:28 -0000 >Number: 97271 >Category: usb >Synopsis: Fix Multiple ugen panics >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun May 14 20:20:27 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Anish Mistry >Release: FreeBSD 6.1-RELEASE i386 >Organization: AM Productions >Environment: System: FreeBSD 6.1-RELEASE #0: Wed May 10 01:44:17 EDT 2006 amistry@bigguy.am-productions.biz:/usr/obj/usr/src/sys/BIGGUY >Description: There are several race conditions is the ugen driver that make it easy to panic the system when a device is detached during an IO operation. There are also panics when select() and poll() are used on ugen device endpoints. The attached patch fixes these issues. The patch also fixes the current PRs: usb/94311 usb/68232 Some of these issues are relevant to NetBSD and probably OpenBSD and DragonflyBSD. >How-To-Repeat: >Fix: --- ugen-multiple-panics.patch begins here --- --- /sys/dev/usb/ugen.c.orig Thu Dec 15 16:57:32 2005 +++ /sys/dev/usb/ugen.c Tue May 9 12:16:28 2006 @@ -1,4 +1,4 @@ -/* $NetBSD: ugen.c,v 1.59 2002/07/11 21:14:28 augustss Exp $ */ +/* $NetBSD: ugen.c,v 1.79 2006/03/01 12:38:13 yamt Exp $ */ /* Also already merged from NetBSD: * $NetBSD: ugen.c,v 1.61 2002/09/23 05:51:20 simonb Exp $ @@ -284,6 +284,9 @@ ugen_make_devnodes(sc); #endif + usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, + USBDEV(sc->sc_dev)); + USB_ATTACH_SUCCESS_RETURN; } @@ -383,6 +386,7 @@ M_WAITOK); niface_cache = niface; + memset(sc->sc_endpoints, 0, sizeof sc->sc_endpoints); for (ifaceno = 0; ifaceno < niface; ifaceno++) { DPRINTFN(1,("ugen_set_config: ifaceno %d\n", ifaceno)); err = usbd_device2interface_handle(dev, ifaceno, &iface); @@ -511,7 +515,7 @@ for (dir = OUT; dir <= IN; dir++) { if (flag & (dir == OUT ? FWRITE : FREAD)) { sce = &sc->sc_endpoints[endpt][dir]; - if (sce->edesc == 0) + if (sce == 0 ||sce->edesc == 0) return (ENXIO); } } @@ -650,7 +654,7 @@ if (!(flag & (dir == OUT ? FWRITE : FREAD))) continue; sce = &sc->sc_endpoints[endpt][dir]; - if (sce->pipeh == NULL) + if (sce == NULL || sce->pipeh == NULL) continue; DPRINTFN(5, ("ugenclose: endpt=%d dir=%d sce=%p\n", endpt, dir, sce)); @@ -835,6 +839,9 @@ USB_GET_SC(ugen, UGENUNIT(dev), sc); + if(sc->sc_dying) + return (EIO); + UGEN_DEV_REF(dev, sc); error = ugen_do_read(sc, endpt, uio, flag); UGEN_DEV_RELE(dev, sc); @@ -933,6 +940,9 @@ USB_GET_SC(ugen, UGENUNIT(dev), sc); + if (sc->sc_dying) + return (EIO); + UGEN_DEV_REF(dev, sc); error = ugen_do_write(sc, endpt, uio, flag); UGEN_DEV_RELE(dev, sc); @@ -969,8 +979,31 @@ return; USB_GET_SC(ugen, UGENUNIT(dev), sc); sce = &sc->sc_endpoints[endpt][IN]; - if (sce->pipeh) - usbd_abort_pipe(sce->pipeh); + if (sce) + { + if(sce->pipeh) + usbd_abort_pipe(sce->pipeh); + + if (sce->state & UGEN_ASLP) { + sce->state &= ~UGEN_ASLP; + DPRINTFN(5, ("ugenpurge: waking %p\n", sce)); + wakeup(sce); + } + selwakeuppri(&sce->rsel, PZERO); + } + sce = &sc->sc_endpoints[endpt][OUT]; + if (sce) + { + if(sce->pipeh) + usbd_abort_pipe(sce->pipeh); + + if (sce->state & UGEN_ASLP) { + sce->state &= ~UGEN_ASLP; + DPRINTFN(5, ("ugenpurge: waking %p\n", sce)); + wakeup(sce); + } + selwakeuppri(&sce->rsel, PZERO); + } } #endif @@ -994,11 +1027,13 @@ for (i = 0; i < USB_MAX_ENDPOINTS; i++) { for (dir = OUT; dir <= IN; dir++) { sce = &sc->sc_endpoints[i][dir]; - if (sce->pipeh) + if (sce && sce->pipeh) usbd_abort_pipe(sce->pipeh); + selwakeuppri(&sce->rsel, PZERO); } } + #if defined(__NetBSD__) || defined(__OpenBSD__) s = splusb(); if (sc->sc_refcnt > 0) { @@ -1035,6 +1070,9 @@ destroy_dev(sc->dev); #endif + usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, + USBDEV(sc->sc_dev)); + return (0); } @@ -1292,7 +1330,7 @@ /* This flag only affects read */ sce = &sc->sc_endpoints[endpt][IN]; - if (sce->pipeh == NULL) { + if (sce == NULL || sce->pipeh == NULL) { printf("ugenioctl: USB_SET_SHORT_XFER, no pipe\n"); return (EIO); } @@ -1304,6 +1342,12 @@ return (0); case USB_SET_TIMEOUT: sce = &sc->sc_endpoints[endpt][IN]; + if (sce == NULL + /* XXX this shouldn't happen, but the distinction between + input and output pipes isn't clear enough. + || sce->pipeh == NULL */ + ) + return (EINVAL); sce->timeout = *(int *)addr; return (0); default: @@ -1331,9 +1375,6 @@ err = ugen_set_config(sc, *(int *)addr); switch (err) { case USBD_NORMAL_COMPLETION: -#if defined(__FreeBSD__) - ugen_make_devnodes(sc); -#endif break; case USBD_IN_USE: return (EBUSY); @@ -1541,6 +1582,9 @@ USB_GET_SC(ugen, UGENUNIT(dev), sc); + if (sc->sc_dying) + return (EIO); + UGEN_DEV_REF(dev, sc); error = ugen_do_ioctl(sc, endpt, cmd, addr, flag, p); UGEN_DEV_RELE(dev, sc); @@ -1555,14 +1599,32 @@ int revents = 0; int s; + /* Do not allow to poll a control endpoint */ + if ( UGENENDPOINT(dev) == USB_CONTROL_ENDPOINT ) + return (EIO); + USB_GET_SC(ugen, UGENUNIT(dev), sc); if (sc->sc_dying) return (EIO); - /* XXX always IN */ - sce = &sc->sc_endpoints[UGENENDPOINT(dev)][IN]; -#ifdef DIAGNOSTIC + if((events & POLLIN) && (events & POLLOUT)) { + printf("ugenpoll: POLLIN and POLLOUT? We're not handling it, so bail.\n"); + return (EIO); + } + + if(events & (POLLIN | POLLRDNORM)) + sce = &sc->sc_endpoints[UGENENDPOINT(dev)][IN]; + else if(events & (POLLOUT | POLLWRNORM)) + sce = &sc->sc_endpoints[UGENENDPOINT(dev)][OUT]; + else { + printf("ugenpoll: unhandled input event\n"); + return (EIO); + } + + if (sce == NULL) + return (EIO); + if (!sce->edesc) { printf("ugenpoll: no edesc\n"); return (EIO); @@ -1571,23 +1633,26 @@ printf("ugenpoll: no pipe\n"); return (EIO); } -#endif s = splusb(); switch (sce->edesc->bmAttributes & UE_XFERTYPE) { case UE_INTERRUPT: - if (events & (POLLIN | POLLRDNORM)) { - if (sce->q.c_cc > 0) + if (sce->q.c_cc > 0) { + if (events & (POLLIN | POLLRDNORM)) revents |= events & (POLLIN | POLLRDNORM); - else - selrecord(p, &sce->rsel); + else if (events & (POLLOUT | POLLWRNORM)) + revents |= events & (POLLOUT | POLLWRNORM); + } else { + selrecord(p, &sce->rsel); } break; case UE_ISOCHRONOUS: - if (events & (POLLIN | POLLRDNORM)) { - if (sce->cur != sce->fill) + if (sce->cur != sce->fill) { + if (events & (POLLIN | POLLRDNORM)) revents |= events & (POLLIN | POLLRDNORM); - else - selrecord(p, &sce->rsel); + else if (events & (POLLOUT | POLLWRNORM)) + revents |= events & (POLLOUT | POLLWRNORM); + } else { + selrecord(p, &sce->rsel); } break; case UE_BULK: --- ugen-multiple-panics.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon May 15 03:40:18 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1DFC16A42D for ; Mon, 15 May 2006 03:40:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC40E43D64 for ; Mon, 15 May 2006 03:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4F3eHLv040412 for ; Mon, 15 May 2006 03:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4F3eHMp040411; Mon, 15 May 2006 03:40:17 GMT (envelope-from gnats) Resent-Date: Mon, 15 May 2006 03:40:17 GMT Resent-Message-Id: <200605150340.k4F3eHMp040411@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "J. Jones" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 258C716A400 for ; Mon, 15 May 2006 03:31:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC48A43D45 for ; Mon, 15 May 2006 03:31:52 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4F3Vq8d057360 for ; Mon, 15 May 2006 03:31:52 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4F3Vq4T057359; Mon, 15 May 2006 03:31:52 GMT (envelope-from nobody) Message-Id: <200605150331.k4F3Vq4T057359@www.freebsd.org> Date: Mon, 15 May 2006 03:31:52 GMT From: "J. Jones" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/97286: MS Wireless Intellimouse Explorer 2.0 doesn't work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 03:40:23 -0000 >Number: 97286 >Category: usb >Synopsis: MS Wireless Intellimouse Explorer 2.0 doesn't work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon May 15 03:40:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: J. Jones >Release: 6.1-RELEASE >Organization: >Environment: FreeBSD Predator 6.1-STABLE FreeBSD 6.1-STABLE #3: Sun May 14 02:44:50 MST 2006 root@Predator:/usr/obj/usr/src/sys/PREDATOR i386 >Description: Microsoft Wireless Intellimouse Explorer 2.0 as part of Wireless Desktop Elite package doesn't work when attached via USB. Everything seems to be detected properly by the system and moused runs with the proper flags/device but there is 0 movement of mouse cursor and no mouse buttons function. Startup Messages Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-STABLE #3: Sun May 14 02:44:50 MST 2006 root@Predator.titan.net:/usr/obj/usr/src/sys/PREDATOR mptable_probe: MP Config Table has bad signature: 2 C ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 1800+ (1531.03-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0400800 real memory = 536805376 (511 MB) avail memory = 515948544 (492 MB) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xd8000000-0xdbffffff at device 0.0 on pci0 pci0: at device 0.1 (no driver attached) pci0: at device 0.2 (no driver attached) pci0: at device 0.3 (no driver attached) pci0: at device 0.4 (no driver attached) pci0: at device 0.5 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xe1086000-0xe1086fff irq 20 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xe1081000-0xe1081fff irq 21 at device 2.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered ehci0: mem 0xe1082000-0xe10820ff irq 22 at device 2.2 on pci0 ehci0: [GIANT-LOCKED] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub2: 6 ports with 6 removable, self powered nve0: port 0xec00-0xec07 mem 0xe1085000-0xe1085fff irq 20 at device 4.0 on pci0 nve0: Ethernet address 00:0c:76:b5:74:77 miibus0: on nve0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nve0: Ethernet address: 00:0c:76:b5:74:77 pci0: at device 5.0 (no driver attached) pci0: at device 6.0 (no driver attached) pcib1: at device 8.0 on pci0 pci1: on pcib1 dc0: port 0xc000-0xc0ff mem 0xe0021000-0xe00213ff irq 16 at device 7.0 on pci1 miibus1: on dc0 ukphy1: on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto dc0: Ethernet address: 00:03:6d:11:2d:df atapci0: port 0xc400-0xc43f,0xc800-0xc80f,0xcc00-0xcc7f mem 0xe0020000-0xe0020fff,0xe0000000-0xe001ffff irq 18 at device 11.0 on pci1 ata2: on atapci0 ata3: on atapci0 ata4: on atapci0 atapci1: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 9.0 on pci0 ata0: on atapci1 ata1: on atapci1 fwohci0: <1394 Open Host Controller Interface> mem 0xe1083000-0xe10837ff,0xe1084000-0xe108403f irq 20 at device 13.0 on pci0 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:10:dc:00:00:5c:5d:89 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:10:dc:5c:5d:89 fwe0: Ethernet address: 02:10:dc:5c:5d:89 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pcib2: at device 30.0 on pci0 pci3: on pcib2 pci3: at device 0.0 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcc7ff,0xd0000-0xd3fff,0xd4000-0xd57ff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] uhub3: vendor 0x050d product 0x3101, class 9/0, rev 2.00/0.01, addr 2 uhub3: 3 ports with 2 removable, self powered ukbd0: Microsoft Microsoft Wireless Optical Desktop\M-. 1.00, rev 2.00/73.73, addr 3, iclass 3/1 kbd2 at ukbd0 ums0: Microsoft Microsoft Wireless Optical Desktop\M-. 1.00, rev 2.00/73.73, addr 3, iclass 3/1 ums0: 5 buttons and Z dir and a TILT dir. uhid0: Belkin Corporation Flip KVM, rev 1.10/2.10, addr 4, iclass 3/0 Timecounter "TSC" frequency 1531025717 Hz quality 800 Timecounters tick every 1.000 msec ad0: 38166MB at ata0-master UDMA100 ad1: 16124MB at ata0-slave UDMA33 acd0: CDROM at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a moused: (launched automatically with the proper device and options) root 1401 0.0 0.1 1260 768 ?? Ss 8:18PM 0:00.00 /usr/sbin/moused -p /dev/ums0 -t auto -I /var/run/moused.ums0.pid I have tried several additional options to moused and have tried to connect the puck directly to the system on all of the available USB controllers with no result other than a continuing non-function of the mouse. This may be related to PR90162 which included a patch that broke sometime in 6.1 BETA or RC: http://www.freebsd.org/cgi/query-pr.cgi?pr=90162 Problem Report usb/90162 : [usb] [patch] Add support for the MS Wireless USB Mouse >How-To-Repeat: Attach a Microsoft Wireless Desktop Elite receiver puck via USB and boot. Viola, you have a functional keyboard and completely non-working mouse! >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon May 15 11:03:15 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AB0116A403 for ; Mon, 15 May 2006 11:03:15 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A57843D49 for ; Mon, 15 May 2006 11:03:14 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4FB3ESK075428 for ; Mon, 15 May 2006 11:03:14 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4FB3B2S075422 for freebsd-usb@freebsd.org; Mon, 15 May 2006 11:03:11 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 15 May 2006 11:03:11 GMT Message-Id: <200605151103.k4FB3B2S075422@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 May 2006 11:03:15 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2005/08/10] usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_ o [2006/01/11] usb/91629 usb usbd_abort_pipe() may result in infinite 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2002/07/19] usb/40792 usb signals lead to data loss on device ugen o [2002/12/10] usb/46176 usb [panic] umass causes kernel panic if devi o [2002/12/19] i386/46371 usb USB controller cannot be initialized on I f [2003/08/13] usb/55555 usb [ums] system freezes with access to /dev/ o [2003/09/26] bin/57255 usb usbd and multi-function devices o [2004/01/30] usb/62088 usb [usb] Logitech Cordless/Optical Mouse not o [2004/02/03] usb/62309 usb [ugen] [panic] panic: ugen(4) driver o [2004/03/01] usb/63621 usb [usb] USB MemoryStick Reader stalls/crash o [2004/07/13] usb/69006 usb [patch] Apple Cinema Display hangs USB po o [2004/08/30] usb/71155 usb [usb] misbehaving usb-printer hangs proce o [2004/10/30] usb/73307 usb [panic] Kernel panics on USB disconnect o [2004/12/06] usb/74771 usb [umass] mounting write-protected umass de o [2005/01/01] usb/75705 usb [panic] da0 attach / Optio S4 (with backt o [2005/01/04] usb/75797 usb 5.3-STABLE(2005 1/4) detect USB headset, f [2005/01/13] usb/76204 usb panic while using usb attached modem o [2005/01/18] usb/76395 usb USB printer does not work, usbdevs says " f [2005/01/25] usb/76684 usb [hang] Toshiba PDR-M4 camera connected vi o [2005/02/06] usb/77184 usb kernel panic on USB device disconnect o [2005/02/09] usb/77294 usb ucom + ulpcom panic o [2005/02/23] usb/77940 usb [patch] [panic] insertion of usb keyboard f [2005/03/01] i386/78218 usb [kue] kue not detected on Sony PCG-F370 V o [2005/03/18] usb/78989 usb please add USB keyboard support to instal o [2005/03/22] usb/79140 usb WD Firewire/USB Combo hangs under load on o [2005/03/27] usb/79269 usb USB ohci da0 plug/unplug causes crashes a o [2005/03/27] usb/79287 usb UHCI hang after interrupt transfer o [2005/04/04] usb/79524 usb printing to Minolta PagePro 1[23]xxW via f [2005/04/07] usb/79656 usb [usb] RHSC interrupts lost o [2005/04/09] usb/79722 usb [usb] wrong alignments in ehci.h o [2005/04/17] usb/80040 usb [hang] Use of sound mixer causes system f f [2005/04/22] usb/80260 usb Travan USB tape drive fails to write o [2005/04/26] usb/80361 usb mounting of usb-stick fails o [2005/04/26] usb/80373 usb usb keyboard does not respond f [2005/05/06] usb/80685 usb panic in usb_cold_explore() at begining o [2005/05/09] usb/80829 usb possible panic when loading USB-modules o [2005/05/10] usb/80862 usb [patch] USB locking issues: missing some o [2005/05/20] usb/81308 usb [ugen] [patch] polling a ugen(4) control f [2005/06/13] usb/82198 usb Panic on attaching of ONKI N-338 USB MP3 f [2005/06/15] usb/82272 usb Can not recognize Casio camera EX-Z40 as o [2005/06/17] usb/82350 usb [usb] null pointer dereference in USB sta o [2005/06/22] usb/82520 usb Reboot when USL101 connected o [2005/06/26] usb/82660 usb EHCI: I/O stuck in state 'physrd'/panic o [2005/07/15] usb/83504 usb [usb] SpeedTouch USB stop working on rece o [2005/07/16] usb/83563 usb [panic] Page Fault while detaching Mpman o [2005/07/18] usb/83677 usb [usb] usb controller often not detected ( o [2005/07/19] usb/83756 usb Microsoft Intellimouse Explorer 4.0A does o [2005/07/24] usb/83977 usb [ucom] [panic] ucom1: open bulk out error o [2005/07/30] usb/84326 usb [umass] Panic trying to connect SCSI tape o [2005/07/30] usb/84336 usb [usb] [reboot] instant system reboot when o [2005/08/15] usb/84936 usb install - usb keyboard not recognized o [2005/09/12] usb/86031 usb need support usb nic rt2500 in my 5.4 STA o [2005/09/30] usb/86767 usb [usb] bogus "slice starts beyond end of t o [2005/10/08] usb/87099 usb panic: ohci_add_done: addr 0x000d1bf0 not o [2005/10/16] usb/87519 usb [kbd] cannot install on USB-only system o [2005/10/17] usb/87565 usb [PATCH] Support for Vodaphone 3G/UMTS car o [2005/11/09] usb/88743 usb [hang] USB makes kernel hang at boot (reg o [2005/11/14] usb/88966 usb kldunload ucom.ko returns "Device busy" e o [2005/11/14] usb/89003 usb LaCie Firewire drive not properly support o [2005/11/18] usb/89218 usb flash disk o [2005/12/05] usb/89954 usb [usb] USB Disk driver race condition? f [2005/12/05] usb/89997 usb [umass] [panic] panic on iPod mini detach o [2005/12/09] usb/90162 usb [usb] [patch] Add support for the MS Wire o [2005/12/20] usb/90700 usb Kernel panic on connect/mount/use umass d o [2006/01/02] usb/91238 usb USB tape unit fails to write a second tap o [2006/01/03] usb/91263 usb [patch] USB quirk needed for Logitec USB o [2006/01/03] usb/91283 usb booting very slow with usb devices connec o [2006/01/09] usb/91538 usb Unable to print to EPSON CX3500 o [2006/01/17] usb/91906 usb FreeBSD hangs while booting with USB lega o [2006/01/20] usb/92052 usb usbd causes defunct process with busy fil o [2006/01/22] usb/92142 usb SET_ADDR_FAILED and SHORT_XFER errors fro o [2006/01/22] usb/92171 usb [panic] panic unplugging Vodafone Mobile o [2006/02/10] usb/93155 usb /dev/ulpt0: device busy USB printer doe o [2006/02/15] usb/93408 usb hw.acpi.cpu.cx_lowest=C3 on AMD Turion ca f [2006/02/17] usb/93496 usb USB2.0 umass stalls on VIA o [2006/02/21] usb/93640 usb device ehci causes interrupt storm on thi o [2006/02/23] usb/93738 usb [ukbd] [patch] ukbd_check_char returns FA o [2006/02/25] usb/93828 usb ohci causes panic on boot (HP Pavillion d o [2006/02/28] usb/93949 usb ugen(4)-related repeatable kernel panic i o [2006/03/07] usb/94166 usb btx halted with a flashcard plugged o [2006/03/12] usb/94384 usb kernel panic with usb2 hardware o [2006/03/20] usb/94717 usb Reading from /dev/ulpt can break work of o [2006/03/20] usb/94742 usb [umass] [patch] umass driver does not rec o [2006/03/21] usb/94813 usb mounting write-protected umass device fre o [2006/03/24] usb/94897 usb Kernel Panic when cleanly unmounting USB o [2006/03/30] usb/95131 usb Boot/setup process does not accept key st o [2006/04/05] usb/95348 usb USB keyboard unplug causes noise on scree o [2006/04/10] usb/95562 usb Write Stress in USB Mass drive cause: [v o [2006/04/11] usb/95636 usb [boot] 5 minute delay at boot when using o [2006/04/20] usb/96120 usb USB mouse not always detected o [2006/04/23] usb/96224 usb [usb] mount_msdosfs cause page fault in s o [2006/04/28] usb/96457 usb fatback on umass = reboot o [2006/05/14] usb/97271 usb Fix Multiple ugen panics o [2006/05/15] usb/97286 usb MS Wireless Intellimouse Explorer 2.0 doe 92 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 s [2001/12/09] usb/32653 usb Added patches to improve USB scanner supp o [2002/07/24] usb/40948 usb [usb] USB HP CDW8200 does not work f [2002/08/07] usb/41415 usb [usb] [patch] Some USB scanners cannot ta o [2003/02/16] usb/48342 usb [PATCH] usbd dynamic device list. o [2003/05/08] kern/51958 usb [usb] [patch] update for urio driver o [2003/05/10] kern/52026 usb [usb] feature request: umass driver suppo o [2003/06/08] usb/53025 usb [ugen] [patch] ugen does not allow O_NONB o [2003/08/28] usb/56095 usb [usb] [patch] QUIRK: Apacer Pen Drive fai f [2003/12/15] usb/60248 usb [patch] Problem with USB printer HP Laser o [2004/01/12] usb/61234 usb [usb] [patch] usbhidaction(1) doesn't sup o [2004/03/06] usb/63837 usb [uhid] [patch] USB: hid_is_collection() o o [2004/04/19] kern/65769 usb [usb] Call to tcflush(x, TCIFLUSH) stops o [2004/05/11] kern/66547 usb [usb] Palm Tungsten T USB does not initia o [2004/06/23] usb/68232 usb [ugen] [patch] ugen(4) isochronous handli o [2004/06/27] usb/68412 usb [usb] [patch] QUIRK: Philips KEY013 USB M o [2004/08/16] usb/70523 usb [usb] [patch] umct sending/receiving wron o [2004/08/25] usb/70942 usb [usb] Genius Wireless USB mouse: moused d o [2004/09/06] usb/71416 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/06] usb/71417 usb [usb] Cryptoflex e-gate USB token (ugen0) o [2004/09/07] usb/71455 usb [usb] Slow USB umass performance of 5.3 o [2004/09/11] usb/71605 usb [umass] [patch] umass doesn't recognize m o [2004/10/06] usb/72380 usb [usb] USB does not work [dual Celeron Abi o [2004/10/15] usb/72732 usb [patch] Kyocera 7135 quirk. o [2004/10/15] usb/72733 usb Kyocera 7135 Palm OS connection problem. o [2004/10/23] usb/73056 usb [usb] Sun Microsystems Type 6 USB mouse n f [2004/11/05] usb/73553 usb [usb] Microsoft USB Internet Keyboard not o [2004/11/21] usb/74211 usb USB flash drive causes CAM status 0x4 on f [2004/11/25] usb/74358 usb [umass] unplugging at boot time an umass o [2004/11/27] usb/74453 usb Q-lity CD-RW USB ECW-043 (ScanLogic SL11R o [2004/11/30] usb/74557 usb imation 500mb usb key can only be written o [2004/12/02] usb/74609 usb [usb] [patch] allowing cdma modems to wor o [2004/12/08] usb/74849 usb [usb] [patch] Samsung SPH-i500 does not a o [2004/12/09] usb/74880 usb [usb] [patch] Samsung N400 cellphone/acm o [2005/01/04] usb/75800 usb ucom1: init failed STALLED error in time o [2005/01/07] usb/75928 usb Cytronix SmartMedia card (SMC) reader has o [2005/01/19] usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4 o [2005/01/27] usb/76732 usb Mouse problems with USB KVM Switch f [2005/03/03] usb/78371 usb Philips Wearable Audio Player (128) fails f [2005/03/18] usb/78984 usb Creative MUVO umass failure o [2005/04/09] usb/79723 usb [usb] prepare for high speed isochronous o [2005/04/09] usb/79725 usb [usb] [patch] USB device speed is not dou o [2005/04/14] usb/79893 usb [umass] [patch] new usbdevs/umass quirks o [2005/04/16] usb/80010 usb [aue] [patch] add support for the AEI USB f [2005/04/27] usb/80420 usb atapicam stops iPod functionality f [2005/05/08] usb/80773 usb "usbd_get_string()" could have taken a le o [2005/05/08] usb/80774 usb have "usbd_find_desc" in line with the ot o [2005/05/08] usb/80776 usb [udav] UDAV device driver shouldn't use u o [2005/05/08] usb/80777 usb usb_rem_task() should wait for callback t o [2005/05/10] usb/80854 usb suggestion for new iface-no-probe mechani o [2005/05/12] usb/80935 usb uvisor.c is not work with CLIE TH55. o [2005/05/15] usb/81073 usb [umass] [patch] fix umass NO_GETMAXLUN qu o [2005/05/18] usb/81191 usb Support for Curitel HX-550C USB modem to f [2005/05/29] usb/81621 usb external hd hangs under load on ehci o [2005/06/20] usb/82436 usb [patch] USL101 Host-to-Host bridge suppor o [2005/06/30] usb/82839 usb [patch] add support for Aceeca Mez1000 de o [2005/07/05] usb/83022 usb ALI USB 2.0 EHCI Controller is not detect o [2005/07/21] usb/83863 usb Communication problem between opensc/open o [2005/08/18] usb/85067 usb Cannot attach ScanJet 4300C to usb device o [2005/09/11] usb/85992 usb [uhid] [patch] USB stops working when try o [2005/09/16] usb/86195 usb [patch] allow USB Ethernet Adaptor "ELECO o [2005/09/18] usb/86298 usb Known good USB mouse won't work with corr o [2005/09/21] usb/86438 usb Fix for non-working iPod over USB is in N o [2005/10/10] usb/87224 usb Cannot mount USB Zip750 o [2005/10/19] usb/87648 usb [mouse] Logitech USB-optical mouse proble o [2005/11/02] usb/88408 usb axe0 read PHY failed o [2005/11/13] usb/88939 usb Fix cheapy Myson USB-IDE adapter f [2005/11/15] usb/89087 usb usb external harddrive hangs with BBB res f [2006/01/01] usb/91191 usb HP LaserJet 1020 (USB printer) not recogn f [2006/01/08] usb/91516 usb [umass] umass0 problems, with Freecom Cla o [2006/01/09] usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone o [2006/01/15] usb/91811 usb Compact Flash in HP Photosmart 2610 retur o [2006/01/16] usb/91863 usb Philips USB webcam driver o [2006/01/17] usb/91896 usb Serial Number of USB Memory Sticks is not o [2006/01/25] usb/92306 usb [quirk] [patch] Support for iRiver U10 US o [2006/01/27] usb/92403 usb uplcom.c needs new entry for 4.00 revisio f [2006/01/28] usb/92462 usb [patch] Add support for Epson CX3500/3600 o [2006/02/05] usb/92852 usb Vertical scroll not working properly on A o [2006/02/08] usb/93011 usb HP ScanJet 6200C & uscanner problem o [2006/02/15] usb/93389 usb Digital Camera Pentax S60 don't work o [2006/02/17] usb/93484 usb [umass] [patch] QUIRK: Toshiba TransMemor o [2006/02/26] usb/93872 usb [patch] SCSI quirk required for ELTA 8061 o [2006/03/06] usb/94132 usb USB QUIRK for CENTURY EX35QUAT disk enclo f [2006/03/06] usb/94147 usb doesn't recognise my USB keyboard o [2006/03/06] usb/94148 usb Make if_cdce work with ARM linux handheld o [2006/03/11] usb/94311 usb [ugen][PATCH] allow interrupt IN transact o [2006/03/14] usb/94439 usb [patch] Add support for JNC MP3 Player o [2006/03/26] usb/94946 usb [uhub][patch] code dynamic status size fo o [2006/03/28] usb/95037 usb USB disk didnt recognized on hot-plug. o [2006/03/31] usb/95173 usb [usb] cannot mount external usb harddisk o [2006/04/02] usb/95241 usb Patch to add USB ID for OEM Pharos 360 GP p [2006/04/11] usb/95616 usb [patch] Add support for USB Acer 640BT sc o [2006/04/15] usb/95803 usb Add support for AnyData ADU-E100H o [2006/04/15] usb/95805 usb Add Support for Siemens ES75 modem o [2006/04/26] usb/96381 usb [patch] add a quirk table entry for a fla o [2006/04/30] usb/96546 usb [usb] [patch] Add support (quirk) for Eas o [2006/05/01] usb/96599 usb [patch] [usb] Sony Handycam DCR-HC32E mem o [2006/05/03] usb/96714 usb Update uvisor to support the Fossil Abacu o [2006/05/07] usb/96901 usb [patch] Add support for X-Micro Flash Dis o [2006/05/12] usb/97169 usb [uhid + Xbox 360 gamepad] Turn off blinki o [2006/05/12] usb/97175 usb USB cardreader hangs system 101 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue May 16 09:13:06 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9759316A413 for ; Tue, 16 May 2006 09:13:06 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD80643D49 for ; Tue, 16 May 2006 09:13:05 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1Ffvbo-000FMe-Vw for freebsd-usb@FreeBSD.org; Tue, 16 May 2006 13:12:53 +0400 Message-ID: <44699796.40206@FreeBSD.org> Date: Tue, 16 May 2006 13:12:54 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: Subject: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 09:13:06 -0000 After I've explored my problem with rue(4) I've found out our USB stack is incompatible with our current TCP/IP implementation (6.0+) ("Trying sleep, but thread marked as sleeping prohibited" problem). I've discussed it with glebius and he told me, it's complete USB problem. As I understand USB transfer should be rewritten to use no mspleep calls. Any comments? Any quick fixes? -- Sem. From owner-freebsd-usb@FreeBSD.ORG Tue May 16 15:46:11 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA70916A581; Tue, 16 May 2006 15:46:11 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A40CE43D67; Tue, 16 May 2006 15:46:05 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k4GFgtSs047796; Tue, 16 May 2006 09:42:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 16 May 2006 09:30:14 -0600 (MDT) Message-Id: <20060516.093014.41680320.imp@bsdimp.com> To: sem@freebsd.org From: Warner Losh In-Reply-To: <44699796.40206@FreeBSD.org> References: <44699796.40206@FreeBSD.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: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 15:46:11 -0000 From: Sergey Matveychuk Subject: all usb-ethernet adapters are borked? Date: Tue, 16 May 2006 13:12:54 +0400 > After I've explored my problem with rue(4) I've found out our USB stack > is incompatible with our current TCP/IP implementation (6.0+) ("Trying > sleep, but thread marked as sleeping prohibited" problem). > > I've discussed it with glebius and he told me, it's complete USB problem. > > As I understand USB transfer should be rewritten to use no mspleep calls. > > Any comments? Any quick fixes? Have you tried marking the rue driver as requing giant? Warner From owner-freebsd-usb@FreeBSD.ORG Tue May 16 18:06:26 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8388516AC01 for ; Tue, 16 May 2006 18:06:26 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from mail.ciam.ru (ns.ciam.ru [213.247.195.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1418F43D5F for ; Tue, 16 May 2006 18:06:25 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from [87.240.16.199] (helo=[192.168.0.2]) by mail.ciam.ru with esmtpa (Exim 4.x) id 1Fg3w8-0004kI-7O; Tue, 16 May 2006 22:06:24 +0400 Message-ID: <446A14B1.8090607@FreeBSD.org> Date: Tue, 16 May 2006 22:06:41 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Warner Losh References: <44699796.40206@FreeBSD.org> <20060516.093014.41680320.imp@bsdimp.com> In-Reply-To: <20060516.093014.41680320.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 18:06:32 -0000 Warner Losh wrote: > From: Sergey Matveychuk > Subject: all usb-ethernet adapters are borked? > Date: Tue, 16 May 2006 13:12:54 +0400 > >> After I've explored my problem with rue(4) I've found out our USB stack >> is incompatible with our current TCP/IP implementation (6.0+) ("Trying >> sleep, but thread marked as sleeping prohibited" problem). >> >> I've discussed it with glebius and he told me, it's complete USB problem. >> >> As I understand USB transfer should be rewritten to use no mspleep calls. >> >> Any comments? Any quick fixes? > > Have you tried marking the rue driver as requing giant? I'm not sure how to do it. But let me make an assumption the driver already do it: ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | IFF_NEEDSGIANT; Is it what do you mean? Or you mean another mark? -- Dixi. Sem. From owner-freebsd-usb@FreeBSD.ORG Tue May 16 19:23:40 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E4F616A7C9 for ; Tue, 16 May 2006 19:23:40 +0000 (UTC) (envelope-from feestjen_baan@telenet.be) Received: from astra.telenet-ops.be (astra.telenet-ops.be [195.130.132.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5F1143D46 for ; Tue, 16 May 2006 19:23:39 +0000 (GMT) (envelope-from feestjen_baan@telenet.be) Received: from localhost (localhost.localdomain [127.0.0.1]) by astra.telenet-ops.be (Postfix) with SMTP id 32F08D0878 for ; Tue, 16 May 2006 21:23:38 +0200 (CEST) Received: from [81.83.208.187] (d5153D0BB.access.telenet.be [81.83.208.187]) by astra.telenet-ops.be (Postfix) with ESMTP id 0DEC3D074B for ; Tue, 16 May 2006 21:23:38 +0200 (CEST) Message-ID: <446A26B3.8030708@telenet.be> Date: Tue, 16 May 2006 21:23:31 +0200 From: Laurens Adriaenssens User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: usb/89889: [QUIRK] Motorola E398 Mobile Phone (TransFlash drive) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 19:23:40 -0000 From owner-freebsd-usb@FreeBSD.ORG Tue May 16 19:46:05 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B45416A4BF; Tue, 16 May 2006 19:46:05 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFE6943D53; Tue, 16 May 2006 19:46:04 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k4GJjfL5051037; Tue, 16 May 2006 13:45:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 16 May 2006 13:45:41 -0600 (MDT) Message-Id: <20060516.134541.115955424.imp@bsdimp.com> To: sem@FreeBSD.org From: Warner Losh In-Reply-To: <446A14B1.8090607@FreeBSD.org> References: <44699796.40206@FreeBSD.org> <20060516.093014.41680320.imp@bsdimp.com> <446A14B1.8090607@FreeBSD.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: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 19:46:05 -0000 From: Sergey Matveychuk Subject: Re: all usb-ethernet adapters are borked? Date: Tue, 16 May 2006 22:06:41 +0400 > Warner Losh wrote: > > From: Sergey Matveychuk > > Subject: all usb-ethernet adapters are borked? > > Date: Tue, 16 May 2006 13:12:54 +0400 > > > >> After I've explored my problem with rue(4) I've found out our USB stack > >> is incompatible with our current TCP/IP implementation (6.0+) ("Trying > >> sleep, but thread marked as sleeping prohibited" problem). > >> > >> I've discussed it with glebius and he told me, it's complete USB problem. > >> > >> As I understand USB transfer should be rewritten to use no mspleep calls. > >> > >> Any comments? Any quick fixes? > > > > Have you tried marking the rue driver as requing giant? > > I'm not sure how to do it. But let me make an assumption the driver > already do it: > > ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | > IFF_NEEDSGIANT; > > Is it what do you mean? Or you mean another mark? No. that's what I mean. Can you post a traceback to the sleeping with the sleep lock issue? Warner From owner-freebsd-usb@FreeBSD.ORG Wed May 17 02:20:15 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DCA616A403 for ; Wed, 17 May 2006 02:20:15 +0000 (UTC) (envelope-from victor@preprod.vfmii.com) Received: from preprod.vfmii.com (35.44.220-216.q9.net [216.220.44.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0ACD43D5A for ; Wed, 17 May 2006 02:20:13 +0000 (GMT) (envelope-from victor@preprod.vfmii.com) Received: from preprod.vfmii.com (localhost [127.0.0.1]) by preprod.vfmii.com (Postfix) with ESMTP id E6EBE246C6 for ; Tue, 16 May 2006 22:48:57 -0400 (EDT) Received: (from victor@localhost) by preprod.vfmii.com (8.12.11/8.12.11/Submit) id k4H2mvFT023653; Tue, 16 May 2006 22:48:57 -0400 Date: Tue, 16 May 2006 22:48:57 -0400 Message-Id: <200605170248.k4H2mvFT023653@preprod.vfmii.com> To: freebsd-usb@freebsd.org From: postcards1001 MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: You've received a greeting from a family member! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 02:20:15 -0000 D> You have just received a virtual postcard from a family member! . You can pick up your postcard at the following web address: . [1]http://www2.postcards.org/?d21-sea-sunset . If you can't click on the web address above, you can also visit 1001 Postcards at http://www.postcards.org/postcards/ and enter your pickup code, which is: d21-sea-sunset . (Your postcard will be available for 60 days.) . Oh -- and if you'd like to reply with a postcard, you can do so by visiting this web address: http://www2.postcards.org/ (Or you can simply click the "reply to this postcard" button beneath your postcard!) . We hope you enjoy your postcard, and if you do, please take a moment to send a few yourself! . Regards, 1001 Postcards http://www.postcards.org/postcards/ References 1. http://216.223.126.4/cobalt-images/scan.exe From owner-freebsd-usb@FreeBSD.ORG Wed May 17 06:24:36 2006 Return-Path: X-Original-To: freebsd-usb@FreeBSD.org Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A72B816A407 for ; Wed, 17 May 2006 06:24:36 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A95843D45 for ; Wed, 17 May 2006 06:24:35 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1FgFSJ-000Gkb-53; Wed, 17 May 2006 10:24:23 +0400 Message-ID: <446AC196.9070901@FreeBSD.org> Date: Wed, 17 May 2006 10:24:22 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Warner Losh References: <44699796.40206@FreeBSD.org> <20060516.093014.41680320.imp@bsdimp.com> <446A14B1.8090607@FreeBSD.org> <20060516.134541.115955424.imp@bsdimp.com> In-Reply-To: <20060516.134541.115955424.imp@bsdimp.com> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@FreeBSD.org Subject: Re: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 06:24:36 -0000 Warner Losh wrote: > From: Sergey Matveychuk > Subject: Re: all usb-ethernet adapters are borked? > Date: Tue, 16 May 2006 22:06:41 +0400 > >> Warner Losh wrote: >>> From: Sergey Matveychuk >>> Subject: all usb-ethernet adapters are borked? >>> Date: Tue, 16 May 2006 13:12:54 +0400 >>> >>>> After I've explored my problem with rue(4) I've found out our USB stack >>>> is incompatible with our current TCP/IP implementation (6.0+) ("Trying >>>> sleep, but thread marked as sleeping prohibited" problem). >>>> >>>> I've discussed it with glebius and he told me, it's complete USB problem. >>>> >>>> As I understand USB transfer should be rewritten to use no mspleep calls. >>>> >>>> Any comments? Any quick fixes? >>> Have you tried marking the rue driver as requing giant? >> I'm not sure how to do it. But let me make an assumption the driver >> already do it: >> >> ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | >> IFF_NEEDSGIANT; >> >> Is it what do you mean? Or you mean another mark? > > No. that's what I mean. Can you post a traceback to the sleeping > with the sleep lock issue? > > Warner Sure. http://sunner.elcomnet.ru/~sem/sleep.panic -- Sem. From owner-freebsd-usb@FreeBSD.ORG Wed May 17 08:20:13 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A314F16A401 for ; Wed, 17 May 2006 08:20:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from mail46.e.nsc.no (mail46.e.nsc.no [193.213.115.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3B4943D45 for ; Wed, 17 May 2006 08:20:10 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from acer-a6444i28v1.lan (ti131310a080-14577.bb.online.no [85.165.248.241]) by mail46.nsc.no (8.13.6/8.13.5) with ESMTP id k4H8K9wQ002394 for ; Wed, 17 May 2006 10:20:09 +0200 (CEST) From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Wed, 17 May 2006 10:20:10 +0200 User-Agent: KMail/1.7 References: <44699796.40206@FreeBSD.org> <20060516.134541.115955424.imp@bsdimp.com> <446AC196.9070901@FreeBSD.org> In-Reply-To: <446AC196.9070901@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200605171020.10644.hselasky@c2i.net> Subject: Re: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 08:20:13 -0000 On Wednesday 17 May 2006 08:24, Sergey Matveychuk wrote: > > Sure. > http://sunner.elcomnet.ru/~sem/sleep.panic =46rom what I can see, the "usbd_do_request()" is called from an interrupt = or=20 timeout. Maybe some ethernet-adapter registers must be pre-read or cached, = or=20 Giant must be locked. =2D-HPS From owner-freebsd-usb@FreeBSD.ORG Wed May 17 14:46:38 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3189116A64F for ; Wed, 17 May 2006 14:46:38 +0000 (UTC) (envelope-from railmail@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C20CA43D79 for ; Wed, 17 May 2006 14:46:14 +0000 (GMT) (envelope-from railmail@gmail.com) Received: by nz-out-0102.google.com with SMTP id x3so260438nzd for ; Wed, 17 May 2006 07:46:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ciz4+zSOMxk7g0KEgkwOpHFRBSlsU99rsumeJnvaaOB6EDlQWOJUWSJnxD9+lToqLyKP5zW4aw9W35mqxIvDxJi57XyYyuVMi7gF7MVdK5pD4ixwVXuSCCmWM6HROG9eDyy/ZEp0unDXtQCZmx/k3zgEtQogfC4bfJII0g0H12c= Received: by 10.65.219.8 with SMTP id w8mr789442qbq; Wed, 17 May 2006 07:46:13 -0700 (PDT) Received: by 10.65.230.12 with HTTP; Wed, 17 May 2006 07:46:13 -0700 (PDT) Message-ID: Date: Wed, 17 May 2006 10:46:13 -0400 From: "Rail mail" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: umass device X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 14:46:43 -0000 I am trying to figure out what might be wrong with a usb external hard drive. I would like ot if possible contribute to the solution to the problem but am looking for advice and help. The device seems to be detected but fails to get a device node entry. the system is pretty much a default install, devfs and devd havn't been changed at all. From what information I have dug up the default system shouldn't have issues having a usb mass storage device pluged in and getting a devince node entry added. running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 usbdevs -v Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00 port 1 addr 2: full speed, self powered, config 1, Mass Storage Device(0x2507), Prolific Technology Inc.(0x067b), rev 1.00 dmesg umass0: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 2 umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: at uhub0 port 2 (addr 2) disconnected From owner-freebsd-usb@FreeBSD.ORG Wed May 17 19:50:30 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED99916A53C for ; Wed, 17 May 2006 19:50:30 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29D7C43D6A for ; Wed, 17 May 2006 19:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4HJoMcq017892 for ; Wed, 17 May 2006 19:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4HJoMjU017890; Wed, 17 May 2006 19:50:22 GMT (envelope-from gnats) Date: Wed, 17 May 2006 19:50:22 GMT Message-Id: <200605171950.k4HJoMjU017890@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Johan Nilsson Cc: Subject: Re: usb/89087: usb external harddrive hangs with BBB reset failed, TIMEOUT messages X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Johan Nilsson List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 May 2006 19:50:40 -0000 The following reply was made to PR usb/89087; it has been noted by GNATS. From: Johan Nilsson To: bug-followup@FreeBSD.org, jonathan@kc8onw.net Cc: Subject: Re: usb/89087: usb external harddrive hangs with BBB reset failed, TIMEOUT messages Date: Wed, 17 May 2006 21:41:09 +0200 Hello, Got the same problem with a LaCie BigDisk 500Gb running FreeBSD 6.1-RELEASE. Including dmesg output. Is there any other info you would be helped by? /Regards Johan Nilsson Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Sun May 7 04:15:57 UTC 2006 root@bloom.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 3200+ (2010.31-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x20ff2 Stepping = 2 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x1 real memory = 1073676288 (1023 MB) avail memory = 1024397312 (976 MB) ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi0: Power Button (fixed) acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR acpi_bus_number: can't get _ADR Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) ohci0: mem 0xd5004000-0xd5004fff irq 21 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 10 ports with 10 removable, self powered ehci0: mem 0xfeb00000-0xfeb000ff irq 22 at device 2.1 on pci0 ehci0: [GIANT-LOCKED] usb1: EHCI version 1.0 usb1: companion controller, 4 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub1: 10 ports with 10 removable, self powered pci0: at device 4.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 ata0: on atapci0 ata1: on atapci0 atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xd5002000-0xd5002fff irq 21 a t device 7.0 on pci0 ata2: on atapci1 ata3: on atapci1 atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xd5001000-0xd5001fff irq 22 a t device 8.0 on pci0 ata4: on atapci2 ata5: on atapci2 pcib1: at device 9.0 on pci0 pci5: on pcib1 fwohci0: mem 0xd4008000-0xd40087ff,0xd4004000-0xd4007fff irq 16 at device 11.0 on pci5 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:11:d8:00:00:6e:c7:05 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:11:d8:6e:c7:05 fwe0: Ethernet address: 02:11:d8:6e:c7:05 fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) skc0: port 0xa000-0xa0ff mem 0xd4000000-0xd4003fff irq 17 at device 12.0 on pci5 skc0: Marvell Yukon Lite Gigabit Ethernet rev. (0x9) sk0: on skc0 sk0: Ethernet address: 00:15:f2:09:c0:82 miibus0: on sk0 e1000phy0: on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto nve0: port 0xb000-0xb007 mem 0xd5000000-0xd5000fff irq 23 at device 10.0 on pci0 nve0: Ethernet address 00:15:f2:09:b3:89 miibus1: on nve0 ukphy0: on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto nve0: Ethernet address: 00:15:f2:09:b3:89 pcib2: at device 11.0 on pci0 pci4: on pcib2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci2: on pcib4 pcib5: at device 14.0 on pci0 pci1: on pcib5 pci1: at device 0.0 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] orm0: at iomem 0xd0000-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2010312229 Hz quality 800 Timecounters tick every 1.000 msec module_register_init: MOD_LOAD (amr_linux, 0xffffffff8062a040, 0) error 6 acd0: CDROM at ata0-master PIO4 ad8: 381554MB at ata4-master SATA150 ad10: 381554MB at ata5-master SATA150 ar0: 381554MB status: READY ar0: disk0 READY (master) using ad8 at ata4-master ar0: disk1 READY (mirror) using ad10 at ata5-master Trying to mount root from ufs:/dev/ar0s1a WARNING: / was not properly dismounted WARNING: /var was not properly dismounted nve0: device timeout (1) nve0: link state changed to DOWN nve0: link state changed to UP module_register_init: MOD_LOAD (amr_linux, 0xffffffff8062a040, 0) error 6 acd0: CDROM at ata0-master PIO4 ad8: 381554MB at ata4-master SATA150 ad10: 381554MB at ata5-master SATA150 ar0: 381554MB status: READY ar0: disk0 READY (master) using ad8 at ata4-master ar0: disk1 READY (mirror) using ad10 at ata5-master Trying to mount root from ufs:/dev/ar0s1a WARNING: / was not properly dismounted WARNING: /var was not properly dismounted nve0: device timeout (1) nve0: link state changed to DOWN nve0: link state changed to UP umass0: LaCie Group.SA BigDisk, rev 2.00/1.18, addr 2 umass0: Get Max Lun not supported (STALLED) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 476950MB (976794336 512 byte sectors: 255H 63S/T 60802C) WARNING: /usb was not properly dismounted nve0: device timeout (1) nve0: link state changed to DOWN nve0: link state changed to UP umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT g_vfs_done():da0s1d[WRITE(offset=292121640960, length=16384)]error = 5 g_vfs_done():da0s1d[READ(offset=308130177024, length=2048)]error = 5 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT From owner-freebsd-usb@FreeBSD.ORG Thu May 18 06:18:22 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E052B16A405 for ; Thu, 18 May 2006 06:18:22 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3829D43D46 for ; Thu, 18 May 2006 06:18:22 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1Fgbpx-0004lO-Uo; Thu, 18 May 2006 10:18:18 +0400 Message-ID: <446C11A9.4010009@FreeBSD.org> Date: Thu, 18 May 2006 10:18:17 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Hans Petter Selasky References: <44699796.40206@FreeBSD.org> <20060516.134541.115955424.imp@bsdimp.com> <446AC196.9070901@FreeBSD.org> <200605171020.10644.hselasky@c2i.net> In-Reply-To: <200605171020.10644.hselasky@c2i.net> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: all usb-ethernet adapters are borked? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 06:18:23 -0000 Hans Petter Selasky wrote: > On Wednesday 17 May 2006 08:24, Sergey Matveychuk wrote: >> Sure. >> http://sunner.elcomnet.ru/~sem/sleep.panic > > From what I can see, the "usbd_do_request()" is called from an interrupt or > timeout. Maybe some ethernet-adapter registers must be pre-read or cached, or > Giant must be locked. It's called from in_addmulti()->if_addmulti()->rue_ioctl() just I try to assign an IP address to the interface. I don't know why this info does not exist in tracing. -- Dixi. Sem. From owner-freebsd-usb@FreeBSD.ORG Thu May 18 10:45:45 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB4D416A409 for ; Thu, 18 May 2006 10:45:45 +0000 (UTC) (envelope-from s.faubel@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16F2C43D46 for ; Thu, 18 May 2006 10:45:44 +0000 (GMT) (envelope-from s.faubel@web.de) Received: by fmmailgate03.web.de (8.12.6/8.12.6/webde Linux 0.7) with ESMTP id k4IAjgTp028429 for ; Thu, 18 May 2006 12:45:42 +0200 Received: from [83.171.178.239] (helo=[10.0.0.12]) by smtp06.web.de with esmtp (TLSv1:RC4-MD5:128) (WEB.DE 4.107 #108) id 1Fgg0k-0003lu-00 for freebsd-usb@freebsd.org; Thu, 18 May 2006 12:45:42 +0200 From: Sebastian Faubel To: freebsd-usb@freebsd.org Content-Type: text/plain Date: Thu, 18 May 2006 12:45:00 +0200 Message-Id: <1147949100.3672.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: s.faubel@web.de X-Sender: s.faubel@web.de Subject: NEC uPD 720100 on Evo Notebook X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 10:45:46 -0000 Hello everyone, i have a problem regarding my USB 2.0 controller. I want to switch from linux to *BSD, but I need to get USB 2.0 running since I have a certain amount of umass devices I need to use. I have a compaq evo n800c notebook. When booting, FreeBSD tells me that it found two ohci companion controllers, which is correct - but everytime it gets to load the ehci driver it just hangs. No kernel panic message or similar, just hanging. I tried to boot without acpi, but same trouble. I have no existing installation, since this is my productive machine, I'm just trying to figure out if I can get it to work before actually installing. As it fails to boot, this wouldn't be possible anyway. I tried booting from the 6.1-bootonly image, same trouble on 6.0. Does anyone have tips or hints for a n0b? sebastian From owner-freebsd-usb@FreeBSD.ORG Thu May 18 21:21:54 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CC0716A400 for ; Thu, 18 May 2006 21:21:54 +0000 (UTC) (envelope-from johnwayne@dluxlink.com) Received: from mail.dluxlink.com (mail.dluxlink.com [66.143.207.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCCD043D45 for ; Thu, 18 May 2006 21:21:53 +0000 (GMT) (envelope-from johnwayne@dluxlink.com) Received: from YOURE28415EB0A (wilson.dluxlink.com [66.143.200.86]) by mail.dluxlink.com (8.13.6/8.12.6) with SMTP id k4ILLqqi019753 for ; Thu, 18 May 2006 16:21:52 -0500 Message-ID: <000501c67ac9$6d615bb0$650fa8c0@YOURE28415EB0A> From: "johnwayne" To: Date: Thu, 18 May 2006 16:21:31 -0600 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ASAP, Help with driver Motorola Razr V3c usb phone freebsd6.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 21:21:54 -0000 did u ever find any one with the drivers. i need them to. can u help. From owner-freebsd-usb@FreeBSD.ORG Thu May 18 21:36:14 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2641516A400 for ; Thu, 18 May 2006 21:36:14 +0000 (UTC) (envelope-from lars.stokholm@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FD5A43D45 for ; Thu, 18 May 2006 21:36:13 +0000 (GMT) (envelope-from lars.stokholm@gmail.com) Received: by nf-out-0910.google.com with SMTP id x29so116164nfb for ; Thu, 18 May 2006 14:36:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=E5JuExIthf7oW4AXN1XJF65vqN/41ZwAyp8TWogcBi31HXiUjEVs5Z109/ONrOG5RTmLIyNuAT46mlkXHKatvVpWvQW4x+kZx5mVanC4GF/SiyKbvjLc4h9KImYv8d2IyW6dHLTyFdrtKialp01BM49kYXRtFvmxsTva7/O+1T4= Received: by 10.49.39.1 with SMTP id r1mr913480nfj; Thu, 18 May 2006 14:36:12 -0700 (PDT) Received: by 10.49.4.6 with HTTP; Thu, 18 May 2006 14:36:12 -0700 (PDT) Message-ID: Date: Thu, 18 May 2006 23:36:12 +0200 From: "Lars Stokholm" To: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Slow USB2 transfer rate X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 May 2006 21:36:14 -0000 Hi, I'm transferring files from a harddisk, connected by USB2, at a rate of 5MB/s. It ought to be a lot faster than that, right? Does anyone have any ideas to how I can speed it up a little? I'm running 6.1-STABLE with the GENERIC kernel - with a newbie behind the wheel, so any suggestion, however obvious, might be the solution for me. ;) Lars From owner-freebsd-usb@FreeBSD.ORG Fri May 19 17:20:14 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DB5C16A41F for ; Fri, 19 May 2006 17:20:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24F8143D48 for ; Fri, 19 May 2006 17:20:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4JHKD3c085122 for ; Fri, 19 May 2006 17:20:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4JHKDdf085121; Fri, 19 May 2006 17:20:13 GMT (envelope-from gnats) Date: Fri, 19 May 2006 17:20:13 GMT Message-Id: <200605191720.k4JHKDdf085121@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Maxim Konovalov Cc: Subject: usb/96546 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Konovalov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2006 17:20:14 -0000 The following reply was made to PR usb/96546; it has been noted by GNATS. From: Maxim Konovalov To: Eugene Grosbein Cc: bug-followup@freebsd.org Subject: usb/96546 Date: Fri, 19 May 2006 21:19:06 +0400 (MSD) Eugene, could you please follow a guideline for the quirks submission at http://root.org/~nate/freebsd/scsi/quirks.html. Basically we need # Output of "camcontrol inquiry yourdevice" # Manufacturer name, model number, etc. # Transport type (FC, SCSI, USB, Firewire) # Output from dmesg for failed attach attempts # Output from dmesg for successful attach attempts (after quirk added) # Output of "usbdevs -v" with device attached The same is for usb/96599. TIA! -- Maxim Konovalov From owner-freebsd-usb@FreeBSD.ORG Fri May 19 22:20:20 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CFD716A425 for ; Fri, 19 May 2006 22:20:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 746B643D6D for ; Fri, 19 May 2006 22: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.4/8.13.4) with ESMTP id k4JMKF3T002359 for ; Fri, 19 May 2006 22:20:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4JMKFDB002358; Fri, 19 May 2006 22:20:15 GMT (envelope-from gnats) Date: Fri, 19 May 2006 22:20:15 GMT Message-Id: <200605192220.k4JMKFDB002358@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Maxim Konovalov Cc: Subject: usb/96546 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim Konovalov List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2006 22:20:20 -0000 The following reply was made to PR usb/96546; it has been noted by GNATS. From: Maxim Konovalov To: bug-followup@freebsd.org Cc: Subject: usb/96546 Date: Sat, 20 May 2006 02:10:23 +0400 (MSD) Btw, your antispam policy looks really weird. This is a second PR I try to communicate with you about and got bounces. ... while talking to relay2.grosbein.pp.ru.: >>> DATA <<< 450 4.0.0 ... You are still not in my white list. Please try later. ... Deferred: 450 4.0.0 ... You are still not in my white list. Please try later. <<< 503 5.0.0 Need RCPT (recipient) Warning: message still undelivered after 4 hours Will keep trying until message is 5 days old -- Maxim Konovalov From owner-freebsd-usb@FreeBSD.ORG Fri May 19 23:23:07 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A380316A420 for ; Fri, 19 May 2006 23:23:07 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail12.syd.optusnet.com.au (mail12.syd.optusnet.com.au [211.29.132.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07DB743D46 for ; Fri, 19 May 2006 23:23:06 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail12.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k4JNN5f9011184 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sat, 20 May 2006 09:23:05 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k4JNN4XP012135 for ; Sat, 20 May 2006 09:23:04 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k4JNN4gC012134 for freebsd-usb@freebsd.org; Sat, 20 May 2006 09:23:04 +1000 (EST) (envelope-from peter) Date: Sat, 20 May 2006 09:23:04 +1000 From: Peter Jeremy To: freebsd-usb@freebsd.org Message-ID: <20060519232304.GA11959@turion.vk2pj.dyndns.org> References: <20060513232248.GA7904@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060513232248.GA7904@turion.vk2pj.dyndns.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Subject: Re: umass not working with MP3 Player X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 May 2006 23:23:07 -0000 On Sun, 2006-May-14 09:22:48 +1000, Peter Jeremy wrote: >umass0: EM706S EM706S MP3 Player, rev 1.10/10.01, addr 2 ... >da0: Removable Direct Access SCSI-4 device >da0: 1.000MB/s transfers >da0: 491MB (251456 2048 byte sectors: 64H 32S/T 122C) The point I missed here is "2048 byte sectors". >turion% dd if=/dev/da0 bs=512 count=1 >/dev/null Reading 512 bytes from a device with 2KB sectors won't work. Reading a 2KB block does work. My next problem is that mtools is incompatible with anything other than 512 byte sectors but I'll take that up on a more relevant list. -- Peter Jeremy From owner-freebsd-usb@FreeBSD.ORG Sat May 20 03:30:30 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3137116A4EF for ; Sat, 20 May 2006 03:30:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA16143D49 for ; Sat, 20 May 2006 03:30:28 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k4K3US0r021391 for ; Sat, 20 May 2006 03:30:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k4K3USYd021386; Sat, 20 May 2006 03:30:28 GMT (envelope-from gnats) Resent-Date: Sat, 20 May 2006 03:30:28 GMT Resent-Message-Id: <200605200330.k4K3USYd021386@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mark Diekhans Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F6B216A434 for ; Sat, 20 May 2006 03:26:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id F000F43D45 for ; Sat, 20 May 2006 03:26:14 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4K3QEma034469 for ; Sat, 20 May 2006 03:26:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k4K3QEro034468; Sat, 20 May 2006 03:26:14 GMT (envelope-from nobody) Message-Id: <200605200326.k4K3QEro034468@www.freebsd.org> Date: Sat, 20 May 2006 03:26:14 GMT From: Mark Diekhans To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: usb/97512: add Motorola A41x/V32x USB phone support (patch enclosed) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2006 03:30:30 -0000 >Number: 97512 >Category: usb >Synopsis: add Motorola A41x/V32x USB phone support (patch enclosed) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 20 03:30:28 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Mark Diekhans >Release: 7.0 current >Organization: >Environment: FreeBSD kestrel.kermodei.com 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri May 19 17:08:11 PDT 2006 markd@kestrel.kermodei.com:/usr/src/sys/i386/compile/X1 i386 >Description: usbdevs and quirks additions need to support Motorola A41x/V32x USB phones. patch enclosed and tested on both 6.0 release and 7 current >How-To-Repeat: >Fix: --- dev/usb/usbdevs.ORG Fri May 19 16:55:57 2006 +++ dev/usb/usbdevs Fri May 19 16:56:39 2006 @@ -1261,6 +1261,7 @@ product MOTOROLA MC141555 0x1555 MC141555 hub controller product MOTOROLA SB4100 0x4100 SB4100 USB Cable Modem product MOTOROLA2 E398 0x4810 E398 Mobile Phone +product MOTOROLA2 A41xV32x 0x2a22 A41x/V32x Mobile Phones /* MultiTech products */ product MULTITECH ATLAS 0xf101 MT5634ZBA-USB modem --- dev/usb/usb_quirks.c.ORG Fri May 19 16:58:03 2006 +++ dev/usb/usb_quirks.c Fri May 19 16:55:15 2006 @@ -101,7 +101,9 @@ ANY, { UQ_ASSUME_CM_OVER_DATA }}, { USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_AS64LX, 0x100, { UQ_ASSUME_CM_OVER_DATA }}, - /* Devices which should be ignored by uhid */ + { USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_A41xV32x, + ANY, { UQ_ASSUME_CM_OVER_DATA }}, + /* Devices which should be ignored by uhid */ { USB_VENDOR_APC, USB_PRODUCT_APC_UPS, ANY, { UQ_HID_IGNORE }}, { USB_VENDOR_DELORME, USB_PRODUCT_DELORME_EARTHMATE, >Release-Note: >Audit-Trail: >Unformatted: