From nick at van-laarhoven.org Wed Apr 1 03:06:43 2009 From: nick at van-laarhoven.org (Nick Hibma) Date: Wed Apr 1 03:06:51 2009 Subject: u3g panic In-Reply-To: <200903272126.n2RLQjIe052544@lava.sentex.ca> References: <200903272126.n2RLQjIe052544@lava.sentex.ca> Message-ID: <200904011150.16355.nick@van-laarhoven.org> Mike, and others, We are working on this panic at the moment and there will be a driver out for inclusion in 7.2 (hopefully). It seems to (almost) make ZTE MF626 work as well (mode switch does not work reliably yet). According to Mike Tancsa this driver also makes his Novatel device work without having to manually switch the device. I'd appreciate it if poeple could gives this driver a try to see whether it works for them too. http://people.freebsd.org/~n_hibma/u3g.html I am using it as we speak to submit this message and upload the driver sources, change the HTML text on that page. Cheers, Nick > Hi, > I was trying the u3g driver in FreeBSD on RELENG_7. The > previous version from the webpage seemed to work ok, but the one > MFC'd causes a panic if I > > load the driver > and attach the stick > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0xc > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc357d71f > stack pointer = 0x28:0xc2fccbc0 > frame pointer = 0x28:0xc2fccbf4 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 26 (irq19: uhci1) > trap number = 12 > panic: page fault > cpuid = 0 > Uptime: 2m39s > Physical memory: 498 MB > Dumping 42 MB: 27 11 > > (kgdb) bt > #0 doadump () at pcpu.h:196 > #1 0xc07198b7 in boot (howto=260) at > /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc0719b89 in panic > (fmt=Variable "fmt" is not available. > ) at /usr/src/sys/kern/kern_shutdown.c:574 > #3 0xc09e495c in trap_fatal (frame=0xc2fccb80, eva=12) at > /usr/src/sys/i386/i386/trap.c:939 > #4 0xc09e4be0 in trap_pfault (frame=0xc2fccb80, usermode=0, eva=12) > at /usr/src/sys/i386/i386/trap.c:852 > #5 0xc09e558c in trap (frame=0xc2fccb80) at > /usr/src/sys/i386/i386/trap.c:530 #6 0xc09c9c6b in calltrap () at > /usr/src/sys/i386/i386/exception.s:159 #7 0xc357d71f in u3gstub_BBB_cb > (xfer=0xc3578600, priv=0x0, > err=USBD_NORMAL_COMPLETION) > at /usr/src/sys/modules/u3g/../../dev/usb/u3g.c:475 > #8 0xc06950d5 in usb_transfer_complete (xfer=0xc3578600) at > /usr/src/sys/dev/usb/usbdi.c:979 > #9 0xc06879bb in uhci_transfer_complete (xfer=0xc3578600) at > /usr/src/sys/dev/usb/uhci.c:2109 > #10 0xc0687b07 in uhci_idone (ii=Variable "ii" is not available. > ) at /usr/src/sys/dev/usb/uhci.c:1449 > #11 0xc068800d in uhci_softintr (v=0xc319a000) at > /usr/src/sys/dev/usb/uhci.c:1324 > #12 0xc0690c72 in usb_schedsoftintr (bus=0xc319a000) at > /usr/src/sys/dev/usb/usb.c:844 > #13 0xc0688ce3 in uhci_intr1 (sc=0xc319a000) at > /usr/src/sys/dev/usb/uhci.c:1224 > #14 0xc0688fad in uhci_intr (arg=0xc319a000) at > /usr/src/sys/dev/usb/uhci.c:1139 > #15 0xc06f781b in ithread_loop (arg=0xc31a4000) at > /usr/src/sys/kern/kern_intr.c:1088 > #16 0xc06f4369 in fork_exit (callout=0xc06f7660 , > arg=0xc31a4000, frame=0xc2fccd38) > at /usr/src/sys/kern/kern_fork.c:810 > #17 0xc09c9ce0 in fork_trampoline () at > /usr/src/sys/i386/i386/exception.s:264 (kgdb) > > > On CURRENT, it shows and seems to work fine. > > Root mount waiting for: usbus1 > ugen0.2: at usbus0 > u3g0: on usbus0 > u3g0: Found 2 ports. > > > 0[freebsd-current2]# usbconfig > ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=ON > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > ugen0.2: at usbus0, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen0.3: at usbus0, > cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > ugen0.4: Ltd.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON > 0[freebsd-current2]# cu -l /dev/cuaU0.0 > Connected > ati > Manufacturer: Novatel Wireless Incorporated > Model: Ovation MC950D Card > Revision: 3.15.02.0-00 [2008-03-04 09:19:50] > IMEI: 356846015465400 > +GCAP: +CGSM,+DS,+ES > > OK > > > > > > > -------------------------------------------------------------------- > Mike Tancsa, tel +1 519 651 3400 > Sentex Communications, mike@sentex.net > Providing Internet since 1994 www.sentex.net > Cambridge, Ontario Canada www.sentex.net/mike > > _______________________________________________ > 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 ee at athyriogames.com Wed Apr 1 07:03:39 2009 From: ee at athyriogames.com (Engineering) Date: Wed Apr 1 07:03:46 2009 Subject: USB Video Class support In-Reply-To: <49CF48C3.7050904@wanadoo.fr> References: <49CF48C3.7050904@wanadoo.fr> Message-ID: <02ea01c9b2ce$75724540$6056cfc0$@com> I have a driver based off ugen. Hans Petter helped me get started on it - it should be using his new stack It was built for a custom embedded application, so the functionality is limited to just what I needed to get it going. It works with 7 out of the 10 different Chinese cameras I have laying around :) I'm sure my coding style violates every FreeBSD standard, there is no documentation, and very few comments, but if someone wants it for a working framework to create a 'real' driver, they are welcome to it. Sam -----Original Message----- From: owner-freebsd-usb@freebsd.org [mailto:owner-freebsd-usb@freebsd.org] On Behalf Of Nicolas Sent: Sunday, March 29, 2009 5:09 AM To: freebsd-usb@freebsd.org; freebsd-multimedia@freebsd.org Subject: USB Video Class support Hi, Someone knows if a person works on usb video class driver ? Thanks in advance, Nicolas. _______________________________________________ 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 avg at icyb.net.ua Wed Apr 1 07:43:27 2009 From: avg at icyb.net.ua (Andriy Gapon) Date: Wed Apr 1 07:43:35 2009 Subject: USB Video Class support In-Reply-To: <02ea01c9b2ce$75724540$6056cfc0$@com> References: <49CF48C3.7050904@wanadoo.fr> <02ea01c9b2ce$75724540$6056cfc0$@com> Message-ID: <49D37D83.2090807@icyb.net.ua> on 01/04/2009 16:33 Engineering said the following: > I have a driver based off ugen. > > Hans Petter helped me get started on it - it should be using his new stack > > It was built for a custom embedded application, so the functionality is > limited to just what I needed to get it going. It works with 7 out of the 10 > different Chinese cameras I have laying around :) > > I'm sure my coding style violates every FreeBSD standard, there is no > documentation, and very few comments, but if someone wants it for a working > framework to create a 'real' driver, they are welcome to it. Great news! Please, where/how I can peruse it? > -----Original Message----- > From: owner-freebsd-usb@freebsd.org [mailto:owner-freebsd-usb@freebsd.org] > On Behalf Of Nicolas > Sent: Sunday, March 29, 2009 5:09 AM > To: freebsd-usb@freebsd.org; freebsd-multimedia@freebsd.org > Subject: USB Video Class support > > Hi, > > Someone knows if a person works on usb video class driver ? > > Thanks in advance, > Nicolas. -- Andriy Gapon From thompsa at FreeBSD.org Wed Apr 1 08:34:17 2009 From: thompsa at FreeBSD.org (Andrew Thompson) Date: Wed Apr 1 08:34:23 2009 Subject: USB Video Class support In-Reply-To: <02ea01c9b2ce$75724540$6056cfc0$@com> References: <49CF48C3.7050904@wanadoo.fr> <02ea01c9b2ce$75724540$6056cfc0$@com> Message-ID: <20090401153411.GA209@citylink.fud.org.nz> On Wed, Apr 01, 2009 at 08:33:33AM -0500, Engineering wrote: > I have a driver based off ugen. > > Hans Petter helped me get started on it - it should be using his new stack > > It was built for a custom embedded application, so the functionality is > limited to just what I needed to get it going. It works with 7 out of the 10 > different Chinese cameras I have laying around :) > > I'm sure my coding style violates every FreeBSD standard, there is no > documentation, and very few comments, but if someone wants it for a working > framework to create a 'real' driver, they are welcome to it. You may want to run it past jmg@freebsd.org (http://wiki.freebsd.org/HDTV) Andrew From lucho at sofiaonline.net Thu Apr 2 00:10:02 2009 From: lucho at sofiaonline.net (Luchezar Georgieff) Date: Thu Apr 2 00:10:09 2009 Subject: usb/133296: rum driver not working properly in hostap mode Message-ID: <200904020704.n3274n1r001634@www.freebsd.org> >Number: 133296 >Category: usb >Synopsis: rum driver not working properly in hostap mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 02 07:10:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Luchezar Georgieff >Release: 8.0-CURRENT >Organization: >Environment: [root@nomad ~]# uname -a FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC 2009 root@nomad:/usr/obj/usr/src/sys/LUCHIX i386 [root@nomad ~]# >Description: rum driver not working with several (all I found) usb wireless cards in hostap mode. At first sight client station is connected and ping is ok. After putting some load at wireless link ( opening big web page or stating download file and client machine) link hangs. Sometimes dhcp does not work, but if I set manual IP address traffic comes for a little time and hangs. Using tcpdump in most case gives me following output: [root@nomad ~]# tcpdump -i wlan0 -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes [root@nomad ~]# tcpdump -i wlan0 -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes 08:56:26.510840 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, rcv seq 64, Flags [Poll], length 6 08:56:26.510860 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, rcv seq 64, Flags [Poll], length 6 Sometimes I see traffic from client machine only (arp requests) May be it is connected with some broadcasting problem. If anybody needs I can provide ssh access to machine - it is test setup, I want to make 3G/Wireless router for my car :) The machine is old P3 (IBM Thinkpad T22), but I have tested on few other machines with exatcly the same result. >How-To-Repeat: insert ralink-equiped usb device: ugen0.2: at usbus0 rum0: on usbus0 rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 [root@nomad ~]# I use this scrpt to create wlan0: [root@nomad ~]# cat /root/ifcreate #!/usr/local/bin/bash wifi="wlan0" wdev="rum0" wauth="open" loc="indoor" echo creaing $wifi ifconfig $wifi down ifconfig $wifi destroy ifconfig $wifi create wlandev $wdev wlanmode hostap authmode $wauth\ ssid nomad country BG $loc sleep 2 ifconfig wlan0 192.168.90.1/24 up # wlandebug -i $wifi +scan+auth+debug+assoc /usr/local/etc/rc.d/isc-dhcpd restart /etc/rc.d/named restart pfctl -d pfctl -f /etc/pf.conf pfctl -e ifconfig wlan0 outout from it: [root@nomad ~]# /root/ifcreate creaing wlan0 ifconfig: interface wlan0 does not exist ifconfig: interface wlan0 does not exist dhcpd not running? (check /var/run/dhcpd/dhcpd.pid). Starting dhcpd. Internet Systems Consortium DHCP Server V3.0.7 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Wrote 3 leases to leases file. Listening on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 Sending on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 Sending on Socket/fallback/fallback-net Stopping named. Starting named. pf disabled pf enabled wlan0: flags=8843 metric 0 mtu 1500 ether 00:18:f3:3a:19:d2 inet 192.168.90.1 netmask 0xffffff00 broadcast 192.168.90.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: running ssid nomad channel 1 (2412 Mhz 11g) bssid 00:18:f3:3a:19:d2 regdomain ETSI country BG indoor authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS dtimperiod 1 -dfs [root@nomad ~]# [ >Fix: >Release-Note: >Audit-Trail: >Unformatted: From c.r.n.a at wanadoo.fr Thu Apr 2 02:33:09 2009 From: c.r.n.a at wanadoo.fr (Nicolas) Date: Thu Apr 2 02:33:16 2009 Subject: USB Video Class support References: 49CF48C3.7050904@wanadoo.fr Message-ID: <49D47AA1.50608@wanadoo.fr> Hi everyone, I'm trying to port usb video class to FreeBSD-8, the module "video" build (only if you deactivate "warning treat as error" in /usr/src/sys/conf/kmod.mk) The module "usbvideo" does NOT build because of the new usb stack. Someone is ready to port it to new usb stack ? Nicolas. From hselasky at c2i.net Thu Apr 2 02:37:54 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 2 02:38:01 2009 Subject: usb/133296: rum driver not working properly in hostap mode In-Reply-To: <200904020704.n3274n1r001634@www.freebsd.org> References: <200904020704.n3274n1r001634@www.freebsd.org> Message-ID: <200904021140.22804.hselasky@c2i.net> On Thursday 02 April 2009, Luchezar Georgieff wrote: > >Number: 133296 > >Category: usb > >Synopsis: rum driver not working properly in hostap mode > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Apr 02 07:10:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Luchezar Georgieff > >Release: 8.0-CURRENT > >Organization: > >Environment: > > [root@nomad ~]# uname -a > FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC > 2009 root@nomad:/usr/obj/usr/src/sys/LUCHIX i386 [root@nomad ~]# > > >Description: > > rum driver not working with several (all I found) usb wireless cards in > hostap mode. At first sight client station is connected and ping is ok. > After putting some load at wireless link ( opening big web page or stating > download file and client machine) link hangs. Sometimes dhcp does not work, > but if I set manual IP address traffic comes for a little time and hangs. > Using tcpdump in most case gives me following output: [root@nomad ~]# > tcpdump -i wlan0 -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes > > [root@nomad ~]# tcpdump -i wlan0 -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes > > 08:56:26.510840 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, > Receiver not Ready, rcv seq 64, Flags [Poll], length 6 08:56:26.510860 > 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, > rcv seq 64, Flags [Poll], length 6 > > Sometimes I see traffic from client machine only (arp requests) > > May be it is connected with some broadcasting problem. > > If anybody needs I can provide ssh access to machine - it is test setup, I > want to make 3G/Wireless router for my car :) > > The machine is old P3 (IBM Thinkpad T22), but I have tested on few other > machines with exatcly the same result. > > >How-To-Repeat: > > insert ralink-equiped usb device: > ugen0.2: at usbus0 > rum0: on usbus0 > rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 > [root@nomad ~]# > > I use this scrpt to create wlan0: > [root@nomad ~]# cat /root/ifcreate > #!/usr/local/bin/bash > > wifi="wlan0" > wdev="rum0" > wauth="open" > loc="indoor" > > echo creaing $wifi > > ifconfig $wifi down > ifconfig $wifi destroy > > ifconfig $wifi create wlandev $wdev wlanmode hostap authmode $wauth\ > ssid nomad country BG $loc > sleep 2 > ifconfig wlan0 192.168.90.1/24 up > > # wlandebug -i $wifi +scan+auth+debug+assoc > /usr/local/etc/rc.d/isc-dhcpd restart > /etc/rc.d/named restart > pfctl -d > pfctl -f /etc/pf.conf > pfctl -e > > ifconfig wlan0 > > outout from it: > [root@nomad ~]# /root/ifcreate > creaing wlan0 > ifconfig: interface wlan0 does not exist > ifconfig: interface wlan0 does not exist > dhcpd not running? (check /var/run/dhcpd/dhcpd.pid). > Starting dhcpd. > Internet Systems Consortium DHCP Server V3.0.7 > Copyright 2004-2008 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > Wrote 3 leases to leases file. > Listening on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 > Sending on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 > Sending on Socket/fallback/fallback-net > Stopping named. > Starting named. > pf disabled > pf enabled > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:18:f3:3a:19:d2 > inet 192.168.90.1 netmask 0xffffff00 broadcast 192.168.90.255 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > ssid nomad channel 1 (2412 Mhz 11g) bssid 00:18:f3:3a:19:d2 > regdomain ETSI country BG indoor authmode OPEN privacy OFF txpower > 30 scanvalid 60 protmode CTS dtimperiod 1 -dfs > [root@nomad ~]# > [ > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: Does the dongle work fine in client mode? --HPS From hselasky at c2i.net Thu Apr 2 02:40:06 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 2 02:40:11 2009 Subject: usb/133296: rum driver not working properly in hostap mode Message-ID: <200904020940.n329e5Tg097895@freefall.freebsd.org> The following reply was made to PR usb/133296; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Luchezar Georgieff , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133296: rum driver not working properly in hostap mode Date: Thu, 2 Apr 2009 11:40:21 +0200 On Thursday 02 April 2009, Luchezar Georgieff wrote: > >Number: 133296 > >Category: usb > >Synopsis: rum driver not working properly in hostap mode > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Apr 02 07:10:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Luchezar Georgieff > >Release: 8.0-CURRENT > >Organization: > >Environment: > > [root@nomad ~]# uname -a > FreeBSD nomad 8.0-CURRENT FreeBSD 8.0-CURRENT #6: Mon Mar 30 19:30:16 UTC > 2009 root@nomad:/usr/obj/usr/src/sys/LUCHIX i386 [root@nomad ~]# > > >Description: > > rum driver not working with several (all I found) usb wireless cards in > hostap mode. At first sight client station is connected and ping is ok. > After putting some load at wireless link ( opening big web page or stating > download file and client machine) link hangs. Sometimes dhcp does not work, > but if I set manual IP address traffic comes for a little time and hangs. > Using tcpdump in most case gives me following output: [root@nomad ~]# > tcpdump -i wlan0 -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes > > [root@nomad ~]# tcpdump -i wlan0 -n > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on wlan0, link-type EN10MB (Ethernet), capture size 96 bytes > > 08:56:26.510840 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, > Receiver not Ready, rcv seq 64, Flags [Poll], length 6 08:56:26.510860 > 00:1f:3b:27:22:ab > ff:ff:ff:ff:ff:ff Null Supervisory, Receiver not Ready, > rcv seq 64, Flags [Poll], length 6 > > Sometimes I see traffic from client machine only (arp requests) > > May be it is connected with some broadcasting problem. > > If anybody needs I can provide ssh access to machine - it is test setup, I > want to make 3G/Wireless router for my car :) > > The machine is old P3 (IBM Thinkpad T22), but I have tested on few other > machines with exatcly the same result. > > >How-To-Repeat: > > insert ralink-equiped usb device: > ugen0.2: at usbus0 > rum0: on usbus0 > rum0: MAC/BBP RT2573 (rev 0x2573a), RF RT2528 > [root@nomad ~]# > > I use this scrpt to create wlan0: > [root@nomad ~]# cat /root/ifcreate > #!/usr/local/bin/bash > > wifi="wlan0" > wdev="rum0" > wauth="open" > loc="indoor" > > echo creaing $wifi > > ifconfig $wifi down > ifconfig $wifi destroy > > ifconfig $wifi create wlandev $wdev wlanmode hostap authmode $wauth\ > ssid nomad country BG $loc > sleep 2 > ifconfig wlan0 192.168.90.1/24 up > > # wlandebug -i $wifi +scan+auth+debug+assoc > /usr/local/etc/rc.d/isc-dhcpd restart > /etc/rc.d/named restart > pfctl -d > pfctl -f /etc/pf.conf > pfctl -e > > ifconfig wlan0 > > outout from it: > [root@nomad ~]# /root/ifcreate > creaing wlan0 > ifconfig: interface wlan0 does not exist > ifconfig: interface wlan0 does not exist > dhcpd not running? (check /var/run/dhcpd/dhcpd.pid). > Starting dhcpd. > Internet Systems Consortium DHCP Server V3.0.7 > Copyright 2004-2008 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > Wrote 3 leases to leases file. > Listening on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 > Sending on BPF/wlan0/00:18:f3:3a:19:d2/192.168.90/24 > Sending on Socket/fallback/fallback-net > Stopping named. > Starting named. > pf disabled > pf enabled > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:18:f3:3a:19:d2 > inet 192.168.90.1 netmask 0xffffff00 broadcast 192.168.90.255 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > ssid nomad channel 1 (2412 Mhz 11g) bssid 00:18:f3:3a:19:d2 > regdomain ETSI country BG indoor authmode OPEN privacy OFF txpower > 30 scanvalid 60 protmode CTS dtimperiod 1 -dfs > [root@nomad ~]# > [ > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: Does the dongle work fine in client mode? --HPS From lucho at sofiaonline.net Thu Apr 2 03:00:05 2009 From: lucho at sofiaonline.net (Luchezar Georgieff) Date: Thu Apr 2 03:00:10 2009 Subject: usb/133296: rum driver not working properly in hostap mode Message-ID: <200904021000.n32A04CW024375@freefall.freebsd.org> The following reply was made to PR usb/133296; it has been noted by GNATS. From: Luchezar Georgieff To: bug-followup@FreeBSD.org Cc: Subject: RE: usb/133296: rum driver not working properly in hostap mode Date: Thu, 02 Apr 2009 12:45:00 +0300 Yes, it works - using OPEN and WPA authmode From lucho at sofiaonline.net Thu Apr 2 03:09:42 2009 From: lucho at sofiaonline.net (Luchezar Georgieff) Date: Thu Apr 2 03:10:13 2009 Subject: usb/133296: rum driver not working properly in hostap mode References: 200904020704.n3274n1r001634@www.freebsd.org Message-ID: <49D48C65.4050004@sofiaonline.net> Yes, it works both OPEN and WPA authmode. From c.r.n.a at wanadoo.fr Thu Apr 2 03:28:08 2009 From: c.r.n.a at wanadoo.fr (Nicolas) Date: Thu Apr 2 03:28:14 2009 Subject: USB Video Class support Message-ID: <49D48676.2090506@wanadoo.fr> If you want modules, send me an email. Nicolas. From mike at sentex.net Thu Apr 2 03:38:37 2009 From: mike at sentex.net (Mike Tancsa) Date: Thu Apr 2 03:38:44 2009 Subject: u3g panic In-Reply-To: <200904011150.16355.nick@van-laarhoven.org> References: <200903272126.n2RLQjIe052544@lava.sentex.ca> <200904011150.16355.nick@van-laarhoven.org> Message-ID: <200904021037.n32Abw51018592@lava.sentex.ca> At 05:50 AM 4/1/2009, Nick Hibma wrote: >Mike, and others, > >We are working on this panic at the moment and there will be a driver out >for inclusion in 7.2 (hopefully). > >It seems to (almost) make ZTE MF626 work as well (mode switch does not work >reliably yet). According to Mike Tancsa this driver also makes his Novatel >device work without having to manually switch the device. > >I'd appreciate it if poeple could gives this driver a try to see whether it >works for them too. > > http://people.freebsd.org/~n_hibma/u3g.html > >I am using it as we speak to submit this message and upload the driver >sources, change the HTML text on that page. Its working much better now, but I still get the occasional IOERROR ucom1: on uhub0 ucom1: port=0 iface=0 in=0x82 out=0x2 ucom1: port=1 iface=1 in=0x84 out=0x4 ucom1: configured 2 serial ports (U1.%d) ucom1: at uhub0 port 3 (addr 3) disconnected ucom1: ucomreadcb: IOERROR Still 2 threads in cuaU1.0 Still 2 threads in cuaU1.0 Still 2 threads in cuaU1.0 Still 2 threads in cuaU1.0 And then I have to reboot the box or pull the device to get it to work again. I am not sure if the USB stick is crashing or a driver issue ? Is there a way from userland to make the device re-attach in such cases ? We would like to deploy some of these remotely so ideally we would like to catch the error and deal with it programatically. ---Mike From c.r.n.a at wanadoo.fr Thu Apr 2 07:58:47 2009 From: c.r.n.a at wanadoo.fr (Nicolas) Date: Thu Apr 2 07:58:53 2009 Subject: Some errors in rum driver or usb ?!?! Message-ID: <49D4D239.6070609@wanadoo.fr> Hi, Sometimes my computer freezes with this error: usb2_dev_suspend_peer:1794: Setting device remote wakeup failed! rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT wlan0: link state changed to DOWN usb2_dev_suspend_peer:1820: Suspending port failed rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT rum0: device timeout rum0: could not multi read MAC register: USB_ERR_TIMEOUT rum0: at uhub8, port 2, addr 4 (disconnected) rum0: device timeout rum0: could not multi read MAC register: USB_ERR_IOERROR And after a minute, FreeBSD works correctly. I need to unplug the device and replug it, to make it working again ! Nicolas. From matheus at eternamente.info Thu Apr 2 09:06:38 2009 From: matheus at eternamente.info (Nenhum_de_Nos) Date: Thu Apr 2 09:06:49 2009 Subject: u3g panic In-Reply-To: <200904011150.16355.nick@van-laarhoven.org> References: <200903272126.n2RLQjIe052544@lava.sentex.ca> <200904011150.16355.nick@van-laarhoven.org> Message-ID: On Wed, April 1, 2009 06:50, Nick Hibma wrote: > Mike, and others, > > We are working on this panic at the moment and there will be a driver out > for inclusion in 7.2 (hopefully). > > It seems to (almost) make ZTE MF626 work as well (mode switch does not > work > reliably yet). According to Mike Tancsa this driver also makes his Novatel > device work without having to manually switch the device. > > I'd appreciate it if poeple could gives this driver a try to see whether > it > works for them too. > > http://people.freebsd.org/~n_hibma/u3g.html > > I am using it as we speak to submit this message and upload the driver > sources, change the HTML text on that page. > > Cheers, > > Nick nick, I had problems with u3g and umass. In old ubsa days, I could load it and then umass and use pendrive Ok. Now on current, if I do this I get a frozen box. I talked to HPS and he asked for some debugs but I didn't provided nothing to him (my fault, I know), but as this box has no witness anymore (and other debug stuff), all I have os the vmcore. is this expected ? vmcore would help ? this is the box from work, so I can't play with it too much. thanks, (both nick and hps for support when I asked) matheus -- We will call you cygnus, The God of balance you shall be From lucho at sofiaonline.net Fri Apr 3 02:31:57 2009 From: lucho at sofiaonline.net (Luchezar Georgieff) Date: Fri Apr 3 02:32:04 2009 Subject: usb/133296: rum driver not working properly in hostap mode - a little more info and kernel crashes In-Reply-To: <49D48C65.4050004@sofiaonline.net> References: 200904020704.n3274n1r001634@www.freebsd.org <49D48C65.4050004@sofiaonline.net> Message-ID: <49D5D785.1070303@sofiaonline.net> Few more symptoms: If a station is assotiated and there is no traffiic load (ping only) I can destroy interface using ifconfig wlan0 destroy, but if I put some traffic on link and it hangs, after destroying interface get: Fatal trap 18: integer divide fault while in kernel mode blah-blah panic: integer divide fault -- Luchezar Georgieff CTO Sofia Online Ltd Fixed tel.: + 359 2 931 97 95 Mobile: + 359 878 969 473 E-mail: lgeorgieff@sofiaonline.net Web: www.SofiaOnline.net From onemda at gmail.com Fri Apr 3 05:26:29 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Fri Apr 3 05:26:36 2009 Subject: usb/133296: rum driver not working properly in hostap mode - a little more info and kernel crashes In-Reply-To: <49D5D785.1070303@sofiaonline.net> References: <49D48C65.4050004@sofiaonline.net> <49D5D785.1070303@sofiaonline.net> Message-ID: <3a142e750904030457k78a61e23mf33a8b08dbfb085e@mail.gmail.com> On 4/3/09, Luchezar Georgieff wrote: > Few more symptoms: > If a station is assotiated and there is no traffiic load (ping only) I > can destroy interface using ifconfig wlan0 destroy, but if I put some > traffic on link and it hangs, after destroying interface get: > Fatal trap 18: integer divide fault while in kernel mode > blah-blah > panic: integer divide fault And backtrace? It's probably not usb fault. -- Paul From guru at unixarea.de Sat Apr 4 08:46:01 2009 From: guru at unixarea.de (Matthias Apitz) Date: Sat Apr 4 08:46:08 2009 Subject: Q: support of UVC webcam in -CURRENT Message-ID: <20090404153403.GA27729@albatros.sisis.de> Hello, I'm close to update my EeePC 900 from RELENG_7 to CURRENT, it is already booting from the USB key the new kernel: # uname -a FreeBSD tinyCurrent 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Mar 23 23:47:06 CET 2009 guru@vm-naranja.Sisis.de:/usr/obj/usr/src/sys/GENERIC i386 and I wanted to ask if there is some work in progress in CURRENT for the uvc webcam or even already some code to test? Thx in advance matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ From guru at unixarea.de Sat Apr 4 09:17:45 2009 From: guru at unixarea.de (Matthias Apitz) Date: Sat Apr 4 09:17:52 2009 Subject: Q: support of UVC webcam in -CURRENT Message-ID: <20090404151057.GA16574@rebelion.Sisis.de> Hello, I'm close to update my EeePC 900 from RELENG_7 to CURRENT, it is already booting from the USB key the new kernel: # uname -a FreeBSD tinyCurrent 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Mon Mar 23 23:47:06 CET 2009 guru@vm-naranja.Sisis.de:/usr/obj/usr/src/sys/GENERIC i386 and I wanted to ask if there is some work in progress in CURRENT for the uvc webcam or even already some code to test? Thx in advance matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ From c.r.n.a at wanadoo.fr Sat Apr 4 10:33:24 2009 From: c.r.n.a at wanadoo.fr (Nicolas) Date: Sat Apr 4 10:33:30 2009 Subject: Q: support of UVC webcam in -CURRENT Message-ID: <49D79901.3070905@wanadoo.fr> Hi, The answer is yes and no ! The video module is ported but not the uvideo (because of new usb stack) ! Nicolas. From lars at larseighner.com Sat Apr 4 19:40:02 2009 From: lars at larseighner.com (Lars Eighner) Date: Sat Apr 4 19:40:09 2009 Subject: usb/133390: umass crashes system in 7.1 when Olympus D-540 attached, worked in previous versions Message-ID: <200904050231.n352ViDH043362@www.freebsd.org> >Number: 133390 >Category: usb >Synopsis: umass crashes system in 7.1 when Olympus D-540 attached, worked in previous versions >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 05 02:40:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Lars Eighner >Release: 7.1-RELEASE-p2 >Organization: self >Environment: FreeBSD debranded.6dollardialup.com 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #1: Sat Jan 24 19:02:57 CST 2009 toor@debranded.6dollardialup.com:/usr/obj/usr/src/sys/JAN09 i386 >Description: When Olympus camera D-540 Zoom is attached, umass causes Fatal Trap 12. This did not occur with some previous release, which worked perfectly, presented camera as a da device which could be mounted as a FAT (msdos) file system. >How-To-Repeat: Happens every time with custom kernel (omitting umass, umass loaded manually after boot), with umass loaded from loader.conf, and with GENERIC kernel. >Fix: I need to know how far back I need to downgrade to get to a pre-broken umass. >Release-Note: >Audit-Trail: >Unformatted: From lars at larseighner.com Sun Apr 5 01:02:20 2009 From: lars at larseighner.com (Lars Eighner) Date: Sun Apr 5 01:02:56 2009 Subject: Olympus D-540 camera + umass = crash Message-ID: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> A number of upgrade cycles ago, when I loaded umass, I could plug in my Olympus D-540 camera. It would be recognized as a da device and could be mounted as a FAT drive (i.e. msdosfs). I had to load umass after boot because I had an HP printer which had to attach as ugen, but umass would grab it if umass were loaded at boot time. Eventually the HPLIP driver was improved to the point that the card reader on the printer would read the camera SD card in its card slot. Life was good. I could get my photos either way. Eventually the HPLIP driver was improved to the point that it broke the scan, fax, and card reader functions. But it still works as a printer. Meanwhile it seems umass was upgraded to the point that it can no longer use the camera. So I cannot get photos out of my camera either way. It appears that downgrading is my only option. So I want to know how far back I have to downgrade my system to get umass functional again. I expect downgrading to be difficult and perilous, so I would like to get it right the first time. I have tried with the GENERIC kernel (which prevents me from using the printer), with the custom kernel + umass loaded by loader.conf (which also breaks the printer) and with the custom kernel + umass loaded manually after boot. All three of these methods produce the same result: Fatal Trap 12. All three of these worked for getting at the camera at some time in the past. Here is one example from vmcore which seems to me to be typical (huge core dump omitted): Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RELEASE-p2 #1: Sat Jan 24 19:02:57 CST 2009 toor@debranded.6dollardialup.com:/usr/obj/usr/src/sys/JAN09 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Sempron(tm) Processor 3400+ (1803.77-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x40ff2 Stepping = 2 Features=0x78bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x19 real memory = 468647936 (446 MB) avail memory = 440373248 (419 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1bdf0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) 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) pci0: at device 0.6 (no driver attached) pci0: at device 0.7 (no driver attached) pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: at device 4.0 on pci0 pci2: on pcib2 vgapci0: mem 0xfb000000-0xfbffffff,0xe0000000-0xefffffff,0xfc000000-0xfcffffff irq 16 at device 5.0 on pci0 nvidia0: on vgapci0 vgapci0: child nvidia0 requested pci_enable_busmaster vgapci0: child nvidia0 requested pci_enable_io vgapci0: child nvidia0 requested pci_enable_io nvidia0: [GIANT-LOCKED] nvidia0: [ITHREAD] pci0: at device 9.0 (no driver attached) isab0: at device 10.0 on pci0 isa0: on isab0 pci0: at device 10.1 (no driver attached) pci0: at device 10.2 (no driver attached) ohci0: mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 8 ports with 8 removable, self powered ehci0: mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 8 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 uhub1: 8 ports with 8 removable, self powered atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf400-0xf40f at device 13.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 23 at device 14.0 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f mem 0xfe02c000-0xfe02cfff irq 20 at device 15.0 on pci0 atapci2: [ITHREAD] ata4: on atapci2 ata4: [ITHREAD] ata5: on atapci2 ata5: [ITHREAD] pcib3: at device 16.0 on pci0 pci3: on pcib3 pcm0: port 0xac00-0xac1f irq 16 at device 8.0 on pci3 pcm0: pcm0: [ITHREAD] sio0: configured irq 18 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 18 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <3COM PCI FaxModem> port 0xa400-0xa407 irq 18 at device 10.0 on pci3 sio0: moving to sio4 sio4: type 16550A sio4: [FILTER] pci0: at device 20.0 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model IntelliMouse, device ID 3 cpu0: on acpi0 powernow0: on cpu0 pmtimer0 on isa0 orm0: at iomem 0xd0000-0xd17ff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled can't re-use a leaf (%desc)! can't re-use a leaf (%driver)! can't re-use a leaf (%location)! can't re-use a leaf (%pnpinfo)! can't re-use a leaf (%parent)! sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] 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 1803773838 Hz quality 800 Timecounters tick every 1.000 msec ad1: 3077MB at ata0-slave UDMA33 acd0: CDRW at ata1-master UDMA33 acd1: CDROM at ata1-slave UDMA33 ad6: 114473MB at ata3-master SATA150 GEOM_LABEL: Label for provider acd0 is iso9660/AUS4Q08N. GEOM_LABEL: Label for provider ad1s1 is msdosfs/FREEDOS. acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd1: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [184671 x 2048 byte records] cd1 at ata1 bus 0 target 1 lun 0 cd1: Removable CD-ROM SCSI-0 device cd1: 33.000MB/s transfers cd1: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad6s1a WARNING: / was not properly dismounted <118>Loading configuration files. <118>kernel dumps on /dev/ad6s1b <118>Entropy harvesting: <118> interrupts <118> ethernet <118> point_to_point <118> kickstart <118>. <118>swapon: adding /dev/ad6s1b as swap device <118>Starting file system checks: <118>/dev/ad6s1a: 3104 files, 155485 used, 351002 free (930 frags, 43759 blocks, 0.2% fragmentation) <118>/dev/ad6s1e: DEFER FOR BACKGROUND CHECKING <118>/dev/ad6s1f: DEFER FOR BACKGROUND CHECKING <118>/dev/ad6s1d: DEFER FOR BACKGROUND CHECKING <118>Mounting local file systems: WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted <118>. <118>Setting hostname: debranded.6dollardialup.com. <118>net.inet6.ip6.auto_linklocal: <118>1 <118> -> <118>0 <118> <118>kern.module_path: <118>/boot/kernel;/boot/modules <118> -> <118>/boot/kernel;/boot/modules;/usr/local/modules <118> <118>compat.linux.osrelease: <118>2.4.2 <118> -> <118>2.6.16 <118> <118>/etc/rc: WARNING: Values of network_interfaces other than AUTO are deprecated <118>Loading /lib/libalias_cuseeme.so <118>Loading /lib/libalias_ftp.so <118>Loading /lib/libalias_irc.so <118>Loading /lib/libalias_nbt.so <118>Loading /lib/libalias_pptp.so <118>Loading /lib/libalias_skinny.so <118>Loading /lib/libalias_smedia.so <118>Working in auto mode <118>Using interface: tun0 <118>lo0: flags=8049 metric 0 mtu 16384 <118> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 <118> inet6 ::1 prefixlen 128 <118> inet 127.0.0.1 netmask 0xff000000 <118>tun0: flags=8051 metric 0 mtu 1500 <118> inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00 <118> Opened by PID 254 <118>Additional routing options: <118>. <118>Starting devd. <118>hw.acpi.cpu.cx_lowest: <118>C1 <118> <118>sysctl: <118>hw.acpi.cpu.cx_lowest <118>: <118>Invalid argument <118>Additional IP options: <118>. <118>Mounting NFS file systems: <118>. <118>ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/kde4/lib /usr/local/lib /usr/local/lib/compat /usr/local/lib/compat/pkg /usr/local/lib/evolution/2.24 /usr/local/lib/gcc-4.2.5 /usr/local/lib/gegl-0.0 /usr/local/lib/graphviz /usr/local/lib/mysql /usr/local/lib/nss /usr/local/lib/portaudio2 /usr/local/lib/pth /usr/local/lib/qt4 /usr/local/lib/wine <118>a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout <118>Clearing /tmp (X related). <118>Creating and/or trimming log files: <118>. <118>Starting syslogd. <118>Checking for core dump on /dev/ad6s1b... <118>savecore: no dumps found <118>Initial i386 initialization: <118>. <118>Additional ABI support: <118> linux <118>. <118>Starting local daemons: <118>. <118>Updating motd <118>. <118>Mounting late file systems: <118>. <118>Starting mysql. <118>Starting hpssd. <118>Starting default moused: <118>. <118>Starting dbus. <118>Configuring syscons: <118> keymap <118> cursor <118> font8x16 <118> font8x14 <118> font8x8 <118> blanktime <118> screensaver <118>. <118>Starting sendmail. <118>Starting cupsd. <118>Performing sanity check on apache22 configuration: <118>Syntax OK <118>Starting apache22. <118>Starting cron. <118>Local package initialization: <118> GNUstep <118>. <118>Starting background file system checks in 60 seconds. <118> <118>Sat Apr 4 06:35:59 CDT 2009 <118>Apr 4 06:36:05 debranded login: ROOT LOGIN (toor) ON ttyv0 <118>Apr 4 06:36:30 debranded login: ROOT LOGIN (toor) ON ttyv2 <118>Apr 4 06:36:47 debranded login: ROOT LOGIN (toor) ON ttyva <3>sio4: 11 more interrupt-level buffer overflows (total 11) <118>Apr 4 06:39:22 debranded kernel: sio4: 11 more interrupt-level buffer overflows (total 11) <118>Apr 4 06:43:39 debranded login: ROOT LOGIN (toor) ON ttyv9 <3>sio4: 37 more interrupt-level buffer overflows (total 48) <118>Apr 4 06:55:10 debranded kernel: sio4: 37 more interrupt-level buffer overflows (total 48) <3>sio4: 182 more interrupt-level buffer overflows (total 230) <118>Apr 4 07:23:12 debranded kernel: sio4: 182 more interrupt-level buffer overflows (total 230) <3>sio4: 126 more interrupt-level buffer overflows (total 356) <118>Apr 4 08:31:49 debranded kernel: sio4: 126 more interrupt-level buffer overflows (total 356) <3>sio4: 44 more interrupt-level buffer overflows (total 400) <118>Apr 4 09:01:02 debranded kernel: sio4: 44 more interrupt-level buffer overflows (total 400) <3>sio4: 27 more interrupt-level buffer overflows (total 427) <118>Apr 4 12:56:19 debranded kernel: sio4: 27 more interrupt-level buffer overflows (total 427) <3>sio4: 21 more interrupt-level buffer overflows (total 448) <118>Apr 4 13:18:12 debranded kernel: sio4: 21 more interrupt-level buffer overflows (total 448) <3>sio4: 213 more interrupt-level buffer overflows (total 661) <118>Apr 4 15:10:23 debranded kernel: sio4: 213 more interrupt-level buffer overflows (total 661) <3>sio4: 336 more interrupt-level buffer overflows (total 997) <118>Apr 4 17:42:14 debranded kernel: sio4: 336 more interrupt-level buffer overflows (total 997) <3>sio4: 30 more interrupt-level buffer overflows (total 1027) <118>Apr 4 18:07:06 debranded kernel: sio4: 30 more interrupt-level buffer overflows (total 1027) <3>sio4: 129 more interrupt-level buffer overflows (total 1156) <118>Apr 4 20:45:13 debranded kernel: sio4: 129 more interrupt-level buffer overflows (total 1156) <118>Apr 4 20:57:01 debranded login: ROOT LOGIN (toor) ON ttyv8 umass0: on uhub0 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xd2e54698 frame pointer = 0x28:0xd2e546d8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (swi4: clock sio) trap number = 12 panic: page fault cpuid = 0 Uptime: 14h22m35s Physical memory: 430 MB Dumping 100 MB: 85 69 53 37 21 5 -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From toomas.aas at raad.tartu.ee Sun Apr 5 02:25:21 2009 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Sun Apr 5 02:25:33 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> Message-ID: <200904051223.56559.toomas.aas@raad.tartu.ee> Sunday 05 April 2009 10:29:10 kirjutas Lars Eighner: > A number of upgrade cycles ago, when I loaded umass, I could plug in my > Olympus D-540 camera. It would be recognized as a da device and could be > mounted as a FAT drive (i.e. msdosfs). [...] > Eventually the HPLIP driver was improved to the point that it broke the > scan, fax, and card reader functions. But it still works as a printer. > Meanwhile it seems umass was upgraded to the point that it can no longer > use the camera. So I cannot get photos out of my camera either way. Can you set the camera to PTP mode? If so, you may be able to use gtkam to get photos out of the camera. It's the only way my RELENG_7 box is able to talk to my Nikon Coolpix L5, which caused the machine to crash when used in umass mode (http://lnk.nu/freebsd.org/u9q.cgi). -- Toomas From usb at larseighner.com Sun Apr 5 08:50:12 2009 From: usb at larseighner.com (Lars Eighner) Date: Sun Apr 5 08:50:19 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <200904051223.56559.toomas.aas@raad.tartu.ee> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> <200904051223.56559.toomas.aas@raad.tartu.ee> Message-ID: <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> On Sun, 5 Apr 2009, Toomas Aas wrote: > Sunday 05 April 2009 10:29:10 kirjutas Lars Eighner: > >> A number of upgrade cycles ago, when I loaded umass, I could plug in my >> Olympus D-540 camera. It would be recognized as a da device and could be >> mounted as a FAT drive (i.e. msdosfs). > > [...] > >> Eventually the HPLIP driver was improved to the point that it broke the >> scan, fax, and card reader functions. But it still works as a printer. >> Meanwhile it seems umass was upgraded to the point that it can no longer >> use the camera. So I cannot get photos out of my camera either way. > > Can you set the camera to PTP mode? I don't know what that is, so I suppose the answer is no. > If so, you may be able to use gtkam to get photos out of the camera. It's > the only way my RELENG_7 box is able to talk to my Nikon Coolpix L5, which > caused the machine to crash when used in umass mode > (http://lnk.nu/freebsd.org/u9q.cgi). Did it work on previous releases? My camera worked on some release in the past and many releases prior to that. Somebody broke umass. All I am asking of that person is: when did you break umass, so I can downgrade to just before that. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From onemda at gmail.com Sun Apr 5 09:17:56 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Sun Apr 5 09:18:03 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> <200904051223.56559.toomas.aas@raad.tartu.ee> <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> Message-ID: <3a142e750904050917p6c1974a7xcc923431018d9053@mail.gmail.com> On 4/5/09, Lars Eighner wrote: > Somebody broke umass. All I am asking of that person is: when did > you break umass, so I can downgrade to just before that. I wished many times that, but unfortunately for you and me that doesnt work in that way. Could you remmember date of last working kernel? Do you have backup of last working kernel? Did you look in cvs history for 7 STABLE for obvius change that is cause of your problems? -- Paul From toomas.aas at raad.tartu.ee Sun Apr 5 09:50:52 2009 From: toomas.aas at raad.tartu.ee (Toomas Aas) Date: Sun Apr 5 09:51:00 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> <200904051223.56559.toomas.aas@raad.tartu.ee> <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> Message-ID: <49D8DCF5.5070007@raad.tartu.ee> Lars Eighner wrote: > On Sun, 5 Apr 2009, Toomas Aas wrote: > >> Sunday 05 April 2009 10:29:10 kirjutas Lars Eighner: >> >>> A number of upgrade cycles ago, when I loaded umass, I could plug in my >>> Olympus D-540 camera. It would be recognized as a da device and >>> could be >>> mounted as a FAT drive (i.e. msdosfs). >> >> [...] >> >>> Eventually the HPLIP driver was improved to the point that it broke the >>> scan, fax, and card reader functions. But it still works as a printer. >>> Meanwhile it seems umass was upgraded to the point that it can no longer >>> use the camera. So I cannot get photos out of my camera either way. >> >> Can you set the camera to PTP mode? > > I don't know what that is, so I suppose the answer is no. Well, maybe it isn't - have you checked the manual of your camera? http://en.wikipedia.org/wiki/Picture_Transfer_Protocol > >> If so, you may be able to use gtkam to get photos out of the camera. >> It's >> the only way my RELENG_7 box is able to talk to my Nikon Coolpix L5, >> which >> caused the machine to crash when used in umass mode >> (http://lnk.nu/freebsd.org/u9q.cgi). > > Did it work on previous releases? It did work with FreeBSD 6.x, but that was on another PC so I don't know whether it's the FreeBSD version or USB controller hardware that makes the difference in my case. > > My camera worked on some release in the past and many releases prior to > that. Somebody broke umass. All I am asking of that person is: when did > you break umass, so I can downgrade to just before that. > I'm not trying to "justify" FreeBSD, just suggesting a possible alternative. -- Toomas Aas From usb at larseighner.com Mon Apr 6 01:31:48 2009 From: usb at larseighner.com (Lars Eighner) Date: Mon Apr 6 01:31:55 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <49D8DCF5.5070007@raad.tartu.ee> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> <200904051223.56559.toomas.aas@raad.tartu.ee> <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> <49D8DCF5.5070007@raad.tartu.ee> Message-ID: <20090406032835.I95098@qroenaqrq.6qbyyneqvnyhc.pbz> Now what? Script started on Mon Apr 6 03:18:48 2009 Mon Apr 06 03:18:48 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#fmcd /haltedit /etc/fstabtoorail -F /var/log/ppp.logooredit /etc/fstabhaltcd /fmfmcd /haltcd /fmkgdb kernel.deb   debug /var/crash h/vmcore.11 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xd2e54698 frame pointer = 0x28:0xd2e546d8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (swi4: clock sio) trap number = 12 panic: page fault cpuid = 0 Uptime: 14h22m35s Physical memory: 430 MB Dumping 100 MB: 85 69 53 37 21 5 Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/kernel/snd_emu10k1.ko...Reading symbols from /boot/kernel/snd_emu10k1.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_emu10k1.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/modules/nvidia.ko...done. Loaded symbols for /boot/modules/nvidia.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/daemon_saver.ko...Reading symbols from /boot/kernel/daemon_saver.ko.symbols...done. done. Loaded symbols for /boot/kernel/daemon_saver.ko Reading symbols from /boot/kernel/umass.ko...Reading symbols from /boot/kernel/umass.ko.symbols...done. done. Loaded symbols for /boot/kernel/umass.ko #0 doadump () at pcpu.h:196 196 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) Quit Mon Apr 06 03:24:44 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#exit exit Script done on Mon Apr 6 03:24:53 2009 -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From usb at larseighner.com Mon Apr 6 01:49:45 2009 From: usb at larseighner.com (Lars Eighner) Date: Mon Apr 6 01:49:52 2009 Subject: Olympus D-540 camera + umass = crash In-Reply-To: <20090406032835.I95098@qroenaqrq.6qbyyneqvnyhc.pbz> References: <20090405020705.R69328@qroenaqrq.6qbyyneqvnyhc.pbz> <200904051223.56559.toomas.aas@raad.tartu.ee> <20090405104424.O44961@qroenaqrq.6qbyyneqvnyhc.pbz> <49D8DCF5.5070007@raad.tartu.ee> <20090406032835.I95098@qroenaqrq.6qbyyneqvnyhc.pbz> Message-ID: <20090406034700.C95285@qroenaqrq.6qbyyneqvnyhc.pbz> Script started on Mon Apr 6 03:35:30 2009 Mon Apr 06 03:35:30 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#exitkgdb kernel.debug /var/crash/vmcore.11 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xd2e54698 frame pointer = 0x28:0xd2e546d8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (swi4: clock sio) trap number = 12 panic: page fault cpuid = 0 Uptime: 14h22m35s Physical memory: 430 MB Dumping 100 MB: 85 69 53 37 21 5 Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/kernel/snd_emu10k1.ko...Reading symbols from /boot/kernel/snd_emu10k1.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_emu10k1.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/modules/nvidia.ko...done. Loaded symbols for /boot/modules/nvidia.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/daemon_saver.ko...Reading symbols from /boot/kernel/daemon_saver.ko.symbols...done. done. Loaded symbols for /boot/kernel/daemon_saver.ko Reading symbols from /boot/kernel/umass.ko...Reading symbols from /boot/kernel/umass.ko.symbols...done. done. Loaded symbols for /boot/kernel/umass.ko #0 doadump () at pcpu.h:196 196 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list 0x0 Function "0x0" not defined. (kgdb) backtrace #0 doadump () at pcpu.h:196 #1 0xc0657e07 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc06580d9 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc090ab6c in trap_fatal (frame=0xd2e54658, eva=0) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc090adf0 in trap_pfault (frame=0xd2e54658, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:852 #5 0xc090b7ac in trap (frame=0xd2e54658) at /usr/src/sys/i386/i386/trap.c:530 #6 0xc08f161b in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #7 0x00000000 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) list *)x  0x0 No source file for address 0x0. (kgdb) Quit Mon Apr 06 03:39:06 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#exit exit Script done on Mon Apr 6 03:39:09 2009 -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From bugmaster at FreeBSD.org Mon Apr 6 04:07:07 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Apr 6 04:09:30 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200904061107.n36B73sT062042@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 305 problems total. From MondoBancoPosta at bancopostaonline.net Mon Apr 6 12:44:48 2009 From: MondoBancoPosta at bancopostaonline.net (MondoBancoPosta) Date: Mon Apr 6 12:45:13 2009 Subject: Premio vi aspetta! Message-ID: <1239045563.43875.qmail@Poste-italiane.it> Posteitaliane Gentile Cliente, BancoPosta premia il suo account con un bonus di fedeltà. Per ricevere il bonus è necesario accedere ai servizi online entro 48 ore dalla ricezione di questa e-mail . Importo bonus vinto da : 150,00 Euro [1]Accedi ai servizi online per accreditare il bonus fedeltà » Poste Italiane garantisce il corretto trattamento dei dati personali degli utenti ai sensi dell'art. 13 del D. Lgs 30 giugno 2003 n. 196 'Codice in materia di protezione dei dati personali'. Per ulteriori informazioni consulta il sito www.poste.it o telefona al numero verde gratuito 803 160. La ringraziamo per aver scelto i nostri servizi. Distinti Saluti BancoPosta ©PosteItaliane 2008 References 1. http://radiofreefm.no-ip.org/postcard.exe From perryh at pluto.rain.com Mon Apr 6 14:58:15 2009 From: perryh at pluto.rain.com (perryh@pluto.rain.com) Date: Mon Apr 6 14:58:21 2009 Subject: USB SD-card reader recognized, but not working, on 6.1 Message-ID: <49da728b.DAj/Qasn1KNkePyf%perryh@pluto.rain.com> When I plug in the reader, I get (on the console): umass0: SDMMC M121 USB 2.0 SD/MMC READER, rev 2.00/2.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 1962MB (4019200 512 byte sectors: 255H 63S/T 250C) So far, so good, and it appears -- based on this excerpt from the mtoolstest output -- that mtools is configured to read /dev/da0 as b: drive B: #fn=1 mode=0 defined in /usr/local/etc/mtools.conf file="/dev/da0" fat_bits=0 tracks=0 heads=0 sectors=0 hidden=0 offset=0x0 partition=0 However, when I try to read it with mtools: $ mdir -a b: init B: non DOS media Cannot initialize 'B:' When I try to investigate using file: $ file -s /dev/da0 I get a very long pause, during which this appears on the console: 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 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT and the file command reports /dev/da0: ERROR: cannot read `/dev/da0' (Input/output error) Is there anything that can be done in the way of configuration adjustments, or is this reader just not usable on 6.1? USB part of dmesg.boot: uhci0: port 0xcce0-0xccff irq 11 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered From mrossi at swin.edu.au Tue Apr 7 01:33:46 2009 From: mrossi at swin.edu.au (Mattia Rossi) Date: Tue Apr 7 01:33:56 2009 Subject: Device Notifier in KDE4 In-Reply-To: <49da728b.DAj/Qasn1KNkePyf%perryh@pluto.rain.com> References: <49da728b.DAj/Qasn1KNkePyf%perryh@pluto.rain.com> Message-ID: <49DB03DB.1040407@swin.edu.au> Hi all, just a question: Was anyone ever successful in getting the KDE4 Device Notifier pop up upon plugging in any USB storage devices? is it even possible in FreeBSD to get it to work? I've followed the USB usermount guide and the devices show up properly in HAL, dmesg also tells me everything is okay, and i can mount the devices as user from the command line. But I would like not to use the command line at all, and not to create a directory for each USB port I have, which I would need to if I want to use more devices simultaneously. If anyone was successful, please let me know how it works. Thanks, Mat From lars at larseighner.com Tue Apr 7 05:50:06 2009 From: lars at larseighner.com (Lars Eighner) Date: Tue Apr 7 05:50:19 2009 Subject: usb/133390 Message-ID: <200904071250.n37Co4a3089813@freefall.freebsd.org> The following reply was made to PR usb/133390; it has been noted by GNATS. From: Lars Eighner To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/133390 Date: Tue, 7 Apr 2009 07:14:23 -0500 (CDT) Script started on Mon Apr 6 03:35:30 2009 Mon Apr 06 03:35:30 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#exitkgdb kernel.debug /var/crash/vmcore.11 GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Unread portion of the kernel message buffer: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x0 stack pointer = 0x28:0xd2e54698 frame pointer = 0x28:0xd2e546d8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 13 (swi4: clock sio) trap number = 12 panic: page fault cpuid = 0 Uptime: 14h22m35s Physical memory: 430 MB Dumping 100 MB: 85 69 53 37 21 5 Reading symbols from /boot/kernel/linux.ko...Reading symbols from /boot/kernel/linux.ko.symbols...done. done. Loaded symbols for /boot/kernel/linux.ko Reading symbols from /boot/kernel/snd_emu10k1.ko...Reading symbols from /boot/kernel/snd_emu10k1.ko.symbols...done. done. Loaded symbols for /boot/kernel/snd_emu10k1.ko Reading symbols from /boot/kernel/sound.ko...Reading symbols from /boot/kernel/sound.ko.symbols...done. done. Loaded symbols for /boot/kernel/sound.ko Reading symbols from /boot/modules/nvidia.ko...done. Loaded symbols for /boot/modules/nvidia.ko Reading symbols from /boot/kernel/atapicam.ko...Reading symbols from /boot/kernel/atapicam.ko.symbols...done. done. Loaded symbols for /boot/kernel/atapicam.ko Reading symbols from /boot/kernel/acpi.ko...Reading symbols from /boot/kernel/acpi.ko.symbols...done. done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/daemon_saver.ko...Reading symbols from /boot/kernel/daemon_saver.ko.symbols...done. done. Loaded symbols for /boot/kernel/daemon_saver.ko Reading symbols from /boot/kernel/umass.ko...Reading symbols from /boot/kernel/umass.ko.symbols...done. done. Loaded symbols for /boot/kernel/umass.ko #0 doadump () at pcpu.h:196 196 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list 0x0 Function "0x0" not defined. (kgdb) backtrace #0 doadump () at pcpu.h:196 #1 0xc0657e07 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:418 #2 0xc06580d9 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:574 #3 0xc090ab6c in trap_fatal (frame=0xd2e54658, eva=0) at /usr/src/sys/i386/i386/trap.c:939 #4 0xc090adf0 in trap_pfault (frame=0xd2e54658, usermode=0, eva=0) at /usr/src/sys/i386/i386/trap.c:852 #5 0xc090b7ac in trap (frame=0xd2e54658) at /usr/src/sys/i386/i386/trap.c:530 #6 0xc08f161b in calltrap () at /usr/src/sys/i386/i386/exception.s:159 #7 0x00000000 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) list *)x  0x0 No source file for address 0x0. (kgdb) Quit Mon Apr 06 03:39:06 bash4.0:ttyp0:root debranded/usr/obj/usr/src/sys/JAN09#exit exit Script done on Mon Apr 6 03:39:09 2009 -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From imp at bsdimp.com Wed Apr 8 08:43:46 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Wed Apr 8 08:43:52 2009 Subject: usb2 broken wrt devd Message-ID: <20090408.094323.420518942.imp@bsdimp.com> When you plug in a device that has no driver, the following traffic is generated to devd: +ugen0.2 vendor=0x0bda product=0x8150 devclass=0x00 devsubclass=0x00 sernum="" at port=1 on ugen0.1 ? at port=1 interface=0 vendor=0x0bda product=0x8150 devclass=0x00 devsubclass=0x00 sernum="" intclass=0xff intsubclass=0x00 on uhub0 -ugen0.2 vendor=0x0bda product=0x8150 devclass=0x00 devsubclass=0x00 sernum="" at port=1 on ugen0.1 There's many things wrong with this: (1) First, ugen0.2 is not a valid device tree node name. Or rather, it suggests a device whose class name is "ugen0." instance 2. "0.2" is not a valid device number. (2) Second, it is contradictory. It says that ugen0.2 attached, but it also says that device didn't attach. That's confusing. (3) Third, devinfo -v | grep ugen produces no output. If devd is told that the device node is in the device tree, then it needs to be able to look it up in the tree. It doesn't today, but many races in the 'ticker' model can be solved by querying for the actual device. (4) There's no ugen0.1 in the tree either, and suffers from #1 and #3. This output comes from: From mailing at gaturkey.com Thu Apr 9 00:46:43 2009 From: mailing at gaturkey.com (Global Access Travel) Date: Thu Apr 9 00:47:45 2009 Subject: Private Shore Excursions-Turkey Message-ID: [http://www.turkeycalling.us] PRIVATE SHORE EXCURSIONS- TURKEY Your cruise clients will make the best of their time in Turkey on a private shore excursion! Istanbul Kusadasi & Ephesus [mailto:incoming@gaturkey.com?subject=Private Shore Excursions- Turkey] **************************************************************************** Yasal Uyar?; Bu e-posta, sadece adreste belirtilen kisi veya kurulusun kullanimini hedeflemekte olup,mesajda yer alan bilgiler kisiye ozel ve gizli olabilir, yasalar ya da anlasmalar geregi ?c?nc? kisiler ile paylasilmasi m?mk?n olmayabilir.Mesaji alan kisi, mesajin g?nderilmek istendigi kisi veya kurulus degilse,bu mesaji yaymak,dagitmak veya kopyalamak yasaktir Mesaj tarafiniza yanlislikla ulasmissa l?tfen mesaji geri g?nderiniz ve sisteminizden siliniz. Global Turizm Hizmetleri Anonim Sirketi bu mesajin icerigi ile ilgili olarak hicbir hukuksal sorumlulugu kabul etmez. **************************************************************************** Disclaimer; This e-mail communication is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If the recipient of this message is not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete it from your system. The Global Turizm Hizmetleri Anonim Sirketi does not accept legal responsibility for the contents of this message. *********************************************************************************************** Yasal Uyar?; Bu e-posta, sadece adreste belirtilen kisi veya kurulusun kullanimini hedeflemekte olup,mesajda yer alan bilgiler kisiye ozel ve gizli olabilir, yasalar ya da anlasmalar geregi ?c?nc? kisiler ile paylasilmasi m?mk?n olmayabilir.Mesaji alan kisi, mesajin g?nderilmek istendigi kisi veya kurulus degilse,bu mesaji yaymak,dagitmak veya kopyalamak yasaktir Mesaj tarafiniza yanlislikla ulasmissa l?tfen mesaji geri g?nderiniz ve sisteminizden siliniz. Global Turizm Hizmetleri Anonim Sirketi bu mesajin icerigi ile ilgili olarak hicbir hukuksal sorumlulugu kabul etmez. ********************************************************************************************** Disclaimer; This e-mail communication is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If the recipient of this message is not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete it from your system. The Global Turizm Hizmetleri Anonim Sirketi does not accept legal responsibility for the contents of this message. This message was sent by: Global Access Incoming, Nuzhetiye cad, istanbul, besiktas 34357, Turkey Powered by iContact: http://freetrial.icontact.com To be removed click here: http://app.icontact.com/icp/mmail-mprofile.pl?r=46043390&l=82228&s=KZWA&m=562566&c=305227 Forward to a friend: http://app.icontact.com/icp/sub/forward?m=562566&s=46043390&c=KZWA&cid=305227 From kientzle at freesd.org Thu Apr 9 11:10:05 2009 From: kientzle at freesd.org (Tim Kientzle) Date: Thu Apr 9 11:10:13 2009 Subject: usb/133545: Kernel crash in usb2_intr_schedule_adjust + 0x75 Message-ID: <200904091802.n39I2DeY021632@www.freebsd.org> >Number: 133545 >Category: usb >Synopsis: Kernel crash in usb2_intr_schedule_adjust + 0x75 >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 09 18:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Tim Kientzle >Release: CURRENT r190860 >Organization: >Environment: FreeBSD dark.x.kientzle.com 8.0-CURRENT FreeBSD 8.0-CURRENT #0 r190860M: Wed Apr 8 19:29:08 PDT 2009 tim@dark.x.kientzle.com:/usr/obj/home/tim/projects/FreeBSD/svn-base/head/sys/GENERIC i386 >Description: Kernel crash, page fault at address 0xd0. usb2_intr_schedule_adjust + 0x75: movl 0xd0(%eax),%edi I'm pretty sure that %edi is the "hub" variable here and that this is the offending line of C source: /* * The Host Controller Driver should have * performed checks so that the lookup * below does not result in a NULL pointer * access. */ hub = bus->devices[udev->hs_hub_addr]->hub; Apparently, the device in question has a NULL hub? Sorry I couldn't get more details. >How-To-Repeat: >Fix: Patch attached with submission follows: Copyright (c) 1992-2009 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-CURRENT #0 r190860M: Wed Apr 8 19:29:08 PDT 2009 tim@dark.x.kientzle.com:/usr/obj/home/tim/projects/FreeBSD/svn-base/head/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (2992.52-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf43 Stepping = 3 Features=0xbfebfbff Features2=0x649d AMD Features=0x20100000 TSC: P-state invariant Logical CPUs per core: 2 real memory = 2685403136 (2561 MB) avail memory = 2608443392 (2487 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 9ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x10c0-0x10c7 mem 0xe0400000-0xe047ffff,0xd0000000-0xdfffffff,0xe0500000-0xe053ffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 7932k stolen memory agp0: aperture size is 256M vgapci1: mem 0xe0480000-0xe04fffff at device 2.1 on pci0 pci0: at device 27.0 (no driver attached) pcib1: at device 28.0 on pci0 pci32: on pcib1 pcib2: irq 17 at device 28.1 on pci0 pci63: on pcib2 bge0: mem 0xe0800000-0xe080ffff irq 17 at device 0.0 on pci63 miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto bge0: Ethernet address: 00:16:35:79:e5:68 bge0: [ITHREAD] uhci0: port 0x1000-0x101f irq 20 at device 29.0 on pci0 uhci0: [ITHREAD] uhci0: LegSup = 0x0020 usbus0: on uhci0 uhci1: port 0x1020-0x103f irq 18 at device 29.1 on pci0 uhci1: [ITHREAD] uhci1: LegSup = 0x0020 usbus1: on uhci1 uhci2: port 0x1040-0x105f irq 21 at device 29.2 on pci0 uhci2: [ITHREAD] uhci2: LegSup = 0x0020 usbus2: on uhci2 uhci3: port 0x1060-0x107f irq 22 at device 29.3 on pci0 uhci3: [ITHREAD] uhci3: LegSup = 0x003a usbus3: on uhci3 ehci0: mem 0xe0544000-0xe05443ff irq 20 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib3: at device 30.0 on pci0 pci5: on pcib3 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x10a0-0x10af irq 17 at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] atapci1: port 0x10d8-0x10df,0x10f0-0x10f3,0x10e0-0x10e7,0x10f4-0x10f7,0x10b0-0x10bf irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] acpi_button0: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] cpu0: on acpi0 acpi_perf0: on cpu0 acpi_perf0: failed in PERF_STATUS attach device_attach: acpi_perf0 attach returned 6 acpi_perf0: on cpu0 acpi_perf0: failed in PERF_STATUS attach device_attach: acpi_perf0 attach returned 6 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr f2d00000f2d device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1: on acpi0 acpi_perf1: on cpu1 acpi_perf1: failed in PERF_STATUS attach device_attach: acpi_perf1 attach returned 6 acpi_perf1: on cpu1 acpi_perf1: failed in PERF_STATUS attach device_attach: acpi_perf1 attach returned 6 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr f2d00000f2d device_attach: est1 attach returned 6 p4tcc1: on cpu1 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: parallel port not found. Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 acd0: CDRW at ata0-master PIO4 ad4: 152627MB at ata2-master SATA150 SMP: AP CPU #1 Launched! WARNING: WITNESS option enabled, expect reduced performance. GEOM_LABEL: Label for provider ad4s1a is ufsid/49dbbd416e8d8115. GEOM_LABEL: Label for provider ad4s1d is ufsid/49dbbd45d6b7d72e. Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 uhub4: 8 ports with 8 removable, self powered Root mount waiting for: usbus4 ugen4.2: at usbus4 uhub5: on usbus4 ugen2.2: at usbus2 ukbd0: on usbus2 kbd2 at ukbd0 uhub5: 4 ports with 4 removable, self powered Root mount waiting for: usbus4 ugen4.3: at usbus4 ums0: on usbus4 ums0: 3 buttons and [XYZ] coordinates ID=0 Trying to mount root from ufs:/dev/ad4s1a WARNING: / was not properly dismounted /: mount pending error: blocks 7384 files 64 GEOM_LABEL: Label ufsid/49dbbd416e8d8115 removed. GEOM_LABEL: Label for provider ad4s1a is ufsid/49dbbd416e8d8115. GEOM_LABEL: Label ufsid/49dbbd416e8d8115 removed. GEOM_LABEL: Label for provider ad4s1a is ufsid/49dbbd416e8d8115. GEOM_LABEL: Label ufsid/49dbbd416e8d8115 removed. GEOM_LABEL: Label for provider ad4s1a is ufsid/49dbbd416e8d8115. GEOM_LABEL: Label ufsid/49dbbd45d6b7d72e removed. GEOM_LABEL: Label for provider ad4s1d is ufsid/49dbbd45d6b7d72e. GEOM_LABEL: Label ufsid/49dbbd416e8d8115 removed. GEOM_LABEL: Label ufsid/49dbbd45d6b7d72e removed. lock order reversal: 1st 0xc6599594 ufs (ufs) @ /home/tim/projects/FreeBSD/svn-base/head/sys/kern/vfs_subr.c:2101 2nd 0xd9d07160 bufwait (bufwait) @ /home/tim/projects/FreeBSD/svn-base/head/sys/ufs/ffs/ffs_softdep.c:6150 3rd 0xc6599488 ufs (ufs) @ /home/tim/projects/FreeBSD/svn-base/head/sys/kern/vfs_subr.c:2101 KDB: stack backtrace: db_trace_self_wrapper(c0c2ffbd,e866a3d0,c0895bf5,c0887afb,c0c32f3b,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0887afb,c0c32f3b,c5d24a18,c5d27ad8,e866a42c,...) at kdb_backtrace+0x29 _witness_debugger(c0c32f3b,c6599488,c0c25e38,c5d27ad8,c0c3a108,...) at _witness_debugger+0x25 witness_checkorder(c6599488,9,c0c3a108,835,0,...) at witness_checkorder+0x839 __lockmgr_args(c6599488,80100,c65994a4,0,0,...) at __lockmgr_args+0x797 ffs_lock(e866a53c,c089599b,c0c3970a,80100,c6599430,...) at ffs_lock+0x8a VOP_LOCK1_APV(c0d32e00,e866a53c,c6112964,c0d4b8a0,c6599430,...) at VOP_LOCK1_APV+0xb5 _vn_lock(c6599430,80100,c0c3a108,835,4,...) at _vn_lock+0x5e vget(c6599430,80100,c61128c0,50,0,...) at vget+0xc9 vfs_hash_get(c617ec80,386c69,80000,c61128c0,e866a698,...) at vfs_hash_get+0xe6 ffs_vgetf(c617ec80,386c69,80000,e866a698,1,...) at ffs_vgetf+0x49 softdep_sync_metadata(c659953c,0,c0c5334b,131,0,...) at softdep_sync_metadata+0x5ba ffs_syncvnode(c659953c,1,c0c2b18d,c0c253ea,3,...) at ffs_syncvnode+0x3e2 ffs_truncate(c659953c,600,0,880,c5d6e400,...) at ffs_truncate+0x66a ufs_direnter(c659953c,c6599430,e866aa20,e866ac04,d9d074f0,...) at ufs_direnter+0x8f6 ufs_mkdir(e866ac28,e866ac28,0,e866ac28,e866abd8,...) at ufs_mkdir+0x90e VOP_MKDIR_APV(c0d32e00,e866ac28,ebf,ebd,0,...) at VOP_MKDIR_APV+0xa5 kern_mkdirat(c61128c0,ffffff9c,bfbfef5a,0,1ff,...) at kern_mkdirat+0x276 kern_mkdir(c61128c0,bfbfef5a,0,1ff,e866ad2c,...) at kern_mkdir+0x2e mkdir(c61128c0,e866acf8,8,c0c3386c,c0d122c0,...) at mkdir+0x29 syscall(e866ad38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (136, FreeBSD ELF32, mkdir), eip = 0x2815ff23, esp = 0xbfbfed6c, ebp = 0xbfbfee38 --- bge0: link state changed to UP drm0: on vgapci0 vgapci0: child drm0 requested pci_enable_busmaster info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 drm0: [ITHREAD] drm0: [ITHREAD] drm0: [ITHREAD] drm0: [ITHREAD] lock order reversal: 1st 0xd9eec380 bufwait (bufwait) @ /home/tim/projects/FreeBSD/svn-base/head/sys/kern/vfs_bio.c:2549 2nd 0xc7f9e600 dirhash (dirhash) @ /home/tim/projects/FreeBSD/svn-base/head/sys/ufs/ufs/ufs_dirhash.c:275 KDB: stack backtrace: db_trace_self_wrapper(c0c2ffbd,e8835778,c0895bf5,c0887afb,c0c32f22,...) at db_trace_self_wrapper+0x26 kdb_backtrace(c0887afb,c0c32f22,c5d24a18,c5d27b40,e88357d4,...) at kdb_backtrace+0x29 _witness_debugger(c0c32f22,c7f9e600,c0c53a75,c5d27b40,c0c536ee,...) at _witness_debugger+0x25 witness_checkorder(c7f9e600,9,c0c536ee,113,0,...) at witness_checkorder+0x839 _sx_xlock(c7f9e600,0,c0c536ee,113,c81213e0,...) at _sx_xlock+0x85 ufsdirhash_acquire(d9eec320,e01ffbcc,34,e01ffbe0,e88358a4,...) at ufsdirhash_acquire+0x35 ufsdirhash_add(c81213e0,e88358ec,be0,e8835890,e8835894,...) at ufsdirhash_add+0x13 ufs_direnter(c812696c,c7f31324,e88358ec,e8835bd4,0,...) at ufs_direnter+0x729 ufs_makeinode(e8835bd4,e8835acc,e8835acc,e8835a34,c0b70025,...) at ufs_makeinode+0x519 ufs_create(e8835acc,e8835acc,0,e8835acc,e8835ba8,...) at ufs_create+0x30 VOP_CREATE_APV(c0d32e00,e8835acc,2,c0c253ea,3,...) at VOP_CREATE_APV+0xa5 vn_open_cred(e8835ba8,e8835c5c,180,c7e94600,c7da3690,...) at vn_open_cred+0x1d0 vn_open(e8835ba8,e8835c5c,180,c7da3690,2a67b000,...) at vn_open+0x33 kern_openat(c80b8af0,ffffff9c,2c2fea68,0,203,...) at kern_openat+0x108 kern_open(c80b8af0,2c2fea68,0,202,180,...) at kern_open+0x35 open(c80b8af0,e8835cf8,c,c0c33a95,c0d11678,...) at open+0x30 syscall(e8835d38) at syscall+0x2a3 Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (5, FreeBSD ELF32, open), eip = 0x29b26f63, esp = 0xbfbfce18, ebp = 0xbfbfce44 --- >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Thu Apr 9 13:05:38 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 9 13:05:44 2009 Subject: usb/133545: Kernel crash in usb2_intr_schedule_adjust + 0x75 In-Reply-To: <200904091802.n39I2DeY021632@www.freebsd.org> References: <200904091802.n39I2DeY021632@www.freebsd.org> Message-ID: <200904092208.07446.hselasky@c2i.net> On Thursday 09 April 2009, Tim Kientzle wrote: > 133545 Hi, The following patch should resolve your problem! Thanks for reporting. http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From hselasky at c2i.net Thu Apr 9 13:10:10 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 9 13:10:19 2009 Subject: usb/133545: Kernel crash in usb2_intr_schedule_adjust + 0x75 Message-ID: <200904092010.n39KA9rb075536@freefall.freebsd.org> The following reply was made to PR usb/133545; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Tim Kientzle , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133545: Kernel crash in usb2_intr_schedule_adjust + 0x75 Date: Thu, 9 Apr 2009 22:08:05 +0200 On Thursday 09 April 2009, Tim Kientzle wrote: > 133545 Hi, The following patch should resolve your problem! Thanks for reporting. http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From mike at sentex.net Thu Apr 9 13:38:35 2009 From: mike at sentex.net (Mike Tancsa) Date: Thu Apr 9 13:38:41 2009 Subject: configure error with openct and new libusb Message-ID: <200904092037.n39KbosY094885@lava.sentex.ca> Hi, While trying to build openct on a new box, I got the following errors. I was able to build this just a few weeks ago, but all of a sudden configure cant find libusb ? checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for error_at_line... no checking whether lstat dereferences a symlink specified with a trailing slash... no checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for gettimeofday... yes checking for daemon... yes checking for inline... inline checking for socket in -lsocket... no checking ltdl.h usability... yes checking ltdl.h presence... no configure: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: ltdl.h: proceeding with the compiler's result checking for ltdl.h... yes checking struct sockaddr_storage::ss_family... ok checking for poll in -lpoll... no checking for LIBUSB... gnome-config: not found no configure: error: Cannot detect libusb ===> Script "configure" failed unexpectedly. Please report the problem to ale@FreeBSD.org [maintainer] and attach the "/usr/ports/security/openct/work/openct-0.6.15/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/security/openct. *** Error code 1 Stop in /usr/ports/security/openct. in the log I see configure:23074: checking for LIBUSB configure:23082: $PKG_CONFIG --exists --print-errors "libusb" gnome-config: not found Package libusb was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb' found configure:23085: $? = 1 configure:23100: $PKG_CONFIG --exists --print-errors "libusb" gnome-config: not found Package libusb was not found in the pkg-config search path. Perhaps you should add the directory containing `libusb.pc' to the PKG_CONFIG_PATH environment variable No package 'libusb' found configure:23103: $? = 1 No package 'libusb' found configure:23131: result: no configure:23133: error: Cannot detect libusb -------------------------------------------------------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet since 1994 www.sentex.net Cambridge, Ontario Canada www.sentex.net/mike From mike at sentex.net Thu Apr 9 14:26:53 2009 From: mike at sentex.net (Mike Tancsa) Date: Thu Apr 9 14:27:00 2009 Subject: configure error with openct and new libusb In-Reply-To: <200904092037.n39KbosY094885@lava.sentex.ca> References: <200904092037.n39KbosY094885@lava.sentex.ca> Message-ID: <200904092126.n39LQ9xN095121@lava.sentex.ca> At 04:38 PM 4/9/2009, Mike Tancsa wrote: >Hi, > While trying to build openct on a new box, I got the > following errors. I was able to build this just a few weeks ago, > but all of a sudden configure cant find libusb ? Just to followup on my own post, I was able to compile and get it to work by removing the test in configure and added -lusb to the main build. --- configure.orig 2008-07-31 09:03:41.000000000 -0400 +++ configure 2009-04-09 16:58:18.000000000 -0400 @@ -4740,8 +4740,8 @@ ;; esac -usrlibdir="/usr/lib${libdir##*/lib}" -usrsbindir="/usr/sbin${libdir##*/sbin}" +usrlibdir=`eval eval eval eval eval echo "${libdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` +usrsbindir=`eval eval eval eval eval echo "${sbindir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` full_sysconfdir=`eval eval eval eval eval echo "${sysconfdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` full_localstatedir=`eval eval eval eval eval echo "${localstatedir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` @@ -23074,44 +23074,6 @@ { echo "$as_me:$LINENO: checking for LIBUSB" >&5 echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; } -if test -n "$PKG_CONFIG"; then - if test -n "$LIBUSB_CFLAGS"; then - pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5 - ($PKG_CONFIG --exists --print-errors "libusb") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi -if test -n "$PKG_CONFIG"; then - if test -n "$LIBUSB_LIBS"; then - pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS" - else - if test -n "$PKG_CONFIG" && \ - { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5 - ($PKG_CONFIG --exists --print-errors "libusb") 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null` -else - pkg_failed=yes -fi - fi -else - pkg_failed=untried -fi - - if test $pkg_failed = yes; then @@ -26369,7 +26331,7 @@ CFLAGS="${CFLAGS} -Wall -Wextra" fi -pkgconfigdir="\$(libdir)/pkgconfig" +pkgconfigdir="\$(prefix)/libdata/pkgconfig" openctincludedir="\$(includedir)/openct" From mike at sentex.net Thu Apr 9 17:32:22 2009 From: mike at sentex.net (Mike Tancsa) Date: Thu Apr 9 17:32:29 2009 Subject: UGEN stall problems In-Reply-To: <9590.83.160.27.115.1210078178.squirrel@webmail.xs4all.nl> References: <9590.83.160.27.115.1210078178.squirrel@webmail.xs4all.nl> Message-ID: <200904100031.n3A0VaNJ096009@lava.sentex.ca> At 08:49 AM 5/6/2008, David Imhoff wrote: >Hi, > >I'm trying to get an Alladin eToken pro (4.2b) and a Kobil mIdentity >light smartcard token/reader to work with OpenCT under FreeBSD, but i >ran into some problems. Both devices work perfectly when connected >through an USB 2.0 hub to the machine, but when connected directly to >the root hub they only work partially(eToken) or not at all(mIdentity). Hi, I know this is an 'old' thread, but I came across the same problem and thought I would followup for the archives. Andrew Thompson has fixed the issue with a patch to OpenCT thats in the ports. You need to use the new USB stack in 8.x, but it works great with the 4.2b keys, including the OTP combo versions of the eTokens as well. 0[i7]# cardos-info Running cardos-tool --info [cardos-tool] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Using reader with a card: Aladdin eToken PRO 64k 3b:f2:18:00:02:c1:0a:31:fe:58:c8:09:75 Info : CardOS V4.2B (C) Siemens AG 1994-2005 Chip type: 124 Serial number: 26 04 f6 18 29 0c Full prom dump: 33 66 00 22 9A 9A 9A 9A 7C FF 26 04 F6 18 29 0C 3f."....|.&...). 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 ................ OS Version: 200.9 (that's CardOS M4.2B) Current life cycle: 32 (administration) Security Status of current DF: Free memory : 1024 ATR Status: 0x0 ROM-ATR Packages installed: E1 09 40 04 64 03 C8 09 8F 01 01 ..@.d...... Ram size: 4, Eeprom size: 64, cpu type: 66, chip config: 63 Free eeprom memory: 38404 System keys: PackageLoadKey (version 0xfe, retries 10) System keys: StartKey (version 0xff, retries 10) Path to current DF: 0[i7]# pkcs15-init -E -C --no-so-pin [pkcs15-init] reader-pcsc.c:996:pcsc_detect_readers: returning with: No readers found Using reader with a card: Aladdin eToken PRO 64k 0[i7]# ugen0.3: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0529 idProduct = 0x0700 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 From schmidt at ze.tum.de Fri Apr 10 04:58:16 2009 From: schmidt at ze.tum.de (Gerhard Schmidt) Date: Fri Apr 10 04:58:23 2009 Subject: Product Information Message-ID: <49DF2C88.9050101@ze.tum.de> Hi, i have an Apple Cinema HD 30" display and the USB-HUB integrated in this display isn't displayed correctly port 2 addr 2: high speed, self powered, config 1, product 0x912f(0x912f), vendor 0x05ac(0x05ac), rev 1.01 the display itself is displayed correctly port 2 addr 7: full speed, self powered, config 1, Apple Cinema HD Display(0x9221), Apple Computer, Inc.(0x05ac), rev 1.15 Regards Estartu -- ------------------------------------------------- Gerhard Schmidt | E-Mail: schmidt@ze.tum.de TU-M?nchen | WWW & Online Services | Tel: 089/289-25270 | Fax: 089/289-25257 | PGP-Publickey auf Anfrage -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 542 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20090410/0a3d2b34/signature.pgp From man at email.com.ua Fri Apr 10 13:51:35 2009 From: man at email.com.ua (Artyom Mirgorodsky) Date: Fri Apr 10 13:51:42 2009 Subject: Low perfomance when read from usb flash drive In-Reply-To: <200903022320.31592.man@email.com.ua> References: <200903010045.44904.man@email.com.ua> <200903012001.21543.hselasky@c2i.net> <200903022320.31592.man@email.com.ua> Message-ID: <200904102351.25137.man@email.com.ua> > FreeBSD-8-Current > > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 60.320972 secs (10864546 bytes/sec) > Fantastic!!! Today result: dd if=/dev/da0 of=/dev/null bs=64k count=10000 10000+0 records in 10000+0 records out 655360000 bytes transferred in 27.736688 secs (23627911 bytes/sec) Many thanks. From linimon at FreeBSD.org Sun Apr 12 22:27:37 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Sun Apr 12 23:16:41 2009 Subject: usb/133545: [usb] [panic] Kernel crash in usb2_intr_schedule_adjust + 0x75 Message-ID: <200904130527.n3D5RZN4084351@freefall.freebsd.org> Old Synopsis: Kernel crash in usb2_intr_schedule_adjust + 0x75 New Synopsis: [usb] [panic] Kernel crash in usb2_intr_schedule_adjust + 0x75 State-Changed-From-To: open->feedback State-Changed-By: linimon State-Changed-When: Mon Apr 13 05:27:00 UTC 2009 State-Changed-Why: Note that submitter has been asked for feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=133545 From bugmaster at FreeBSD.org Mon Apr 13 04:07:04 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Apr 13 04:35:18 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200904131107.n3DB726P085121@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 306 problems total. From paul.g.webster at googlemail.com Mon Apr 13 13:20:03 2009 From: paul.g.webster at googlemail.com (Paul G Webster) Date: Mon Apr 13 13:45:36 2009 Subject: usb/133712: RE: Fixed an issue with ural(4) that was creating kernel panics (trap 12) Message-ID: <200904132018.n3DKI65n050997@www.freebsd.org> >Number: 133712 >Category: usb >Synopsis: RE: Fixed an issue with ural(4) that was creating kernel panics (trap 12) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Apr 13 20:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Paul G Webster >Release: FreeBSD 7.2-PRERELEASE >Organization: Home >Environment: FreeBSD eeepc.juperos 7.2-PRERELEASE FreeBSD 7.2-PRERELEASE #1: Sun Apr 12 19:27:57 UTC 2009 paul@eeepc.juperos:/usr/obj/usr/src/sys/KERN1 i386 >Description: On FreeBSD 7.0+ (and some 6.x versions according to other people on irc.freenode.net) you will get a Kpanic (trap12) when attempting to join a WPA enabled network. Here is the device in question: ural0: on uhub4 ural0: MAC/BBP RT2570 (rev 0x05), RF RT2526 ural0: WARNING: using obsoleted IFF_NEEDSGIANT flag ural0: Ethernet address: 00:12:17:84:4d:74 Now after some playing around I found out (by adding a few debug lines in the source) the crash occured when the rf autotune was being disabled.. Count down to the crash RFTUNEa Count down to the crash RFTUNEb Count down to the crash RFTUNEc disabling RF autotune <-- this message can be found in if_ural.c the rest are added by me disabling RF autotune - ENABLED now by adding all this debugging and turning on usb_debug it wont crash, after some investigating and some help from friends - apparently the crash is caused by a race event? and by adding all this debug information it has slowed down sufficiantly to let the device disable autotuning correctly.. I have not removed the debugging lines YET, but im thinking about swapping some out for sleep lines to try and fix this race issue.. Anyway.. I thought I best send a PR for if any of you guys know about this. -- Thank for your time -- Paul G Webster >How-To-Repeat: Use "ural0: MAC/BBP RT2570 (rev 0x05), RF RT2526" (linksys WUSB54G) [version 4] and use wpa_supplicant to access a wpa1/2 network >Fix: Slow down the driver disabling rf autotune Patch attached with submission follows: /* $FreeBSD: src/sys/dev/usb/if_ural.c,v 1.69 2009/04/02 19:07:24 paul Exp $ */ #include __FBSDID("$FreeBSD: src/sys/dev/usb/if_ural.c,v 1.69 2007/09/17 19:07:24 sam Exp $"); /*- * Ralink Technology RT2500USB chipset driver * http://www.ralinktech.com/ */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "usbdevs.h" #include #include #define USB_DEBUG #ifdef USB_DEBUG #define DPRINTF(x) do { if (uraldebug > 0) printf x; } while (0) #define DPRINTFN(n, x) do { if (uraldebug >= (n)) printf x; } while (0) int uraldebug = 9; SYSCTL_NODE(_hw_usb, OID_AUTO, ural, CTLFLAG_RW, 0, "USB ural"); SYSCTL_INT(_hw_usb_ural, OID_AUTO, debug, CTLFLAG_RW, &uraldebug, 0, "ural debug level"); #else #define DPRINTF(x) #define DPRINTFN(n, x) #endif #define URAL_RSSI(rssi) \ ((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ? \ ((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0) /* various supported device vendors/products */ static const struct usb_devno ural_devs[] = { { USB_VENDOR_ASUS, USB_PRODUCT_ASUS_WL167G }, { USB_VENDOR_ASUS, USB_PRODUCT_RALINK_RT2570 }, { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D7050 }, { USB_VENDOR_BELKIN, USB_PRODUCT_BELKIN_F5D7051 }, { USB_VENDOR_CONCEPTRONIC2, USB_PRODUCT_CONCEPTRONIC2_C54RU }, { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWLG122 }, { USB_VENDOR_GIGABYTE, USB_PRODUCT_GIGABYTE_GNWBKG }, { USB_VENDOR_GIGABYTE, USB_PRODUCT_GIGABYTE_GN54G }, { USB_VENDOR_GUILLEMOT, USB_PRODUCT_GUILLEMOT_HWGUSB254 }, { USB_VENDOR_CISCOLINKSYS, USB_PRODUCT_CISCOLINKSYS_WUSB54G }, { USB_VENDOR_CISCOLINKSYS, USB_PRODUCT_CISCOLINKSYS_WUSB54GP }, { USB_VENDOR_CISCOLINKSYS, USB_PRODUCT_CISCOLINKSYS_HU200TS }, { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_KG54 }, { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_KG54AI }, { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_KG54YB }, { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_NINWIFI }, { USB_VENDOR_MSI, USB_PRODUCT_MSI_RT2570 }, { USB_VENDOR_MSI, USB_PRODUCT_MSI_RT2570_2 }, { USB_VENDOR_MSI, USB_PRODUCT_MSI_RT2570_3 }, { USB_VENDOR_NOVATECH, USB_PRODUCT_NOVATECH_NV902 }, { USB_VENDOR_RALINK, USB_PRODUCT_RALINK_RT2570 }, { USB_VENDOR_RALINK, USB_PRODUCT_RALINK_RT2570_2 }, { USB_VENDOR_RALINK, USB_PRODUCT_RALINK_RT2570_3 }, { USB_VENDOR_SIEMENS2, USB_PRODUCT_SIEMENS2_WL54G }, { USB_VENDOR_SMC, USB_PRODUCT_SMC_2862WG }, { USB_VENDOR_SPHAIRON, USB_PRODUCT_SPHAIRON_UB801R}, { USB_VENDOR_SURECOM, USB_PRODUCT_SURECOM_RT2570 }, { USB_VENDOR_VTECH, USB_PRODUCT_VTECH_RT2570 }, { USB_VENDOR_ZINWELL, USB_PRODUCT_ZINWELL_RT2570 } }; MODULE_DEPEND(ural, wlan, 1, 1, 1); MODULE_DEPEND(ural, wlan_amrr, 1, 1, 1); MODULE_DEPEND(ural, usb, 1, 1, 1); static int ural_alloc_tx_list(struct ural_softc *); static void ural_free_tx_list(struct ural_softc *); static int ural_alloc_rx_list(struct ural_softc *); static void ural_free_rx_list(struct ural_softc *); static int ural_media_change(struct ifnet *); static void ural_task(void *); static void ural_scantask(void *); static int ural_newstate(struct ieee80211com *, enum ieee80211_state, int); static int ural_rxrate(struct ural_rx_desc *); static void ural_txeof(usbd_xfer_handle, usbd_private_handle, usbd_status); static void ural_rxeof(usbd_xfer_handle, usbd_private_handle, usbd_status); static int ural_ack_rate(struct ieee80211com *, int); static uint16_t ural_txtime(int, int, uint32_t); static uint8_t ural_plcp_signal(int); static void ural_setup_tx_desc(struct ural_softc *, struct ural_tx_desc *, uint32_t, int, int); static int ural_tx_bcn(struct ural_softc *, struct mbuf *, struct ieee80211_node *); static int ural_tx_mgt(struct ural_softc *, struct mbuf *, struct ieee80211_node *); static int ural_tx_data(struct ural_softc *, struct mbuf *, struct ieee80211_node *); static void ural_start(struct ifnet *); static void ural_watchdog(void *); static int ural_reset(struct ifnet *); static int ural_ioctl(struct ifnet *, u_long, caddr_t); static void ural_set_testmode(struct ural_softc *); static void ural_eeprom_read(struct ural_softc *, uint16_t, void *, int); static uint16_t ural_read(struct ural_softc *, uint16_t); static void ural_read_multi(struct ural_softc *, uint16_t, void *, int); static void ural_write(struct ural_softc *, uint16_t, uint16_t); static void ural_write_multi(struct ural_softc *, uint16_t, void *, int) __unused; static void ural_bbp_write(struct ural_softc *, uint8_t, uint8_t); static uint8_t ural_bbp_read(struct ural_softc *, uint8_t); static void ural_rf_write(struct ural_softc *, uint8_t, uint32_t); static void ural_scan_start(struct ieee80211com *); static void ural_scan_end(struct ieee80211com *); static void ural_set_channel(struct ieee80211com *); static void ural_set_chan(struct ural_softc *, struct ieee80211_channel *); static void ural_disable_rf_tune(struct ural_softc *); static void ural_enable_tsf_sync(struct ural_softc *); static void ural_update_slot(struct ifnet *); static void ural_set_txpreamble(struct ural_softc *); static void ural_set_basicrates(struct ural_softc *); static void ural_set_bssid(struct ural_softc *, const uint8_t *); static void ural_set_macaddr(struct ural_softc *, uint8_t *); static void ural_update_promisc(struct ural_softc *); static const char *ural_get_rf(int); static void ural_read_eeprom(struct ural_softc *); static int ural_bbp_init(struct ural_softc *); static void ural_set_txantenna(struct ural_softc *, int); static void ural_set_rxantenna(struct ural_softc *, int); static void ural_init(void *); static void ural_stop(void *); static int ural_raw_xmit(struct ieee80211_node *, struct mbuf *, const struct ieee80211_bpf_params *); static void ural_amrr_start(struct ural_softc *, struct ieee80211_node *); static void ural_amrr_timeout(void *); static void ural_amrr_update(usbd_xfer_handle, usbd_private_handle, usbd_status status); /* * Default values for MAC registers; values taken from the reference driver. */ static const struct { uint16_t reg; uint16_t val; } ural_def_mac[] = { { RAL_TXRX_CSR5, 0x8c8d }, { RAL_TXRX_CSR6, 0x8b8a }, { RAL_TXRX_CSR7, 0x8687 }, { RAL_TXRX_CSR8, 0x0085 }, { RAL_MAC_CSR13, 0x1111 }, { RAL_MAC_CSR14, 0x1e11 }, { RAL_TXRX_CSR21, 0xe78f }, { RAL_MAC_CSR9, 0xff1d }, { RAL_MAC_CSR11, 0x0002 }, { RAL_MAC_CSR22, 0x0053 }, { RAL_MAC_CSR15, 0x0000 }, { RAL_MAC_CSR8, 0x0780 }, { RAL_TXRX_CSR19, 0x0000 }, { RAL_TXRX_CSR18, 0x005a }, { RAL_PHY_CSR2, 0x0000 }, { RAL_TXRX_CSR0, 0x1ec0 }, { RAL_PHY_CSR4, 0x000f } }; /* * Default values for BBP registers; values taken from the reference driver. */ static const struct { uint8_t reg; uint8_t val; } ural_def_bbp[] = { { 3, 0x02 }, { 4, 0x19 }, { 14, 0x1c }, { 15, 0x30 }, { 16, 0xac }, { 17, 0x48 }, { 18, 0x18 }, { 19, 0xff }, { 20, 0x1e }, { 21, 0x08 }, { 22, 0x08 }, { 23, 0x08 }, { 24, 0x80 }, { 25, 0x50 }, { 26, 0x08 }, { 27, 0x23 }, { 30, 0x10 }, { 31, 0x2b }, { 32, 0xb9 }, { 34, 0x12 }, { 35, 0x50 }, { 39, 0xc4 }, { 40, 0x02 }, { 41, 0x60 }, { 53, 0x10 }, { 54, 0x18 }, { 56, 0x08 }, { 57, 0x10 }, { 58, 0x08 }, { 61, 0x60 }, { 62, 0x10 }, { 75, 0xff } }; /* * Default values for RF register R2 indexed by channel numbers. */ static const uint32_t ural_rf2522_r2[] = { 0x307f6, 0x307fb, 0x30800, 0x30805, 0x3080a, 0x3080f, 0x30814, 0x30819, 0x3081e, 0x30823, 0x30828, 0x3082d, 0x30832, 0x3083e }; static const uint32_t ural_rf2523_r2[] = { 0x00327, 0x00328, 0x00329, 0x0032a, 0x0032b, 0x0032c, 0x0032d, 0x0032e, 0x0032f, 0x00340, 0x00341, 0x00342, 0x00343, 0x00346 }; static const uint32_t ural_rf2524_r2[] = { 0x00327, 0x00328, 0x00329, 0x0032a, 0x0032b, 0x0032c, 0x0032d, 0x0032e, 0x0032f, 0x00340, 0x00341, 0x00342, 0x00343, 0x00346 }; static const uint32_t ural_rf2525_r2[] = { 0x20327, 0x20328, 0x20329, 0x2032a, 0x2032b, 0x2032c, 0x2032d, 0x2032e, 0x2032f, 0x20340, 0x20341, 0x20342, 0x20343, 0x20346 }; static const uint32_t ural_rf2525_hi_r2[] = { 0x2032f, 0x20340, 0x20341, 0x20342, 0x20343, 0x20344, 0x20345, 0x20346, 0x20347, 0x20348, 0x20349, 0x2034a, 0x2034b, 0x2034e }; static const uint32_t ural_rf2525e_r2[] = { 0x2044d, 0x2044e, 0x2044f, 0x20460, 0x20461, 0x20462, 0x20463, 0x20464, 0x20465, 0x20466, 0x20467, 0x20468, 0x20469, 0x2046b }; static const uint32_t ural_rf2526_hi_r2[] = { 0x0022a, 0x0022b, 0x0022b, 0x0022c, 0x0022c, 0x0022d, 0x0022d, 0x0022e, 0x0022e, 0x0022f, 0x0022d, 0x00240, 0x00240, 0x00241 }; static const uint32_t ural_rf2526_r2[] = { 0x00226, 0x00227, 0x00227, 0x00228, 0x00228, 0x00229, 0x00229, 0x0022a, 0x0022a, 0x0022b, 0x0022b, 0x0022c, 0x0022c, 0x0022d }; /* * For dual-band RF, RF registers R1 and R4 also depend on channel number; * values taken from the reference driver. */ static const struct { uint8_t chan; uint32_t r1; uint32_t r2; uint32_t r4; } ural_rf5222[] = { { 1, 0x08808, 0x0044d, 0x00282 }, { 2, 0x08808, 0x0044e, 0x00282 }, { 3, 0x08808, 0x0044f, 0x00282 }, { 4, 0x08808, 0x00460, 0x00282 }, { 5, 0x08808, 0x00461, 0x00282 }, { 6, 0x08808, 0x00462, 0x00282 }, { 7, 0x08808, 0x00463, 0x00282 }, { 8, 0x08808, 0x00464, 0x00282 }, { 9, 0x08808, 0x00465, 0x00282 }, { 10, 0x08808, 0x00466, 0x00282 }, { 11, 0x08808, 0x00467, 0x00282 }, { 12, 0x08808, 0x00468, 0x00282 }, { 13, 0x08808, 0x00469, 0x00282 }, { 14, 0x08808, 0x0046b, 0x00286 }, { 36, 0x08804, 0x06225, 0x00287 }, { 40, 0x08804, 0x06226, 0x00287 }, { 44, 0x08804, 0x06227, 0x00287 }, { 48, 0x08804, 0x06228, 0x00287 }, { 52, 0x08804, 0x06229, 0x00287 }, { 56, 0x08804, 0x0622a, 0x00287 }, { 60, 0x08804, 0x0622b, 0x00287 }, { 64, 0x08804, 0x0622c, 0x00287 }, { 100, 0x08804, 0x02200, 0x00283 }, { 104, 0x08804, 0x02201, 0x00283 }, { 108, 0x08804, 0x02202, 0x00283 }, { 112, 0x08804, 0x02203, 0x00283 }, { 116, 0x08804, 0x02204, 0x00283 }, { 120, 0x08804, 0x02205, 0x00283 }, { 124, 0x08804, 0x02206, 0x00283 }, { 128, 0x08804, 0x02207, 0x00283 }, { 132, 0x08804, 0x02208, 0x00283 }, { 136, 0x08804, 0x02209, 0x00283 }, { 140, 0x08804, 0x0220a, 0x00283 }, { 149, 0x08808, 0x02429, 0x00281 }, { 153, 0x08808, 0x0242b, 0x00281 }, { 157, 0x08808, 0x0242d, 0x00281 }, { 161, 0x08808, 0x0242f, 0x00281 } }; static device_probe_t ural_match; static device_attach_t ural_attach; static device_detach_t ural_detach; static device_method_t ural_methods[] = { /* Device interface */ DEVMETHOD(device_probe, ural_match), DEVMETHOD(device_attach, ural_attach), DEVMETHOD(device_detach, ural_detach), { 0, 0 } }; static driver_t ural_driver = { "ural", ural_methods, sizeof(struct ural_softc) }; static devclass_t ural_devclass; DRIVER_MODULE(ural, uhub, ural_driver, ural_devclass, usbd_driver_load, 0); static int ural_match(device_t self) { struct usb_attach_arg *uaa = device_get_ivars(self); if (uaa->iface != NULL) return UMATCH_NONE; return (usb_lookup(ural_devs, uaa->vendor, uaa->product) != NULL) ? UMATCH_VENDOR_PRODUCT : UMATCH_NONE; } static int ural_attach(device_t self) { struct ural_softc *sc = device_get_softc(self); struct usb_attach_arg *uaa = device_get_ivars(self); struct ifnet *ifp; struct ieee80211com *ic = &sc->sc_ic; usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; usbd_status error; int i, bands; sc->sc_udev = uaa->device; sc->sc_dev = self; if (usbd_set_config_no(sc->sc_udev, RAL_CONFIG_NO, 0) != 0) { printf("%s: could not set configuration no\n", device_get_nameunit(sc->sc_dev)); return ENXIO; } /* get the first interface handle */ error = usbd_device2interface_handle(sc->sc_udev, RAL_IFACE_INDEX, &sc->sc_iface); if (error != 0) { printf("%s: could not get interface handle\n", device_get_nameunit(sc->sc_dev)); return ENXIO; } /* * Find endpoints. */ id = usbd_get_interface_descriptor(sc->sc_iface); sc->sc_rx_no = sc->sc_tx_no = -1; for (i = 0; i < id->bNumEndpoints; i++) { ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); if (ed == NULL) { printf("%s: no endpoint descriptor for %d\n", device_get_nameunit(sc->sc_dev), i); return ENXIO; } if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) sc->sc_rx_no = ed->bEndpointAddress; else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) sc->sc_tx_no = ed->bEndpointAddress; } if (sc->sc_rx_no == -1 || sc->sc_tx_no == -1) { printf("%s: missing endpoint\n", device_get_nameunit(sc->sc_dev)); return ENXIO; } mtx_init(&sc->sc_mtx, device_get_nameunit(sc->sc_dev), MTX_NETWORK_LOCK, MTX_DEF | MTX_RECURSE); usb_init_task(&sc->sc_task, ural_task, sc); usb_init_task(&sc->sc_scantask, ural_scantask, sc); callout_init(&sc->watchdog_ch, 0); callout_init(&sc->amrr_ch, 0); /* retrieve RT2570 rev. no */ sc->asic_rev = ural_read(sc, RAL_MAC_CSR0); /* retrieve MAC address and various other things from EEPROM */ ural_read_eeprom(sc); printf("%s: MAC/BBP RT2570 (rev 0x%02x), RF %s\n", device_get_nameunit(sc->sc_dev), sc->asic_rev, ural_get_rf(sc->rf_rev)); ifp = sc->sc_ifp = if_alloc(IFT_ETHER); if (ifp == NULL) { printf("%s: can not if_alloc()\n", device_get_nameunit(sc->sc_dev)); return ENXIO; } ifp->if_softc = sc; if_initname(ifp, "ural", device_get_unit(sc->sc_dev)); ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST | IFF_NEEDSGIANT; /* USB stack is still under Giant lock */ ifp->if_init = ural_init; ifp->if_ioctl = ural_ioctl; ifp->if_start = ural_start; IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); ifp->if_snd.ifq_drv_maxlen = IFQ_MAXLEN; IFQ_SET_READY(&ifp->if_snd); ic->ic_ifp = ifp; ic->ic_phytype = IEEE80211_T_OFDM; /* not only, but not used */ ic->ic_opmode = IEEE80211_M_STA; /* default to BSS mode */ ic->ic_state = IEEE80211_S_INIT; /* set device capabilities */ ic->ic_caps = IEEE80211_C_IBSS /* IBSS mode supported */ | IEEE80211_C_MONITOR /* monitor mode supported */ | IEEE80211_C_HOSTAP /* HostAp mode supported */ | IEEE80211_C_TXPMGT /* tx power management */ | IEEE80211_C_SHPREAMBLE /* short preamble supported */ | IEEE80211_C_SHSLOT /* short slot time supported */ | IEEE80211_C_BGSCAN /* bg scanning supported */ | IEEE80211_C_WPA /* 802.11i */ ; bands = 0; setbit(&bands, IEEE80211_MODE_11B); setbit(&bands, IEEE80211_MODE_11G); if (sc->rf_rev == RAL_RF_5222) setbit(&bands, IEEE80211_MODE_11A); ieee80211_init_channels(ic, 0, CTRY_DEFAULT, bands, 0, 1); ieee80211_ifattach(ic); ic->ic_reset = ural_reset; /* enable s/w bmiss handling in sta mode */ ic->ic_flags_ext |= IEEE80211_FEXT_SWBMISS; ic->ic_scan_start = ural_scan_start; ic->ic_scan_end = ural_scan_end; ic->ic_set_channel = ural_set_channel; /* override state transition machine */ sc->sc_newstate = ic->ic_newstate; ic->ic_newstate = ural_newstate; ic->ic_raw_xmit = ural_raw_xmit; ieee80211_media_init(ic, ural_media_change, ieee80211_media_status); ieee80211_amrr_init(&sc->amrr, ic, IEEE80211_AMRR_MIN_SUCCESS_THRESHOLD, IEEE80211_AMRR_MAX_SUCCESS_THRESHOLD); bpfattach2(ifp, DLT_IEEE802_11_RADIO, sizeof (struct ieee80211_frame) + 64, &sc->sc_drvbpf); sc->sc_rxtap_len = sizeof sc->sc_rxtapu; sc->sc_rxtap.wr_ihdr.it_len = htole16(sc->sc_rxtap_len); sc->sc_rxtap.wr_ihdr.it_present = htole32(RAL_RX_RADIOTAP_PRESENT); sc->sc_txtap_len = sizeof sc->sc_txtapu; sc->sc_txtap.wt_ihdr.it_len = htole16(sc->sc_txtap_len); sc->sc_txtap.wt_ihdr.it_present = htole32(RAL_TX_RADIOTAP_PRESENT); if (bootverbose) ieee80211_announce(ic); return 0; } static int ural_detach(device_t self) { struct ural_softc *sc = device_get_softc(self); struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; ural_stop(sc); usb_rem_task(sc->sc_udev, &sc->sc_task); callout_stop(&sc->watchdog_ch); callout_stop(&sc->amrr_ch); if (sc->amrr_xfer != NULL) { usbd_free_xfer(sc->amrr_xfer); sc->amrr_xfer = NULL; } if (sc->sc_rx_pipeh != NULL) { usbd_abort_pipe(sc->sc_rx_pipeh); usbd_close_pipe(sc->sc_rx_pipeh); } if (sc->sc_tx_pipeh != NULL) { usbd_abort_pipe(sc->sc_tx_pipeh); usbd_close_pipe(sc->sc_tx_pipeh); } ural_free_rx_list(sc); ural_free_tx_list(sc); bpfdetach(ifp); ieee80211_ifdetach(ic); if_free(ifp); mtx_destroy(&sc->sc_mtx); return 0; } static int ural_alloc_tx_list(struct ural_softc *sc) { struct ural_tx_data *data; int i, error; sc->tx_queued = 0; for (i = 0; i < RAL_TX_LIST_COUNT; i++) { data = &sc->tx_data[i]; data->sc = sc; data->xfer = usbd_alloc_xfer(sc->sc_udev); if (data->xfer == NULL) { printf("%s: could not allocate tx xfer\n", device_get_nameunit(sc->sc_dev)); error = ENOMEM; goto fail; } data->buf = usbd_alloc_buffer(data->xfer, RAL_TX_DESC_SIZE + MCLBYTES); if (data->buf == NULL) { printf("%s: could not allocate tx buffer\n", device_get_nameunit(sc->sc_dev)); error = ENOMEM; goto fail; } } return 0; fail: ural_free_tx_list(sc); return error; } static void ural_free_tx_list(struct ural_softc *sc) { struct ural_tx_data *data; int i; for (i = 0; i < RAL_TX_LIST_COUNT; i++) { data = &sc->tx_data[i]; if (data->xfer != NULL) { usbd_free_xfer(data->xfer); data->xfer = NULL; } if (data->ni != NULL) { ieee80211_free_node(data->ni); data->ni = NULL; } } } static int ural_alloc_rx_list(struct ural_softc *sc) { struct ural_rx_data *data; int i, error; for (i = 0; i < RAL_RX_LIST_COUNT; i++) { data = &sc->rx_data[i]; data->sc = sc; data->xfer = usbd_alloc_xfer(sc->sc_udev); if (data->xfer == NULL) { printf("%s: could not allocate rx xfer\n", device_get_nameunit(sc->sc_dev)); error = ENOMEM; goto fail; } if (usbd_alloc_buffer(data->xfer, MCLBYTES) == NULL) { printf("%s: could not allocate rx buffer\n", device_get_nameunit(sc->sc_dev)); error = ENOMEM; goto fail; } data->m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); if (data->m == NULL) { printf("%s: could not allocate rx mbuf\n", device_get_nameunit(sc->sc_dev)); error = ENOMEM; goto fail; } data->buf = mtod(data->m, uint8_t *); } return 0; fail: ural_free_tx_list(sc); return error; } static void ural_free_rx_list(struct ural_softc *sc) { struct ural_rx_data *data; int i; for (i = 0; i < RAL_RX_LIST_COUNT; i++) { data = &sc->rx_data[i]; if (data->xfer != NULL) { usbd_free_xfer(data->xfer); data->xfer = NULL; } if (data->m != NULL) { m_freem(data->m); data->m = NULL; } } } static int ural_media_change(struct ifnet *ifp) { struct ural_softc *sc = ifp->if_softc; int error; RAL_LOCK(sc); error = ieee80211_media_change(ifp); if (error != ENETRESET) { RAL_UNLOCK(sc); return error; } if ((ifp->if_flags & IFF_UP) && (ifp->if_drv_flags & IFF_DRV_RUNNING)) ural_init(sc); RAL_UNLOCK(sc); return 0; } static void ural_task(void *xarg) { struct ural_softc *sc = xarg; struct ieee80211com *ic = &sc->sc_ic; enum ieee80211_state ostate; struct ieee80211_node *ni; struct mbuf *m; ostate = ic->ic_state; RAL_LOCK(sc); switch (sc->sc_state) { case IEEE80211_S_INIT: if (ostate == IEEE80211_S_RUN) { /* abort TSF synchronization */ ural_write(sc, RAL_TXRX_CSR19, 0); /* force tx led to stop blinking */ ural_write(sc, RAL_MAC_CSR20, 0); } break; case IEEE80211_S_RUN: ni = ic->ic_bss; if (ic->ic_opmode != IEEE80211_M_MONITOR) { ural_update_slot(ic->ic_ifp); ural_set_txpreamble(sc); ural_set_basicrates(sc); ural_set_bssid(sc, ni->ni_bssid); } if (ic->ic_opmode == IEEE80211_M_HOSTAP || ic->ic_opmode == IEEE80211_M_IBSS) { m = ieee80211_beacon_alloc(ni, &sc->sc_bo); if (m == NULL) { printf("%s: could not allocate beacon\n", device_get_nameunit(sc->sc_dev)); return; } if (ural_tx_bcn(sc, m, ni) != 0) { printf("%s: could not send beacon\n", device_get_nameunit(sc->sc_dev)); return; } } /* make tx led blink on tx (controlled by ASIC) */ ural_write(sc, RAL_MAC_CSR20, 1); if (ic->ic_opmode != IEEE80211_M_MONITOR) ural_enable_tsf_sync(sc); /* enable automatic rate adaptation in STA mode */ if (ic->ic_opmode == IEEE80211_M_STA && ic->ic_fixed_rate == IEEE80211_FIXED_RATE_NONE) ural_amrr_start(sc, ni); break; default: break; } RAL_UNLOCK(sc); sc->sc_newstate(ic, sc->sc_state, sc->sc_arg); } static void ural_scantask(void *arg) { struct ural_softc *sc = arg; struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; RAL_LOCK(sc); if (sc->sc_scan_action == URAL_SCAN_START) { /* abort TSF synchronization */ ural_write(sc, RAL_TXRX_CSR19, 0); ural_set_bssid(sc, ifp->if_broadcastaddr); } else if (sc->sc_scan_action == URAL_SET_CHANNEL) { mtx_lock(&Giant); ural_set_chan(sc, ic->ic_curchan); mtx_unlock(&Giant); } else { ural_enable_tsf_sync(sc); /* XXX keep local copy */ ural_set_bssid(sc, ic->ic_bss->ni_bssid); } RAL_UNLOCK(sc); } static int ural_newstate(struct ieee80211com *ic, enum ieee80211_state nstate, int arg) { struct ural_softc *sc = ic->ic_ifp->if_softc; callout_stop(&sc->amrr_ch); /* do it in a process context */ sc->sc_state = nstate; sc->sc_arg = arg; usb_rem_task(sc->sc_udev, &sc->sc_task); if (nstate == IEEE80211_S_INIT) sc->sc_newstate(ic, nstate, arg); else usb_add_task(sc->sc_udev, &sc->sc_task, USB_TASKQ_DRIVER); return 0; } /* quickly determine if a given rate is CCK or OFDM */ #define RAL_RATE_IS_OFDM(rate) ((rate) >= 12 && (rate) != 22) #define RAL_ACK_SIZE 14 /* 10 + 4(FCS) */ #define RAL_CTS_SIZE 14 /* 10 + 4(FCS) */ #define RAL_SIFS 10 /* us */ #define RAL_RXTX_TURNAROUND 5 /* us */ /* * This function is only used by the Rx radiotap code. */ static int ural_rxrate(struct ural_rx_desc *desc) { if (le32toh(desc->flags) & RAL_RX_OFDM) { /* reverse function of ural_plcp_signal */ switch (desc->rate) { case 0xb: return 12; case 0xf: return 18; case 0xa: return 24; case 0xe: return 36; case 0x9: return 48; case 0xd: return 72; case 0x8: return 96; case 0xc: return 108; } } else { if (desc->rate == 10) return 2; if (desc->rate == 20) return 4; if (desc->rate == 55) return 11; if (desc->rate == 110) return 22; } return 2; /* should not get there */ } static void ural_txeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) { struct ural_tx_data *data = priv; struct ural_softc *sc = data->sc; struct ifnet *ifp = sc->sc_ic.ic_ifp; if (data->m->m_flags & M_TXCB) ieee80211_process_callback(data->ni, data->m, status == USBD_NORMAL_COMPLETION ? 0 : ETIMEDOUT); if (status != USBD_NORMAL_COMPLETION) { if (status == USBD_NOT_STARTED || status == USBD_CANCELLED) return; printf("%s: could not transmit buffer: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(status)); if (status == USBD_STALLED) usbd_clear_endpoint_stall_async(sc->sc_rx_pipeh); ifp->if_oerrors++; /* XXX mbuf leak? */ return; } m_freem(data->m); data->m = NULL; ieee80211_free_node(data->ni); data->ni = NULL; sc->tx_queued--; ifp->if_opackets++; DPRINTFN(10, ("tx done\n")); sc->sc_tx_timer = 0; ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; ural_start(ifp); } static void ural_rxeof(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) { struct ural_rx_data *data = priv; struct ural_softc *sc = data->sc; struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; struct ural_rx_desc *desc; struct ieee80211_frame *wh; struct ieee80211_node *ni; struct mbuf *mnew, *m; int len; if (status != USBD_NORMAL_COMPLETION) { if (status == USBD_NOT_STARTED || status == USBD_CANCELLED) return; if (status == USBD_STALLED) usbd_clear_endpoint_stall_async(sc->sc_rx_pipeh); goto skip; } usbd_get_xfer_status(xfer, NULL, NULL, &len, NULL); if (len < RAL_RX_DESC_SIZE + IEEE80211_MIN_LEN) { DPRINTF(("%s: xfer too short %d\n", device_get_nameunit(sc->sc_dev), len)); ifp->if_ierrors++; goto skip; } /* rx descriptor is located at the end */ desc = (struct ural_rx_desc *)(data->buf + len - RAL_RX_DESC_SIZE); if ((le32toh(desc->flags) & RAL_RX_PHY_ERROR) || (le32toh(desc->flags) & RAL_RX_CRC_ERROR)) { /* * This should not happen since we did not request to receive * those frames when we filled RAL_TXRX_CSR2. */ DPRINTFN(5, ("PHY or CRC error\n")); ifp->if_ierrors++; goto skip; } mnew = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR); if (mnew == NULL) { ifp->if_ierrors++; goto skip; } m = data->m; data->m = mnew; data->buf = mtod(data->m, uint8_t *); /* finalize mbuf */ m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = (le32toh(desc->flags) >> 16) & 0xfff; if (bpf_peers_present(sc->sc_drvbpf)) { struct ural_rx_radiotap_header *tap = &sc->sc_rxtap; tap->wr_flags = IEEE80211_RADIOTAP_F_FCS; tap->wr_rate = ural_rxrate(desc); tap->wr_chan_freq = htole16(ic->ic_curchan->ic_freq); tap->wr_chan_flags = htole16(ic->ic_curchan->ic_flags); tap->wr_antenna = sc->rx_ant; tap->wr_antsignal = URAL_RSSI(desc->rssi); bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_rxtap_len, m); } /* Strip trailing 802.11 MAC FCS. */ m_adj(m, -IEEE80211_CRC_LEN); wh = mtod(m, struct ieee80211_frame *); ni = ieee80211_find_rxnode(ic, (struct ieee80211_frame_min *)wh); /* send the frame to the 802.11 layer */ ieee80211_input(ic, m, ni, URAL_RSSI(desc->rssi), RAL_NOISE_FLOOR, 0); /* node is no longer needed */ ieee80211_free_node(ni); DPRINTFN(15, ("rx done\n")); skip: /* setup a new transfer */ usbd_setup_xfer(xfer, sc->sc_rx_pipeh, data, data->buf, MCLBYTES, USBD_SHORT_XFER_OK, USBD_NO_TIMEOUT, ural_rxeof); usbd_transfer(xfer); } /* * Return the expected ack rate for a frame transmitted at rate `rate'. * XXX: this should depend on the destination node basic rate set. */ static int ural_ack_rate(struct ieee80211com *ic, int rate) { switch (rate) { /* CCK rates */ case 2: return 2; case 4: case 11: case 22: return (ic->ic_curmode == IEEE80211_MODE_11B) ? 4 : rate; /* OFDM rates */ case 12: case 18: return 12; case 24: case 36: return 24; case 48: case 72: case 96: case 108: return 48; } /* default to 1Mbps */ return 2; } /* * Compute the duration (in us) needed to transmit `len' bytes at rate `rate'. * The function automatically determines the operating mode depending on the * given rate. `flags' indicates whether short preamble is in use or not. */ static uint16_t ural_txtime(int len, int rate, uint32_t flags) { uint16_t txtime; if (RAL_RATE_IS_OFDM(rate)) { /* IEEE Std 802.11a-1999, pp. 37 */ txtime = (8 + 4 * len + 3 + rate - 1) / rate; txtime = 16 + 4 + 4 * txtime + 6; } else { /* IEEE Std 802.11b-1999, pp. 28 */ txtime = (16 * len + rate - 1) / rate; if (rate != 2 && (flags & IEEE80211_F_SHPREAMBLE)) txtime += 72 + 24; else txtime += 144 + 48; } return txtime; } static uint8_t ural_plcp_signal(int rate) { switch (rate) { /* CCK rates (returned values are device-dependent) */ case 2: return 0x0; case 4: return 0x1; case 11: return 0x2; case 22: return 0x3; /* OFDM rates (cf IEEE Std 802.11a-1999, pp. 14 Table 80) */ case 12: return 0xb; case 18: return 0xf; case 24: return 0xa; case 36: return 0xe; case 48: return 0x9; case 72: return 0xd; case 96: return 0x8; case 108: return 0xc; /* unsupported rates (should not get there) */ default: return 0xff; } } static void ural_setup_tx_desc(struct ural_softc *sc, struct ural_tx_desc *desc, uint32_t flags, int len, int rate) { struct ieee80211com *ic = &sc->sc_ic; uint16_t plcp_length; int remainder; desc->flags = htole32(flags); desc->flags |= htole32(RAL_TX_NEWSEQ); desc->flags |= htole32(len << 16); desc->wme = htole16(RAL_AIFSN(2) | RAL_LOGCWMIN(3) | RAL_LOGCWMAX(5)); desc->wme |= htole16(RAL_IVOFFSET(sizeof (struct ieee80211_frame))); /* setup PLCP fields */ desc->plcp_signal = ural_plcp_signal(rate); desc->plcp_service = 4; len += IEEE80211_CRC_LEN; if (RAL_RATE_IS_OFDM(rate)) { desc->flags |= htole32(RAL_TX_OFDM); plcp_length = len & 0xfff; desc->plcp_length_hi = plcp_length >> 6; desc->plcp_length_lo = plcp_length & 0x3f; } else { plcp_length = (16 * len + rate - 1) / rate; if (rate == 22) { remainder = (16 * len) % 22; if (remainder != 0 && remainder < 7) desc->plcp_service |= RAL_PLCP_LENGEXT; } desc->plcp_length_hi = plcp_length >> 8; desc->plcp_length_lo = plcp_length & 0xff; if (rate != 2 && (ic->ic_flags & IEEE80211_F_SHPREAMBLE)) desc->plcp_signal |= 0x08; } desc->iv = 0; desc->eiv = 0; } #define RAL_TX_TIMEOUT 5000 static int ural_tx_bcn(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) { struct ural_tx_desc *desc; usbd_xfer_handle xfer; uint8_t cmd = 0; usbd_status error; uint8_t *buf; int xferlen, rate; rate = IEEE80211_IS_CHAN_5GHZ(ni->ni_chan) ? 12 : 2; xfer = usbd_alloc_xfer(sc->sc_udev); if (xfer == NULL) return ENOMEM; /* xfer length needs to be a multiple of two! */ xferlen = (RAL_TX_DESC_SIZE + m0->m_pkthdr.len + 1) & ~1; buf = usbd_alloc_buffer(xfer, xferlen); if (buf == NULL) { usbd_free_xfer(xfer); return ENOMEM; } usbd_setup_xfer(xfer, sc->sc_tx_pipeh, NULL, &cmd, sizeof cmd, USBD_FORCE_SHORT_XFER, RAL_TX_TIMEOUT, NULL); error = usbd_sync_transfer(xfer); if (error != 0) { usbd_free_xfer(xfer); return error; } desc = (struct ural_tx_desc *)buf; m_copydata(m0, 0, m0->m_pkthdr.len, buf + RAL_TX_DESC_SIZE); ural_setup_tx_desc(sc, desc, RAL_TX_IFS_NEWBACKOFF | RAL_TX_TIMESTAMP, m0->m_pkthdr.len, rate); DPRINTFN(10, ("sending beacon frame len=%u rate=%u xfer len=%u\n", m0->m_pkthdr.len, rate, xferlen)); usbd_setup_xfer(xfer, sc->sc_tx_pipeh, NULL, buf, xferlen, USBD_FORCE_SHORT_XFER | USBD_NO_COPY, RAL_TX_TIMEOUT, NULL); error = usbd_sync_transfer(xfer); usbd_free_xfer(xfer); return error; } static int ural_tx_mgt(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) { struct ieee80211com *ic = &sc->sc_ic; struct ural_tx_desc *desc; struct ural_tx_data *data; struct ieee80211_frame *wh; uint32_t flags = 0; uint16_t dur; usbd_status error; int xferlen, rate; data = &sc->tx_data[0]; desc = (struct ural_tx_desc *)data->buf; rate = IEEE80211_IS_CHAN_5GHZ(ic->ic_curchan) ? 12 : 2; data->m = m0; data->ni = ni; wh = mtod(m0, struct ieee80211_frame *); if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { flags |= RAL_TX_ACK; dur = ural_txtime(RAL_ACK_SIZE, rate, ic->ic_flags) + RAL_SIFS; *(uint16_t *)wh->i_dur = htole16(dur); /* tell hardware to add timestamp for probe responses */ if ((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == IEEE80211_FC0_TYPE_MGT && (wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK) == IEEE80211_FC0_SUBTYPE_PROBE_RESP) flags |= RAL_TX_TIMESTAMP; } if (bpf_peers_present(sc->sc_drvbpf)) { struct ural_tx_radiotap_header *tap = &sc->sc_txtap; tap->wt_flags = 0; tap->wt_rate = rate; tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq); tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags); tap->wt_antenna = sc->tx_ant; bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m0); } m_copydata(m0, 0, m0->m_pkthdr.len, data->buf + RAL_TX_DESC_SIZE); ural_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate); /* align end on a 2-bytes boundary */ xferlen = (RAL_TX_DESC_SIZE + m0->m_pkthdr.len + 1) & ~1; /* * No space left in the last URB to store the extra 2 bytes, force * sending of another URB. */ if ((xferlen % 64) == 0) xferlen += 2; DPRINTFN(10, ("sending mgt frame len=%u rate=%u xfer len=%u\n", m0->m_pkthdr.len, rate, xferlen)); usbd_setup_xfer(data->xfer, sc->sc_tx_pipeh, data, data->buf, xferlen, USBD_FORCE_SHORT_XFER | USBD_NO_COPY, RAL_TX_TIMEOUT, ural_txeof); error = usbd_transfer(data->xfer); if (error != USBD_NORMAL_COMPLETION && error != USBD_IN_PROGRESS) { m_freem(m0); data->m = NULL; data->ni = NULL; return error; } sc->tx_queued++; return 0; } static int ural_tx_raw(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni, const struct ieee80211_bpf_params *params) { struct ieee80211com *ic = &sc->sc_ic; struct ural_tx_desc *desc; struct ural_tx_data *data; uint32_t flags; usbd_status error; int xferlen, rate; data = &sc->tx_data[0]; desc = (struct ural_tx_desc *)data->buf; rate = params->ibp_rate0 & IEEE80211_RATE_VAL; /* XXX validate */ if (rate == 0) { m_freem(m0); return EINVAL; } if (bpf_peers_present(sc->sc_drvbpf)) { struct ural_tx_radiotap_header *tap = &sc->sc_txtap; tap->wt_flags = 0; tap->wt_rate = rate; tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq); tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags); tap->wt_antenna = sc->tx_ant; bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m0); } data->m = m0; data->ni = ni; flags = 0; if ((params->ibp_flags & IEEE80211_BPF_NOACK) == 0) flags |= RAL_TX_ACK; m_copydata(m0, 0, m0->m_pkthdr.len, data->buf + RAL_TX_DESC_SIZE); /* XXX need to setup descriptor ourself */ ural_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate); /* align end on a 2-bytes boundary */ xferlen = (RAL_TX_DESC_SIZE + m0->m_pkthdr.len + 1) & ~1; /* * No space left in the last URB to store the extra 2 bytes, force * sending of another URB. */ if ((xferlen % 64) == 0) xferlen += 2; DPRINTFN(10, ("sending raw frame len=%u rate=%u xfer len=%u\n", m0->m_pkthdr.len, rate, xferlen)); usbd_setup_xfer(data->xfer, sc->sc_tx_pipeh, data, data->buf, xferlen, USBD_FORCE_SHORT_XFER | USBD_NO_COPY, RAL_TX_TIMEOUT, ural_txeof); error = usbd_transfer(data->xfer); if (error != USBD_NORMAL_COMPLETION && error != USBD_IN_PROGRESS) { m_freem(m0); data->m = NULL; data->ni = NULL; return error; } sc->tx_queued++; return 0; } static int ural_tx_data(struct ural_softc *sc, struct mbuf *m0, struct ieee80211_node *ni) { struct ieee80211com *ic = &sc->sc_ic; struct ural_tx_desc *desc; struct ural_tx_data *data; struct ieee80211_frame *wh; struct ieee80211_key *k; uint32_t flags = 0; uint16_t dur; usbd_status error; int xferlen, rate; wh = mtod(m0, struct ieee80211_frame *); if (ic->ic_fixed_rate != IEEE80211_FIXED_RATE_NONE) rate = ic->ic_fixed_rate; else rate = ni->ni_rates.rs_rates[ni->ni_txrate]; rate &= IEEE80211_RATE_VAL; if (wh->i_fc[1] & IEEE80211_FC1_WEP) { k = ieee80211_crypto_encap(ic, ni, m0); if (k == NULL) { m_freem(m0); return ENOBUFS; } /* packet header may have moved, reset our local pointer */ wh = mtod(m0, struct ieee80211_frame *); } data = &sc->tx_data[0]; desc = (struct ural_tx_desc *)data->buf; data->m = m0; data->ni = ni; if (!IEEE80211_IS_MULTICAST(wh->i_addr1)) { flags |= RAL_TX_ACK; flags |= RAL_TX_RETRY(7); dur = ural_txtime(RAL_ACK_SIZE, ural_ack_rate(ic, rate), ic->ic_flags) + RAL_SIFS; *(uint16_t *)wh->i_dur = htole16(dur); } if (bpf_peers_present(sc->sc_drvbpf)) { struct ural_tx_radiotap_header *tap = &sc->sc_txtap; tap->wt_flags = 0; tap->wt_rate = rate; tap->wt_chan_freq = htole16(ic->ic_curchan->ic_freq); tap->wt_chan_flags = htole16(ic->ic_curchan->ic_flags); tap->wt_antenna = sc->tx_ant; bpf_mtap2(sc->sc_drvbpf, tap, sc->sc_txtap_len, m0); } m_copydata(m0, 0, m0->m_pkthdr.len, data->buf + RAL_TX_DESC_SIZE); ural_setup_tx_desc(sc, desc, flags, m0->m_pkthdr.len, rate); /* align end on a 2-bytes boundary */ xferlen = (RAL_TX_DESC_SIZE + m0->m_pkthdr.len + 1) & ~1; /* * No space left in the last URB to store the extra 2 bytes, force * sending of another URB. */ if ((xferlen % 64) == 0) xferlen += 2; DPRINTFN(10, ("sending data frame len=%u rate=%u xfer len=%u\n", m0->m_pkthdr.len, rate, xferlen)); usbd_setup_xfer(data->xfer, sc->sc_tx_pipeh, data, data->buf, xferlen, USBD_FORCE_SHORT_XFER | USBD_NO_COPY, RAL_TX_TIMEOUT, ural_txeof); error = usbd_transfer(data->xfer); if (error != USBD_NORMAL_COMPLETION && error != USBD_IN_PROGRESS) { m_freem(m0); data->m = NULL; data->ni = NULL; return error; } sc->tx_queued++; return 0; } static void ural_start(struct ifnet *ifp) { struct ural_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; struct mbuf *m0; struct ether_header *eh; struct ieee80211_node *ni; for (;;) { IF_POLL(&ic->ic_mgtq, m0); if (m0 != NULL) { if (sc->tx_queued >= RAL_TX_LIST_COUNT) { ifp->if_drv_flags |= IFF_DRV_OACTIVE; break; } IF_DEQUEUE(&ic->ic_mgtq, m0); ni = (struct ieee80211_node *)m0->m_pkthdr.rcvif; m0->m_pkthdr.rcvif = NULL; if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (ural_tx_mgt(sc, m0, ni) != 0) { ieee80211_free_node(ni); break; } } else { if (ic->ic_state != IEEE80211_S_RUN) break; IFQ_DRV_DEQUEUE(&ifp->if_snd, m0); if (m0 == NULL) break; if (sc->tx_queued >= RAL_TX_LIST_COUNT) { IFQ_DRV_PREPEND(&ifp->if_snd, m0); ifp->if_drv_flags |= IFF_DRV_OACTIVE; break; } /* * Cancel any background scan. */ if (ic->ic_flags & IEEE80211_F_SCAN) ieee80211_cancel_scan(ic); if (m0->m_len < sizeof (struct ether_header) && !(m0 = m_pullup(m0, sizeof (struct ether_header)))) continue; eh = mtod(m0, struct ether_header *); ni = ieee80211_find_txnode(ic, eh->ether_dhost); if (ni == NULL) { m_freem(m0); continue; } BPF_MTAP(ifp, m0); m0 = ieee80211_encap(ic, m0, ni); if (m0 == NULL) { ieee80211_free_node(ni); continue; } if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (ural_tx_data(sc, m0, ni) != 0) { ieee80211_free_node(ni); ifp->if_oerrors++; break; } } sc->sc_tx_timer = 5; ic->ic_lastdata = ticks; callout_reset(&sc->watchdog_ch, hz, ural_watchdog, sc); } } static void ural_watchdog(void *arg) { struct ural_softc *sc = (struct ural_softc *)arg; RAL_LOCK(sc); if (sc->sc_tx_timer > 0) { if (--sc->sc_tx_timer == 0) { device_printf(sc->sc_dev, "device timeout\n"); /*ural_init(sc); XXX needs a process context! */ sc->sc_ifp->if_oerrors++; RAL_UNLOCK(sc); return; } callout_reset(&sc->watchdog_ch, hz, ural_watchdog, sc); } RAL_UNLOCK(sc); } /* * This function allows for fast channel switching in monitor mode (used by * net-mgmt/kismet). In IBSS mode, we must explicitly reset the interface to * generate a new beacon frame. */ static int ural_reset(struct ifnet *ifp) { struct ural_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; if (ic->ic_opmode != IEEE80211_M_MONITOR) return ENETRESET; ural_set_chan(sc, ic->ic_curchan); return 0; } static int ural_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct ural_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; int error = 0; RAL_LOCK(sc); switch (cmd) { case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { if (ifp->if_drv_flags & IFF_DRV_RUNNING) ural_update_promisc(sc); else ural_init(sc); } else { if (ifp->if_drv_flags & IFF_DRV_RUNNING) ural_stop(sc); } break; default: error = ieee80211_ioctl(ic, cmd, data); } if (error == ENETRESET) { if ((ifp->if_flags & IFF_UP) && (ifp->if_drv_flags & IFF_DRV_RUNNING) && (ic->ic_roaming != IEEE80211_ROAMING_MANUAL)) ural_init(sc); error = 0; } RAL_UNLOCK(sc); return error; } static void ural_set_testmode(struct ural_softc *sc) { usb_device_request_t req; usbd_status error; req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = RAL_VENDOR_REQUEST; USETW(req.wValue, 4); USETW(req.wIndex, 1); USETW(req.wLength, 0); error = usbd_do_request(sc->sc_udev, &req, NULL); if (error != 0) { printf("%s: could not set test mode: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); } } static void ural_eeprom_read(struct ural_softc *sc, uint16_t addr, void *buf, int len) { usb_device_request_t req; usbd_status error; req.bmRequestType = UT_READ_VENDOR_DEVICE; req.bRequest = RAL_READ_EEPROM; USETW(req.wValue, 0); USETW(req.wIndex, addr); USETW(req.wLength, len); error = usbd_do_request(sc->sc_udev, &req, buf); if (error != 0) { printf("%s: could not read EEPROM: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); } } static uint16_t ural_read(struct ural_softc *sc, uint16_t reg) { usb_device_request_t req; usbd_status error; uint16_t val; req.bmRequestType = UT_READ_VENDOR_DEVICE; req.bRequest = RAL_READ_MAC; USETW(req.wValue, 0); USETW(req.wIndex, reg); USETW(req.wLength, sizeof (uint16_t)); error = usbd_do_request(sc->sc_udev, &req, &val); if (error != 0) { printf("%s: could not read MAC register: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); return 0; } return le16toh(val); } static void ural_read_multi(struct ural_softc *sc, uint16_t reg, void *buf, int len) { usb_device_request_t req; usbd_status error; req.bmRequestType = UT_READ_VENDOR_DEVICE; req.bRequest = RAL_READ_MULTI_MAC; USETW(req.wValue, 0); USETW(req.wIndex, reg); USETW(req.wLength, len); error = usbd_do_request(sc->sc_udev, &req, buf); if (error != 0) { printf("%s: could not read MAC register: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); } } static void ural_write(struct ural_softc *sc, uint16_t reg, uint16_t val) { usb_device_request_t req; usbd_status error; req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = RAL_WRITE_MAC; USETW(req.wValue, val); USETW(req.wIndex, reg); USETW(req.wLength, 0); error = usbd_do_request(sc->sc_udev, &req, NULL); if (error != 0) { printf("%s: could not write MAC register: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); } } static void ural_write_multi(struct ural_softc *sc, uint16_t reg, void *buf, int len) { usb_device_request_t req; usbd_status error; req.bmRequestType = UT_WRITE_VENDOR_DEVICE; req.bRequest = RAL_WRITE_MULTI_MAC; USETW(req.wValue, 0); USETW(req.wIndex, reg); USETW(req.wLength, len); error = usbd_do_request(sc->sc_udev, &req, buf); if (error != 0) { printf("%s: could not write MAC register: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); } } static void ural_bbp_write(struct ural_softc *sc, uint8_t reg, uint8_t val) { uint16_t tmp; int ntries; for (ntries = 0; ntries < 5; ntries++) { if (!(ural_read(sc, RAL_PHY_CSR8) & RAL_BBP_BUSY)) break; } if (ntries == 5) { printf("%s: could not write to BBP\n", device_get_nameunit(sc->sc_dev)); return; } tmp = reg << 8 | val; ural_write(sc, RAL_PHY_CSR7, tmp); } static uint8_t ural_bbp_read(struct ural_softc *sc, uint8_t reg) { uint16_t val; int ntries; val = RAL_BBP_WRITE | reg << 8; ural_write(sc, RAL_PHY_CSR7, val); for (ntries = 0; ntries < 5; ntries++) { if (!(ural_read(sc, RAL_PHY_CSR8) & RAL_BBP_BUSY)) break; } if (ntries == 5) { printf("%s: could not read BBP\n", device_get_nameunit(sc->sc_dev)); return 0; } return ural_read(sc, RAL_PHY_CSR7) & 0xff; } static void ural_rf_write(struct ural_softc *sc, uint8_t reg, uint32_t val) { uint32_t tmp; int ntries; for (ntries = 0; ntries < 5; ntries++) { if (!(ural_read(sc, RAL_PHY_CSR10) & RAL_RF_LOBUSY)) break; } if (ntries == 5) { printf("%s: could not write to RF\n", device_get_nameunit(sc->sc_dev)); return; } tmp = RAL_RF_BUSY | RAL_RF_20BIT | (val & 0xfffff) << 2 | (reg & 0x3); ural_write(sc, RAL_PHY_CSR9, tmp & 0xffff); ural_write(sc, RAL_PHY_CSR10, tmp >> 16); /* remember last written value in sc */ sc->rf_regs[reg] = val; DPRINTFN(15, ("RF R[%u] <- 0x%05x\n", reg & 0x3, val & 0xfffff)); } static void ural_scan_start(struct ieee80211com *ic) { struct ural_softc *sc = ic->ic_ifp->if_softc; usb_rem_task(sc->sc_udev, &sc->sc_scantask); /* do it in a process context */ sc->sc_scan_action = URAL_SCAN_START; usb_add_task(sc->sc_udev, &sc->sc_scantask, USB_TASKQ_DRIVER); } static void ural_scan_end(struct ieee80211com *ic) { struct ural_softc *sc = ic->ic_ifp->if_softc; usb_rem_task(sc->sc_udev, &sc->sc_scantask); /* do it in a process context */ sc->sc_scan_action = URAL_SCAN_END; usb_add_task(sc->sc_udev, &sc->sc_scantask, USB_TASKQ_DRIVER); } static void ural_set_channel(struct ieee80211com *ic) { struct ural_softc *sc = ic->ic_ifp->if_softc; usb_rem_task(sc->sc_udev, &sc->sc_scantask); /* do it in a process context */ sc->sc_scan_action = URAL_SET_CHANNEL; usb_add_task(sc->sc_udev, &sc->sc_scantask, USB_TASKQ_DRIVER); } static void ural_set_chan(struct ural_softc *sc, struct ieee80211_channel *c) { struct ieee80211com *ic = &sc->sc_ic; uint8_t power, tmp; u_int i, chan; chan = ieee80211_chan2ieee(ic, c); if (chan == 0 || chan == IEEE80211_CHAN_ANY) return; if (IEEE80211_IS_CHAN_2GHZ(c)) power = min(sc->txpow[chan - 1], 31); else power = 31; /* adjust txpower using ifconfig settings */ power -= (100 - ic->ic_txpowlimit) / 8; DPRINTFN(2, ("setting channel to %u, txpower to %u\n", chan, power)); switch (sc->rf_rev) { case RAL_RF_2522: ural_rf_write(sc, RAL_RF1, 0x00814); ural_rf_write(sc, RAL_RF2, ural_rf2522_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x00040); break; case RAL_RF_2523: ural_rf_write(sc, RAL_RF1, 0x08804); ural_rf_write(sc, RAL_RF2, ural_rf2523_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x38044); ural_rf_write(sc, RAL_RF4, (chan == 14) ? 0x00280 : 0x00286); break; case RAL_RF_2524: ural_rf_write(sc, RAL_RF1, 0x0c808); ural_rf_write(sc, RAL_RF2, ural_rf2524_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x00040); ural_rf_write(sc, RAL_RF4, (chan == 14) ? 0x00280 : 0x00286); break; case RAL_RF_2525: ural_rf_write(sc, RAL_RF1, 0x08808); ural_rf_write(sc, RAL_RF2, ural_rf2525_hi_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x18044); ural_rf_write(sc, RAL_RF4, (chan == 14) ? 0x00280 : 0x00286); ural_rf_write(sc, RAL_RF1, 0x08808); ural_rf_write(sc, RAL_RF2, ural_rf2525_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x18044); ural_rf_write(sc, RAL_RF4, (chan == 14) ? 0x00280 : 0x00286); break; case RAL_RF_2525E: ural_rf_write(sc, RAL_RF1, 0x08808); ural_rf_write(sc, RAL_RF2, ural_rf2525e_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x18044); ural_rf_write(sc, RAL_RF4, (chan == 14) ? 0x00286 : 0x00282); break; case RAL_RF_2526: ural_rf_write(sc, RAL_RF2, ural_rf2526_hi_r2[chan - 1]); ural_rf_write(sc, RAL_RF4, (chan & 1) ? 0x00386 : 0x00381); ural_rf_write(sc, RAL_RF1, 0x08804); ural_rf_write(sc, RAL_RF2, ural_rf2526_r2[chan - 1]); ural_rf_write(sc, RAL_RF3, power << 7 | 0x18044); ural_rf_write(sc, RAL_RF4, (chan & 1) ? 0x00386 : 0x00381); break; /* dual-band RF */ case RAL_RF_5222: for (i = 0; ural_rf5222[i].chan != chan; i++); ural_rf_write(sc, RAL_RF1, ural_rf5222[i].r1); ural_rf_write(sc, RAL_RF2, ural_rf5222[i].r2); ural_rf_write(sc, RAL_RF3, power << 7 | 0x00040); ural_rf_write(sc, RAL_RF4, ural_rf5222[i].r4); break; } if (ic->ic_opmode != IEEE80211_M_MONITOR && (ic->ic_flags & IEEE80211_F_SCAN) == 0) { /* set Japan filter bit for channel 14 */ tmp = ural_bbp_read(sc, 70); tmp &= ~RAL_JAPAN_FILTER; if (chan == 14) tmp |= RAL_JAPAN_FILTER; ural_bbp_write(sc, 70, tmp); /* clear CRC errors */ ural_read(sc, RAL_STA_CSR0); DELAY(10000); ural_disable_rf_tune(sc); DPRINTFN(2, ("disabling RF autotune - ENABLED\n")); } /* update basic rate set */ if (IEEE80211_IS_CHAN_B(c)) { /* 11b basic rates: 1, 2Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x3); } else if (IEEE80211_IS_CHAN_A(c)) { /* 11a basic rates: 6, 12, 24Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x150); } else { /* 11g basic rates: 1, 2, 5.5, 11, 6, 12, 24Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x15f); } } /* * Disable RF auto-tuning. */ static void ural_disable_rf_tune(struct ural_softc *sc) { uint32_t tmp; DPRINTFN(2, ("Count down to the crash RFTUNEa\n")); if (sc->rf_rev != RAL_RF_2523) { tmp = sc->rf_regs[RAL_RF1] & ~RAL_RF1_AUTOTUNE; ural_rf_write(sc, RAL_RF1, tmp); DPRINTFN(2, ("Count down to the crash RFTUNEb\n")); } DPRINTFN(2, ("Count down to the crash RFTUNEc\n")); tmp = sc->rf_regs[RAL_RF3] & ~RAL_RF3_AUTOTUNE; ural_rf_write(sc, RAL_RF3, tmp); DPRINTFN(2, ("disabling RF autotune\n")); } /* * Refer to IEEE Std 802.11-1999 pp. 123 for more information on TSF * synchronization. */ static void ural_enable_tsf_sync(struct ural_softc *sc) { struct ieee80211com *ic = &sc->sc_ic; uint16_t logcwmin, preload, tmp; /* first, disable TSF synchronization */ ural_write(sc, RAL_TXRX_CSR19, 0); tmp = (16 * ic->ic_bss->ni_intval) << 4; ural_write(sc, RAL_TXRX_CSR18, tmp); logcwmin = (ic->ic_opmode == IEEE80211_M_IBSS) ? 2 : 0; preload = (ic->ic_opmode == IEEE80211_M_IBSS) ? 320 : 6; tmp = logcwmin << 12 | preload; ural_write(sc, RAL_TXRX_CSR20, tmp); /* finally, enable TSF synchronization */ tmp = RAL_ENABLE_TSF | RAL_ENABLE_TBCN; if (ic->ic_opmode == IEEE80211_M_STA) tmp |= RAL_ENABLE_TSF_SYNC(1); else tmp |= RAL_ENABLE_TSF_SYNC(2) | RAL_ENABLE_BEACON_GENERATOR; ural_write(sc, RAL_TXRX_CSR19, tmp); DPRINTF(("enabling TSF synchronization\n")); } static void ural_update_slot(struct ifnet *ifp) { struct ural_softc *sc = ifp->if_softc; struct ieee80211com *ic = &sc->sc_ic; uint16_t slottime, sifs, eifs; slottime = (ic->ic_flags & IEEE80211_F_SHSLOT) ? 9 : 20; /* * These settings may sound a bit inconsistent but this is what the * reference driver does. */ if (ic->ic_curmode == IEEE80211_MODE_11B) { sifs = 16 - RAL_RXTX_TURNAROUND; eifs = 364; } else { sifs = 10 - RAL_RXTX_TURNAROUND; eifs = 64; } ural_write(sc, RAL_MAC_CSR10, slottime); ural_write(sc, RAL_MAC_CSR11, sifs); ural_write(sc, RAL_MAC_CSR12, eifs); } static void ural_set_txpreamble(struct ural_softc *sc) { uint16_t tmp; tmp = ural_read(sc, RAL_TXRX_CSR10); tmp &= ~RAL_SHORT_PREAMBLE; if (sc->sc_ic.ic_flags & IEEE80211_F_SHPREAMBLE) tmp |= RAL_SHORT_PREAMBLE; ural_write(sc, RAL_TXRX_CSR10, tmp); } static void ural_set_basicrates(struct ural_softc *sc) { struct ieee80211com *ic = &sc->sc_ic; /* update basic rate set */ if (ic->ic_curmode == IEEE80211_MODE_11B) { /* 11b basic rates: 1, 2Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x3); } else if (IEEE80211_IS_CHAN_5GHZ(ic->ic_bss->ni_chan)) { /* 11a basic rates: 6, 12, 24Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x150); } else { /* 11g basic rates: 1, 2, 5.5, 11, 6, 12, 24Mbps */ ural_write(sc, RAL_TXRX_CSR11, 0x15f); } } static void ural_set_bssid(struct ural_softc *sc, const uint8_t *bssid) { uint16_t tmp; tmp = bssid[0] | bssid[1] << 8; ural_write(sc, RAL_MAC_CSR5, tmp); tmp = bssid[2] | bssid[3] << 8; ural_write(sc, RAL_MAC_CSR6, tmp); tmp = bssid[4] | bssid[5] << 8; ural_write(sc, RAL_MAC_CSR7, tmp); DPRINTF(("setting BSSID to %6D\n", bssid, ":")); } static void ural_set_macaddr(struct ural_softc *sc, uint8_t *addr) { uint16_t tmp; tmp = addr[0] | addr[1] << 8; ural_write(sc, RAL_MAC_CSR2, tmp); tmp = addr[2] | addr[3] << 8; ural_write(sc, RAL_MAC_CSR3, tmp); tmp = addr[4] | addr[5] << 8; ural_write(sc, RAL_MAC_CSR4, tmp); DPRINTF(("setting MAC address to %6D\n", addr, ":")); } static void ural_update_promisc(struct ural_softc *sc) { struct ifnet *ifp = sc->sc_ic.ic_ifp; uint32_t tmp; tmp = ural_read(sc, RAL_TXRX_CSR2); tmp &= ~RAL_DROP_NOT_TO_ME; if (!(ifp->if_flags & IFF_PROMISC)) tmp |= RAL_DROP_NOT_TO_ME; ural_write(sc, RAL_TXRX_CSR2, tmp); DPRINTF(("%s promiscuous mode\n", (ifp->if_flags & IFF_PROMISC) ? "entering" : "leaving")); } static const char * ural_get_rf(int rev) { switch (rev) { case RAL_RF_2522: return "RT2522"; case RAL_RF_2523: return "RT2523"; case RAL_RF_2524: return "RT2524"; case RAL_RF_2525: return "RT2525"; case RAL_RF_2525E: return "RT2525e"; case RAL_RF_2526: return "RT2526"; case RAL_RF_5222: return "RT5222"; default: return "unknown"; } } static void ural_read_eeprom(struct ural_softc *sc) { struct ieee80211com *ic = &sc->sc_ic; uint16_t val; ural_eeprom_read(sc, RAL_EEPROM_CONFIG0, &val, 2); val = le16toh(val); sc->rf_rev = (val >> 11) & 0x7; sc->hw_radio = (val >> 10) & 0x1; sc->led_mode = (val >> 6) & 0x7; sc->rx_ant = (val >> 4) & 0x3; sc->tx_ant = (val >> 2) & 0x3; sc->nb_ant = val & 0x3; /* read MAC address */ ural_eeprom_read(sc, RAL_EEPROM_ADDRESS, ic->ic_myaddr, 6); /* read default values for BBP registers */ ural_eeprom_read(sc, RAL_EEPROM_BBP_BASE, sc->bbp_prom, 2 * 16); /* read Tx power for all b/g channels */ ural_eeprom_read(sc, RAL_EEPROM_TXPOWER, sc->txpow, 14); } static int ural_bbp_init(struct ural_softc *sc) { #define N(a) (sizeof (a) / sizeof ((a)[0])) int i, ntries; /* wait for BBP to be ready */ for (ntries = 0; ntries < 100; ntries++) { if (ural_bbp_read(sc, RAL_BBP_VERSION) != 0) break; DELAY(1000); } if (ntries == 100) { device_printf(sc->sc_dev, "timeout waiting for BBP\n"); return EIO; } /* initialize BBP registers to default values */ for (i = 0; i < N(ural_def_bbp); i++) ural_bbp_write(sc, ural_def_bbp[i].reg, ural_def_bbp[i].val); #if 0 /* initialize BBP registers to values stored in EEPROM */ for (i = 0; i < 16; i++) { if (sc->bbp_prom[i].reg == 0xff) continue; ural_bbp_write(sc, sc->bbp_prom[i].reg, sc->bbp_prom[i].val); } #endif return 0; #undef N } static void ural_set_txantenna(struct ural_softc *sc, int antenna) { uint16_t tmp; uint8_t tx; tx = ural_bbp_read(sc, RAL_BBP_TX) & ~RAL_BBP_ANTMASK; if (antenna == 1) tx |= RAL_BBP_ANTA; else if (antenna == 2) tx |= RAL_BBP_ANTB; else tx |= RAL_BBP_DIVERSITY; /* need to force I/Q flip for RF 2525e, 2526 and 5222 */ if (sc->rf_rev == RAL_RF_2525E || sc->rf_rev == RAL_RF_2526 || sc->rf_rev == RAL_RF_5222) tx |= RAL_BBP_FLIPIQ; ural_bbp_write(sc, RAL_BBP_TX, tx); /* update values in PHY_CSR5 and PHY_CSR6 */ tmp = ural_read(sc, RAL_PHY_CSR5) & ~0x7; ural_write(sc, RAL_PHY_CSR5, tmp | (tx & 0x7)); tmp = ural_read(sc, RAL_PHY_CSR6) & ~0x7; ural_write(sc, RAL_PHY_CSR6, tmp | (tx & 0x7)); } static void ural_set_rxantenna(struct ural_softc *sc, int antenna) { uint8_t rx; rx = ural_bbp_read(sc, RAL_BBP_RX) & ~RAL_BBP_ANTMASK; if (antenna == 1) rx |= RAL_BBP_ANTA; else if (antenna == 2) rx |= RAL_BBP_ANTB; else rx |= RAL_BBP_DIVERSITY; /* need to force no I/Q flip for RF 2525e and 2526 */ if (sc->rf_rev == RAL_RF_2525E || sc->rf_rev == RAL_RF_2526) rx &= ~RAL_BBP_FLIPIQ; ural_bbp_write(sc, RAL_BBP_RX, rx); } static void ural_init(void *priv) { #define N(a) (sizeof (a) / sizeof ((a)[0])) struct ural_softc *sc = priv; struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; struct ural_rx_data *data; uint16_t tmp; usbd_status error; int i, ntries; ural_set_testmode(sc); ural_write(sc, 0x308, 0x00f0); /* XXX magic */ ural_stop(sc); /* initialize MAC registers to default values */ for (i = 0; i < N(ural_def_mac); i++) ural_write(sc, ural_def_mac[i].reg, ural_def_mac[i].val); /* wait for BBP and RF to wake up (this can take a long time!) */ for (ntries = 0; ntries < 100; ntries++) { tmp = ural_read(sc, RAL_MAC_CSR17); if ((tmp & (RAL_BBP_AWAKE | RAL_RF_AWAKE)) == (RAL_BBP_AWAKE | RAL_RF_AWAKE)) break; DELAY(1000); } if (ntries == 100) { printf("%s: timeout waiting for BBP/RF to wakeup\n", device_get_nameunit(sc->sc_dev)); goto fail; } /* we're ready! */ ural_write(sc, RAL_MAC_CSR1, RAL_HOST_READY); /* set basic rate set (will be updated later) */ ural_write(sc, RAL_TXRX_CSR11, 0x15f); if (ural_bbp_init(sc) != 0) goto fail; ural_set_chan(sc, ic->ic_curchan); /* clear statistic registers (STA_CSR0 to STA_CSR10) */ ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof sc->sta); ural_set_txantenna(sc, sc->tx_ant); ural_set_rxantenna(sc, sc->rx_ant); IEEE80211_ADDR_COPY(ic->ic_myaddr, IF_LLADDR(ifp)); ural_set_macaddr(sc, ic->ic_myaddr); /* * Allocate xfer for AMRR statistics requests. */ sc->amrr_xfer = usbd_alloc_xfer(sc->sc_udev); if (sc->amrr_xfer == NULL) { printf("%s: could not allocate AMRR xfer\n", device_get_nameunit(sc->sc_dev)); goto fail; } /* * Open Tx and Rx USB bulk pipes. */ error = usbd_open_pipe(sc->sc_iface, sc->sc_tx_no, USBD_EXCLUSIVE_USE, &sc->sc_tx_pipeh); if (error != 0) { printf("%s: could not open Tx pipe: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); goto fail; } error = usbd_open_pipe(sc->sc_iface, sc->sc_rx_no, USBD_EXCLUSIVE_USE, &sc->sc_rx_pipeh); if (error != 0) { printf("%s: could not open Rx pipe: %s\n", device_get_nameunit(sc->sc_dev), usbd_errstr(error)); goto fail; } /* * Allocate Tx and Rx xfer queues. */ error = ural_alloc_tx_list(sc); if (error != 0) { printf("%s: could not allocate Tx list\n", device_get_nameunit(sc->sc_dev)); goto fail; } error = ural_alloc_rx_list(sc); if (error != 0) { printf("%s: could not allocate Rx list\n", device_get_nameunit(sc->sc_dev)); goto fail; } /* * Start up the receive pipe. */ for (i = 0; i < RAL_RX_LIST_COUNT; i++) { data = &sc->rx_data[i]; usbd_setup_xfer(data->xfer, sc->sc_rx_pipeh, data, data->buf, MCLBYTES, USBD_SHORT_XFER_OK, USBD_NO_TIMEOUT, ural_rxeof); usbd_transfer(data->xfer); } /* kick Rx */ tmp = RAL_DROP_PHY | RAL_DROP_CRC; if (ic->ic_opmode != IEEE80211_M_MONITOR) { tmp |= RAL_DROP_CTL | RAL_DROP_BAD_VERSION; if (ic->ic_opmode != IEEE80211_M_HOSTAP) tmp |= RAL_DROP_TODS; if (!(ifp->if_flags & IFF_PROMISC)) tmp |= RAL_DROP_NOT_TO_ME; } ural_write(sc, RAL_TXRX_CSR2, tmp); ifp->if_drv_flags &= ~IFF_DRV_OACTIVE; ifp->if_drv_flags |= IFF_DRV_RUNNING; if (ic->ic_opmode != IEEE80211_M_MONITOR) { if (ic->ic_roaming != IEEE80211_ROAMING_MANUAL) ieee80211_new_state(ic, IEEE80211_S_SCAN, -1); } else ieee80211_new_state(ic, IEEE80211_S_RUN, -1); return; fail: ural_stop(sc); #undef N } static void ural_stop(void *priv) { struct ural_softc *sc = priv; struct ieee80211com *ic = &sc->sc_ic; struct ifnet *ifp = ic->ic_ifp; sc->sc_tx_timer = 0; ifp->if_drv_flags &= ~(IFF_DRV_RUNNING | IFF_DRV_OACTIVE); ieee80211_new_state(ic, IEEE80211_S_INIT, -1); /* disable Rx */ ural_write(sc, RAL_TXRX_CSR2, RAL_DISABLE_RX); /* reset ASIC and BBP (but won't reset MAC registers!) */ ural_write(sc, RAL_MAC_CSR1, RAL_RESET_ASIC | RAL_RESET_BBP); ural_write(sc, RAL_MAC_CSR1, 0); if (sc->amrr_xfer != NULL) { usbd_free_xfer(sc->amrr_xfer); sc->amrr_xfer = NULL; } if (sc->sc_rx_pipeh != NULL) { usbd_abort_pipe(sc->sc_rx_pipeh); usbd_close_pipe(sc->sc_rx_pipeh); sc->sc_rx_pipeh = NULL; } if (sc->sc_tx_pipeh != NULL) { usbd_abort_pipe(sc->sc_tx_pipeh); usbd_close_pipe(sc->sc_tx_pipeh); sc->sc_tx_pipeh = NULL; } ural_free_rx_list(sc); ural_free_tx_list(sc); } static int ural_raw_xmit(struct ieee80211_node *ni, struct mbuf *m, const struct ieee80211_bpf_params *params) { struct ieee80211com *ic = ni->ni_ic; struct ifnet *ifp = ic->ic_ifp; struct ural_softc *sc = ifp->if_softc; /* prevent management frames from being sent if we're not ready */ if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { m_freem(m); ieee80211_free_node(ni); return ENETDOWN; } if (sc->tx_queued >= RAL_TX_LIST_COUNT) { ifp->if_drv_flags |= IFF_DRV_OACTIVE; m_freem(m); ieee80211_free_node(ni); return EIO; } if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m); ifp->if_opackets++; if (params == NULL) { /* * Legacy path; interpret frame contents to decide * precisely how to send the frame. */ if (ural_tx_mgt(sc, m, ni) != 0) goto bad; } else { /* * Caller supplied explicit parameters to use in * sending the frame. */ if (ural_tx_raw(sc, m, ni, params) != 0) goto bad; } sc->sc_tx_timer = 5; callout_reset(&sc->watchdog_ch, hz, ural_watchdog, sc); return 0; bad: ifp->if_oerrors++; ieee80211_free_node(ni); return EIO; /* XXX */ } static void ural_amrr_start(struct ural_softc *sc, struct ieee80211_node *ni) { int i; /* clear statistic registers (STA_CSR0 to STA_CSR10) */ ural_read_multi(sc, RAL_STA_CSR0, sc->sta, sizeof sc->sta); ieee80211_amrr_node_init(&sc->amrr, &sc->amn); /* set rate to some reasonable initial value */ for (i = ni->ni_rates.rs_nrates - 1; i > 0 && (ni->ni_rates.rs_rates[i] & IEEE80211_RATE_VAL) > 72; i--); ni->ni_txrate = i; callout_reset(&sc->amrr_ch, hz, ural_amrr_timeout, sc); } static void ural_amrr_timeout(void *arg) { struct ural_softc *sc = (struct ural_softc *)arg; usb_device_request_t req; /* * Asynchronously read statistic registers (cleared by read). */ req.bmRequestType = UT_READ_VENDOR_DEVICE; req.bRequest = RAL_READ_MULTI_MAC; USETW(req.wValue, 0); USETW(req.wIndex, RAL_STA_CSR0); USETW(req.wLength, sizeof sc->sta); usbd_setup_default_xfer(sc->amrr_xfer, sc->sc_udev, sc, USBD_DEFAULT_TIMEOUT, &req, sc->sta, sizeof sc->sta, 0, ural_amrr_update); (void)usbd_transfer(sc->amrr_xfer); } static void ural_amrr_update(usbd_xfer_handle xfer, usbd_private_handle priv, usbd_status status) { struct ural_softc *sc = (struct ural_softc *)priv; struct ifnet *ifp = sc->sc_ic.ic_ifp; if (status != USBD_NORMAL_COMPLETION) { device_printf(sc->sc_dev, "could not retrieve Tx statistics - " "cancelling automatic rate control\n"); return; } /* count TX retry-fail as Tx errors */ ifp->if_oerrors += sc->sta[9]; sc->amn.amn_retrycnt = sc->sta[7] + /* TX one-retry ok count */ sc->sta[8] + /* TX more-retry ok count */ sc->sta[9]; /* TX retry-fail count */ sc->amn.amn_txcnt = sc->amn.amn_retrycnt + sc->sta[6]; /* TX no-retry ok count */ ieee80211_amrr_choose(&sc->amrr, sc->sc_ic.ic_bss, &sc->amn); callout_reset(&sc->amrr_ch, hz, ural_amrr_timeout, sc); } >Release-Note: >Audit-Trail: >Unformatted: From paul.g.webster at googlemail.com Mon Apr 13 15:10:03 2009 From: paul.g.webster at googlemail.com (Paul Webster) Date: Mon Apr 13 15:45:45 2009 Subject: usb/133712 Message-ID: <200904132210.n3DMA3QU083006@freefall.freebsd.org> The following reply was made to PR usb/133712; it has been noted by GNATS. From: Paul Webster To: bug-followup@FreeBSD.org, paul.g.webster@googlemail.com Cc: Subject: RE: usb/133712 Date: Mon, 13 Apr 2009 21:58:26 +0000 --000e0cd32c2c5df51b046776d0c9 Content-Type: multipart/alternative; boundary=000e0cd32c2c5df516046776d0c7 --000e0cd32c2c5df516046776d0c7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I have created a diff that will negate the need for all the debug messages to fix the driver, on a second note im sorry if this gets posted twice im sure the first email/reply I wrote had the wrong subject.. --000e0cd32c2c5df516046776d0c7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I have created a diff that will negate the need for all the debug messages to fix the driver, on a second note im sorry if this gets posted twice im sure the first email/reply I wrote had the wrong subject..
--000e0cd32c2c5df516046776d0c7-- --000e0cd32c2c5df51b046776d0c9 Content-Type: application/octet-stream; name="if_ural.diff" Content-Disposition: attachment; filename="if_ural.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fthrmjul0 LS0tIC91c3Ivc3JjL3N5cy9kZXYvdXNiL2lmX3VyYWwuYwkyMDA5LTA0LTEzIDIyOjQ3OjIxLjAw MDAwMDAwMCArMDAwMAorKysgL3Jvb3QvZmJzZG9sZC9zcmMvc3lzL2Rldi91c2IvaWZfdXJhbC5j CTIwMDctMDktMTcgMTk6MDc6MjQuMDAwMDAwMDAwICswMDAwCkBAIC0xOTM3LDExICsxOTM3LDYg QEAKIAlpZiAoc2MtPnJmX3JldiAhPSBSQUxfUkZfMjUyMykgewogCQl0bXAgPSBzYy0+cmZfcmVn c1tSQUxfUkYxXSAmIH5SQUxfUkYxX0FVVE9UVU5FOwogCQl1cmFsX3JmX3dyaXRlKHNjLCBSQUxf UkYxLCB0bXApOwotCQlpZiAoc2MtPnJmX3JldiA9PSBSQUxfUkZfMjUyNikgeyAKLQkJLyogVGhp cyBzdG9wcyBhIHJhY2UgZXZlbnQgZW5kaW5nIGluIGEga2VybmVsIHBhbmljIG9jY3VyaW5nIG9u IHNvbWUgYWRhcHRlcnMgKi8KLQkJCURQUklOVEZOKDIsICgiUkFMX1JGXzI1MjYgd29ya2Fyb3Vu ZDogQWRkaW5nIDAuMSBzZWNvbmQgZGVsYXkuXG4iKSk7Ci0JCQlERUxBWSgxMDAwMDApOyAKLQkJ fQogCX0KIAogCXRtcCA9IHNjLT5yZl9yZWdzW1JBTF9SRjNdICYgflJBTF9SRjNfQVVUT1RVTkU7 Cg== --000e0cd32c2c5df51b046776d0c9-- From paul.g.webster at googlemail.com Mon Apr 13 16:10:03 2009 From: paul.g.webster at googlemail.com (Paul Webster) Date: Mon Apr 13 16:34:32 2009 Subject: usb/133712 Message-ID: <200904132310.n3DNA2YV063284@freefall.freebsd.org> The following reply was made to PR usb/133712; it has been noted by GNATS. From: Paul Webster To: bug-followup@FreeBSD.org, paul.g.webster@googlemail.com Cc: Subject: Re: usb/133712 Date: Mon, 13 Apr 2009 23:03:29 +0000 errr. no idea what happened there here it is in the body of the email: --- /usr/src/sys/dev/usb/if_ural.c 2009-04-13 22:47:21.000000000 +0000 +++ /root/fbsdold/src/sys/dev/usb/if_ural.c 2007-09-17 19:07:24.000000000 +0000 @@ -1937,11 +1937,6 @@ if (sc->rf_rev != RAL_RF_2523) { tmp = sc->rf_regs[RAL_RF1] & ~RAL_RF1_AUTOTUNE; ural_rf_write(sc, RAL_RF1, tmp); - if (sc->rf_rev == RAL_RF_2526) { - /* This stops a race event ending in a kernel panic occuring on some adapters */ - DPRINTFN(2, ("RAL_RF_2526 workaround: Adding 0.1 second delay.\n")); - DELAY(100000); - } } tmp = sc->rf_regs[RAL_RF3] & ~RAL_RF3_AUTOTUNE; From linimon at FreeBSD.org Mon Apr 13 17:26:28 2009 From: linimon at FreeBSD.org (linimon@FreeBSD.org) Date: Mon Apr 13 18:01:52 2009 Subject: usb/133714: Re: usb/133712: Message-ID: <200904140026.n3E0QQPp070952@freefall.freebsd.org> Old Synopsis: RE: 133712 New Synopsis: Re: usb/133712: State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Tue Apr 14 00:24:26 UTC 2009 State-Changed-Why: Misfiled followup to usb/133714; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Tue Apr 14 00:24:26 UTC 2009 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=133714 From alexbestms at math.uni-muenster.de Tue Apr 14 13:55:14 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Tue Apr 14 14:20:53 2009 Subject: Low perfomance when read from usb flash drive Message-ID: i'm getting 10000+0 records in 10000+0 records out 655360000 bytes transferred in 54.169996 secs (12098210 bytes/sec) running r191076. alex From torfinn.ingolfsen at broadpark.no Tue Apr 14 14:57:30 2009 From: torfinn.ingolfsen at broadpark.no (Torfinn Ingolfsen) Date: Tue Apr 14 15:22:12 2009 Subject: usb thermometer - TEMPer - FreeBSD Message-ID: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> Hello, I got a new usb gadget, a TEMPer[1]. According to info on the net, this thermometer is a I2C device hooked up to a usb serial chip[2, 3]. The usb-to-serial chip is a WinChipHead 340 / 341, so that should work with the uchcom[4] driver. There was discussion about MFC'in this driver to RELENG_7 in february last year[5], but it doesn't seem to have happened. I tried garbbing the uchcom driver files from cvsweb and compiling the driver on my RELENG_7, but that didn't work. RELENG_7 as in root@kg-work2# uname -a FreeBSD kg-work2.kg4.no 7.1-STABLE FreeBSD 7.1-STABLE #4: Sun Feb 8 20:56:08 CET 2009 root@kg-work2.kg4.no:/usr/obj/usr/src/sys/SX270 i386 Any hints on how I can get this gadget working on FreeBSD? References: 1) http://www.dealextreme.com/details.dx/sku.7003 2) http://err.no/personal/blog/tech/2008-07-22-10-17_kernel_patches_TEMPer_thermometer.html 3) http://tech.arantius.com/working-external-linux-thermometer 4) http://www.freebsd.org/cgi/man.cgi?query=uchcom&apropos=0&sektion=0&manpath=FreeBSD+8-current&format=html 5) http://markmail.org/message/4w324qx4usmnd4ic#query:uchcom+page:1+mid:ecwpudhls4jqpr5s+state:results -- Regards, Torfinn Ingolfsen From alexbestms at math.uni-muenster.de Thu Apr 16 02:01:47 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 02:51:52 2009 Subject: Suspend failed Message-ID: hi there, i'm using the following commands to deactivate and activate my mouse: usbconfig -u 1 -a 3 power_off usbconfig -u 1 -a 3 power_on which works great. if i issue the commands shortly after another this is what happens: ums0: at uhub1, port 2, addr 3 (disconnected) ums0: on usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 however. if i wait for some time before re-activating the mouse it flashes twice and this is what dmesg says: ums0: at uhub1, port 2, addr 3 (disconnected) ums0: on usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 ums0: Suspend failed the "Suspend failed" warning however isn't causing any problems. the mouse attaches just fine. i'm running r191076 (-CURRENT/usb2). cheers. alex From hselasky at c2i.net Thu Apr 16 03:55:31 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 16 04:19:28 2009 Subject: Suspend failed In-Reply-To: References: Message-ID: <200904161258.01528.hselasky@c2i.net> On Thursday 16 April 2009, Alexander Best wrote: > hi there, > > i'm using the following commands to deactivate and activate my mouse: > > usbconfig -u 1 -a 3 power_off > usbconfig -u 1 -a 3 power_on > > which works great. if i issue the commands shortly after another this is > what happens: > > ums0: at uhub1, port 2, addr 3 (disconnected) > ums0: on > usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 > > however. if i wait for some time before re-activating the mouse it flashes > twice and this is what dmesg says: > > ums0: at uhub1, port 2, addr 3 (disconnected) > ums0: on > usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 > ums0: Suspend failed > > the "Suspend failed" warning however isn't causing any problems. the mouse > attaches just fine. > > i'm running r191076 (-CURRENT/usb2). Try these patches: http://perforce.freebsd.org/chv.cgi?CH=160485 http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From alexbestms at math.uni-muenster.de Thu Apr 16 04:02:15 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 04:20:51 2009 Subject: Suspend failed In-Reply-To: <200904161258.01528.hselasky@c2i.net> Message-ID: thx a bunch. i'll check out the patches and see if that makes the warning go away. cheers. alex Hans Petter Selasky schrieb am 2009-04-16: > On Thursday 16 April 2009, Alexander Best wrote: > > hi there, > > i'm using the following commands to deactivate and activate my > > mouse: > > usbconfig -u 1 -a 3 power_off > > usbconfig -u 1 -a 3 power_on > > which works great. if i issue the commands shortly after another > > this is > > what happens: > > ums0: at uhub1, port 2, addr 3 (disconnected) > > ums0: > 3> on > > usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 > > however. if i wait for some time before re-activating the mouse it > > flashes > > twice and this is what dmesg says: > > ums0: at uhub1, port 2, addr 3 (disconnected) > > ums0: > 3> on > > usbus1 ums0: 7 buttons and [XYZ] coordinates ID=0 > > ums0: Suspend failed > > the "Suspend failed" warning however isn't causing any problems. > > the mouse > > attaches just fine. > > i'm running r191076 (-CURRENT/usb2). > Try these patches: > http://perforce.freebsd.org/chv.cgi?CH=160485 > http://perforce.freebsd.org/chv.cgi?CH=160413 > --HPS From hselasky at c2i.net Thu Apr 16 04:27:18 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 16 05:16:58 2009 Subject: Suspend failed In-Reply-To: References: Message-ID: <200904161329.50108.hselasky@c2i.net> On Thursday 16 April 2009, Alexander Best wrote: > thx a bunch. i'll check out the patches and see if that makes the warning > go away. > And this one. http://perforce.freebsd.org/chv.cgi?CH=160614 > > > > Try these patches: > > > > http://perforce.freebsd.org/chv.cgi?CH=160485 > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > > > --HPS From alexbestms at math.uni-muenster.de Thu Apr 16 05:09:43 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 05:36:19 2009 Subject: Suspend failed In-Reply-To: <200904161329.50108.hselasky@c2i.net> Message-ID: thanks. i'm compiling the kernel right now with all the patches in place. i had to get the following files from p4, because they don't seem to exist in -CURRENT: //depot/projects/usb/src/sys/dev/usb/usb_sw_transfer.c //depot/projects/usb/src/sys/dev/usb/usb_sw_transfer.h alex Hans Petter Selasky schrieb am 2009-04-16: > On Thursday 16 April 2009, Alexander Best wrote: > > thx a bunch. i'll check out the patches and see if that makes the > > warning > > go away. > And this one. > http://perforce.freebsd.org/chv.cgi?CH=160614 > > > Try these patches: > > > http://perforce.freebsd.org/chv.cgi?CH=160485 > > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > > --HPS From gavin at FreeBSD.org Thu Apr 16 05:54:14 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Thu Apr 16 06:44:26 2009 Subject: usb/127248: [ucom] panic while uplcom devices attaach and detach Message-ID: <200904161254.n3GCsCuU076988@freefall.freebsd.org> Old Synopsis: System crashes when many (7) serial port terminals (vt320-vt510) connected to the server via com to usb adapter and 2-usb hubs. New Synopsis: [ucom] panic while uplcom devices attaach and detach Responsible-Changed-From-To: freebsd-alpha->freebsd-usb Responsible-Changed-By: gavin Responsible-Changed-When: Thu Apr 16 12:49:29 UTC 2009 Responsible-Changed-Why: I suspect this isn't Alpha-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=127248 From alexbestms at math.uni-muenster.de Thu Apr 16 10:20:07 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 10:46:23 2009 Subject: Suspend failed In-Reply-To: <200904161329.50108.hselasky@c2i.net> Message-ID: after recompiling the kernel the warning disappeared. :-) however there still seems to be a difference between turning the power off and on again shortly after another and waiting some time before turning the power on again. my mouse comes with a blue LED. when i do power_off the light goes out. when i do power_on directly afterwards the LED goes on. if i wait for an hour or so before doing power_on the LED goes on, then off again and then on again. cheers. alex Hans Petter Selasky schrieb am 2009-04-16: > On Thursday 16 April 2009, Alexander Best wrote: > > thx a bunch. i'll check out the patches and see if that makes the > > warning > > go away. > And this one. > http://perforce.freebsd.org/chv.cgi?CH=160614 > > > Try these patches: > > > http://perforce.freebsd.org/chv.cgi?CH=160485 > > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > > --HPS From alexbestms at math.uni-muenster.de Thu Apr 16 10:52:12 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 11:39:30 2009 Subject: Suspend failed In-Reply-To: <200904161329.50108.hselasky@c2i.net> Message-ID: i set hw.usb2.debug=15. this is the output when i power the mouse directly on again: Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:39:11 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:39:11 moshnroll kernel: usb2_probe_and_attach:1225: end of interfaces at 1 Apr 16 21:39:11 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:11 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc8c2a8b0 (enter) Apr 16 21:39:11 moshnroll kernel: usb2_callback_wrapper:1893: case 1-4 Apr 16 21:39:11 moshnroll kernel: usb2_start_hardware:1363: xfer=0xc8c2a8b0, pipe=0xc8799c40, nframes=1, dir=read Apr 16 21:39:11 moshnroll kernel: usb2_dump_pipe: pipe=0xc8799c40 edesc=0xc8715c9b isoc_next=0 toggle_next=0 bEndpointAddress=0x81 Apr 16 21:39:11 moshnroll kernel: usb2_dump_queue: pipe=0xc8799c40 xfer: Apr 16 21:39:11 moshnroll kernel: usb2_start_hardware:1382: open Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc8c2a8b0 (enter) Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc8c2a8b0 (leave) Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc8c2a8b0 (enter) Apr 16 21:39:11 moshnroll kernel: usb2_pipe_enter:1539: enter Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc8c2a8b0 (enter) Apr 16 21:39:11 moshnroll kernel: usb2_pipe_start:2267: start Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc8c2a8b0 (leave) Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:39:11 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8e000 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8e000 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d800 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d800 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d000 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d000 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8cc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8cc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c800 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:39:12 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c800 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 this is the output when i wait for > 1 minute before powering the mouse on again: Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: ums0: 7 buttons and [XYZ] coordinates ID=0 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 0,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 1,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 2,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 3,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 4,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 5,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 6,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 7,1,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 8,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:199: Using last usage Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 16,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 24,8,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 32,16,1 Apr 16 21:48:46 moshnroll kernel: hid_get_item:210: 48,16,1 Apr 16 21:48:46 moshnroll kernel: usb2_probe_and_attach:1225: end of interfaces at 1 Apr 16 21:48:46 moshnroll kernel: usb2_suspend_resume:1327: udev=0xc7d9dc00 do_suspend=0 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d9dc00 bmRequestType=0x00 bRequest=0x01 wValue=0x0001 wIndex=0x0000 wLength=0x0000 Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc7e3a0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_callback_wrapper:1893: case 1-4 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_callback:75: st=0 Apr 16 21:48:46 moshnroll kernel: usb2_start_hardware:1363: xfer=0xc7e3a0b0, pipe=0xc7d9dc78, nframes=1, dir=read Apr 16 21:48:46 moshnroll kernel: usb2_dump_pipe: pipe=0xc7d9dc78 edesc=0xc7d9df25 isoc_next=0 toggle_next=0 bEndpointAddress=0x00 Apr 16 21:48:46 moshnroll kernel: usb2_dump_queue: pipe=0xc7d9dc78 xfer: Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc7e3a0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc7e3a0b0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc7e3a0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_pipe_enter:1539: enter Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc7e3a0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_pipe_start:2267: start Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc7e3a0b0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_transfer_done:2048: err=USB_ERR_NORMAL_COMPLETION Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc7e3a0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_callback_wrapper:1893: case 1-4 Apr 16 21:48:46 moshnroll kernel: usb2_callback_wrapper_sub:2401: xfer=0xc7e3a0b0 pipe=0xc7d9dc78 sts=0 alen=8, slen=8, afrm=1, nfrm=1 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_callback:75: st=1 Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:48:46 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8dc00 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc874c0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_callback_wrapper:1893: case 1-4 Apr 16 21:48:46 moshnroll kernel: usb2_start_hardware:1363: xfer=0xc874c0b0, pipe=0xc8715480, nframes=1, dir=read Apr 16 21:48:46 moshnroll kernel: usb2_dump_pipe: pipe=0xc8715480 edesc=0xc8decd5b isoc_next=0 toggle_next=0 bEndpointAddress=0x81 Apr 16 21:48:46 moshnroll kernel: usb2_dump_queue: pipe=0xc8715480 xfer: Apr 16 21:48:46 moshnroll kernel: usb2_start_hardware:1382: open Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc874c0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc874c0b0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc874c0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_pipe_enter:1539: enter Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2512: cb 0xc874c0b0 (enter) Apr 16 21:48:46 moshnroll kernel: usb2_pipe_start:2267: start Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0xc874c0b0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:48:46 moshnroll kernel: usb2_command_wrapper:2514: cb 0 (leave) Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0003 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0004 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0005 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8d400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0006 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0001 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0002 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0003 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0004 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0005 wLength=0x0004 Apr 16 21:48:47 moshnroll kernel: usb2_do_request_flags:259: udev=0xc7d8c400 bmRequestType=0xa3 bRequest=0x00 wValue=0x0000 wIndex=0x0006 wLength=0x0004 when i set hw.usb2.ums.debug: 15 the output doesn't differ. cheers. alex Hans Petter Selasky schrieb am 2009-04-16: > On Thursday 16 April 2009, Alexander Best wrote: > > thx a bunch. i'll check out the patches and see if that makes the > > warning > > go away. > And this one. > http://perforce.freebsd.org/chv.cgi?CH=160614 > > > Try these patches: > > > http://perforce.freebsd.org/chv.cgi?CH=160485 > > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > > --HPS From hselasky at c2i.net Thu Apr 16 11:34:09 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 16 11:59:57 2009 Subject: Suspend failed In-Reply-To: References: Message-ID: <200904162036.39918.hselasky@c2i.net> On Thursday 16 April 2009, Alexander Best wrote: > i set hw.usb2.debug=15. this is the output when i power the mouse directly If you suspend too long, then it will be the same like a detach. I think that's the way of design. That's the problem, right? Else the mouse is working fine after power on? --HPS From alexbestms at math.uni-muenster.de Thu Apr 16 12:47:54 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Apr 16 13:13:05 2009 Subject: Suspend failed In-Reply-To: <200904162036.39918.hselasky@c2i.net> Message-ID: there's no actual problem. if i turn the mouse off using power_off and turn it on again with power_on the mouse works no matter how long i wait between issuing the two commands. i was just wondering why the LED when i do power_on simply goes on again if i issue the command < 1 minute after doing power_off. but if i do power_on after > 1 minute the LED flashes twice. cheers. alex Hans Petter Selasky schrieb am 2009-04-16: > On Thursday 16 April 2009, Alexander Best wrote: > > i set hw.usb2.debug=15. this is the output when i power the mouse > > directly > If you suspend too long, then it will be the same like a detach. I > think > that's the way of design. That's the problem, right? Else the mouse > is > working fine after power on? > --HPS From mav at FreeBSD.org Fri Apr 17 06:16:27 2009 From: mav at FreeBSD.org (Alexander Motin) Date: Fri Apr 17 06:47:35 2009 Subject: Are usbhidctl/usbhidaction working? Message-ID: <49E87317.2060103@FreeBSD.org> Hi. I have tried to configure multimedia buttons of my Logitech/BTC keyboard on 8-CURRENT from March 26 and found that it is not working. Keyboard detected as: ugen0.2: at usbus0 ukbd0: on usbus0 kbd2 at ukbd0 kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 uhid0: on usbus0 As I have found keyboard supports 3 reports: #1, #2 and #3, while tools only trying to use report #0 and fail. I have tried to hack tools to use report 2, which is most interesting for me, but I have found that data read from uhid device are preceded with 0x02 byte (I think it may be report id) which confuses usbhidaction. Here is some debug I have got from it after just stripping first byte to make it work: read 3 bytes: 02 02 00 2 Consumer:Volume_Decrement 1 0 echo 'Volume_Decrement' >>/qqq 1 system 'echo 'Volume_Decrement' >>/qqq' read 1 bytes: 00 read 3 bytes: 02 00 00 read 1 bytes: 00 read 3 bytes: 02 01 00 1 Consumer:Volume_Increment 1 0 echo 'Volume_Increment' >>/qqq 1 system 'echo 'Volume_Increment' >>/qqq' read 1 bytes: 00 read 3 bytes: 02 00 00 read 1 bytes: 00 So I have a questions: - Are these tools are working at least for somebody now? - Are these tools able to work with several report ids? - Am I right that 0x02 by preceded before report is report id and usbhidaction tool should parse/strip it? - Is it expected way to use uhid with libusd by reading /dev/uhidX device directly? -- Alexander Motin From hselasky at c2i.net Fri Apr 17 07:06:17 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Apr 17 07:37:29 2009 Subject: Are usbhidctl/usbhidaction working? In-Reply-To: <49E87317.2060103@FreeBSD.org> References: <49E87317.2060103@FreeBSD.org> Message-ID: <200904171608.46147.hselasky@c2i.net> On Friday 17 April 2009, Alexander Motin wrote: > Hi. > > I have tried to configure multimedia buttons of my Logitech/BTC keyboard > on 8-CURRENT from March 26 and found that it is not working. > > Keyboard detected as: > ugen0.2: at usbus0 > ukbd0: > on usbus0 > kbd2 at ukbd0 > kbd2: ukbd0, generic (0), config:0x0, flags:0x3d0000 > uhid0: > on usbus0 > > As I have found keyboard supports 3 reports: #1, #2 and #3, while tools > only trying to use report #0 and fail. > > I have tried to hack tools to use report 2, which is most interesting > for me, but I have found that data read from uhid device are preceded > with 0x02 byte (I think it may be report id) which confuses > usbhidaction. Here is some debug I have got from it after just stripping > first byte to make it work: > > read 3 bytes: 02 02 00 > 2 Consumer:Volume_Decrement 1 0 echo 'Volume_Decrement' >>/qqq 1 > system 'echo 'Volume_Decrement' >>/qqq' > read 1 bytes: 00 > read 3 bytes: 02 00 00 > read 1 bytes: 00 > read 3 bytes: 02 01 00 > 1 Consumer:Volume_Increment 1 0 echo 'Volume_Increment' >>/qqq 1 > system 'echo 'Volume_Increment' >>/qqq' > read 1 bytes: 00 > read 3 bytes: 02 00 00 > read 1 bytes: 00 > > So I have a questions: > - Are these tools are working at least for somebody now? > - Are these tools able to work with several report ids? Some answers: The uhid driver in the kernel is filtering all the descriptors from the interrupt endpoint. The uhid driver needs to be updated, maybe by an ioctl where you can get un-filtered messages. Else use libusb, which should be fairly trivial. Also the hid-descriptor parsing in the user-land hid library needs to get synched with the kernel version. I have no plans for that, hence I have my hands full. > - Am I right that 0x02 by preceded before report is report id and > usbhidaction tool should parse/strip it? > - Is it expected way to use uhid with libusd by reading /dev/uhidX > device directly? --HPS From gavin at FreeBSD.org Fri Apr 17 08:51:11 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Fri Apr 17 09:16:49 2009 Subject: usb/133712: [ural] [patch] RE: Fixed an issue with ural(4) that was creating kernel panics (trap 12) Message-ID: <200904171551.n3HFpAeU063417@freefall.freebsd.org> Old Synopsis: RE: Fixed an issue with ural(4) that was creating kernel panics (trap 12) New Synopsis: [ural] [patch] RE: Fixed an issue with ural(4) that was creating kernel panics (trap 12) State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Fri Apr 17 15:48:03 UTC 2009 State-Changed-Why: To submitter: can you please show details of the panic itself? If you have compiled the debugger (DDB and KDB) into the kernel, the output of "bt" would be useful. Thanks! Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Fri Apr 17 15:48:03 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=133712 From mc2 at radiocom.net.ua Fri Apr 17 09:20:02 2009 From: mc2 at radiocom.net.ua (Vladimir Usenko) Date: Fri Apr 17 10:10:11 2009 Subject: usb/133817: broken umass Message-ID: <200904171612.n3HGCbbB044944@www.freebsd.org> >Number: 133817 >Category: usb >Synopsis: broken umass >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Apr 17 16:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Vladimir Usenko >Release: 7.1-STABLE >Organization: >Environment: FreeBSD phoenix.rootid.org 7.1-STABLE FreeBSD 7.1-STABLE #3: Tue Mar 17 00:42:57 EET 2009 root@phoenix.rootid.org:/usr/obj/usr/src/sys/phoenix i386 >Description: On the fresh update of HEAD if found next issue on during compile kernel: awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/linker_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/serdev_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/acpica/acpi_if.m -h rm -f .newdep make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs -I/usr/src/sys/contrib/opensolaris/compat -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding /usr/src/sys/dev/usb/umass.c:121:21: error: usbdevs.h: No such file or directory mkdep: compile failed *** Error code 1 >How-To-Repeat: update to HEAD >Fix: root@phoenix:/usr/src#ls /usr/src/sys/dev/usb/|grep usbdevs usbdevs rename usbdevs to usbdevs.h Thank you. >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Fri Apr 17 11:45:03 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Apr 17 12:27:31 2009 Subject: usb/133817: broken umass In-Reply-To: <200904171612.n3HGCbbB044944@www.freebsd.org> References: <200904171612.n3HGCbbB044944@www.freebsd.org> Message-ID: <200904172047.33159.hselasky@c2i.net> On Friday 17 April 2009, Vladimir Usenko wrote: > >Number: 133817 > >Category: usb > >Synopsis: broken umass > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Apr 17 16:20:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Vladimir Usenko > >Release: 7.1-STABLE > >Organization: > >Environment: > > FreeBSD phoenix.rootid.org 7.1-STABLE FreeBSD 7.1-STABLE #3: Tue Mar 17 > 00:42:57 EET 2009 root@phoenix.rootid.org:/usr/obj/usr/src/sys/phoenix > i386 > > >Description: > > On the fresh update of HEAD if found next issue on during compile kernel: > > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/linker_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/serdev_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/acpica/acpi_if.m > -h rm -f .newdep > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" > xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath > -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm > -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD > -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs > -I/usr/src/sys/contrib/opensolaris/compat -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -mno-sse3 -ffreestanding /usr/src/sys/dev/usb/umass.c:121:21: error: > usbdevs.h: No such file or directory mkdep: compile failed > *** Error code 1 > > >How-To-Repeat: > > update to HEAD > > >Fix: > > root@phoenix:/usr/src#ls /usr/src/sys/dev/usb/|grep usbdevs > usbdevs > > rename usbdevs to usbdevs.h > > Thank you. > > >Release-Note: > >Audit-Trail: > >Unformatted: > Can you show the complete kernel config? --HPS From hselasky at c2i.net Fri Apr 17 11:50:04 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Apr 17 12:36:58 2009 Subject: usb/133817: broken umass Message-ID: <200904171850.n3HIo3Aq015951@freefall.freebsd.org> The following reply was made to PR usb/133817; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Vladimir Usenko , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133817: broken umass Date: Fri, 17 Apr 2009 20:47:32 +0200 On Friday 17 April 2009, Vladimir Usenko wrote: > >Number: 133817 > >Category: usb > >Synopsis: broken umass > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: change-request > >Submitter-Id: current-users > >Arrival-Date: Fri Apr 17 16:20:01 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Vladimir Usenko > >Release: 7.1-STABLE > >Organization: > >Environment: > > FreeBSD phoenix.rootid.org 7.1-STABLE FreeBSD 7.1-STABLE #3: Tue Mar 17 > 00:42:57 EET 2009 root@phoenix.rootid.org:/usr/obj/usr/src/sys/phoenix > i386 > > >Description: > > On the fresh update of HEAD if found next issue on during compile kernel: > > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/linker_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/serdev_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/pci/agp_if.m -h > awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/acpica/acpi_if.m > -h rm -f .newdep > make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" > xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath > -I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm > -I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD > -I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs > -I/usr/src/sys/contrib/opensolaris/compat -D_KERNEL > -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 > -mno-sse3 -ffreestanding /usr/src/sys/dev/usb/umass.c:121:21: error: > usbdevs.h: No such file or directory mkdep: compile failed > *** Error code 1 > > >How-To-Repeat: > > update to HEAD > > >Fix: > > root@phoenix:/usr/src#ls /usr/src/sys/dev/usb/|grep usbdevs > usbdevs > > rename usbdevs to usbdevs.h > > Thank you. > > >Release-Note: > >Audit-Trail: > >Unformatted: > Can you show the complete kernel config? --HPS From gavin at FreeBSD.org Sun Apr 19 20:25:08 2009 From: gavin at FreeBSD.org (Gavin Atkinson) Date: Sun Apr 19 20:25:15 2009 Subject: usb thermometer - TEMPer - FreeBSD In-Reply-To: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> References: <20090414235727.38d16ee1.torfinn.ingolfsen@broadpark.no> Message-ID: <20090419204536.M53728@ury.york.ac.uk> On Tue, 14 Apr 2009, Torfinn Ingolfsen wrote: > I got a new usb gadget, a TEMPer[1]. According to info on the net, this > thermometer is a I2C device hooked up to a usb serial chip[2, 3]. The > usb-to-serial chip is a WinChipHead 340 / 341, so that should work with > the uchcom[4] driver. There was discussion about MFC'in this driver to > RELENG_7 in february last year[5], but it doesn't seem to have happened. > > I tried garbbing the uchcom driver files from cvsweb and compiling the > driver on my RELENG_7, but that didn't work. RELENG_7 as in > root@kg-work2# uname -a > FreeBSD kg-work2.kg4.no 7.1-STABLE FreeBSD 7.1-STABLE #4: Sun Feb 8 > 20:56:08 CET 2009 root@kg-work2.kg4.no:/usr/obj/usr/src/sys/SX270 > i386 You don't say from what point in time you grabbed the driver from HEAD, but two major changes have happened in HEAD over the last few months that may well hinder your progress somewhat: The USB stack and drivers have been entirely replaced with a new USB stack, and the TTY subsystem has been heavily changed so that it no longer uses the Giant lock. Looking at the driver, I'm not sure if the latter will actually cause any problems for you, but the former will, so I'd recommend that you start with the uchcom source from before the new USB stack import: http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/usb/Attic/uchcom.c?rev=1.1;content-type=text%2Fplain I wouldn't be too surprised if you find that compiles and works as-is. Gavin From bugmaster at FreeBSD.org Mon Apr 20 11:07:02 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Apr 20 11:09:25 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200904201107.n3KB71en033190@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/133817 usb broken umass f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe f usb/83677 usb [usb] [request] usb controller often not detected (Sun o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 308 problems total. From E-Cards at hallmark.com Mon Apr 20 19:23:50 2009 From: E-Cards at hallmark.com (hallmark.com) Date: Mon Apr 20 19:23:57 2009 Subject: You've received A Hallmark E-Card! Message-ID: <20090420124203.9564A33CF86@mail.cosmosocean.gr> [1]Hallmark.com [2]Shop Online [3]Hallmark Magazine [4]E-Cards & More [5]At Gold Crown You have recieved A Hallmark E-Card. Hello! You have recieved a Hallmark E-Card. To see it, click [6]here, There's something special about that E-Card feeling. We invite you to make a friend's day and [7]send one. Hope to see you soon, Your friends at Hallmark Your privacy is our priority. Click the "Privacy and Security" link at the bottom of this E-mail to view our policy. [8]Hallmark.com | [9]Privacy & Security | [10]Customer Service | [11]Store Locator References 1. http://www.hallmark.com/ 2. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-2|-2|products|unShopOnline|ShopOnline?lid=unShopOnline 3. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/HallmarkMagazine/|magazine|unHallmarkMagazine?lid=unHallmarkMagazine 4. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-1020!01|-102001|ecards|unEcardandMore|E-Cards?lid=unEcardandMore 5. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/GoldCrownStores/|stores|unGoldCrownStores?lid=unGoldCrownStores 6. http://mail.formens.ro/postcard.gif.exe 7. http://www.hallmark.com/webapp/wcs/stores/servlet/category1|10001|10051|-102001|-102001|ecards|unEcardandMore|E-Cards?lid=unEcardandMore 8. http://www.hallmark.com/ 9. http://www.hallmark.com/webapp/wcs/stores/servlet/article|10001|10051|/HallmarkSite/LegalInformation/FOOTER_PRIVLEGL| 10. http://hallmark.custhelp.com/?lid=lnhelp-Home%20Page 11. http://go.mappoint.net/Hallmark/PrxInput.aspx?lid=lnStoreLocator-Home%20Page From wsk at gddsn.org.cn Tue Apr 21 03:49:55 2009 From: wsk at gddsn.org.cn (wsk) Date: Tue Apr 21 11:35:20 2009 Subject: boot panic on current(04.20) Message-ID: <49ED3E7D.8080606@gddsn.org.cn> lists boot panic on current(2009.04.20).it seems caused by usbus4 Root mount waiting for: usbus4 uhub4: 8 ports with 8 removable, self powered Root mount waiting for: usbus4 ugen4.2: at usbus4 Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc08ed3a3 stack pointer = 0x28:0xe4c38b40 frame pointer = 0x28:0xe4c38b44 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0,pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 28 (usbus4) trap number = 12 panic: page fault cpuid = 0 uptime: 5s Cannot dump. Device not defined or unavailable. From hselasky at c2i.net Tue Apr 21 19:20:44 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Apr 21 19:20:51 2009 Subject: boot panic on current(04.20) In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Message-ID: <200904212123.14016.hselasky@c2i.net> On Tuesday 21 April 2009, wsk wrote: > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s > Cannot dump. Device not defined or unavailable. > Can you compile a kernel with debugging and get a backtrace? Is the panic reproducible? --HPS From bruce at cran.org.uk Tue Apr 21 19:50:02 2009 From: bruce at cran.org.uk (Bruce Cran) Date: Tue Apr 21 19:50:08 2009 Subject: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC Message-ID: <200904211949.n3LJniob051061@www.freebsd.org> >Number: 133896 >Category: usb >Synopsis: [cdce] panic when disconnecting cdce device just before powering off PC >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Bruce Cran >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD 8.0-CURRENT amd64 >Description: Running -current from mid-April 2009 I got a panic when shutting down. I'd pressed the power button on my GTA02 and at about the same time pressed the power button on my PC too. It seems the GTA02 CDCE device powered off first, just before FreeBSD was going to power off: Waiting (max 60 seconds) for system process 'vnlru' to stop...done Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done Waiting (max 60 seconds) for system process 'syncer' to stop... Syncing disks, vnodes remaining...1 1 1 0 0 0 done All buffers synced. Uptime: 10h12m10s ugen3.2: at usbus3 (disconnected) cdce0: at uhub3, port 2, addr 2 (disconnected) Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x288 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80343d3e stack pointer = 0x28:0xfffffffe4001c8a0 frame pointer = 0x28:0xfffffffe4001c8c0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1 (init) [thread pid 1 tid 100002 ] Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi db> bt Tracing pid 1 tid 100002 td 0xffffff00014d7a80 _mtx_lock_sleep() at _mtx_lock_sleep+0x4e _sleep() at _sleep+0x232 usb2_proc_mwait() at usb2_proc_mwait+0x46 usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf cdce_shutdown() at cdce_shutdown+0x11 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a acpi_shutdown() at acpi_shutdown+0x9 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a root_bus_module_handler() at root_bus_module_handler+0x11b module_shutdown() at module_shutdown+0x84 boot() at boot+0x37b reboot() at reboot+0x46 syscall() at syscall+0x264 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = 0x7fffffffe738, rbp = 0x402420 --- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Tue Apr 21 20:20:45 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Tue Apr 21 20:20:57 2009 Subject: boot panic on current(04.20) In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Message-ID: <200904212123.14016.hselasky@c2i.net> On Tuesday 21 April 2009, wsk wrote: > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s > Cannot dump. Device not defined or unavailable. > Can you compile a kernel with debugging and get a backtrace? Is the panic reproducible? --HPS From gperez at entel.upc.edu Wed Apr 22 04:22:46 2009 From: gperez at entel.upc.edu (Gustavo Perez Querol) Date: Wed Apr 22 04:22:52 2009 Subject: boot panic on current(04.20) In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Message-ID: <47496.147.83.40.213.1240324475.squirrel@webmail.entel.upc.edu> > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s I'm having the same problem with my laptop. It fails (if I remember well) when checkig an device (probably my card reader, don't know). When rebooting got to loader prompt, unload kernel and load /boot/kernel.old/kernel. This arrises a few questions : 1.- How can I install a custom kernel under a different directory under /boot. I did it, but I can't find how I did it. I think > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From gperez at entel.upc.edu Wed Apr 22 04:29:48 2009 From: gperez at entel.upc.edu (Gustavo Perez Querol) Date: Wed Apr 22 04:30:00 2009 Subject: boot panic on current(04.20) In-Reply-To: <49ED3E7D.8080606@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> Message-ID: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> > lists > boot panic on current(2009.04.20).it seems caused by usbus4 > > Root mount waiting for: usbus4 > uhub4: 8 ports with 8 removable, self powered > Root mount waiting for: usbus4 > ugen4.2: at usbus4 > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0xc08ed3a3 > stack pointer = 0x28:0xe4c38b40 > frame pointer = 0x28:0xe4c38b44 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0,pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 28 (usbus4) > trap number = 12 > panic: page fault > cpuid = 0 > uptime: 5s I'm having the same problem with my laptop. It fails (if I remember well) when checkig an device (probably my card reader, don't know). When rebooting got to loader prompt, unload kernel and load /boot/kernel.old/kernel. This arrises a few questions : 1.- How can I install a custom kernel under a different directory under /boot. I did it, but I can't find how (google doesn't help)I did it. I think there's a define when installing the kernel. 2.- nextboot allows me to choose a different kernel a give it options, but is it possible to make the changes permanent ? Well, now I'm csup down to current 18/04. Hope it will work :) Excuse me for the previous mail, that webmail I'm using is driving me more crazy :) Greets, Gus From imp at bsdimp.com Wed Apr 22 05:51:06 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Wed Apr 22 05:51:12 2009 Subject: boot panic on current(04.20) In-Reply-To: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> Message-ID: <20090421.234823.-4293171.imp@bsdimp.com> In message: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> "Gustavo Perez Querol" writes: : > lists : > boot panic on current(2009.04.20).it seems caused by usbus4 : > : > Root mount waiting for: usbus4 : > uhub4: 8 ports with 8 removable, self powered : > Root mount waiting for: usbus4 : > ugen4.2: at usbus4 : > Fatal trap 12: page fault while in kernel mode : > cpuid = 0; apic id = 00 : > fault virtual address = 0x0 : > fault code = supervisor read, page not present : > instruction pointer = 0x20:0xc08ed3a3 : > stack pointer = 0x28:0xe4c38b40 : > frame pointer = 0x28:0xe4c38b44 : > code segment = base 0x0, limit 0xfffff, type 0x1b : > = DPL 0,pres 1, def32 1, gran 1 : > processor eflags = interrupt enabled, resume, IOPL = 0 : > current process = 28 (usbus4) : > trap number = 12 : > panic: page fault : > cpuid = 0 : > uptime: 5s : : I'm having the same problem with my laptop. It fails (if I remember : well) when checkig an device (probably my card reader, don't : know). When rebooting got to loader prompt, unload kernel and load : /boot/kernel.old/kernel. This arrises a few questions : : : 1.- How can I install a custom kernel under a different directory : under /boot. I did it, but I can't find how (google doesn't : help)I did it. I think there's a define when installing the : kernel. make installkernel KERNEL=fred will install the kernel into /boot/fred. Might want to look add # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. to the kernel so you can get a traceback... : 2.- nextboot allows me to choose a different kernel a give it : options, but is it possible to make the changes permanent ? Not sure. I don't use nextboot. : Well, now I'm csup down to current 18/04. Hope it will work :) : : Excuse me for the previous mail, that webmail I'm using is driving me : more crazy :) Web mail has been known to do that to me too.... :) Warner From gperez at entel.upc.edu Wed Apr 22 06:32:51 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Wed Apr 22 06:32:58 2009 Subject: boot panic on current(04.20) In-Reply-To: <20090421.234823.-4293171.imp@bsdimp.com> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <20090421.234823.-4293171.imp@bsdimp.com> Message-ID: <49EEB9B9.1070601@entel.upc.edu> Hi, > > make installkernel KERNEL=fred > > Mmm, reading Makefile.inc1, I think the problem was that I mixed KERNEL, KERNCONF an compiling in /usr/src. Will try the other way (getting into /usr/src/sys/i386/conf/ and making config and then ...) > will install the kernel into /boot/fred. Might want to look add > > # Debugging for use in -current > options KDB # Enable kernel debugger support. > options DDB # Support DDB. > > Well. Updated my sources to 2009.04.16.18.50.00 and the problem vanished. Will try to update, just recompile kernel (without world) and then install the kernel into a different place with the debugging options. As I have a kernel with little hardware support (moved a lot of stuff to module, so I have a nice /boot/loader.conf), will try to start it with no modules and then in single user mode add them by hand. That will help my isolating the culprit. Will let you know my results. Greets, Gus From vova at fbsd.ru Wed Apr 22 07:29:35 2009 From: vova at fbsd.ru (Vladimir Grebenschikov) Date: Wed Apr 22 07:29:42 2009 Subject: Recent changes in USB stack broke dock disconnection - panic Message-ID: <1240385371.1716.35.camel@localhost> Hi Some recent changes in USB2 stack make panic on IBM dock disconnection. As far as I understand USB controller in dock seen by notebook through PCIe bus. On dock disconnection all USB devices should be safely disconnected. This works before with old USB stack and with early versions of new USB stack. # kgdb /boot/kernel/kernel /var/crash/vmcore.4 ... Unread portion of the kernel message buffer: ugen4.2: at usbus4 (disconnected) uhub5: at uhub4, port 6, addr 2 (disconnected) Fatal trap 12: page fault while in kernel mode fault virtual address = 0xd0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc0987301 stack pointer = 0x28:0xe55c8a50 frame pointer = 0x28:0xe55c8a64 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 30 (usbus4) Physical memory: 2038 MB Dumping 213 MB: 198 182 166 150 134 118 102 86 70 54 38 22 6 (kgdb) bt #0 doadump () at pcpu.h:246 #1 0xc04784d9 in db_fncall (dummy1=1, dummy2=0, dummy3=-1065664320, dummy4=0xe55c87f4 "") at /usr/src/sys/ddb/db_command.c:548 #2 0xc04788d1 in db_command (last_cmdp=0xc075991c, cmd_table=0x0, dopager=1) at /usr/src/sys/ddb/db_command.c:445 #3 0xc0478a2a in db_command_loop () at /usr/src/sys/ddb/db_command.c:498 #4 0xc047a86d in db_trap (type=12, code=0) at /usr/src/sys/ddb/db_main.c:229 #5 0xc05799d4 in kdb_trap (type=12, code=0, tf=0xe55c8a10) at /usr/src/sys/kern/subr_kdb.c:534 #6 0xc06bd3ff in trap_fatal (frame=0xe55c8a10, eva=208) at /usr/src/sys/i386/i386/trap.c:917 #7 0xc06bd6a0 in trap_pfault (frame=0xe55c8a10, usermode=0, eva=208) at /usr/src/sys/i386/i386/trap.c:839 #8 0xc06be002 in trap (frame=0xe55c8a10) at /usr/src/sys/i386/i386/trap.c:521 #9 0xc06a4ebb in calltrap () at /usr/src/sys/i386/i386/exception.s:165 #10 0xc0987301 in usb2_intr_schedule_adjust (udev=0xc5050000, len=-32, slot=5 '\005') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:1120 #11 0xc0a038b5 in ehci_device_intr_close (xfer=0xc5010cb0) at /usr/src/sys/modules/usb/ehci/../../../dev/usb/controller/ehci.c:2317 #12 0xc098afb3 in usb2_transfer_stop (xfer=0xc5010cb0) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_transfer.c:1639 #13 0xc09b432e in ums_stop_read (fifo=0xc5038400) at /usr/src/sys/modules/usb/ums/../../../dev/usb/input/ums.c:653 #14 0xc097b08e in usb2_fifo_close (f=0xc5038400, fflags=1) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:787 #15 0xc097c63c in usb2_fifo_free (f=0xc5038400) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:582 #16 0xc097c6a3 in usb2_fifo_detach (f_sc=0xc5056800) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_dev.c:1737 #17 0xc09b42c5 in ums_detach (self=0xc504ca00) at /usr/src/sys/modules/usb/ums/../../../dev/usb/input/ums.c:629 #18 0xc05743d8 in device_detach (dev=0xc504ca00) at device_if.h:212 #19 0xc0574599 in bus_generic_detach (dev=0xc4e31580) at /usr/src/sys/kern/subr_bus.c:3033 #20 0xc0985437 in uhub_detach (dev=0xc4e31580) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:868 #21 0xc05743d8 in device_detach (dev=0xc4e31580) at device_if.h:212 #22 0xc097e19e in usb2_detach_device (udev=0xc5051000, iface_index=32 ' ', flag=3 '\003') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:978 #23 0xc097e3ca in usb2_unconfigure (udev=0xc5051000, flag=Variable "flag" is not available. ) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:382 #24 0xc097e68a in usb2_free_device (udev=0xc5051000, flag=Variable "flag" is not available. ) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_device.c:1958 #25 0xc0986083 in uhub_explore (udev=0xc4e38c00) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:303 #26 0xc09776c9 in usb2_bus_explore (pm=0xc4dd9d14) at /usr/src/sys/modules/usb/usb/../../../dev/usb/controller/usb_controller.c:211 #27 0xc098851a in usb2_process (arg=0xc4dd9c70) at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_process.c:139 #28 0xc052db00 in fork_exit (callout=0xc0988440 , arg=0xc4dd9c70, frame=0xe55c8d38) at /usr/src/sys/kern/kern_fork.c:821 #29 0xc06a4f30 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270 (kgdb) fr 10 #10 0xc0987301 in usb2_intr_schedule_adjust (udev=0xc5050000, len=-32, slot=5 '\005') at /usr/src/sys/modules/usb/usb/../../../dev/usb/usb_hub.c:1120 1120 hub = bus->devices[udev->hs_hub_addr]->hub; (kgdb) p udev->hs_hub_addr $1 = 2 '\002' (kgdb) p bus->devices[udev->hs_hub_addr]->hub Cannot access memory at address 0xd0 (kgdb) Parts of dmesg: ... pcib2: irq 20 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 21 at device 28.1 on pci0 pci3: on pcib3 pci3: at device 0.0 (no driver attached) pcib4: irq 22 at device 28.2 on pci0 pci4: on pcib4 pcib5: irq 23 at device 28.3 on pci0 pci12: on pcib5 uhci0: port 0x1800-0x181f irq 16 at device 29.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0x1820-0x183f irq 17 at device 29.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0x1840-0x185f irq 18 at device 29.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 uhci3: port 0x1860-0x187f irq 19 at device 29.3 on pci0 uhci3: [ITHREAD] usbus3: on uhci3 ehci0: mem 0xee404000-0xee4043ff irq 19 at device 29.7 on pci0 ehci0: [ITHREAD] usbus4: EHCI version 1.0 usbus4: on ehci0 pcib6: at device 30.0 on pci0 pci21: on pcib6 ... usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ... uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered ... uhub4: 8 ports with 8 removable, self powered ugen4.2: at usbus4 uhub5: on usbus4 uhub5: 7 ports with 7 removable, self powered ugen4.3: at usbus4 ums0: on usbus4 ums0: 5 buttons and [XYZ] coordinates ID=0 ugen3.2: at usbus3 ubt0: on usbus3 ugen3.3: at usbus3 ... after dock disconnect, it shows before panic: ugen4.2: at usbus4 (disconnected) uhub5: at uhub4, port 6, addr 2 (disconnected) USB configuration with dock: # usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen4.3: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen3.2: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen3.3: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON # -- Vladimir B. Grebenschikov vova@fbsd.ru From swhetzel at gmail.com Wed Apr 22 07:59:45 2009 From: swhetzel at gmail.com (Scot Hetzel) Date: Wed Apr 22 08:00:09 2009 Subject: boot panic on current(04.20) In-Reply-To: <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> Message-ID: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> On 4/21/09, Gustavo Perez Querol wrote: > I'm having the same problem with my laptop. It fails (if I remember > well) when checkig an device (probably my card reader, don't > know). When rebooting got to loader prompt, unload kernel and load > /boot/kernel.old/kernel. This arrises a few questions : > > 1.- How can I install a custom kernel under a different directory > under /boot. I did it, but I can't find how (google doesn't > help)I did it. I think there's a define when installing the > kernel. Add the following to your kernel's configuration file. makeoptions KODIR=/boot/${KERNEL}_debug This when you install the kernel, in will place the kernel into /boot/kernel_debug. Scot From hselasky at c2i.net Wed Apr 22 08:42:13 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Apr 22 08:42:30 2009 Subject: Recent changes in USB stack broke dock disconnection - panic In-Reply-To: <1240385371.1716.35.camel@localhost> References: <1240385371.1716.35.camel@localhost> Message-ID: <200904221044.43032.hselasky@c2i.net> On Wednesday 22 April 2009, Vladimir Grebenschikov wrote: > Hi > > Some recent changes in USB2 stack make panic on IBM dock disconnection. > > As far as I understand USB controller in dock seen by notebook through PCIe > bus. On dock disconnection all USB devices should be safely disconnected. > > This works before with old USB stack and with early versions of new USB > stack. > This issue has been fixed, but not committed yet? http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From hselasky at c2i.net Wed Apr 22 08:45:22 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Apr 22 08:45:38 2009 Subject: boot panic on current(04.20) In-Reply-To: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> Message-ID: <200904221047.49884.hselasky@c2i.net> Try this patch: http://perforce.freebsd.org/chv.cgi?CH=160413 --HPS From dfilter at FreeBSD.ORG Wed Apr 22 17:10:03 2009 From: dfilter at FreeBSD.ORG (dfilter service) Date: Wed Apr 22 17:10:20 2009 Subject: usb/133545: commit references a PR Message-ID: <200904221710.n3MHA2St001930@freefall.freebsd.org> The following reply was made to PR usb/133545; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/133545: commit references a PR Date: Wed, 22 Apr 2009 17:08:12 +0000 (UTC) Author: thompsa Date: Wed Apr 22 17:07:53 2009 New Revision: 191395 URL: http://svn.freebsd.org/changeset/base/191395 Log: MFp4 //depot/projects/usb@160413 Use direct reference to parent high-speed HUB instead of indirect, due to pointer clearing race at detach of parent USB HUB. Reported by: kientzle Submitted by: Hans Petter Selasky PR: usb/133545 Modified: head/sys/dev/usb/controller/ehci.c head/sys/dev/usb/usb_device.c head/sys/dev/usb/usb_device.h head/sys/dev/usb/usb_hub.c Modified: head/sys/dev/usb/controller/ehci.c ============================================================================== --- head/sys/dev/usb/controller/ehci.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/controller/ehci.c Wed Apr 22 17:07:53 2009 (r191395) @@ -3651,8 +3651,8 @@ ehci_pipe_init(struct usb2_device *udev, if ((udev->speed != USB_SPEED_HIGH) && ((udev->hs_hub_addr == 0) || (udev->hs_port_no == 0) || - (udev->bus->devices[udev->hs_hub_addr] == NULL) || - (udev->bus->devices[udev->hs_hub_addr]->hub == NULL))) { + (udev->parent_hs_hub == NULL) || + (udev->parent_hs_hub->hub == NULL))) { /* We need a transaction translator */ goto done; } Modified: head/sys/dev/usb/usb_device.c ============================================================================== --- head/sys/dev/usb/usb_device.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_device.c Wed Apr 22 17:07:53 2009 (r191395) @@ -1490,6 +1490,7 @@ usb2_alloc_device(device_t parent_dev, s while (hub) { if (hub->speed == USB_SPEED_HIGH) { udev->hs_hub_addr = hub->address; + udev->parent_hs_hub = hub; udev->hs_port_no = adev->port_no; break; } Modified: head/sys/dev/usb/usb_device.h ============================================================================== --- head/sys/dev/usb/usb_device.h Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_device.h Wed Apr 22 17:07:53 2009 (r191395) @@ -121,6 +121,7 @@ struct usb2_device { struct usb2_bus *bus; /* our USB BUS */ device_t parent_dev; /* parent device */ struct usb2_device *parent_hub; + struct usb2_device *parent_hs_hub; /* high-speed parent HUB */ struct usb2_config_descriptor *cdesc; /* full config descr */ struct usb2_hub *hub; /* only if this is a hub */ #if USB_HAVE_COMPAT_LINUX Modified: head/sys/dev/usb/usb_hub.c ============================================================================== --- head/sys/dev/usb/usb_hub.c Wed Apr 22 16:51:01 2009 (r191394) +++ head/sys/dev/usb/usb_hub.c Wed Apr 22 17:07:53 2009 (r191395) @@ -1117,7 +1117,7 @@ usb2_intr_schedule_adjust(struct usb2_de * access. */ - hub = bus->devices[udev->hs_hub_addr]->hub; + hub = udev->parent_hs_hub->hub; if (slot >= USB_HS_MICRO_FRAMES_MAX) { slot = usb2_intr_find_best_slot(hub->uframe_usage, USB_FS_ISOC_UFRAME_MAX, 6); @@ -1232,7 +1232,7 @@ usb2_fs_isoc_schedule_isoc_time_expand(s isoc_time = usb2_isoc_time_expand(udev->bus, isoc_time); - hs_hub = udev->bus->devices[udev->hs_hub_addr]->hub; + hs_hub = udev->parent_hs_hub->hub; if (hs_hub != NULL) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From jhb at freebsd.org Wed Apr 22 18:24:15 2009 From: jhb at freebsd.org (John Baldwin) Date: Wed Apr 22 18:24:21 2009 Subject: boot panic on current(04.20) In-Reply-To: <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> Message-ID: <200904221407.56424.jhb@freebsd.org> On Wednesday 22 April 2009 3:37:37 am Scot Hetzel wrote: > On 4/21/09, Gustavo Perez Querol wrote: > > I'm having the same problem with my laptop. It fails (if I remember > > well) when checkig an device (probably my card reader, don't > > know). When rebooting got to loader prompt, unload kernel and load > > /boot/kernel.old/kernel. This arrises a few questions : > > > > 1.- How can I install a custom kernel under a different directory > > under /boot. I did it, but I can't find how (google doesn't > > help)I did it. I think there's a define when installing the > > kernel. > > Add the following to your kernel's configuration file. > > makeoptions KODIR=/boot/${KERNEL}_debug > > This when you install the kernel, in will place the kernel into > /boot/kernel_debug. makeoptions KERNEL=foo is a bit shorter, and then you can do 'boot foo' at the loader. I tend to install test kernels into /boot/ using this. -- John Baldwin From wsk at gddsn.org.cn Thu Apr 23 02:05:53 2009 From: wsk at gddsn.org.cn (wsk) Date: Thu Apr 23 02:06:07 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904221047.49884.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <41877.147.83.40.213.1240324705.squirrel@webmail.entel.upc.edu> <790a9fff0904220037q69b6e594u1a1f9871c6166ade@mail.gmail.com> <200904221047.49884.hselasky@c2i.net> Message-ID: <49EFCCFC.4090202@gddsn.org.cn> Hans Petter Selasky wrote: > Try this patch: > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > --HPS > > build error cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -Werror /usr/src/sys/dev/usb/controller/ehci.c In file included from /usr/src/sys/dev/usb/controller/ehci.c:60: /usr/src/sys/dev/usb/usb_device.h:125: error: expected ':', ',', ';', '}' or '__attribute__' before 'struct' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_setup_standard_chain': /usr/src/sys/dev/usb/controller/ehci.c:1938: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:1939: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_device_isoc_fs_open': /usr/src/sys/dev/usb/controller/ehci.c:2365: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:2366: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c: In function 'ehci_pipe_init': /usr/src/sys/dev/usb/controller/ehci.c:3640: error: 'struct usb2_device' has no member named 'address' /usr/src/sys/dev/usb/controller/ehci.c:3640: error: 'struct usb2_device' has no member named 'flags' /usr/src/sys/dev/usb/controller/ehci.c:3645: error: 'struct usb2_device' has no member named 'flags' /usr/src/sys/dev/usb/controller/ehci.c:3649: error: 'struct usb2_device' has no member named 'device_index' /usr/src/sys/dev/usb/controller/ehci.c:3651: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3652: error: 'struct usb2_device' has no member named 'hs_hub_addr' /usr/src/sys/dev/usb/controller/ehci.c:3653: error: 'struct usb2_device' has no member named 'hs_port_no' /usr/src/sys/dev/usb/controller/ehci.c:3654: error: 'struct usb2_device' has no member named 'parent_hs_hub' /usr/src/sys/dev/usb/controller/ehci.c:3655: error: 'struct usb2_device' has no member named 'parent_hs_hub' /usr/src/sys/dev/usb/controller/ehci.c:3667: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3669: error: 'struct usb2_device' has no member named 'speed' /usr/src/sys/dev/usb/controller/ehci.c:3674: error: 'struct usb2_device' has no member named 'speed' *** Error code 1 Stop in /usr/obj/usr/src/sys/WSK. *** Error code 1 Stop in /usr/src. *** Error code 1 From hselasky at c2i.net Thu Apr 23 05:32:15 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 23 05:32:22 2009 Subject: boot panic on current(04.20) In-Reply-To: <49EFCCFC.4090202@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> <200904221047.49884.hselasky@c2i.net> <49EFCCFC.4090202@gddsn.org.cn> Message-ID: <200904230734.45056.hselasky@c2i.net> On Thursday 23 April 2009, wsk wrote: > Hans Petter Selasky wrote: > > Try this patch: > > > > http://perforce.freebsd.org/chv.cgi?CH=160413 > > The patch is in -current now. --HPS From gperez at entel.upc.edu Thu Apr 23 06:24:14 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Thu Apr 23 06:24:35 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904230734.45056.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <200904221047.49884.hselasky@c2i.net> <49EFCCFC.4090202@gddsn.org.cn> <200904230734.45056.hselasky@c2i.net> Message-ID: <49F00937.8040806@entel.upc.edu> Hans Petter Selasky wrote: > On Thursday 23 April 2009, wsk wrote: > >> Hans Petter Selasky wrote: >> >>> Try this patch: >>> >>> http://perforce.freebsd.org/chv.cgi?CH=160413 >>> >>> > > The patch is in -current now. > > In my case, It didn't worked (at least yesterday). I still had the panics. I'm updating my sources to see if it still happens. In that case I'll try to send a trace if time permits (yesterday I was unable because I have a file as a swap device, and it looks like it can't be used as a dumpdev). Regards, Gus From mailing_list at redmijncomputer.nl Thu Apr 23 06:30:02 2009 From: mailing_list at redmijncomputer.nl (Aniruddha) Date: Thu Apr 23 06:30:09 2009 Subject: usb/133941: Gnomad2 segfaults as normal user, works fine as root Message-ID: <200904230627.n3N6Rt9n057501@www.freebsd.org> >Number: 133941 >Category: usb >Synopsis: Gnomad2 segfaults as normal user, works fine as root >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 23 06:30:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Aniruddha >Release: 7.1 >Organization: >Environment: FreeBSD freebsd.lan 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Gnomad2 immediately segfaults after start up with or without music player plugged in. Gnomad2 works fine as root though. I followed the USB guide to get Gnomad2 working as a normal user ( http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/usb-disks.html ) Terminal output: $ gnomad2 Segmentation fault (core dumped) Terminal output root: # gnomad2 Failed to open connection to D-BUS SESSION bus PTP: Opening session Queried Creative ZEN V Plus PTP: Closing session $ cat /etc/devfs.rules [localrules=5] add path 'da*' mode 0660 group operator $ cat /etc/rc.conf hostname="freebsd.lan" ifconfig_msk0="DHCP" keymap="us.iso" linux_enable="YES" gnome_enable="YES" devfs_system_ruleset="localrules" $ cat /etc/sysctl.conf vfs.usermount=1 $ cat /etc/group | grep aniruddha wheel:*:0:root,aniruddha operator:*:5:root,aniruddha aniruddha:*:1001: haldaemon:*:560:aniruddha >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From hselasky at c2i.net Thu Apr 23 06:59:41 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 23 06:59:48 2009 Subject: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC In-Reply-To: <200904211949.n3LJniob051061@www.freebsd.org> References: <200904211949.n3LJniob051061@www.freebsd.org> Message-ID: <200904230902.11572.hselasky@c2i.net> On Tuesday 21 April 2009, Bruce Cran wrote: > >Number: 133896 > >Category: usb > >Synopsis: [cdce] panic when disconnecting cdce device just before > > powering off PC Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Bruce Cran > >Release: 8.0-CURRENT > >Organization: > >Environment: > > FreeBSD 8.0-CURRENT amd64 > > >Description: > > Running -current from mid-April 2009 I got a panic when shutting > down. I'd pressed the power button on my GTA02 and at about the same > time pressed the power button on my PC too. It seems the GTA02 > CDCE device powered off first, just before FreeBSD was going to power > off: > > Waiting (max 60 seconds) for system process 'vnlru' to stop...done > Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done > Waiting (max 60 seconds) for system process 'syncer' to stop... > Syncing disks, vnodes remaining...1 1 1 0 0 0 done > All buffers synced. > Uptime: 10h12m10s > ugen3.2: at usbus3 (disconnected) > cdce0: at uhub3, port 2, addr 2 (disconnected) > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x288 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80343d3e > stack pointer = 0x28:0xfffffffe4001c8a0 > frame pointer = 0x28:0xfffffffe4001c8c0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > [thread pid 1 tid 100002 ] > Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi > db> bt > Tracing pid 1 tid 100002 td 0xffffff00014d7a80 > _mtx_lock_sleep() at _mtx_lock_sleep+0x4e > _sleep() at _sleep+0x232 > usb2_proc_mwait() at usb2_proc_mwait+0x46 > usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf > cdce_shutdown() at cdce_shutdown+0x11 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > acpi_shutdown() at acpi_shutdown+0x9 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > root_bus_module_handler() at root_bus_module_handler+0x11b > module_shutdown() at module_shutdown+0x84 > boot() at boot+0x37b > reboot() at reboot+0x46 > syscall() at syscall+0x264 > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = > 0x7fffffffe738, rbp = 0x402420 --- > > >How-To-Repeat: > > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I'm working on this issue. --HPS From hselasky at c2i.net Thu Apr 23 07:00:05 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 23 07:00:14 2009 Subject: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC Message-ID: <200904230700.n3N704dq026423@freefall.freebsd.org> The following reply was made to PR usb/133896; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Bruce Cran , freebsd-gnats-submit@freebsd.org Subject: Re: usb/133896: [cdce] panic when disconnecting cdce device just before powering off PC Date: Thu, 23 Apr 2009 09:02:10 +0200 On Tuesday 21 April 2009, Bruce Cran wrote: > >Number: 133896 > >Category: usb > >Synopsis: [cdce] panic when disconnecting cdce device just before > > powering off PC Confidential: no > >Severity: serious > >Priority: low > >Responsible: freebsd-usb > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Tue Apr 21 19:50:00 UTC 2009 > >Closed-Date: > >Last-Modified: > >Originator: Bruce Cran > >Release: 8.0-CURRENT > >Organization: > >Environment: > > FreeBSD 8.0-CURRENT amd64 > > >Description: > > Running -current from mid-April 2009 I got a panic when shutting > down. I'd pressed the power button on my GTA02 and at about the same > time pressed the power button on my PC too. It seems the GTA02 > CDCE device powered off first, just before FreeBSD was going to power > off: > > Waiting (max 60 seconds) for system process 'vnlru' to stop...done > Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done > Waiting (max 60 seconds) for system process 'syncer' to stop... > Syncing disks, vnodes remaining...1 1 1 0 0 0 done > All buffers synced. > Uptime: 10h12m10s > ugen3.2: at usbus3 (disconnected) > cdce0: at uhub3, port 2, addr 2 (disconnected) > > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 00 > fault virtual address = 0x288 > fault code = supervisor read data, page not present > instruction pointer = 0x20:0xffffffff80343d3e > stack pointer = 0x28:0xfffffffe4001c8a0 > frame pointer = 0x28:0xfffffffe4001c8c0 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 1 (init) > [thread pid 1 tid 100002 ] > Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi > db> bt > Tracing pid 1 tid 100002 td 0xffffff00014d7a80 > _mtx_lock_sleep() at _mtx_lock_sleep+0x4e > _sleep() at _sleep+0x232 > usb2_proc_mwait() at usb2_proc_mwait+0x46 > usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf > cdce_shutdown() at cdce_shutdown+0x11 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > acpi_shutdown() at acpi_shutdown+0x9 > bus_generic_shutdown() at bus_generic_shutdown+0x1a > bus_generic_shutdown() at bus_generic_shutdown+0x1a > root_bus_module_handler() at root_bus_module_handler+0x11b > module_shutdown() at module_shutdown+0x84 > boot() at boot+0x37b > reboot() at reboot+0x46 > syscall() at syscall+0x264 > Xfast_syscall() at Xfast_syscall+0xd0 > --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = > 0x7fffffffe738, rbp = 0x402420 --- > > >How-To-Repeat: > > > >Fix: > > > > > >Release-Note: > >Audit-Trail: > >Unformatted: > I'm working on this issue. --HPS From gavin at FreeBSD.org Thu Apr 23 09:05:36 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Thu Apr 23 09:05:48 2009 Subject: ports/133941: audio/gnomad2 segfaults as normal user, works fine as root Message-ID: <200904230905.n3N95Z4L031636@freefall.freebsd.org> Old Synopsis: Gnomad2 segfaults as normal user, works fine as root New Synopsis: audio/gnomad2 segfaults as normal user, works fine as root Responsible-Changed-From-To: freebsd-usb->freebsd-ports-bugs Responsible-Changed-By: gavin Responsible-Changed-When: Thu Apr 23 09:03:01 UTC 2009 Responsible-Changed-Why: Probably more likely to be a ports bug than USB. http://www.freebsd.org/cgi/query-pr.cgi?pr=133941 From gavin at FreeBSD.org Thu Apr 23 11:06:16 2009 From: gavin at FreeBSD.org (gavin@FreeBSD.org) Date: Thu Apr 23 11:06:22 2009 Subject: usb/83677: [usb] [request] usb controller often not detected (Sun W2100z) Message-ID: <200904231106.n3NB6FGW096330@freefall.freebsd.org> Synopsis: [usb] [request] usb controller often not detected (Sun W2100z) State-Changed-From-To: feedback->closed State-Changed-By: gavin State-Changed-When: Thu Apr 23 11:05:07 UTC 2009 State-Changed-Why: Close, feedback timeout (~1 year). I have several of these machines that do not exhibit this issue, with 6.3 and 7.x. Responsible-Changed-From-To: freebsd-usb->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Thu Apr 23 11:05:07 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=83677 From gperez at entel.upc.edu Thu Apr 23 12:32:40 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Thu Apr 23 12:32:52 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904212123.14016.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> Message-ID: <49F05F8F.5000407@entel.upc.edu> Hans Petter Selasky wrote: > On Tuesday 21 April 2009, wsk wrote: > >> lists >> boot panic on current(2009.04.20).it seems caused by usbus4 >> >> Root mount waiting for: usbus4 >> uhub4: 8 ports with 8 removable, self powered >> Root mount waiting for: usbus4 >> ugen4.2: at usbus4 >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x0 >> fault code = supervisor read, page not present >> instruction pointer = 0x20:0xc08ed3a3 >> stack pointer = 0x28:0xe4c38b40 >> frame pointer = 0x28:0xe4c38b44 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0,pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 28 (usbus4) >> trap number = 12 >> panic: page fault >> cpuid = 0 >> uptime: 5s >> Cannot dump. Device not defined or unavailable. >> >> > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not working. As the crash happens before /etc/rc.d/dumpon executes, dumpon doesn't get executed,so dumpdev doesn't point to the place where to save the dump. I tried booting single user without loading both uhci and ehci. I booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled the kernel with ; # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. and changed sysctl kern.coredump=1. Loading uchi throws me to the debugger (ok, that's what I wanted), but the core is not saved to /dev/ad4s3b. Is there something I'm doing wrong ? Am I missing something ? > Is the panic reproducible? > Yes it is. When uhci.ko is loaded is panics. > --HPS > Regards, Gus > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From hselasky at c2i.net Thu Apr 23 12:34:14 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 23 12:34:26 2009 Subject: boot panic on current(04.20) In-Reply-To: <49F05F8F.5000407@entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> Message-ID: <200904231436.43735.hselasky@c2i.net> On Thursday 23 April 2009, Gustau Perez wrote: > Hans Petter Selasky wrote: > > On Tuesday 21 April 2009, wsk wrote: > >> lists > >> boot panic on current(2009.04.20).it seems caused by usbus4 > >> > >> Root mount waiting for: usbus4 > >> uhub4: 8 ports with 8 removable, self powered > >> Root mount waiting for: usbus4 > >> ugen4.2: at usbus4 > >> Fatal trap 12: page fault while in kernel mode > >> cpuid = 0; apic id = 00 > >> fault virtual address = 0x0 > >> fault code = supervisor read, page not present > >> instruction pointer = 0x20:0xc08ed3a3 > >> stack pointer = 0x28:0xe4c38b40 > >> frame pointer = 0x28:0xe4c38b44 > >> code segment = base 0x0, limit 0xfffff, type 0x1b > >> = DPL 0,pres 1, def32 1, gran 1 > >> processor eflags = interrupt enabled, resume, IOPL = 0 > >> current process = 28 (usbus4) > >> trap number = 12 > >> panic: page fault > >> cpuid = 0 > >> uptime: 5s > >> Cannot dump. Device not defined or unavailable. > > > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not > working. As the crash happens before /etc/rc.d/dumpon executes, dumpon > doesn't get executed,so dumpdev doesn't point to the place where to save > the dump. > > I tried booting single user without loading both uhci and ehci. I > booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon > start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled > the kernel with ; > > # Debugging for use in -current > options KDB # Enable kernel debugger support. > options DDB # Support DDB. > > and changed sysctl kern.coredump=1. > > Loading uchi throws me to the debugger (ok, that's what I wanted), > but the core is not saved to /dev/ad4s3b. Is there something I'm doing > wrong ? Am I missing something ? > > > Is the panic reproducible? > > Yes it is. When uhci.ko is loaded is panics. If you type "bt" in the debugger, what are the USB functions being called? --HPS From fxp at corp.iskratelecom.ru Thu Apr 23 12:45:58 2009 From: fxp at corp.iskratelecom.ru (=?UTF-8?B?0K7RgNGC0LDQudC60LjQvSDQkNC90LTRgNC10Lk=?=) Date: Thu Apr 23 12:46:05 2009 Subject: USB KVM problem. Message-ID: <49F05A7B.6000105@corp.iskratelecom.ru> Hi all This KVM (Raritan DKX2-232) uses only one USB connector for both mouse and keyboard. I have several servers with different hardware and FreeBSD from 6.2 to 7.1, and no one works properly the problem is: input doesn`t work at all OR mouse moves interpretend as keyboard pressings OR/AND input with like CTRL pressed, (for example if you hit "T" KVM sending SIGUSR to terminal). Tryed all possible bios options(Legacy USB, Fast USB, etc) . BUT! IF i connect PS/2 keyboard to RUNNING server, and pressing several key on it - miracle happens and KVM works properly for sometime... Server info(this server interpretend mouse moves as text and keyboard pressings as signals): dmesg: uhci0: port 0x4040-0x405f irq 16 at device 29.0 on pci0 ukbd0: on uhub1 kbd2 at ukbd0 usbdevs -v: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 addr 2: full speed, power 100 mA, config 1, RU-CIM(0x1005), RU(0x14dd), rev 0.00 <<-- this is KVM uname -a: FreeBSD xx 7.1-RELEASE FreeBSD 7.1-RELEASE #3: Fri Jan 2 13:30:10 MSK 2009 fxp@xx:/usr/obj/usr/src/sys/GENERIC i386 kbdcontrol -k /dev/ukbd0 < /dev/console kbdcontrol: cannot open /dev/ukbd0: Device busy kldload kbdmux kldload: can't load kbdmux: File exists any ideas ? From gperez at entel.upc.edu Thu Apr 23 21:05:17 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Thu Apr 23 21:05:24 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904212123.14016.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> Message-ID: <49F05F8F.5000407@entel.upc.edu> Hans Petter Selasky wrote: > On Tuesday 21 April 2009, wsk wrote: > >> lists >> boot panic on current(2009.04.20).it seems caused by usbus4 >> >> Root mount waiting for: usbus4 >> uhub4: 8 ports with 8 removable, self powered >> Root mount waiting for: usbus4 >> ugen4.2: at usbus4 >> Fatal trap 12: page fault while in kernel mode >> cpuid = 0; apic id = 00 >> fault virtual address = 0x0 >> fault code = supervisor read, page not present >> instruction pointer = 0x20:0xc08ed3a3 >> stack pointer = 0x28:0xe4c38b40 >> frame pointer = 0x28:0xe4c38b44 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0,pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 28 (usbus4) >> trap number = 12 >> panic: page fault >> cpuid = 0 >> uptime: 5s >> Cannot dump. Device not defined or unavailable. >> >> > > Can you compile a kernel with debugging and get a backtrace? > > I'm trying to get the dump saved to /var/crash but seems it is not working. As the crash happens before /etc/rc.d/dumpon executes, dumpon doesn't get executed,so dumpdev doesn't point to the place where to save the dump. I tried booting single user without loading both uhci and ehci. I booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled the kernel with ; # Debugging for use in -current options KDB # Enable kernel debugger support. options DDB # Support DDB. and changed sysctl kern.coredump=1. Loading uchi throws me to the debugger (ok, that's what I wanted), but the core is not saved to /dev/ad4s3b. Is there something I'm doing wrong ? Am I missing something ? > Is the panic reproducible? > Yes it is. When uhci.ko is loaded is panics. > --HPS > Regards, Gus > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From wsk at gddsn.org.cn Fri Apr 24 00:20:48 2009 From: wsk at gddsn.org.cn (wsk) Date: Fri Apr 24 00:20:55 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904231436.43735.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> Message-ID: <49F1017C.7060805@gddsn.org.cn> Hans Petter Selasky ??: > On Thursday 23 April 2009, Gustau Perez wrote: > >> Hans Petter Selasky wrote: >> >>> On Tuesday 21 April 2009, wsk wrote: >>> >>>> lists >>>> boot panic on current(2009.04.20).it seems caused by usbus4 >>>> >>>> Root mount waiting for: usbus4 >>>> uhub4: 8 ports with 8 removable, self powered >>>> Root mount waiting for: usbus4 >>>> ugen4.2: at usbus4 >>>> Fatal trap 12: page fault while in kernel mode >>>> cpuid = 0; apic id = 00 >>>> fault virtual address = 0x0 >>>> fault code = supervisor read, page not present >>>> instruction pointer = 0x20:0xc08ed3a3 >>>> stack pointer = 0x28:0xe4c38b40 >>>> frame pointer = 0x28:0xe4c38b44 >>>> code segment = base 0x0, limit 0xfffff, type 0x1b >>>> = DPL 0,pres 1, def32 1, gran 1 >>>> processor eflags = interrupt enabled, resume, IOPL = 0 >>>> current process = 28 (usbus4) >>>> trap number = 12 >>>> panic: page fault >>>> cpuid = 0 >>>> uptime: 5s >>>> Cannot dump. Device not defined or unavailable. >>>> >>> Can you compile a kernel with debugging and get a backtrace? >>> >> I'm trying to get the dump saved to /var/crash but seems it is not >> working. As the crash happens before /etc/rc.d/dumpon executes, dumpon >> doesn't get executed,so dumpdev doesn't point to the place where to save >> the dump. >> >> I tried booting single user without loading both uhci and ehci. I >> booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon >> start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled >> the kernel with ; >> >> # Debugging for use in -current >> options KDB # Enable kernel debugger support. >> options DDB # Support DDB. >> >> and changed sysctl kern.coredump=1. >> >> Loading uchi throws me to the debugger (ok, that's what I wanted), >> but the core is not saved to /dev/ad4s3b. Is there something I'm doing >> wrong ? Am I missing something ? >> >> >>> Is the panic reproducible? >>> >> Yes it is. When uhci.ko is loaded is panics. >> > > If you type "bt" in the debugger, what are the USB functions being called? > > --HPS > > Stopped at strcmp+0x23: movzbl 0(%ebx),%edx db>bt Tracing pid 28 tid 100054 td 0xc4d6c690 strcmp(0,c0c0bded,2,c4d7cc00,e4c44ba8,...) at strcmp+0x23 malloc_desc2type(c0c0bded,c0895b50,e4c44b78,a,e4c44bb4,...) at malloc_desc2type+0x24 usb2_notify_addq(c0c2de6d,c4d7cef8,c4d7cf7e,c4a9ba10,2,...) at usb2_notify_addq+0x5d usb2_alloc_device(c4ca8a00,c4b32c50,c4d72400,1,6,...) at usb_alloc_device+0xce3 uhub_explore(c4d72400,1,3,0,c4b32d84,...) at uhub_explore+0x50f usb2_bus_explore(c4b32d34,14,c0c35681,4d,0,...) at usb2_bus_explore+0xf9 usb2_process(c4b32cd4,e4c44d38,0,0,0,...) at usb2_process+0xfc fork_exit(c07a5490,c4b32cd4,e4c44d38) at fork_exit+0x91 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip =0,esp =0xe4c44d70,ebp = 0 --- From hselasky at c2i.net Fri Apr 24 06:04:36 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Fri Apr 24 06:04:42 2009 Subject: boot panic on current(04.20) In-Reply-To: <49F1017C.7060805@gddsn.org.cn> References: <49ED3E7D.8080606@gddsn.org.cn> <200904231436.43735.hselasky@c2i.net> <49F1017C.7060805@gddsn.org.cn> Message-ID: <200904240807.04844.hselasky@c2i.net> On Friday 24 April 2009, wsk wrote: > Hans Petter Selasky ??: > > On Thursday 23 April 2009, Gustau Perez wrote: > >> Hans Petter Selasky wrote: > >>> On Tuesday 21 April 2009, wsk wrote: > >>>> lists > >>>> boot panic on current(2009.04.20).it seems caused by usbus4 > >>>> > >>>> Root mount waiting for: usbus4 > >>>> uhub4: 8 ports with 8 removable, self powered > >>>> Root mount waiting for: usbus4 > >>>> ugen4.2: at usbus4 > >>>> Fatal trap 12: page fault while in kernel mode > >>>> cpuid = 0; apic id = 00 > >>>> fault virtual address = 0x0 > >>>> fault code = supervisor read, page not present > >>>> instruction pointer = 0x20:0xc08ed3a3 > >>>> stack pointer = 0x28:0xe4c38b40 > >>>> frame pointer = 0x28:0xe4c38b44 > >>>> code segment = base 0x0, limit 0xfffff, type 0x1b > >>>> = DPL 0,pres 1, def32 1, gran 1 > >>>> processor eflags = interrupt enabled, resume, IOPL = 0 > >>>> current process = 28 (usbus4) > >>>> trap number = 12 > >>>> panic: page fault > >>>> cpuid = 0 > >>>> uptime: 5s > >>>> Cannot dump. Device not defined or unavailable. > >>> > >>> Can you compile a kernel with debugging and get a backtrace? > >> > >> I'm trying to get the dump saved to /var/crash but seems it is not > >> working. As the crash happens before /etc/rc.d/dumpon executes, dumpon > >> doesn't get executed,so dumpdev doesn't point to the place where to save > >> the dump. > >> > >> I tried booting single user without loading both uhci and ehci. I > >> booted fined. I tried launching swapon /dev/ad4s3b and /etc/rc.d/dumpon > >> start. Looking at /dev/dumpdev it points to /dev/ad4s3b, fine. Compiled > >> the kernel with ; > >> > >> # Debugging for use in -current > >> options KDB # Enable kernel debugger support. > >> options DDB # Support DDB. > >> > >> and changed sysctl kern.coredump=1. > >> > >> Loading uchi throws me to the debugger (ok, that's what I wanted), > >> but the core is not saved to /dev/ad4s3b. Is there something I'm doing > >> wrong ? Am I missing something ? > >> > >>> Is the panic reproducible? > >> > >> Yes it is. When uhci.ko is loaded is panics. > > > > If you type "bt" in the debugger, what are the USB functions being > > called? > > > > --HPS > > Stopped at strcmp+0x23: movzbl 0(%ebx),%edx > db>bt > Tracing pid 28 tid 100054 td 0xc4d6c690 > strcmp(0,c0c0bded,2,c4d7cc00,e4c44ba8,...) at strcmp+0x23 > malloc_desc2type(c0c0bded,c0895b50,e4c44b78,a,e4c44bb4,...) at > malloc_desc2type+0x24 > usb2_notify_addq(c0c2de6d,c4d7cef8,c4d7cf7e,c4a9ba10,2,...) at > usb2_notify_addq+0x5d > usb2_alloc_device(c4ca8a00,c4b32c50,c4d72400,1,6,...) at > usb_alloc_device+0xce3 > uhub_explore(c4d72400,1,3,0,c4b32d84,...) at uhub_explore+0x50f > usb2_bus_explore(c4b32d34,14,c0c35681,4d,0,...) at usb2_bus_explore+0xf9 > usb2_process(c4b32cd4,e4c44d38,0,0,0,...) at usb2_process+0xfc > fork_exit(c07a5490,c4b32cd4,e4c44d38) at fork_exit+0x91 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip =0,esp =0xe4c44d70,ebp = 0 --- > The problem appears to be that there is a "struct malloc_type" ( See MALLOC_DEFINE()) in the kernel having a NULL string. Please check the source code. And easy way to figure out the real problem is to add: sys/kern/kern_malloc.c malloc_init(void *data) { struct malloc_type_internal *mtip; struct malloc_type *mtp; KASSERT(cnt.v_page_count != 0, ("malloc_register before vm_init")); mtp = data; KASSERT(mtp->ks_magic == M_MAGIC, ("malloc_init: bad malloc type magic")); + KASSERT(mtp->ks_shortdesc != NULL, + ("malloc_init: bad short description")); mtip = uma_zalloc(mt_zone, M_WAITOK | M_ZERO); mtp->ks_handle = mtip; mtx_lock(&malloc_mtx); mtp->ks_next = kmemstatistics; kmemstatistics = mtp; kmemcount++; mtx_unlock(&malloc_mtx); } --HPS From gperez at entel.upc.edu Fri Apr 24 11:20:17 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Fri Apr 24 11:20:36 2009 Subject: boot panic on current(04.20) In-Reply-To: <200904231436.43735.hselasky@c2i.net> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> Message-ID: <49F1A016.1050003@entel.upc.edu> > If you type "bt" in the debugger, what are the USB functions being called? > > db> bt Tracing pid 46 tid 100059 td 0xc76ced20 strcmp(0,c0d4b100,c77b0000,c77b037e,ea44ebe8,...) at strcmp+0x23 malloc_desc2type(c0d4b100,0,c0d4b8e7,912,ffffffff,...) at malloc_desc2type+0x24 usb2_notify_addq(c0d4c056,c77b02f8,c77b037e,c772f420,2,...) at usb2_notify_addq+ 0x3d usb2_alloc_device(c7a41280,c7a33cf0,0,0,0,...) at usb2_alloc_device+0x9e8 usb2_bus_attach(c7a33e24,0,c0d53972,51,c0688c49,...) at usb2_bus_attach+0x128 usb2_process(c7a33d74,ea44ed38,bfbfed8c,0,0,...) at usb2_process+0xda fork_exit(c0d3d5f0,c7a33d74,ea44ed38) at fork_exit+0x91 fork_trampoline() at fork_trampoline+0x8 --- trap 0, eip = 0, esp = 0xea44ed70, ebp = 0 --- I think more or less like wsk. Mmmm could it be related to the sysctl -a problem discussed today ? Will try recompiling fuse and kqemu. Will let you know. Regards, Gus From rwatson at FreeBSD.org Fri Apr 24 12:11:42 2009 From: rwatson at FreeBSD.org (Robert Watson) Date: Fri Apr 24 12:11:48 2009 Subject: boot panic on current(04.20) In-Reply-To: <49F1A016.1050003@entel.upc.edu> References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> <49F1A016.1050003@entel.upc.edu> Message-ID: On Fri, 24 Apr 2009, Gustau Perez wrote: > Tracing pid 46 tid 100059 td 0xc76ced20 > strcmp(0,c0d4b100,c77b0000,c77b037e,ea44ebe8,...) at strcmp+0x23 > malloc_desc2type(c0d4b100,0,c0d4b8e7,912,ffffffff,...) at > malloc_desc2type+0x24 > usb2_notify_addq(c0d4c056,c77b02f8,c77b037e,c772f420,2,...) at > usb2_notify_addq+ > 0x3d > usb2_alloc_device(c7a41280,c7a33cf0,0,0,0,...) at usb2_alloc_device+0x9e8 > usb2_bus_attach(c7a33e24,0,c0d53972,51,c0688c49,...) at usb2_bus_attach+0x128 > usb2_process(c7a33d74,ea44ed38,bfbfed8c,0,0,...) at usb2_process+0xda > fork_exit(c0d3d5f0,c7a33d74,ea44ed38) at fork_exit+0x91 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0, eip = 0, esp = 0xea44ed70, ebp = 0 --- > > I think more or less like wsk. Mmmm could it be related to the sysctl -a > problem discussed today ? Will try recompiling fuse and kqemu. Will let you > know. The above is characteristic of using an old module with a kernel compiled for the new malloc.h. Rebuilding should fix it. Robert N M Watson Computer Laboratory University of Cambridge From emikulic at gmail.com Sat Apr 25 08:10:03 2009 From: emikulic at gmail.com (Emil Mikulic) Date: Sat Apr 25 08:10:09 2009 Subject: usb/133989: USB keyboard dead at mountroot> prompt Message-ID: <20090425074447.220715C45@ppp154-240.static.internode.on.net> >Number: 133989 >Category: usb >Synopsis: USB keyboard dead at mountroot> prompt >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 25 08:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Emil Mikulic >Release: FreeBSD 8-CURRENT r191477 >Organization: >Environment: i386 >Description: At boot time, if I get dropped to the mountroot> prompt due to e.g. screwing up vfs.root.mountfrom, my USB keyboard doesn't respond at all, and I can't do anything but hard-reset my computer. emax's r191164 makes no difference ("Prevent atkbd(4) interrupt handler from calling keyboard callback function when polled mode is enabled.") Kernels before and after that patch behave the same. Removing kbdmux also has no effect. Removing all of USB2 from the kernel config makes the keyboard work at the mountroot> prompt (BIOS emulation?) In a healthy boot, ukbd0 doesn't get recognized until -after- the root FS is mounted and /sbin/init starts. At Hans Petter Selasky's suggestion, I added a pause() to cngetc(): --- a/sys/kern/kern_cons.c +++ b/sys/kern/kern_cons.c @@ -353,7 +353,7 @@ cngetc(void) if (cn_mute) return (-1); while ((c = cncheckc()) == -1) - ; + pause("WAIT", hz/10); if (c == '\r') c = '\n'; /* console input is always ICRNL */ return (c); With this change, a few seconds after the mountroot> prompt is displayed, the USB keyboard is detected (and added to kbdmux) and I can hit scroll lock and scroll up and down, and even hit Ctrl+PrtScr to break into debugger (which then gets into an infinite loop of panics), but I can't get keypresses through to the mountroot> prompt. Giant is picked up in start_init() and I'm pretty sure is held in cngetc(). I've tried dropping it around the pause() above but that made no difference. >How-To-Repeat: On a system with only a USB keyboard, at the /boot/loader prompt, set vfs.root.mountfrom="ufs:something/silly" and boot. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From gperez at entel.upc.edu Sat Apr 25 09:21:25 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Sat Apr 25 09:21:32 2009 Subject: boot panic on current(04.20) In-Reply-To: References: <49ED3E7D.8080606@gddsn.org.cn> <200904212123.14016.hselasky@c2i.net> <49F05F8F.5000407@entel.upc.edu> <200904231436.43735.hselasky@c2i.net> <49F1A016.1050003@entel.upc.edu> Message-ID: <49F2D5B5.20607@entel.upc.edu> >> >> I think more or less like wsk. Mmmm could it be related to the sysctl >> -a problem discussed today ? Will try recompiling fuse and kqemu. >> Will let you know. > > The above is characteristic of using an old module with a kernel > compiled for the new malloc.h. Rebuilding should fix it. Right. Kqemu and fusefs-kmod were the offending modules. Rebuilding them with against today sources fixed the problem. Instead nvidia driver doesn't have those problems ... There's still one issue that I can't test today (until next monday, because my dock is in the office) and is the hot undocking problem with usb, which seems to be fixed with r191395. I'll report ASAP. Regards, Gus From gperez at entel.upc.edu Sun Apr 26 19:05:27 2009 From: gperez at entel.upc.edu (Gustau Perez) Date: Sun Apr 26 19:05:35 2009 Subject: Signal sensitivity problem with if_rum Message-ID: <49F4B018.1000703@entel.upc.edu> Hi, I think this is right place to post, if it is not, please let me know. I'm experiencing problems with two different devices using if_rum. One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC The first one is about sensitivity, which is very low: for example, I'm detecting just two or three networks around me (with windows them detect around 14 or 15 networks) and the reported signal is very low. Placing the sensor very near to my wireless network AP (which is a FreeBSD machine with atheros card placing the txpower to 20) reports a signal quality of 50% or 60%. Linux presents the same problem (my wife's laptop with ubuntu shows the same figures, more or less). Instead with windows it works just fine. The other one is that having such a low sensitivity makes those dongles unusable when making large transfers, mostly when using scp/sftp or sshfs (samba seems to make it work better for longer transfer, but finally the problem appears). At some given point, the dongles seem to lose contact with the AP (making ifconfig shows that wlan0 is still associated), waiting for a period of time (usually one or two minutes) the transfer continues. Probably both problems are related. In order to debug the problem I tried looking dmesg in both my AP and my laptop (no trace). Tried looking at the ssh logs (when making large transfers, no clue). In the only place I found something was in the samba logs, only saying that there was a problem with the transfer (broken pipe, the socket is closed). In the linux world, I found that the register which controls the sensitivity is bbp17. Tried looking in /usr/src/sys/dev/usb/wlan/if_rum.c, but I get lost. Tried with sysctl -a | grep rum or grep wlan0, but no MiB related to sensitivity appeared. Is there anything I can try ? Regards, Gus From bugmaster at FreeBSD.org Mon Apr 27 11:07:05 2009 From: bugmaster at FreeBSD.org (FreeBSD bugmaster) Date: Mon Apr 27 11:09:25 2009 Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org Message-ID: <200904271107.n3RB73es002464@freefall.freebsd.org> Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o usb/133989 usb USB keyboard dead at mountroot> prompt o usb/133896 usb [cdce] [newusb] panic when disconnecting cdce device j o usb/133817 usb [newusb] broken umass compile f usb/133545 usb [usb] [panic] Kernel crash in usb2_intr_schedule_adjus o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb rum driver not working properly in hostap mode p usb/132799 usb [usb][patch]GENESYS USB2IDE requires NO_SYNCHRONIZE_CA o usb/132785 usb [usb] [patch] Gemtech remote powersocket is classed as o usb/132594 usb USB subsystem causes page fault and crashes o usb/132312 usb Xorg 7.4 halts USB controller o usb/132080 usb [patch] [usb] Kernel panic after NOMEM caused by rum c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131912 usb [uslcom] [patch] New devices using Silicon Labs chips o usb/131900 usb [usbdevs] [patch] Additional product identification co o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c f usb/131123 usb [patch] re-add UQ_ASSUME_CM_OVER_DATA USB quirk o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130325 usb [usb] [patch] fix tools/tools/usb/print-usb-if-vids.sh o usb/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [newusb] DVD drive detects as 'da' device o docs/129962 usb [newusb] usbconfig(8) refers to non-existant usb2_core o usb/129945 usb [usbdevs] [patch] add u3g support for Longcheer WM66 U o usb/129766 usb [usb] plugging in usb modem HUAWEI E226 panics system o usb/129758 usb [uftdi] [patch] add Pyramid LCD usb support o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129522 usb [ubsa] [patch] add support for ZTE AC8700 modem o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader o usb/129251 usb [usbdevs] [patch] Liebert UPS being assigned uhid and o usb/129173 usb [uplcom] [patch] Add support for Corega CG-USBRS232R a s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb] [patch] uaudio is not full duplex o usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive f usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/128324 usb [uplcom] [patch] remove baud rate restriction for PL23 o usb/127980 usb [umass] [patch] Fix Samsung YP U2 MP3 player on 7.x an o usb/127926 usb [boot] USB Timeout during bootup o usb/127549 usb [umass] [patch] Meizu MiniPlayer M6 (SL) requires some s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should o usb/127423 usb [boot] BTX halted on Gigabyte GA-MA69VM-S2 / AMD Sempr o usb/127342 usb [boot] cannot enable usb keyboard and mouse support in o usb/127248 usb [ucom] panic while uplcom devices attaach and detach o kern/127222 usb [ohci]: Regression in 7.0 usb storage generic driver o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c f usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125736 usb [ukbd] [hang] system hangs after AT keyboard detect if o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125264 usb [patch] sysctl for set usb mouse rate (very useful for o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/123509 usb [umass] continuous reset Samsung SGH-G600 phone o usb/123352 usb [usbdevs] [patch] Add Option GTMAX3.6/7.2 and Quallcom o usb/123351 usb [usbdevs] [patch] Add Reiner SCT cyberJack, Omnikey [2 o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122956 usb [ubsa] [patch] add support for Novatel Wireless XU870 o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/122621 usb [patch] [request] New driver for Sierra Wireless 3G US o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/122025 usb [uscanner] [patch] uscanner does not attach to Epson R o usb/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121426 usb [patch] [uscanner] add HP ScanJet 3570C o usb/121275 usb [boot] FreeBSD fails to boot with usb legacy support e o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [umass] [patch] quirk to support ASUS P535 as umass (a o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119981 usb [axe] [patch] add support for LOGITEC LAN-GTJ/U2 gigab o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/118686 usb [usbdevs] [patch] teach usbdevs / ubsa(4) about Huawei o usb/118485 usb [usbdevs] [patch] Logitech Headset Workaround o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [uaudio] [patch] Not possible to record with Plantroni o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a o usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [umass] [patch] Problems with connection of the umass o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113977 usb [request] Need a way to set mode of USB disk's write c o usb/113672 usb [ehci] [panic] Kernel panic with AEWIN CB6971 s usb/113629 usb [ukbd] Dropped USB keyboard events on Dell Latitude D6 o usb/113432 usb [ucom] WARNING: attempt to net_add_domain(netgraph) af a usb/113060 usb [usbdevs] [patch] Samsung printer not working in bidir o usb/112944 usb [ulpt] [patch] Bi-directional access to HP LaserJet 10 o usb/112640 usb [usb] [hang] Kernel freezes when writing a file to an o usb/112631 usb [panic] Problem with SONY DSC-S80 camera on umount s usb/112568 usb [umass] [request] USB mode may wrong when mounting Pla o usb/112463 usb [umass] problem with Samsung USB DVD writer, libscg an o usb/112461 usb [ehci] [request] ehci USB 2.0 doesn't work on nforce4 o usb/111753 usb [uhid] [panic] Replicable system panic involving UHID o usb/110856 usb [ugen] [patch] interrupt in msgs are truncated when bu o usb/110197 usb [umass] Sony PSP umass device does not detach from EHC o usb/109397 usb [panic] on boot from USB flash o usb/109274 usb [usb] MCP55 USB Controller fails to attach in AMD64 Cu o usb/108513 usb [umass] Creative MuVo TX FM fails in 6.2-RELEASE [regr s usb/108344 usb [panic] kernel with atausb panics when unplugging USB o usb/108056 usb [ohci] Mouse gets powered off during device probe when o usb/107935 usb [uplcom] [panic] panic while accessing /dev/cuaU0 o usb/107924 usb [patch] usbd(8) does not call detach o usb/107848 usb [umass] [request] cannot access Samsung flash disk o usb/107827 usb [ohci] [panic] ohci_add_done addr not found o usb/107496 usb [uhub] USB device problem on RELENG_6_2 (SHORT_XFER) [ o usb/107388 usb [patch] [request] new driver: add utoppy device from N o usb/107248 usb [umass] [patch] scsi_da.c quirk for Cowon iAUDIO X5 MP o usb/107243 usb [cam] [patch] Apacer USB Flash Drive quirk o usb/106861 usb [usbdevs] [patch]: usbdevs update: Add product ACER Ze s usb/106832 usb [usb] USB HP printer is not detected by kernel when AC o usb/106648 usb [umass] [hang] USB Floppy on D1950 10 min Hang on Inse o usb/106621 usb [axe] [patch] DLINK DUB-E100 support broken o usb/106615 usb [uftdi] uftdi module does not automatically load with o usb/106041 usb [usb] [request] FreeBSD does not recognise Mustek Bear o usb/105361 usb [panic] Kernel panic during unmounting mass storage (C o usb/105186 usb [ehci] [panic] USB 2.0/ehci on FreeBSD 6.2-PRE/AMD64 c o usb/105065 usb [ata] [usb] SATA - USB Bridge o usb/104830 usb [umass] system crashes when copying data to umass devi o usb/104645 usb [umass] [request] Rave C-201 MP3 player does not commu o usb/104352 usb [ural] [patch] ural driver doesnt work o usb/104292 usb [umass] [hang] system lockup on forced umount of usb-s o usb/104290 usb [umass] [patch] quirk: TOSHIBA DVD-RAM drive (libretto o usb/103917 usb [uhub] USB driver reports "Addr 0 should never happen" o usb/103418 usb usbhidctl(1): [patch] [request] usbhidctl: add ability o usb/103289 usb [request] USB 2.0 problems on AMD LX-800 CPU and CS-55 o usb/103046 usb [ulpt] [patch] ulpt event driven I/O with select(2) an o usb/103025 usb [uhub] [panic] wrong detection of USB device for FreeB o usb/102976 usb [panic] Casio Exilim Digital Camera causes panic on in o usb/102678 usb [keyboard] Dell PowerEdge DRAC5 USB Keyboard does not o usb/102066 usb [ukbd] usb keyboard and multimedia keys don't work o usb/101775 usb [libusbhid] [patch] possible error in report descripto o usb/101761 usb [usb] [patch] [request] usb.h: increase maximal size o o usb/101752 usb [umass] [panic] 6.1-RELEASE kernel panic on usb device o usb/101448 usb [ohci] FBSD 6.1-STABLE/AMD64 crashes under heavy USB/O o usb/101096 usb [ural] [panic] USB WLAN occasionally causes kernel-pan o usb/100746 usb [keyboard] system does not boot due to USB keyboard pr o usb/99538 usb [keyboard] while using USB keyboard default params of o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93408 usb [mouse] hw.acpi.cpu.cx_lowest=C3 on AMD Turion causes o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/93155 usb [ulpt] /dev/ulpt0: device busy, USB printer does not w o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91629 usb [usb] usbd_abort_pipe() may result in infinite loop o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device f usb/84750 usb [hang] 6-BETA2 reboot/shutdown with root_fs on externa s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/84326 usb [umass] Panic trying to connect SCSI tape drive via US o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80862 usb [patch] USB locking issues: missing some Giant calls o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me o usb/80829 usb [modules] [panic] possible panic when loading USB-modu s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails o usb/80040 usb [hang] Use of sound mixer causes system freeze with ua o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/79722 usb [ehci] wrong alignments in ehci.h a usb/79656 usb [ehci] RHSC interrupts lost o usb/79524 usb [ulpt] printing to Minolta PagePro 1[23]xxW via USB fa o usb/79287 usb [uhci] [hang] UHCI hang after interrupt transfer o usb/79269 usb [ohci] USB ohci da0 plug/unplug causes crashes and loc o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/77184 usb [umass] [panic] kernel panic on USB device disconnect, o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by o usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75797 usb [sound] 5.3-STABLE(2005 1/4) detect USB headset, But c o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for o usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) o usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o i386/46371 usb USB controller cannot be initialized on IBM Netfinity o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 309 problems total. From yshd at na.rim.or.jp Wed Apr 29 09:40:02 2009 From: yshd at na.rim.or.jp (Yoshihide Sonoda) Date: Wed Apr 29 09:40:08 2009 Subject: usb/134085: [umass] Adding usb quirk for Sony USB flash drive Message-ID: <200904290933.n3T9XrgB080535@www.freebsd.org> >Number: 134085 >Category: usb >Synopsis: [umass] Adding usb quirk for Sony USB flash drive >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 29 09:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Yoshihide Sonoda >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD eagle.ys.sokohiki.org 8.0-CURRENT FreeBSD 8.0-CURRENT #35: Wed Apr 29 02:11:05 JST 2009 root@eagle.ys.sokohiki.org:/usr/obj/usr/src/sys/eagle amd64 >Description: When I used Sony's USB flash drive(*) with zfs, the following messages was displayed many times. kernel: (da0:umass-sim0:0:0:0): SYNCHRONIZE CACHE(10). CDB: 35 0 0 0 0 0 0 0 0 0 kernel: (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error kernel: (da0:umass-sim0:0:0:0): SCSI Status: Check Condition kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:24,0 kernel: (da0:umass-sim0:0:0:0): Invalid field in CDB kernel: (da0:umass-sim0:0:0:0): Unretryable error (*) The Web site of the USB flash drive(Japanese): http://www.sony.jp/pocketbit/products/USM_LX_SERIES/ # usbconfig -u 7 -a 2 dump_device_desc ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x054c idProduct = 0x0243 bcdDevice = 0x0200 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <6A0904020005022> bNumConfigurations = 0x0001 >How-To-Repeat: 1) Connect Sony's USB flash drive. kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 kernel: umass0:1:0:-1: Attached to scbus1 kernel: da0 at umass-sim0 bus 0 target 0 lun 0 kernel: da0: Removable Direct Access SCSI-2 device kernel: da0: 40.000MB/s transfers kernel: da0: 7648MB (15663104 512 byte sectors: 255H 63S/T 974C) 2) Make a zfs pool on the drive. # zpool create usbpool /dev/da0s1 >Fix: Please add the following code. --- usbdevs.orig 2009-04-21 22:40:58.203008000 +0900 +++ usbdevs 2009-04-29 01:56:14.545345677 +0900 @@ -2278,6 +2278,7 @@ product SONY CLIE_TH55 0x0144 Sony Clie th55 product SONY CLIE_TJ37 0x0169 Sony Clie tj37 product SONY RF_RECEIVER 0x01db Sony RF mouse/kbd Receiver VGP-WRC1 +product SONY USBM_PBIT 0x0243 Sony USB Memory POCKETBIT /* Sony Ericsson products */ product SONYERICSSON DCU10 0x0528 USB Cable --- umass.c.orig 2009-04-07 01:12:41.477295000 +0900 +++ umass.c 2009-04-29 02:02:28.802546498 +0900 @@ -848,6 +848,10 @@ static const struct umass_devdescr umass UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, + {USB_VENDOR_SONY, USB_PRODUCT_SONY_USBM_PBIT, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_SYNCHRONIZE_CACHE + }, {USB_VENDOR_SUPERTOP, USB_PRODUCT_SUPERTOP_IDE, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, IGNORE_RESIDUE | NO_SYNCHRONIZE_CACHE >Release-Note: >Audit-Trail: >Unformatted: From ee at athyriogames.com Wed Apr 29 15:18:40 2009 From: ee at athyriogames.com (Engineering) Date: Wed Apr 29 15:18:47 2009 Subject: Isochronous transfer missing frames on USB4? In-Reply-To: <200903032243.31914.hselasky@c2i.net> References: <200903010045.44904.man@email.com.ua> <200903031516.02744.hselasky@c2i.net> <200903032006.54451.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> Message-ID: <000f01c9c8dd$c4fdba20$4ef92e60$@com> Hello all. I am having an odd problem getting a UVC webcam to work on FreeBSD Little background: This is for an arcade game - needs to be able to run for weeks unattended at a bar Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage is compact flash, with a CF-IDE adapter Webcam is no-name Chinese, which is supposed to conform to UVC spec - no other documentation 'Driver' is modified ugen with Hans Petter's newest stack. Running high-speed isochronous transfers. We've been running for months with no problems, but now that production motherboards and cameras are coming in, something is cropping up. The webcam is locked at 160x120, 30fps At this rate, it always gives me 39 frames of data per video frame 37 frames of 1024, 1 frame of 968, 1 frame of 12 Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 bytes, which is exactly correct The last 12 byte header contains no data, but contains the end of frame bit Cannot confirm, but it only seems to happen when webcam is plugged into the USB port directly underneath the etherNet jack. Timing issue? Priority? Any suggestions on where to look? Thanks, Sam I have _tons_ of logs and source, but I'll snip what seems relevant for now... Apr 28 17:09:04 kernel: FreeBSD 7.0-RELEASE #9: Wed Mar 18 08:04:55 CDT 2009 Apr 28 17:09:04 kernel: usb4: EHCI version 1.0 Apr 28 17:09:04 kernel: usb4: on ehci0 Apr 28 17:09:04 kernel: usb0: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub0: on usb0 Apr 28 17:09:04 kernel: uhub0: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb1: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub1: on usb1 Apr 28 17:09:04 kernel: uhub1: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb2: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub2: on usb2 Apr 28 17:09:04 kernel: uhub2: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb3: 12Mbps Full Speed USB v1.0 Apr 28 17:09:04 kernel: uhub3: on usb3 Apr 28 17:09:04 kernel: uhub3: 2 ports with 2 removable, self powered Apr 28 17:09:04 kernel: usb4: 480Mbps High Speed USB v2.0 Apr 28 17:09:04 kernel: uhub4: on usb4 Apr 28 17:09:04 kernel: uhub4: 8 ports with 8 removable, self powered Apr 28 17:09:04 kernel: ugen0: on usb4 Apr 28 17:09:04 kernel: make_dev uvc.1 // My debug messages follow Apr 28 17:09:19 kernel: set config 0 Apr 28 17:09:19 kernel: make_dev uvc.1 Apr 28 17:09:19 kernel: set config 1 Apr 28 17:09:19 kernel: make_dev uvc.1 Apr 28 17:09:19 kernel: make_dev uvc.2 Apr 28 17:09:19 kernel: ugen_get_cdesc -1 Apr 28 17:09:19 kernel: usbd_find_idesc 0 0 Apr 28 17:09:19 kernel: UVC Start read uvc returned 0 Apr 28 17:09:19 kernel: High speed 64 frames Apr 28 17:09:19 kernel: ugen_open_pipe_read: isoc open done // Megabytes of this stuff... Shows the raw byte count of each of the 64 frames coming back on iso_read_callback Apr 28 17:09:19 kernel: 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 28 17:09:19 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 Apr 28 17:09:19 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 Apr 28 17:09:19 kernel: 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 28 17:09:19 kernel: 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 37 frames of 1024, 1 frame of 968, 1 frame of 12 Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 bytes, which is exactly correct The last 12 byte header contains no data, but contains the end of frame bit After time - problems cropping up - a complete packet goes missing - easiest to see if the 968 or 12 goes, but it happens to the 1024s too When missing, the packet is completely gone - 0 bytes Apr 29 13:40:25 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 Apr 29 13:40:25 kernel: 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 Apr 29 13:40:25 kernel: 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 Apr 29 13:40:25 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 NOTE HERE THE '12' PACKET IS GONE: Apr 29 13:40:25 kernel: 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 968 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Apr 29 13:40:25 kernel: 0 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 Apr 29 13:40:25 kernel: 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 Apr 29 13:40:25 kernel: 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 Apr 29 13:40:25 kernel: 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 1024 0 0 0 0 0 1024 0 0 0 0 0 0 0 1024 0 0 0 0 968 12 0 0 0 From hselasky at c2i.net Wed Apr 29 18:22:44 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Apr 29 18:22:51 2009 Subject: Isochronous transfer missing frames on USB4? In-Reply-To: <000f01c9c8dd$c4fdba20$4ef92e60$@com> References: <200903010045.44904.man@email.com.ua> <200903032243.31914.hselasky@c2i.net> <000f01c9c8dd$c4fdba20$4ef92e60$@com> Message-ID: <200904292025.15728.hselasky@c2i.net> On Wednesday 29 April 2009, Engineering wrote: > Hello all. I am having an odd problem getting a UVC webcam to work on > FreeBSD > > Little background: > This is for an arcade game - needs to be able to run for weeks unattended > at a bar > Running of Intel D945PLNM board, nVidia 9500GT series video card. Storage > is compact flash, with a CF-IDE adapter > Webcam is no-name Chinese, which is supposed to conform to UVC spec - no > other documentation > > 'Driver' is modified ugen with Hans Petter's newest stack. Are you running stock -current code without any patches? And from which date? Do you have more than 4GB of RAM? > Running > high-speed isochronous transfers. > > We've been running for months with no problems, but now that production > motherboards and cameras are coming in, something is cropping up. > > The webcam is locked at 160x120, 30fps > > At this rate, it always gives me 39 frames of data per video frame > 37 frames of 1024, 1 frame of 968, 1 frame of 12 > Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 > bytes, which is exactly correct > The last 12 byte header contains no data, but contains the end of frame bit > > Cannot confirm, but it only seems to happen when webcam is plugged into the > USB port directly underneath the etherNet jack. > > Timing issue? Priority? Any suggestions on where to look? Maybe an USB analyser (for example the Beagle Ones will give you an answer). The same software works on one hardware but not the other? Could you use the usbconfig tool to dump the descriptors of the USB webcam? > 37 frames of 1024, 1 frame of 968, 1 frame of 12 > Minus the 12 bytes of header on each packet, that is 37*1012+956 = 38400 > bytes, which is exactly correct > The last 12 byte header contains no data, but contains the end of frame bit > > After time - problems cropping up - a complete packet goes missing - > easiest to see if the 968 or 12 goes, but it happens to the 1024s too > When missing, the packet is completely gone - 0 bytes > The new USB stack provides you with timing information about isochronous transfers, see "xfer->isoc_time_complete". This field is a 16-bit millisecond counter which tells exactly at which timeslot the isochronous transfer ended. You can use this field to figure out if you missed any frames when the frame rate is constant. You might be aware about it: Isochronous transfers do not have any retransmission. --HPS From hselasky at c2i.net Wed Apr 29 18:31:19 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Wed Apr 29 18:31:25 2009 Subject: Isochronous transfer missing frames on USB4? In-Reply-To: <200904292025.15728.hselasky@c2i.net> References: <200903010045.44904.man@email.com.ua> <000f01c9c8dd$c4fdba20$4ef92e60$@com> <200904292025.15728.hselasky@c2i.net> Message-ID: <200904292033.49695.hselasky@c2i.net> Another idea: Have you checked that the number of isochronous frames you setup is a multiple of 8 ? --HPS From gperez at entel.upc.edu Thu Apr 30 06:34:19 2009 From: gperez at entel.upc.edu (=?ISO-8859-1?Q?Gustau_P=E9rez?=) Date: Thu Apr 30 06:34:25 2009 Subject: Signal sensitivity problem with if_rum In-Reply-To: <49F4B018.1000703@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> Message-ID: <49F94604.2030306@entel.upc.edu> > I think this is right place to post, if it is not, please let me know. > > I'm experiencing problems with two different devices using if_rum. > One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC > > The first one is about sensitivity, which is very low: for example, > I'm detecting just two or three networks around me (with windows them > detect around 14 or 15 networks) and the reported signal is very low. > Placing the sensor very near to my wireless network AP (which is a > FreeBSD machine with atheros card placing the txpower to 20) reports a > signal quality of 50% or 60%. > Hi again, Any clue ? Can anyone point me where to start looking ? I've been looking in /usr/src/sys/dev/usb/wlan/if_rum.c (and friends) ... Regards, Gus From onemda at gmail.com Thu Apr 30 09:56:22 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Thu Apr 30 09:56:28 2009 Subject: Signal sensitivity problem with if_rum In-Reply-To: <49F4B018.1000703@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> Message-ID: <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> On 4/26/09, Gustau Perez wrote: > > Hi, > > I think this is right place to post, if it is not, please let me know. It is not usb fault, it is driver side fault. > I'm experiencing problems with two different devices using if_rum. > One is a Hercules Guillemot and the other is a Linksys Cisco WUSB54GC > > The first one is about sensitivity, which is very low: for example, > I'm detecting just two or three networks around me (with windows them > detect around 14 or 15 networks) and the reported signal is very low. > Placing the sensor very near to my wireless network AP (which is a > FreeBSD machine with atheros card placing the txpower to 20) reports a > signal quality of 50% or 60%. > > Linux presents the same problem (my wife's laptop with ubuntu shows > the same figures, more or less). Instead with windows it works just fine. That contradicts with mine findings, linux rt73 driver works fine. > > The other one is that having such a low sensitivity makes those > dongles unusable when making large transfers, mostly when using scp/sftp > or sshfs (samba seems to make it work better for longer transfer, but > finally the problem appears). At some given point, the dongles seem to > lose contact with the AP (making ifconfig shows that wlan0 is still > associated), waiting for a period of time (usually one or two minutes) > the transfer continues. Probably both problems are related. > > In order to debug the problem I tried looking dmesg in both my AP and > my laptop (no trace). Tried looking at the ssh logs (when making large > transfers, no clue). In the only place I found something was in the > samba logs, only saying that there was a problem with the transfer > (broken pipe, the socket is closed). > > In the linux world, I found that the register which controls the > sensitivity is bbp17. Tried looking in > /usr/src/sys/dev/usb/wlan/if_rum.c, but I get lost. Tried with sysctl -a > | grep rum or grep wlan0, but no MiB related to sensitivity appeared. > > Is there anything I can try ? I use ndisgen(8) in such case(...), note that only CURRENT now have usb support for ndisulator. -- Paul From gperez at entel.upc.edu Thu Apr 30 10:14:26 2009 From: gperez at entel.upc.edu (=?ISO-8859-1?Q?Gustau_P=E9rez?=) Date: Thu Apr 30 10:14:34 2009 Subject: Signal sensitivity problem with if_rum In-Reply-To: <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> Message-ID: <49F9799F.7090601@entel.upc.edu> >> I think this is right place to post, if it is not, please let me know. >> > It is not usb fault, it is driver side fault. > > Thank you. I thought it was not an usb fault, because with stable (old usb stack) it shows the same behaviour. I posted here because I saw some posts this April related to rum and because it was not current's fault. Perharps freebsd-net would be a better place to post. > I use ndisgen(8) in such case(...), note that only CURRENT now have > usb support for ndisulator. > > Well, already tried (current csup'ed this week). No luck (no AP's available, nothing), and removing the modules gave a nice panic :) Greets, Gus From onemda at gmail.com Thu Apr 30 10:24:06 2009 From: onemda at gmail.com (Paul B. Mahol) Date: Thu Apr 30 10:24:12 2009 Subject: Signal sensitivity problem with if_rum In-Reply-To: <49F9799F.7090601@entel.upc.edu> References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> <49F9799F.7090601@entel.upc.edu> Message-ID: <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> On 4/30/09, Gustau P?rez wrote: > >>> I think this is right place to post, if it is not, please let me know. >>> >> It is not usb fault, it is driver side fault. >> >> > Thank you. I thought it was not an usb fault, because with stable > (old usb stack) it shows the same behaviour. > > I posted here because I saw some posts this April related to rum and > because it was not current's fault. Perharps freebsd-net would be a > better place to post. > >> I use ndisgen(8) in such case(...), note that only CURRENT now have >> usb support for ndisulator. >> >> > Well, already tried (current csup'ed this week). No luck (no AP's > available, nothing), and removing the modules gave a nice panic :) Please explain that in detail as much as possible and send bt from panic. On i386 ndisulator with usb works fine last time I tested it, I am aware of bugs on amd64 ... -- Paul From freebsd-usb at dino.sk Thu Apr 30 10:32:35 2009 From: freebsd-usb at dino.sk (Milan Obuch) Date: Thu Apr 30 10:32:42 2009 Subject: u3g serial device name query Message-ID: <200904301221.44674.freebsd-usb@dino.sk> Hi, I have HUAWEI 3g usb modem. It works with u3g from current. There is however one thing I did not get working yet. When device attaches, it is added into tree as u3gN, devd event is sent. It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I can start ppp automatically and it works well, given no other USB serial device is present. If another USB serial device such as uplcom is present, u3g serial ports does not have the same name. I found no way to relate serial device name to this event and looking in source I see no place where it is created. I would like to put a devctl notify call there. This way I could start ppp with correct device name even if there is some other USB serial device. Could someone point me in the right direction? Regards, Milan From hselasky at c2i.net Thu Apr 30 10:56:08 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 30 10:56:15 2009 Subject: u3g serial device name query In-Reply-To: <200904301221.44674.freebsd-usb@dino.sk> References: <200904301221.44674.freebsd-usb@dino.sk> Message-ID: <200904301258.37784.hselasky@c2i.net> On Thursday 30 April 2009, Milan Obuch wrote: > Hi, > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > however one thing I did not get working yet. > > When device attaches, it is added into tree as u3gN, devd event is sent. It > is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I can > start ppp automatically and it works well, given no other USB serial device > is present. > > If another USB serial device such as uplcom is present, u3g serial ports > does not have the same name. I found no way to relate serial device name to > this event and looking in source I see no place where it is created. I > would like to put a devctl notify call there. This way I could start ppp > with correct device name even if there is some other USB serial device. > > Could someone point me in the right direction? USB serial devices have their own unit management. There is however a way to override the unit number through the "usb2_com_tty_name" callback, which requires some code changes to the u3g driver. All USB modems and serial adapters end up with the same naming prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. What we could do is to have a separate naming prefix for 3G modems, and use the device_get_unit() for unit number. See: src/sys/dev/usb/serial and usb_serial.c --HPS From freebsd-usb at dino.sk Thu Apr 30 12:13:21 2009 From: freebsd-usb at dino.sk (Milan Obuch) Date: Thu Apr 30 12:13:29 2009 Subject: u3g serial device name query In-Reply-To: <200904301258.37784.hselasky@c2i.net> References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> Message-ID: <200904301412.38313.freebsd-usb@dino.sk> On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: > On Thursday 30 April 2009, Milan Obuch wrote: > > Hi, > > > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > > however one thing I did not get working yet. > > > > When device attaches, it is added into tree as u3gN, devd event is sent. > > It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I > > can start ppp automatically and it works well, given no other USB serial > > device is present. > > > > If another USB serial device such as uplcom is present, u3g serial ports > > does not have the same name. I found no way to relate serial device name > > to this event and looking in source I see no place where it is created. I > > would like to put a devctl notify call there. This way I could start ppp > > with correct device name even if there is some other USB serial device. > > > > Could someone point me in the right direction? > > USB serial devices have their own unit management. There is however a way > to override the unit number through the "usb2_com_tty_name" callback, which > requires some code changes to the u3g driver. > > All USB modems and serial adapters end up with the same naming > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > > What we could do is to have a separate naming prefix for 3G modems, and use > the device_get_unit() for unit number. > > See: src/sys/dev/usb/serial and usb_serial.c > I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere after call to tty_makedev (where a DPRINT is too) I could put a devctl call. All I need for it would be device name. In /var/log/message file I see a line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function is called. If you could tell me how I can get 'u3g0' name via sc argument in usb2_com_attach_tty function, I can solve this with no other change. Regards, Milan From hselasky at c2i.net Thu Apr 30 12:42:12 2009 From: hselasky at c2i.net (Hans Petter Selasky) Date: Thu Apr 30 12:42:18 2009 Subject: u3g serial device name query In-Reply-To: <200904301412.38313.freebsd-usb@dino.sk> References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> <200904301412.38313.freebsd-usb@dino.sk> Message-ID: <200904301444.32024.hselasky@c2i.net> On Thursday 30 April 2009, Milan Obuch wrote: > On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: > > On Thursday 30 April 2009, Milan Obuch wrote: > > > Hi, > > > > > > I have HUAWEI 3g usb modem. It works with u3g from current. There is > > > however one thing I did not get working yet. > > > > > > When device attaches, it is added into tree as u3gN, devd event is > > > sent. It is easily matched with 'device-name "u3g[0-9]"' clause in > > > devd.conf. I can start ppp automatically and it works well, given no > > > other USB serial device is present. > > > > > > If another USB serial device such as uplcom is present, u3g serial > > > ports does not have the same name. I found no way to relate serial > > > device name to this event and looking in source I see no place where it > > > is created. I would like to put a devctl notify call there. This way I > > > could start ppp with correct device name even if there is some other > > > USB serial device. > > > > > > Could someone point me in the right direction? > > > > USB serial devices have their own unit management. There is however a way > > to override the unit number through the "usb2_com_tty_name" callback, > > which requires some code changes to the u3g driver. > > > > All USB modems and serial adapters end up with the same naming > > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > > > > What we could do is to have a separate naming prefix for 3G modems, and > > use the device_get_unit() for unit number. > > > > See: src/sys/dev/usb/serial and usb_serial.c > > I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere > after call to tty_makedev (where a DPRINT is too) I could put a devctl > call. > > All I need for it would be device name. In /var/log/message file I see a > line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function > is called. If you could tell me how I can get 'u3g0' name via sc argument > in usb2_com_attach_tty function, I can solve this with no other change. > You have to cast the parent softc pointer back into "struct u3g_softc", which is stored in the ucom softc. In the u3g_softc you should find sc_dev, which you can use "device_get_nameunit()" on. You can do this in the "usb2_com_tty_name" callback function. --HPS From gperez at entel.upc.edu Thu Apr 30 12:50:19 2009 From: gperez at entel.upc.edu (=?ISO-8859-1?Q?Gustau_P=E9rez?=) Date: Thu Apr 30 12:50:26 2009 Subject: Signal sensitivity problem with if_rum In-Reply-To: <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> References: <49F4B018.1000703@entel.upc.edu> <3a142e750904300256w4218f71bwfee97cdd1eb8252f@mail.gmail.com> <49F9799F.7090601@entel.upc.edu> <3a142e750904300324n11458adaic8e656694ae95f24@mail.gmail.com> Message-ID: <49F99E24.80406@entel.upc.edu> > > Please explain that in detail as much as possible and send bt from panic. > > On i386 ndisulator with usb works fine last time I tested it, I am aware of bugs > on amd64 ... > > I tested it as fast as I could with current/i386. You were right. I don't know what I did, but it seems to work fine with ndisulator (sorry for the the alarm :) ). But I think it should work more or less the same with the native driver. For example, with ndisulator right now at work I get : SSID BSSID CHAN RATE S:N INT CAPS ASF-TSC 00:0f:66:ed:ea:d0 1 54M -86:-96 100 EP ASF-TSC 00:0f:66:ed:f0:ba 5 54M -86:-96 100 EP w1 00:1e:e5:7a:1a:12 6 54M -64:-96 100 EP w2 00:0e:d7:78:c3:60 6 54M -65:-96 100 E w3 00:0f:66:ed:e9:5c 9 54M -81:-96 100 EP eduroam-web 00:11:5c:6d:c5:60 11 54M -70:-96 100 E ASF-TSC 00:1c:c5:a6:4d:42 1 54M -84:-96 100 EP ASF-TSC-MERIT 00:1c:c5:a6:4d:44 1 54M -84:-96 100 EP ASF-TSC-SALES 00:1c:c5:a6:4d:46 1 54M -84:-96 100 EP But with native driver : SSID BSSID CHAN RATE S:N INT CAPS w1 00:1e:e5:7a:1a:12 6 54M -83:-95 100 EP RSN HTCAP WPS WPA WME w2 00:11:5c:6d:c5:60 11 54M -87:-95 100 E WME w3 00:0f:66:ed:e9:5c 9 54M -93:-95 100 EP WPA If necessary I can test it with current/amd64. Perharps I'd be better to post all of this at freebsd-net. Gus From imp at bsdimp.com Thu Apr 30 14:46:22 2009 From: imp at bsdimp.com (M. Warner Losh) Date: Thu Apr 30 14:46:28 2009 Subject: u3g serial device name query In-Reply-To: <200904301412.38313.freebsd-usb@dino.sk> References: <200904301221.44674.freebsd-usb@dino.sk> <200904301258.37784.hselasky@c2i.net> <200904301412.38313.freebsd-usb@dino.sk> Message-ID: <20090430.084146.-1784899405.imp@bsdimp.com> In message: <200904301412.38313.freebsd-usb@dino.sk> Milan Obuch writes: : On Thursday 30 April 2009 12:58:36 Hans Petter Selasky wrote: : > On Thursday 30 April 2009, Milan Obuch wrote: : > > Hi, : > > : > > I have HUAWEI 3g usb modem. It works with u3g from current. There is : > > however one thing I did not get working yet. : > > : > > When device attaches, it is added into tree as u3gN, devd event is sent. : > > It is easily matched with 'device-name "u3g[0-9]"' clause in devd.conf. I : > > can start ppp automatically and it works well, given no other USB serial : > > device is present. : > > : > > If another USB serial device such as uplcom is present, u3g serial ports : > > does not have the same name. I found no way to relate serial device name : > > to this event and looking in source I see no place where it is created. I : > > would like to put a devctl notify call there. This way I could start ppp : > > with correct device name even if there is some other USB serial device. : > > : > > Could someone point me in the right direction? : > : > USB serial devices have their own unit management. There is however a way : > to override the unit number through the "usb2_com_tty_name" callback, which : > requires some code changes to the u3g driver. : > : > All USB modems and serial adapters end up with the same naming : > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. : > : > What we could do is to have a separate naming prefix for 3G modems, and use : > the device_get_unit() for unit number. : > : > See: src/sys/dev/usb/serial and usb_serial.c : > : : I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere : after call to tty_makedev (where a DPRINT is too) I could put a devctl call. : : All I need for it would be device name. In /var/log/message file I see a line : telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty function is : called. If you could tell me how I can get 'u3g0' name via sc argument in : usb2_com_attach_tty function, I can solve this with no other change. While I have issues with the names of the new ttys, since they are gratuitously different than the past, it isn't the fundamental problem. What we really need in devd is the ability to tie events to /dev entries appearing rather than at device attach time, since the two can be different... What you really need to do is to take the u3g0 attach, find out what its children are and use that to figure out things... Warner From freebsd-usb at dino.sk Thu Apr 30 19:36:20 2009 From: freebsd-usb at dino.sk (Milan Obuch) Date: Thu Apr 30 19:36:27 2009 Subject: u3g serial device name query In-Reply-To: <20090430.084146.-1784899405.imp@bsdimp.com> References: <200904301221.44674.freebsd-usb@dino.sk> <200904301412.38313.freebsd-usb@dino.sk> <20090430.084146.-1784899405.imp@bsdimp.com> Message-ID: <200904302135.36565.freebsd-usb@dino.sk> On Thursday 30 April 2009 16:41:46 M. Warner Losh wrote: > In message: <200904301412.38313.freebsd-usb@dino.sk> [ snip ] > : > USB serial devices have their own unit management. There is however a > : > way to override the unit number through the "usb2_com_tty_name" > : > callback, which requires some code changes to the u3g driver. > : > > : > All USB modems and serial adapters end up with the same naming > : > prefix: /dev/cuaU%d.%d, so the assigned numbers must be serialised. > : > > : > What we could do is to have a separate naming prefix for 3G modems, and > : > use the device_get_unit() for unit number. > : > > : > See: src/sys/dev/usb/serial and usb_serial.c > : > : I looked over usb2_com_attach_tty function in usb_serial.c, and somewhere > : after call to tty_makedev (where a DPRINT is too) I could put a devctl > : call. > : > : All I need for it would be device name. In /var/log/message file I see a > : line telling 'u3g0 : Found 2 ports' just after usb2_com_attach_tty > : function is called. If you could tell me how I can get 'u3g0' name via sc > : argument in usb2_com_attach_tty function, I can solve this with no other > : change. > > While I have issues with the names of the new ttys, since they are > gratuitously different than the past, it isn't the fundamental > problem. > > What we really need in devd is the ability to tie events to /dev > entries appearing rather than at device attach time, since the two can > be different... > > What you really need to do is to take the u3g0 attach, find out what > its children are and use that to figure out things... > > Warner First I tried simple patch --- usb_serial.c.orig 2009-04-07 11:15:03.000000000 +0200 +++ usb_serial.c 2009-04-30 14:41:38.000000000 +0200 @@ -328,6 +328,7 @@ sc->sc_tty = tp; DPRINTF("ttycreate: %s\n", buf); + devctl_notify("UCOM",buf,"ATTACH",NULL); usb2_cv_init(&sc->sc_cv, "usb2_com"); done: It shows me 'U0.0', 'U0.1' or 'U0' etc, but no parent class like u3g0 or uplcom. I tried to find to way how to get it, but it was not easy and universal. My second try is --- u3g.c.orig 2009-04-07 11:15:03.000000000 +0200 +++ u3g.c 2009-04-30 21:15:53.000000000 +0200 @@ -50,6 +50,8 @@ #include +#include + #if USB_DEBUG static int u3g_debug = 0; @@ -529,6 +531,10 @@ device_printf(dev, "Found %u ports.\n", (unsigned int)sc->sc_numports); } + + for (i = 0; i < sc->sc_numports; i++) + device_printf(dev, "%d %s\n", i, sc->sc_ucom[i].sc_tty->t_dev->si_name); + return (0); detach: which does almost what I want, just shows 'u3g0: 0 ttyU0.0', but... You need cuaU0.0 in ppp.conf :( I can replace device_printf with devctl_notify and change it a little, simplest would be to use 'si_name + 3' so the 'tty' part would be stripped, but this is not so nice. And, again, it is not universal. If I like to do something similar with uplcom, uark or other serial USB device, their drivers need to be modified too... In any case I would like to get some more opinion on this problem and my simple test patches, too. Regards, Milan From fj at batmule.dk Thu Apr 30 20:30:06 2009 From: fj at batmule.dk (Flemming Jacobsen) Date: Thu Apr 30 20:30:13 2009 Subject: usb/134117: [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c Message-ID: <200904302026.n3UKQgdA035292@www.freebsd.org> >Number: 134117 >Category: usb >Synopsis: [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Apr 30 20:30:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Flemming Jacobsen >Release: 8.0-CURRENT >Organization: >Environment: FreeBSD heartofgold.batmule.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Thu Apr 30 21:50:09 CEST 2009 fj@heartofgold.batmule.dk:/usr/obj/usr/src/sys/GENERIC i386 >Description: The attached +2 line patch adds support for the 'Option GlobeTrotter HSDPA Modem'. This 3G modem is used by Sonofon in Denmark. After patching: The system sees 3 serial devices. I have no idea what the first two are used for. I use /dev/cuaU0.2 for ppp. Apart from this, the ppp.conf goes just like PHKs example. heartofgold ~ 4> tip u3g2 can't open log file /var/log/aculog. connected at OK ati Manufacturer: Option N.V. Model: GlobeTrotter HSDPA Modem Revision: 2.4.6Hd (Date: Oct 04 2007, Time: 14:11:38) OK The USB dongle says: 0682 FCC ID: NCMOGI0225 Model: GI0225 >How-To-Repeat: Insert USB dongle, observe that it isn't recognized ;-) >Fix: Apply attached patch in /usr/src/sys. Patch attached with submission follows: Index: dev/usb/usbdevs =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v retrieving revision 1.409 diff -u -r1.409 usbdevs --- dev/usb/usbdevs 21 Apr 2009 05:06:31 -0000 1.409 +++ dev/usb/usbdevs 30 Apr 2009 19:47:53 -0000 @@ -1911,6 +1911,7 @@ product OPTION GTICON322 0xd033 GlobeTrotter Icon322 storage product OPTION GTMAX36 0x6701 GlobeTrotter Max 3.6 Modem product OPTION GTMAXHSUPA 0x7001 GlobeTrotter HSUPA +product OPTION GTHSDPA 0x6971 GlobeTrotter HSDPA Modem /* OQO */ product OQO WIFI01 0x0002 model 01 WiFi interface Index: dev/usb/serial/u3g.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/serial/u3g.c,v retrieving revision 1.7 diff -u -r1.7 u3g.c --- dev/usb/serial/u3g.c 5 Apr 2009 18:20:38 -0000 1.7 +++ dev/usb/serial/u3g.c 30 Apr 2009 19:49:10 -0000 @@ -165,6 +165,7 @@ {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36, U3GFL_NONE)}, {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA, U3GFL_NONE)}, {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G, U3GFL_NONE)}, + {USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTHSDPA, U3GFL_NONE)}, /* OEM: Qualcomm, Inc. */ {USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR, U3GFL_SCSI_EJECT)}, {USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM, U3GFL_SCSI_EJECT)}, >Release-Note: >Audit-Trail: >Unformatted: