Re: Unable to attach USB mouse
On Tue, Dec 10, 2013 at 4:02 PM, Eitan Adler wrote: > On Tue, Dec 10, 2013 at 3:44 PM, Hans Petter Selasky wrote: >> On 12/10/13 21:23, Hans Petter Selasky wrote: >>> >>> On 12/10/13 21:16, Eitan Adler wrote: On Tue, Dec 10, 2013 at 2:16 PM, Hans Petter Selasky wrote: > > On 12/10/13 19:47, Eitan Adler wrote: >> >> >> [ moving back to the mailing list ] >> >> >>> >>> Looks like you traced the wrong endpoint. Should be endpoint 0x83. Could >>> you check the other USB's ? >> >> >> Sorry, it was the right endpoint after all, but I don't see any transfer >> errors, so your device is working I assume. > > [ revision: FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #6 > r259023: Mon Dec 9 22:22:57 EST 2013 > eitan@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 ] > > So far, yes, everything is working. However, I've seen the errors > above on this revision. I'm not sure what is the exact reason for > when I see them and when I don't. After leaving the system running for a while I see: [90548] uhub_reattach_port: could not allocate new device [90549] usb_alloc_device: set address 2 failed (USB_ERR_IOERROR, ignored) [90549] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR [90549] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) [90549] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR [90550] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) [90550] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR [90550] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) [90550] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR [90552] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_IOERROR, ignored) [90552] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_IOERROR [90552] ugen0.2: at usbus0 (disconnected) [90552] uhub_reattach_port: could not allocate new device I feel like there is something leaking but I'm not sure what. -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On Tue, Dec 10, 2013 at 3:44 PM, Hans Petter Selasky wrote: > On 12/10/13 21:23, Hans Petter Selasky wrote: >> >> On 12/10/13 21:16, Eitan Adler wrote: >>> >>> On Tue, Dec 10, 2013 at 2:16 PM, Hans Petter Selasky >>> wrote: On 12/10/13 19:47, Eitan Adler wrote: > > > [ moving back to the mailing list ] > > >> >> Looks like you traced the wrong endpoint. Should be endpoint 0x83. Could >> you check the other USB's ? > > > Sorry, it was the right endpoint after all, but I don't see any transfer > errors, so your device is working I assume. [ revision: FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #6 r259023: Mon Dec 9 22:22:57 EST 2013 eitan@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 ] So far, yes, everything is working. However, I've seen the errors above on this revision. I'm not sure what is the exact reason for when I see them and when I don't. -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 12/10/13 21:23, Hans Petter Selasky wrote: On 12/10/13 21:16, Eitan Adler wrote: On Tue, Dec 10, 2013 at 2:16 PM, Hans Petter Selasky wrote: On 12/10/13 19:47, Eitan Adler wrote: [ moving back to the mailing list ] Looks like you traced the wrong endpoint. Should be endpoint 0x83. Could you check the other USB's ? Sorry, it was the right endpoint after all, but I don't see any transfer errors, so your device is working I assume. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 12/10/13 21:16, Eitan Adler wrote: On Tue, Dec 10, 2013 at 2:16 PM, Hans Petter Selasky wrote: On 12/10/13 19:47, Eitan Adler wrote: [ moving back to the mailing list ] On Tue, Dec 10, 2013 at 1:59 AM, Hans Petter Selasky wrote: Hi, This looks like we are one step forward. Now, can you enable "hw.usb.uhub.debug=15" and "hw.usb.xhci.debug=15" ? And just capture a few of those cycles. Maybe it is a false event causing this. I attached dmesg. It should include me unplugging and plugging in the mouse. Hi, I see the device is failing a USB request, and then suddenly detaching. Can be something we can fix on the software side. Can you send me the output from "usbdump -i usbusX -f Y -s 65536 -vvv" aswell. It will make debugging easier. --HPS Attached. (Mailing list members may not see it, due to size). Looks like you traced the wrong endpoint. Should be endpoint 0x83. Could you check the other USB's ? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 12/10/13 19:47, Eitan Adler wrote: [ moving back to the mailing list ] On Tue, Dec 10, 2013 at 1:59 AM, Hans Petter Selasky wrote: Hi, This looks like we are one step forward. Now, can you enable "hw.usb.uhub.debug=15" and "hw.usb.xhci.debug=15" ? And just capture a few of those cycles. Maybe it is a false event causing this. I attached dmesg. It should include me unplugging and plugging in the mouse. Hi, I see the device is failing a USB request, and then suddenly detaching. Can be something we can fix on the software side. Can you send me the output from "usbdump -i usbusX -f Y -s 65536 -vvv" aswell. It will make debugging easier. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 11/26/13 03:32, Eitan Adler wrote: On Thu, Nov 14, 2013 at 11:16 AM, Eitan Adler wrote: On Thu, Nov 14, 2013 at 10:24 AM, Hans Petter Selasky wrote: On 11/14/13 15:42, Eitan Adler wrote: On Thu, Nov 14, 2013 at 2:05 AM, Hans Petter Selasky wrote: On 11/14/13 05:08, Eitan Adler wrote: The mouse driver fails to attach when plugging in my USB mouse. FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: Thu Nov 7 12:12:51 EST 2013 root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 From boot: [52341] ugen0.2: at usbus0 [52341] ums0: on usbus0 [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 [54057] ugen0.2: at usbus0 (disconnected) [54057] ums0: at uhub0, port 1, addr 11 (disconnected) [54058] xhci_do_command: Command timeout! [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) ... I'm still getting errors like these. Sometimes it happens at boot. Other times it happens as the machine runs. I'm afraid you need to either buy me such a machine or give me root access to debug it. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On Thu, Nov 14, 2013 at 11:16 AM, Eitan Adler wrote: > On Thu, Nov 14, 2013 at 10:24 AM, Hans Petter Selasky > wrote: >> On 11/14/13 15:42, Eitan Adler wrote: >>> >>> On Thu, Nov 14, 2013 at 2:05 AM, Hans Petter Selasky >>> wrote: On 11/14/13 05:08, Eitan Adler wrote: > > > The mouse driver fails to attach when plugging in my USB mouse. > > FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: > Thu Nov 7 12:12:51 EST 2013 > root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 > >> From boot: > > > [52341] ugen0.2: at usbus0 > [52341] ums0: 2.00/27.20, addr 11> on usbus0 > [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 > [54057] ugen0.2: at usbus0 (disconnected) > [54057] ums0: at uhub0, port 1, addr 11 (disconnected) > [54058] xhci_do_command: Command timeout! > [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, > ignored) ... I'm still getting errors like these. Sometimes it happens at boot. Other times it happens as the machine runs. -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On Thu, Nov 14, 2013 at 10:24 AM, Hans Petter Selasky wrote: > On 11/14/13 15:42, Eitan Adler wrote: >> >> On Thu, Nov 14, 2013 at 2:05 AM, Hans Petter Selasky >> wrote: >>> >>> On 11/14/13 05:08, Eitan Adler wrote: The mouse driver fails to attach when plugging in my USB mouse. FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: Thu Nov 7 12:12:51 EST 2013 root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 > From boot: [52341] ugen0.2: at usbus0 [52341] ums0: >>> 2.00/27.20, addr 11> on usbus0 [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 [54057] ugen0.2: at usbus0 (disconnected) [54057] ums0: at uhub0, port 1, addr 11 (disconnected) [54058] xhci_do_command: Command timeout! [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) >>> >>> >>> >>> What USB controllers does this system have? >>> >>> --HPS >>> >> >> [10005 root@gravity (100%) /home/eitan ]#usbconfig >> ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER >> (5.0Gbps) pwr=SAVE (0mA) >> ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (0mA) >> ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=SAVE (0mA) >> ugen2.2: at usbus2, cfg=0 md=HOST >> spd=HIGH (480Mbps) pwr=SAVE (0mA) >> ugen1.2: at usbus1, cfg=0 md=HOST >> spd=HIGH (480Mbps) pwr=SAVE (0mA) >> ugen2.3: at usbus2, cfg=0 md=HOST >> spd=HIGH (480Mbps) pwr=ON (500mA) >> ugen1.4: at usbus1, cfg=0 md=HOST spd=FULL >> (12Mbps) pwr=ON (0mA) >> ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH >> (480Mbps) pwr=ON (450mA) >> >> > > pciconf -lv xhci0@pci0:0:20:0: class=0x0c0330 card=0x397717aa chip=0x1e318086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller' class = serial bus subclass = USB ehci0@pci0:0:26:0: class=0x0c0320 card=0x397717aa chip=0x1e2d8086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB ehci1@pci0:0:29:0: class=0x0c0320 card=0x397717aa chip=0x1e268086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '7 Series/C210 Series Chipset Family USB Enhanced Host Controller' class = serial bus subclass = USB ahci0@pci0:0:31:2: class=0x010601 card=0x397717aa chip=0x1e038086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '7 Series Chipset Family 6-port SATA Controller [AHCI mode]' class = mass storage subclass = SATA sdhci_pci0@pci0:3:0:2: class=0x080501 card=0x397617aa chip=0x2391197b rev=0x30 hdr=0x00 vendor = 'JMicron Technology Corp.' device = 'Standard SD Host Controller' class = base peripheral subclass = SD host controller -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 11/14/13 15:42, Eitan Adler wrote: On Thu, Nov 14, 2013 at 2:05 AM, Hans Petter Selasky wrote: On 11/14/13 05:08, Eitan Adler wrote: The mouse driver fails to attach when plugging in my USB mouse. FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: Thu Nov 7 12:12:51 EST 2013 root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 From boot: [52341] ugen0.2: at usbus0 [52341] ums0: on usbus0 [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 [54057] ugen0.2: at usbus0 (disconnected) [54057] ums0: at uhub0, port 1, addr 11 (disconnected) [54058] xhci_do_command: Command timeout! [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) What USB controllers does this system have? --HPS [10005 root@gravity (100%) /home/eitan ]#usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen1.4: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA) pciconf -lv --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On Thu, Nov 14, 2013 at 2:05 AM, Hans Petter Selasky wrote: > On 11/14/13 05:08, Eitan Adler wrote: >> >> The mouse driver fails to attach when plugging in my USB mouse. >> >> FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: >> Thu Nov 7 12:12:51 EST 2013 >> root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 >> >>> From boot: >> >> [52341] ugen0.2: at usbus0 >> [52341] ums0: > 2.00/27.20, addr 11> on usbus0 >> [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 >> [54057] ugen0.2: at usbus0 (disconnected) >> [54057] ums0: at uhub0, port 1, addr 11 (disconnected) >> [54058] xhci_do_command: Command timeout! >> [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) > > > What USB controllers does this system have? > > --HPS > [10005 root@gravity (100%) /home/eitan ]#usbconfig ugen0.1: at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen1.2: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen2.3: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen1.4: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA) ugen1.3: at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA) -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Re: Unable to attach USB mouse
On 11/14/13 05:08, Eitan Adler wrote: The mouse driver fails to attach when plugging in my USB mouse. FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: Thu Nov 7 12:12:51 EST 2013 root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 From boot: [52341] ugen0.2: at usbus0 [52341] ums0: on usbus0 [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 [54057] ugen0.2: at usbus0 (disconnected) [54057] ums0: at uhub0, port 1, addr 11 (disconnected) [54058] xhci_do_command: Command timeout! [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) What USB controllers does this system have? --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"
Unable to attach USB mouse
The mouse driver fails to attach when plugging in my USB mouse. FreeBSD gravity.local 11.0-CURRENT FreeBSD 11.0-CURRENT #5 r257754: Thu Nov 7 12:12:51 EST 2013 root@gravity.local:/usr/obj/usr/src/sys/EADLER amd64 >From boot: [52341] ugen0.2: at usbus0 [52341] ums0: on usbus0 [52341] ums0: 8 buttons and [XYZT] coordinates ID=0 [54057] ugen0.2: at usbus0 (disconnected) [54057] ums0: at uhub0, port 1, addr 11 (disconnected) [54058] xhci_do_command: Command timeout! [54058] usb_alloc_device: set address 2 failed (USB_ERR_TIMEOUT, ignored) [54058] xhci_do_command: Command timeout! [54058] xhci_do_command: Command timeout! [54058] xhci_do_command: Command timeout! [54059] xhci_do_command: Command timeout! [54059] xhci_do_command: Command timeout! [54059] xhci_do_command: Command timeout! [54059] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT [54060] xhci_do_command: Command timeout! [54060] xhci_do_command: Command timeout! [54060] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored) [54061] xhci_do_command: Command timeout! [54061] xhci_do_command: Command timeout! [54061] xhci_do_command: Command timeout! [54061] xhci_do_command: Command timeout! [54061] xhci_do_command: Command timeout! [54061] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT [54062] xhci_do_command: Command timeout! [54063] xhci_do_command: Command timeout! [54063] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored) [54064] xhci_do_command: Command timeout! [54064] xhci_do_command: Command timeout! [54064] xhci_do_command: Command timeout! [54064] xhci_do_command: Command timeout! [54064] xhci_do_command: Command timeout! [54064] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT [54065] xhci_do_command: Command timeout! [54065] xhci_do_command: Command timeout! [54066] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored) [54066] xhci_do_command: Command timeout! [54066] xhci_do_command: Command timeout! [54066] xhci_do_command: Command timeout! [54067] xhci_do_command: Command timeout! [54067] xhci_do_command: Command timeout! [54067] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT [54068] xhci_do_command: Command timeout! [54068] xhci_do_command: Command timeout! [54068] usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_TIMEOUT, ignored) [54069] xhci_do_command: Command timeout! [54069] xhci_do_command: Command timeout! [54069] xhci_do_command: Command timeout! [54070] xhci_do_command: Command timeout! [54070] xhci_do_command: Command timeout! [54070] usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_TIMEOUT [54070] ugen0.2: at usbus0 (disconnected) [54070] xhci_do_command: Command timeout! [54070] uhub_reattach_port: could not allocate new device [54070] xhci_interrupt: host controller halted [54070] xhci_interrupt: host system error [54080] xhci_do_command: Command timeout! [54080] usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored) [54080] ugen0.2: at usbus0 (disconnected) [54080] uhub_reattach_port: could not allocate new device [56303] wlan0: link state changed to DOWN [56314] wlan0: link state changed to UP When plugging in the mouse: [136687] xhci_do_command: Command timeout! [136687] usb_alloc_device: device init 2 failed (USB_ERR_TIMEOUT, ignored) [136687] ugen0.2: at usbus0 (disconnected) [136687] uhub_reattach_port: could not allocate new device -- Eitan Adler ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"