From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 02:56:18 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BE116401 for ; Sun, 27 Jan 2013 02:56:18 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id B0609AFC for ; Sun, 27 Jan 2013 02:56:18 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0R2uCAv027646 for ; Sat, 26 Jan 2013 18:56:12 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5104974C.803@rawbw.com> Date: Sat, 26 Jan 2013 18:56:12 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Subject: Why my USB keyboard doesn't generate scancodes? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 02:56:18 -0000 I have this mouse that also defines the usb keyboad with 2 buttons. Below is USB log I get when I press one of the buttons. Looks like scancode is 0x27 (another one being 0x28). However, ukbd device doesn't return anything. ukbd0 (and atkbd0) are connected to kbdmux0. Signals from atkbd0 are visible through DTrace on kbdmux0. But USB keyboard signals just disappear. While troubleshooting, I set DTrace probes on all ukbd_... functions in kernel. See below what is called when keyboard is datached (first), and attached again (later). No functions are called in ukbd module when the keyboard buttons are pressed. What could be wrong? 9.1-STABLE amd64 Yuri ---usbdump log--- # usbdump -i usbus1 -s 160 -v 17:40:16.961544 usbus1.2 DONE-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 frame[0] READ 5 bytes 0000 16 00 00 27 00 -- -- -- -- -- -- -- -- -- -- -- |...'. | 17:40:16.961551 usbus1.2 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=1 frame[0] READ 10 bytes 17:40:17.113540 usbus1.2 DONE-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 frame[0] READ 5 bytes 0000 16 00 00 00 00 -- -- -- -- -- -- -- -- -- -- -- |..... | 17:40:17.113545 usbus1.2 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=1 frame[0] READ 10 bytes ---DTrace log--- dtrace: script './dt-ukbd.d' matched 35 probes CPU ID FUNCTION:NAME <...detaching...> 6 14388 ukbd_intr_callback:entry 5 14372 ukbd_detach:entry 5 14370 ukbd_disable:entry 5 14396 ukbd_clear_state:entry 7 14388 ukbd_intr_callback:entry <...attaching ...> 0 14366 ukbd_probe:entry 0 14401 ukbd_attach:entry 0 14396 ukbd_clear_state:entry 0 14364 ukbd_parse_hid:entry 0 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b42 0 14396 ukbd_clear_state:entry 0 14374 ukbd_enable:entry 0 14396 ukbd_clear_state:entry 0 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b07 0 14396 ukbd_clear_state:entry 0 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b14 0 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b42 0 14374 ukbd_enable:entry 0 14366 ukbd_probe:entry 0 14366 ukbd_probe:entry 2 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b42 2 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b42 2 14397 ukbd_ioctl:entry ukbd_ioctl: cmd=20044b42 5 14366 ukbd_probe:entry 5 14403 ukbd_set_leds_callback:entry 7 14403 ukbd_set_leds_callback:entry 7 14388 ukbd_intr_callback:entry 7 14403 ukbd_set_leds_callback:entry 7 14403 ukbd_set_leds_callback:entry 7 14403 ukbd_set_leds_callback:entry 7 14403 ukbd_set_leds_callback:entry ---DTrace script--- #!/usr/sbin/dtrace -s ::ukbd_any_key_pressed:entry {} ::ukbd_start_timer:entry {} ::ukbd_put_key:entry {} ::ukbd_do_poll:entry {} ::ukbd_get_key:entry {} ::ukbd_interrupt:entry {} ::ukbd_event_keyinput:entry {} ::ukbd_timeout:entry {} /*::ukbd_apple_fn:entry {} ::ukbd_apple_swap:entry {}*/ ::ukbd_intr_callback:entry {} ::ukbd_set_leds_callback:entry {} ::ukbd_probe:entry {} ::ukbd_parse_hid:entry {} ::ukbd_attach:entry {} ::ukbd_detach:entry {} ::ukbd_resume:entry {} ::ukbd_configure:entry {} ::ukbd__probe:entry {} ::ukbd_init:entry {} ::ukbd_test_if:entry {} ::ukbd_term:entry {} ::ukbd_intr:entry {} ::ukbd_lock:entry {} ::ukbd_enable:entry {} ::ukbd_disable:entry {} ::ukbd_check:entry {} /*::ukbd_check_char_locked:entry {}*/ ::ukbd_check_char:entry {} ::ukbd_read:entry {} /*::ukbd_read_char_locked:entry {}*/ ::ukbd_read_char:entry {} /*::ukbd_ioctl_locked:entry {}*/ ::ukbd_ioctl:entry {printf("ukbd_ioctl: cmd=%x",arg1);} ::ukbd_clear_state:entry {} ::ukbd_get_state:entry {} ::ukbd_set_state:entry {} ::ukbd_poll:entry {} /*::ukbd_set_leds:entry {}*/ /*::ukbd_set_typematic:entry {}*/ ::ukbd_key2scan:entry {} ::ukbd_driver_load:entry {} From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 07:29:05 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1E92F263 for ; Sun, 27 Jan 2013 07:29:05 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id E986134D for ; Sun, 27 Jan 2013 07:29:04 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0R7T3QR060084 for ; Sat, 26 Jan 2013 23:29:04 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5104D73F.6050108@rawbw.com> Date: Sat, 26 Jan 2013 23:29:03 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-usb@FreeBSD.org Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> In-Reply-To: <5104974C.803@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 07:29:05 -0000 Sorry, forgot an important bit: ugen1.2: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0054 bNumInterfaces = 0x0003 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0001 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x39, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x0004 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0002 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x27, 0x08 | 0x01 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0003 wMaxPacketSize = 0x000a bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Interface 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x11 RAW dump: 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x3f, 0x08 | 0x01 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 bmAttributes = 0x0003 wMaxPacketSize = 0x0020 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 08:42:47 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 304479D7 for ; Sun, 27 Jan 2013 08:42:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 80556736 for ; Sun, 27 Jan 2013 08:42:45 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 375216935; Sun, 27 Jan 2013 09:42:37 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Sun, 27 Jan 2013 09:43:51 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <5104D73F.6050108@rawbw.com> In-Reply-To: <5104D73F.6050108@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 08:42:47 -0000 On Sunday 27 January 2013 08:29:03 Yuri wrote: > Sorry, forgot an important bit: > > ugen1.2: at usbus1, cfg=0 > md=HOST spd=FULL (12Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0054 > bNumInterfaces = 0x0003 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00a0 > bMaxPower = 0x0032 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0003 > bInterfaceSubClass = 0x0001 > bInterfaceProtocol = 0x0001 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x09 > bDescriptorType = 0x21 > bDescriptorSubType = 0x11 > RAW dump: > 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x39, > 0x08 | 0x00 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0008 > bInterval = 0x0004 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 1 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0001 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0003 > bInterfaceSubClass = 0x0001 > bInterfaceProtocol = 0x0002 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x09 > bDescriptorType = 0x21 > bDescriptorSubType = 0x11 > RAW dump: > 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x27, > 0x08 | 0x01 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0082 > bmAttributes = 0x0003 > wMaxPacketSize = 0x000a > bInterval = 0x0001 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > > Interface 2 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0002 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0003 > bInterfaceSubClass = 0x0000 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x09 > bDescriptorType = 0x21 > bDescriptorSubType = 0x11 > RAW dump: > 0x00 | 0x09, 0x21, 0x11, 0x01, 0x00, 0x01, 0x22, 0x3f, > 0x08 | 0x01 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0083 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0020 > bInterval = 0x0001 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > Try to set this quirk on your keyboard: UQ_KBD_BOOTPROTO Then replug. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 08:53:37 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F3D9AACC for ; Sun, 27 Jan 2013 08:53:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 8B8E3783 for ; Sun, 27 Jan 2013 08:53:35 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 370729154; Sun, 27 Jan 2013 09:53:28 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Sun, 27 Jan 2013 09:54:42 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> In-Reply-To: <5104974C.803@rawbw.com> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 08:53:37 -0000 On Sunday 27 January 2013 03:56:12 Yuri wrote: > ---usbdump log--- > # usbdump -i usbus1 -s 160 -v > 17:40:16.961544 usbus1.2 > DONE-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 > frame[0] READ 5 bytes > 0000 16 00 00 27 00 -- -- -- -- -- -- -- -- -- -- -- |...'. | > 17:40:16.961551 usbus1.2 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=1 > frame[0] READ 10 bytes > 17:40:17.113540 usbus1.2 > DONE-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=8,IVAL=1,ERR=0 > frame[0] READ 5 bytes > 0000 16 00 00 00 00 -- -- -- -- -- -- -- -- -- -- -- |..... | > 17:40:17.113545 usbus1.2 SUBM-INTR-EP=00000082,SPD=FULL,NFR=1,SLEN=0,IVAL=1 > frame[0] READ 10 bytes Hi, These messages should usually be 8 bytes long for keyboards. Probably you need to parse the HID descriptor to figure this out, which we currently don't do. Maybe you can dump the HID descriptor of this device? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 10:10:49 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 358EC687 for ; Sun, 27 Jan 2013 10:10:49 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 02F1894F for ; Sun, 27 Jan 2013 10:10:48 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0RAAhkO078262; Sun, 27 Jan 2013 02:10:43 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5104FD23.7010404@rawbw.com> Date: Sun, 27 Jan 2013 02:10:43 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <201301270954.42895.hselasky@c2i.net> In-Reply-To: <201301270954.42895.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 10:10:49 -0000 On 01/27/2013 00:54, Hans Petter Selasky wrote: > Maybe you can dump the HID descriptor of this device? Setting quirk UQ_KBD_BOOTPROTO didn't change the behavior. # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 0 0x100 REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x08 0x19 0x01 0x29 0x03 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x03 0x91 0x02 0x95 0x05 0x91 0x01 0x05 0x07 0x1a 0xe0 0x00 0x2a 0xe7 0x00 0x95 0x08 0x81 0x02 0x75 0x08 0x95 0x01 0x81 0x01 0x19 0x00 0x2a 0x91 0x00 0x26 0xff 0x00 0x95 0x06 0x81 0x00 0xc0><)%u*u*&> Yuri From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 12:53:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 9CA0DD08; Sun, 27 Jan 2013 12:53:56 +0000 (UTC) (envelope-from bland@FreeBSD.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id 3E084EF6; Sun, 27 Jan 2013 12:53:55 +0000 (UTC) Received: from eee.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 606D218C9F; Sun, 27 Jan 2013 21:53:48 +0900 (JST) Received: from nest.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) (authenticated bits=0) by eee.bbnest.net (8.14.6/8.14.5) with ESMTP id r0RCqHQX001467 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 27 Jan 2013 21:52:18 +0900 (JST) (envelope-from bland@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: ZFS + usb in trouble? From: Alexander Nedotsukov In-Reply-To: <20130123134601.GB53514@garage.freebsd.pl> Date: Sun, 27 Jan 2013 21:52:20 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <845D0D19-7191-4EDD-8EDE-1331E13821CB@FreeBSD.org> References: <20130121205851.GB1341@garage.freebsd.pl> <20130121211718.GD1341@garage.freebsd.pl> <20130122181012.GD1714@garage.freebsd.pl> <20130123134601.GB53514@garage.freebsd.pl> To: Pawel Jakub Dawidek , "hselasky@FreeBSD.org" X-Mailer: Apple Mail (2.1499) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Sun Jan 27 21:53:48 2013 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 5105235b14686911810420 Cc: FreeBSD Current , "freebsd-usb@freebsd.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 12:53:56 -0000 Thank you, Pawel. Hans, can please you take a look at your commits done on Dec 20 (r244500 = and r244503)? They are seems to be the culprit. On 23.01.2013, at 22:46, Pawel Jakub Dawidek wrote: > On Wed, Jan 23, 2013 at 09:11:23PM +0900, Alexander Nedotsukov wrote: >> And now both are failing, although zfs in a different way. >=20 > Yes, but now we are sure this is not ZFS issue. Sequential read simply > doesn't trigger the corruption, but ZFS access patterns do. The read > errors you are seeing are due to GELI returning EIO on integrity > verification error. >=20 >> # zpool status >> pool: testpool >> state: ONLINE >> status: One or more devices has experienced an unrecoverable error. = An >> attempt was made to correct the error. Applications are = unaffected. >> action: Determine if the device needs to be replaced, and clear the = errors >> using 'zpool clear' or replace the device with 'zpool replace'. >> see: http://illumos.org/msg/ZFS-8000-9P >> scan: scrub repaired 1M in 0h2m with 0 errors on Wed Jan 23 20:57:11 = 2013 >> config: >>=20 >> NAME STATE READ WRITE CKSUM >> testpool ONLINE 0 0 0 >> raidz1-0 ONLINE 0 0 0 >> da5.elid ONLINE 0 0 0 >> da5.elie ONLINE 21 0 0 >> da5.elif ONLINE 0 0 0 >>=20 >> # dmesg | tail -20 >> GEOM_ELI: da1.eli: Failed to authenticate 131072 bytes of data at = offset 1010827264. >> ath0: bb hang detected (0x4), resetting >> GEOM_ELI: Device da5.eli created. >> GEOM_ELI: Encryption: AES-XTS 128 >> GEOM_ELI: Integrity: HMAC/SHA1 >> GEOM_ELI: Crypto: software >> GEOM_ELI: da5.eli: Failed to authenticate 4096 bytes of data at = offset 4096. >> GEOM_ELI: da5.eli: Failed to authenticate 4096 bytes of data at = offset 0. >> GEOM_ELI: da5.eli: Failed to authenticate 5792 bytes of data at = offset 229288288. >> GEOM_ELI: da5.eli: Failed to authenticate 65536 bytes of data at = offset 229429248. >> GEOM_ELI: da5.eli: Failed to authenticate 131072 bytes of data at = offset 229298176. >> GEOM_ELI: da5.eli: Failed to authenticate 26496 bytes of data at = offset 229494784. >> GEOM_ELI: da5.eli: Failed to authenticate 12288 bytes of data at = offset 270299136. >> GEOM_ELI: da5.eli: Failed to authenticate 65536 bytes of data at = offset 270319616. >> GEOM_ELI: da5.eli: Failed to authenticate 5792 bytes of data at = offset 273095488. >> GEOM_ELI: da5.eli: Failed to authenticate 56864 bytes of data at = offset 273105376. >> GEOM_ELI: da5.eli: Failed to authenticate 2400 bytes of data at = offset 273326080. >> GEOM_ELI: da5.eli: Failed to authenticate 65536 bytes of data at = offset 272560128. >> GEOM_ELI: da5.eli: Failed to authenticate 131072 bytes of data at = offset 272429056. >> GEOM_ELI: da5.eli: Failed to authenticate 32768 bytes of data at = offset 272396288. >=20 > --=20 > Pawel Jakub Dawidek http://www.wheelsystems.com > FreeBSD committer http://www.FreeBSD.org > Am I Evil? Yes, I Am! http://tupytaj.pl From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 15:57:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id DE837DE4; Sun, 27 Jan 2013 15:57:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id CFE7C84A; Sun, 27 Jan 2013 15:57:55 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 371143592; Sun, 27 Jan 2013 16:57:47 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: ZFS + usb in trouble? Date: Sun, 27 Jan 2013 16:59:02 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <20130123134601.GB53514@garage.freebsd.pl> <845D0D19-7191-4EDD-8EDE-1331E13821CB@FreeBSD.org> In-Reply-To: <845D0D19-7191-4EDD-8EDE-1331E13821CB@FreeBSD.org> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, Cc: FreeBSD Current , Pawel Jakub Dawidek , Alexander Nedotsukov X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 15:57:56 -0000 On Sunday 27 January 2013 13:52:20 Alexander Nedotsukov wrote: > Thank you, Pawel. > > Hans, can please you take a look at your commits done on Dec 20 (r244500 > and r244503)? They are seems to be the culprit. Hi, I don't have 10-current machine here right now, but I tried the following on a 9-stable machine: 9.1-STABLE FreeBSD 9.1-STABLE /usr/obj/usr/src/sys/GENERIC i386 1) Copy sys/dev/usb from 10-current to 9-stable. Keep "sys/dev/usb/usb_pf. [ch]" 2) Compiled new kernel. 3) Inserted three brand new and identical memory sticks: da1 da2 da3 zpool create tank raidz da1 da2 da3 OK cd /tank tar -xvf 10-current.tar zpool export tank PANIC 100% reproducible: After reboot: zpool import tank cannot import 'tank': pool is formatted using a newer ZFS version zpool import pool: tank id: 3524585230830777970 state: FAULTED status: One or more devices contains corrupted data. action: The pool cannot be imported due to damaged devices or data. see: http://illumos.org/msg/ZFS-8000-5E config: tank FAULTED corrupted data raidz1-0 ONLINE 11957153069341388916 UNAVAIL corrupted data 2594767990561096052 UNAVAIL corrupted data 2009858017158938805 UNAVAIL corrupted data Fatal trap 12: page fault while in kernel mode cpuid = 6; apic id = 16 fault virtual address = 0x54 fault code = supervisor read, page not present instruction pointer = 0x20:0xcd09c584 stack pointer = 0x28:0xf0ee8a60 frame pointer = 0x28:0xf0ee8a88 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 = 8049 (zpool) trap number = 12 panic: page fault cpuid = 6 KDB: stack backtrace: #0 0xc0afecef at kdb_backtrace+0x4f #1 0xc0acb56f at panic+0x16f #2 0xc0e33c03 at trap_fatal+0x323 #3 0xc0e33d08 at trap_pfault+0xf8 #4 0xc0e34c8a at trap+0x46a #5 0xc0e1e22c at calltrap+0x6 #6 0xcd0bcc17 at vdev_metaslab_fini+0x57 #7 0xcd0bd654 at vdev_free+0x64 #8 0xcd0bd62f at vdev_free+0x3f #9 0xcd0a3b92 at spa_unload+0xb2 #10 0xcd0a74ab at spa_export_common+0x13b #11 0xcd0f704d at zfs_ioc_pool_export+0x3d #12 0xcd0f75ad at zfsdev_ioctl+0xcd #13 0xc09ae0ea at devfs_ioctl_f+0x10a #14 0xc0b10360 at kern_ioctl+0x2a0 #15 0xc0b104d4 at sys_ioctl+0x134 #16 0xc0e3437a at syscall+0x34a #17 0xc0e1e291 at Xint0x80_syscall+0x21 Uptime: 13m19s Physical memory: 3519 MB Dumping 351 MB: 336 320 304 288 272 256 240 224 208 192 176 160 144 128 112 96 80 64 48 32 16 #0 doadump (textdump=1) at pcpu.h:249 249 pcpu.h: No such file or directory. in pcpu.h (kgdb) #0 doadump (textdump=1) at pcpu.h:249 #1 0xc0acb2b5 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:448 #2 0xc0acb5b2 in panic (fmt=Variable "fmt" is not available. ) at /usr/src/sys/kern/kern_shutdown.c:636 #3 0xc0e33c03 in trap_fatal (frame=0xf0ee8a20, eva=84) at /usr/src/sys/i386/i386/trap.c:1043 #4 0xc0e33d08 in trap_pfault (frame=0xf0ee8a20, usermode=0, eva=84) at /usr/src/sys/i386/i386/trap.c:895 #5 0xc0e34c8a in trap (frame=0xf0ee8a20) at /usr/src/sys/i386/i386/trap.c:555 #6 0xc0e1e22c in calltrap () at /usr/src/sys/i386/i386/exception.s:169 #7 0xcd09c584 in metaslab_fini (msp=0xcd680000) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/metaslab.c:760 #8 0xcd0bcc17 in vdev_metaslab_fini (vd=0xcb685000) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c:898 #9 0xcd0bd654 in vdev_free (vd=0xcb685000) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c:596 #10 0xcd0bd62f in vdev_free (vd=0xcb685800) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c:587 #11 0xcd0a3b92 in spa_unload (spa=0xcb64d000) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:1193 #12 0xcd0a74ab in spa_export_common (pool=Variable "pool" is not available. ) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:4312 #13 0xcd0f704d in zfs_ioc_pool_export (zc=0xcd728000) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c:1328 #14 0xcd0f75ad in zfsdev_ioctl (dev=0xcb5bb500, cmd=3583531523, addr=0xcd728000 "tank", flag=0, td=0xcb7ad2f0) at /usr/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c:5248 #15 0xc09ae0ea in devfs_ioctl_f (fp=0xcdaf01f8, com=3583531523, data=0xcd728000, cred=0xcd64a400, td=0xcb7ad2f0) at /usr/src/sys/fs/devfs/devfs_vnops.c:757 #16 0xc0b10360 in kern_ioctl (td=0xcb7ad2f0, fd=3, com=3583531523, data=0xcd728000 "tank") at file.h:311 #17 0xc0b104d4 in sys_ioctl (td=0xcb7ad2f0, uap=0xf0ee8ccc) at /usr/src/sys/kern/sys_generic.c:692 #18 0xc0e3437a in syscall (frame=0xf0ee8d08) at subr_syscall.c:135 #19 0xc0e1e291 in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:267 #20 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 16:13:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 940A1541; Sun, 27 Jan 2013 16:13:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id A1134914; Sun, 27 Jan 2013 16:13:55 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 198132737; Sun, 27 Jan 2013 17:13:47 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: ZFS + usb in trouble? Date: Sun, 27 Jan 2013 17:15:02 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <845D0D19-7191-4EDD-8EDE-1331E13821CB@FreeBSD.org> <201301271659.02164.hselasky@c2i.net> In-Reply-To: <201301271659.02164.hselasky@c2i.net> X-Face: ?p&W)c( =?iso-8859-1?q?+80hU=3B=27=7B=2E=245K+zq=7BoC6y=7C=0A=09/D=27an*6mw?=>j'f:eBsex\Gi, Cc: FreeBSD Current , Pawel Jakub Dawidek , Alexander Nedotsukov X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 16:13:56 -0000 On Sunday 27 January 2013 16:59:02 Hans Petter Selasky wrote: > I don't have 10-current machine here right now, but I tried the following > on a 9-stable machine: BTW: 9-stable does not have the patches you wanted me to look at. Is this issue reproducible in stock 9-stable at your side or 9-stable + USB from 10- current except usb_pf.[ch] ? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 16:26:38 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 04948CCE; Sun, 27 Jan 2013 16:26:38 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 03F3F9CA; Sun, 27 Jan 2013 16:26:36 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 370714901; Sun, 27 Jan 2013 17:26:28 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: ZFS + usb in trouble? Date: Sun, 27 Jan 2013 17:27:43 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201301271659.02164.hselasky@c2i.net> <201301271715.02607.hselasky@c2i.net> In-Reply-To: <201301271715.02607.hselasky@c2i.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: FreeBSD Current , Pawel Jakub Dawidek , Alexander Nedotsukov X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 16:26:38 -0000 On Sunday 27 January 2013 17:15:02 Hans Petter Selasky wrote: > On Sunday 27 January 2013 16:59:02 Hans Petter Selasky wrote: > > I don't have 10-current machine here right now, but I tried the following > > > on a 9-stable machine: > BTW: 9-stable does not have the patches you wanted me to look at. Is this > issue reproducible in stock 9-stable at your side or 9-stable + USB from > 10- current except usb_pf.[ch] ? > > --HPS Over here 9-stable (r245943) w/o those patches mentioned, gives exactly the same result as with those patches mentioned, except the kernel doesn't panic. Repeating the test: zpool export tank zpool import pool: tank id: 12201072322026523554 state: FAULTED status: One or more devices contains corrupted data. action: The pool cannot be imported due to damaged devices or data. see: http://illumos.org/msg/ZFS-8000-5E config: tank FAULTED corrupted data raidz1-0 ONLINE 5285896356596891701 UNAVAIL corrupted data 16930095547201732694 UNAVAIL corrupted data 14565039855173467224 UNAVAIL corrupted data --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Jan 27 18:04:35 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E9529BBD; Sun, 27 Jan 2013 18:04:35 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.c2i.net [212.247.154.66]) by mx1.freebsd.org (Postfix) with ESMTP id 27F9BE7B; Sun, 27 Jan 2013 18:04:34 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 204949930; Sun, 27 Jan 2013 19:04:26 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Subject: Re: ZFS + usb in trouble? [PATCHED] Date: Sun, 27 Jan 2013 19:05:41 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201301271715.02607.hselasky@c2i.net> <201301271727.43074.hselasky@c2i.net> In-Reply-To: <201301271727.43074.hselasky@c2i.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: Alexander Nedotsukov , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jan 2013 18:04:36 -0000 Hi, Can you try this patch: http://svnweb.freebsd.org/changeset/base/245995 It fixes the issue for me. Looks like I overlooked a corner case computing the DMA addresses. Thanks for reporting! zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 da0 ONLINE 0 0 0 da1 ONLINE 0 0 0 da2 ONLINE 0 0 0 errors: No known data errors --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 03:10:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 98B02327 for ; Mon, 28 Jan 2013 03:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 680B7615 for ; Mon, 28 Jan 2013 03:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0S3A1fw044635 for ; Mon, 28 Jan 2013 03:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0S3A1Fk044634; Mon, 28 Jan 2013 03:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 28 Jan 2013 03:10:01 GMT Resent-Message-Id: <201301280310.r0S3A1Fk044634@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ramil Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4B4A2206 for ; Mon, 28 Jan 2013 03:00:30 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 2693130B for ; Mon, 28 Jan 2013 03:00:30 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0S30SmE097414 for ; Mon, 28 Jan 2013 03:00:28 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0S30SN2097413; Mon, 28 Jan 2013 03:00:28 GMT (envelope-from nobody) Message-Id: <201301280300.r0S30SN2097413@red.freebsd.org> Date: Mon, 28 Jan 2013 03:00:28 GMT From: Ramil To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/175639: not detect usb netcard D-LINK DUB-E100 rev C1 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 03:10:01 -0000 >Number: 175639 >Category: usb >Synopsis: not detect usb netcard D-LINK DUB-E100 rev C1 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jan 28 03:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Ramil >Release: 9.1 >Organization: none >Environment: FreeBSD fr_router 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec 4 06:55:39 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: not detect usb network card: D-LINK DUB-E100 rev C1 >How-To-Repeat: insert to usb network card: D-LINK DUB-E100 rev C1 >Fix: need to add line to file: /usr/src/sys/dev/usb/net/if_axe.c "AXE_DEV(DLINK, DUBE100C1, AXE_FLAG_772B)," and add line to file: /usr/src/sys/dev/usb/usbdevs "product DLINK DUBE100C1 0x1a02 DUB-E100 rev C1" >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 07:30:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 4CA37B32 for ; Mon, 28 Jan 2013 07:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 274A3E44 for ; Mon, 28 Jan 2013 07:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0S7U11c092197 for ; Mon, 28 Jan 2013 07:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0S7U19b092196; Mon, 28 Jan 2013 07:30:01 GMT (envelope-from gnats) Date: Mon, 28 Jan 2013 07:30:01 GMT Message-Id: <201301280730.r0S7U19b092196@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/175454: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 07:30:01 -0000 The following reply was made to PR usb/175454; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/175454: commit references a PR Date: Mon, 28 Jan 2013 07:29:11 +0000 (UTC) Author: hselasky Date: Mon Jan 28 07:28:52 2013 New Revision: 246023 URL: http://svnweb.freebsd.org/changeset/base/246023 Log: MFC r245725: Add new quirk and correct old one. PR: usb/175454 MFC after: 1 week Modified: stable/8/sys/dev/usb/quirk/usb_quirk.c stable/8/sys/dev/usb/usbdevs Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/usb/ (props changed) Modified: stable/8/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- stable/8/sys/dev/usb/quirk/usb_quirk.c Mon Jan 28 07:26:45 2013 (r246022) +++ stable/8/sys/dev/usb/quirk/usb_quirk.c Mon Jan 28 07:28:52 2013 (r246023) @@ -299,7 +299,7 @@ static struct usb_quirk_entry usb_quirks UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY), USB_QUIRK(ONSPEC, READER, 0x0000, 0xffff, UQ_MSC_FORCE_PROTO_SCSI), USB_QUIRK(ONSPEC, UCF100, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY | UQ_MSC_NO_GETMAXLUN), + UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(ONSPEC2, IMAGEMATE_SDDR55, 0x0000, 0xffff, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(PANASONIC, KXL840AN, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, @@ -335,6 +335,8 @@ static struct usb_quirk_entry usb_quirks UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), USB_QUIRK(SANDISK, SDDR31, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_READ_CAP_OFFBY1), + USB_QUIRK(SANDISK, IMAGEMATE_SDDR289, 0x0000, 0xffff, + UQ_MSC_NO_SYNC_CACHE, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(SCANLOGIC, SL11R, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY), USB_QUIRK(SHUTTLE, EUSB, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_CBI_I, Modified: stable/8/sys/dev/usb/usbdevs ============================================================================== --- stable/8/sys/dev/usb/usbdevs Mon Jan 28 07:26:45 2013 (r246022) +++ stable/8/sys/dev/usb/usbdevs Mon Jan 28 07:28:52 2013 (r246023) @@ -3559,6 +3559,7 @@ product SANDISK SDDR75 0x0810 ImageMate product SANDISK SDCZ2_256 0x7104 Cruzer Mini 256MB product SANDISK SDCZ4_128 0x7112 Cruzer Micro 128MB product SANDISK SDCZ4_256 0x7113 Cruzer Micro 256MB +product SANDISK IMAGEMATE_SDDR289 0xb6ba ImageMate SDDR-289 /* Sanwa Electric Instrument Co., Ltd. products */ product SANWA KB_USB2 0x0701 KB-USB2 multimeter cable _______________________________________________ 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 owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 07:30:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2578AB33 for ; Mon, 28 Jan 2013 07:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 189F8E45 for ; Mon, 28 Jan 2013 07:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0S7U1xC092203 for ; Mon, 28 Jan 2013 07:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0S7U1NF092202; Mon, 28 Jan 2013 07:30:01 GMT (envelope-from gnats) Date: Mon, 28 Jan 2013 07:30:01 GMT Message-Id: <201301280730.r0S7U1NF092202@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/175639: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 07:30:02 -0000 The following reply was made to PR usb/175639; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/175639: commit references a PR Date: Mon, 28 Jan 2013 07:22:52 +0000 (UTC) Author: hselasky Date: Mon Jan 28 07:22:44 2013 New Revision: 246021 URL: http://svnweb.freebsd.org/changeset/base/246021 Log: Add new USB ID. Submitted by: Ramil PR: usb/175639 MFC after: 1 week Modified: head/sys/dev/usb/net/if_axe.c head/sys/dev/usb/usbdevs Modified: head/sys/dev/usb/net/if_axe.c ============================================================================== --- head/sys/dev/usb/net/if_axe.c Mon Jan 28 07:04:52 2013 (r246020) +++ head/sys/dev/usb/net/if_axe.c Mon Jan 28 07:22:44 2013 (r246021) @@ -159,6 +159,7 @@ static const STRUCT_USB_HOST_ID axe_devs AXE_DEV(COREGA, FETHER_USB2_TX, 0), AXE_DEV(DLINK, DUBE100, 0), AXE_DEV(DLINK, DUBE100B1, AXE_FLAG_772), + AXE_DEV(DLINK, DUBE100C1, AXE_FLAG_772B), AXE_DEV(GOODWAY, GWUSB2E, 0), AXE_DEV(IODATA, ETGUS2, AXE_FLAG_178), AXE_DEV(JVC, MP_PRX1, 0), Modified: head/sys/dev/usb/usbdevs ============================================================================== --- head/sys/dev/usb/usbdevs Mon Jan 28 07:04:52 2013 (r246020) +++ head/sys/dev/usb/usbdevs Mon Jan 28 07:22:44 2013 (r246021) @@ -1487,6 +1487,7 @@ product DIGIANSWER ZIGBEE802154 0x000a Z /* D-Link products */ /*product DLINK DSBS25 0x0100 DSB-S25 serial*/ product DLINK DUBE100 0x1a00 10/100 Ethernet +product DLINK DUBE100C1 0x1a02 DUB-E100 rev C1 product DLINK DSB650TX4 0x200c 10/100 Ethernet product DLINK DWL120E 0x3200 DWL-120 rev E product DLINK DWL122 0x3700 DWL-122 _______________________________________________ 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 owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 07:30:03 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2C488B34 for ; Mon, 28 Jan 2013 07:30:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0772DE46 for ; Mon, 28 Jan 2013 07:30:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0S7U2iO092209 for ; Mon, 28 Jan 2013 07:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0S7U2ND092208; Mon, 28 Jan 2013 07:30:02 GMT (envelope-from gnats) Date: Mon, 28 Jan 2013 07:30:02 GMT Message-Id: <201301280730.r0S7U2ND092208@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/175454: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 07:30:03 -0000 The following reply was made to PR usb/175454; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/175454: commit references a PR Date: Mon, 28 Jan 2013 07:27:04 +0000 (UTC) Author: hselasky Date: Mon Jan 28 07:26:45 2013 New Revision: 246022 URL: http://svnweb.freebsd.org/changeset/base/246022 Log: MFC r245725: Add new quirk and correct old one. PR: usb/175454 MFC after: 1 week Modified: stable/9/sys/dev/usb/quirk/usb_quirk.c stable/9/sys/dev/usb/usbdevs Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/usb/quirk/usb_quirk.c ============================================================================== --- stable/9/sys/dev/usb/quirk/usb_quirk.c Mon Jan 28 07:22:44 2013 (r246021) +++ stable/9/sys/dev/usb/quirk/usb_quirk.c Mon Jan 28 07:26:45 2013 (r246022) @@ -302,7 +302,7 @@ static struct usb_quirk_entry usb_quirks UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_INQUIRY), USB_QUIRK(ONSPEC, READER, 0x0000, 0xffff, UQ_MSC_FORCE_PROTO_SCSI), USB_QUIRK(ONSPEC, UCF100, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, - UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY | UQ_MSC_NO_GETMAXLUN), + UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(ONSPEC2, IMAGEMATE_SDDR55, 0x0000, 0xffff, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(PANASONIC, KXL840AN, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, @@ -338,6 +338,8 @@ static struct usb_quirk_entry usb_quirks UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_IGNORE_RESIDUE), USB_QUIRK(SANDISK, SDDR31, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI, UQ_MSC_READ_CAP_OFFBY1), + USB_QUIRK(SANDISK, IMAGEMATE_SDDR289, 0x0000, 0xffff, + UQ_MSC_NO_SYNC_CACHE, UQ_MSC_NO_GETMAXLUN), USB_QUIRK(SCANLOGIC, SL11R, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_ATAPI, UQ_MSC_NO_INQUIRY), USB_QUIRK(SHUTTLE, EUSB, 0x0000, 0xffff, UQ_MSC_FORCE_WIRE_CBI_I, Modified: stable/9/sys/dev/usb/usbdevs ============================================================================== --- stable/9/sys/dev/usb/usbdevs Mon Jan 28 07:22:44 2013 (r246021) +++ stable/9/sys/dev/usb/usbdevs Mon Jan 28 07:26:45 2013 (r246022) @@ -3558,6 +3558,7 @@ product SANDISK SDDR75 0x0810 ImageMate product SANDISK SDCZ2_256 0x7104 Cruzer Mini 256MB product SANDISK SDCZ4_128 0x7112 Cruzer Micro 128MB product SANDISK SDCZ4_256 0x7113 Cruzer Micro 256MB +product SANDISK IMAGEMATE_SDDR289 0xb6ba ImageMate SDDR-289 /* Sanwa Electric Instrument Co., Ltd. products */ product SANWA KB_USB2 0x0701 KB-USB2 multimeter cable _______________________________________________ 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 owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 11:06:53 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 34646988 for ; Mon, 28 Jan 2013 11:06:53 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 2617FCEF for ; Mon, 28 Jan 2013 11:06:53 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0SB6r0r034740 for ; Mon, 28 Jan 2013 11:06:53 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0SB6qJc034738 for freebsd-usb@FreeBSD.org; Mon, 28 Jan 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Jan 2013 11:06:52 GMT Message-Id: <201301281106.r0SB6qJc034738@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 11:06:53 -0000 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/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with free o usb/175454 usb update usbdevs and usb_quirk.c for SanDisk SDDR-289 o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb XHCI driver bug after suspend to ram (ACPI S3 mode) o usb/173616 usb LG USB DVD-RW USB STALL o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa 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 o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM 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/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 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/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics 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/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o 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/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c 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 kern/124130 usb [usb] gmirror fails to start usb devices that were pre 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/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa 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/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/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s 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 f 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 conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. 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/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/119509 usb [usb] USB flaky on Dell Optiplex 755 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/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 [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a 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/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 conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar 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/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 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/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work 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 f 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/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? 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. f 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 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/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent 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. 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 f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device 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/75764 usb [umass] [patch] "umass0: Phase Error" - no device for 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/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/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports 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 s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver 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 288 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Jan 28 12:44:25 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4B88FE54; Mon, 28 Jan 2013 12:44:25 +0000 (UTC) (envelope-from bland@freebsd.org) Received: from mail2.asahi-net.or.jp (mail2.asahi-net.or.jp [202.224.39.198]) by mx1.freebsd.org (Postfix) with ESMTP id 1AE977E7; Mon, 28 Jan 2013 12:44:25 +0000 (UTC) Received: from eee.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) by mail2.asahi-net.or.jp (Postfix) with ESMTP id 6CD4E1A1B5; Mon, 28 Jan 2013 21:44:23 +0900 (JST) Received: from nest.bbnest.net (w133033.ppp.asahi-net.or.jp [121.1.133.33]) (authenticated bits=0) by eee.bbnest.net (8.14.6/8.14.5) with ESMTP id r0SCiBtx001328 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 28 Jan 2013 21:44:13 +0900 (JST) (envelope-from bland@freebsd.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: ZFS + usb in trouble? [PATCHED] From: Alexander Nedotsukov In-Reply-To: <201301271905.41150.hselasky@c2i.net> Date: Mon, 28 Jan 2013 21:44:13 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201301271715.02607.hselasky@c2i.net> <201301271727.43074.hselasky@c2i.net> <201301271905.41150.hselasky@c2i.net> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1499) X-DSPAM-Result: Innocent X-DSPAM-Processed: Mon Jan 28 21:44:22 2013 X-DSPAM-Confidence: 0.9995 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 510672a613292140831274 Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jan 2013 12:44:25 -0000 Roger. This is it. Thanks! On 28.01.2013, at 3:05, Hans Petter Selasky wrote: > Hi, >=20 > Can you try this patch: >=20 > http://svnweb.freebsd.org/changeset/base/245995 >=20 > It fixes the issue for me. Looks like I overlooked a corner case = computing the=20 > DMA addresses. Thanks for reporting! >=20 > zpool status > pool: tank > state: ONLINE > scan: none requested > config: >=20 > NAME STATE READ WRITE CKSUM > tank ONLINE 0 0 0 > raidz1-0 ONLINE 0 0 0 > da0 ONLINE 0 0 0 > da1 ONLINE 0 0 0 > da2 ONLINE 0 0 0 >=20 > errors: No known data errors >=20 >=20 > --HPS > _______________________________________________ > 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 owner-freebsd-usb@FreeBSD.ORG Tue Jan 29 17:47:03 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 579493D8 for ; Tue, 29 Jan 2013 17:47:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id E6931C15 for ; Tue, 29 Jan 2013 17:47:02 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 371877031; Tue, 29 Jan 2013 18:46:53 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Tue, 29 Jan 2013 18:48:04 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301270954.42895.hselasky@c2i.net> <5104FD23.7010404@rawbw.com> In-Reply-To: <5104FD23.7010404@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 17:47:03 -0000 On Sunday 27 January 2013 11:10:43 Yuri wrote: > On 01/27/2013 00:54, Hans Petter Selasky wrote: > > Maybe you can dump the HID descriptor of this device? > > Setting quirk UQ_KBD_BOOTPROTO didn't change the behavior. > > # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 0 0x100 > REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x08 0x19 0x01 0x29 0x03 > 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x03 0x91 0x02 0x95 0x05 0x91 0x01 > 0x05 0x07 0x1a 0xe0 0x00 0x2a 0xe7 0x00 0x95 0x08 0x81 0x02 0x75 0x08 > 0x95 0x01 0x81 0x01 0x19 0x00 0x2a 0x91 0x00 0x26 0xff 0x00 0x95 0x06 > 0x81 0x00 0xc0><)%u*u*&> Hi, I don't see anything wrong in this HID descriptor. Can you send dmesg output when hw.usb.ukbd.debug=15 ? --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Jan 29 17:51:04 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id AB0486B6 for ; Tue, 29 Jan 2013 17:51:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 40C0ECC2 for ; Tue, 29 Jan 2013 17:51:03 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 371878004; Tue, 29 Jan 2013 18:51:01 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Tue, 29 Jan 2013 18:52:12 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <5104FD23.7010404@rawbw.com> <201301291848.04554.hselasky@c2i.net> In-Reply-To: <201301291848.04554.hselasky@c2i.net> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2013 17:51:04 -0000 On Tuesday 29 January 2013 18:48:04 Hans Petter Selasky wrote: > On Sunday 27 January 2013 11:10:43 Yuri wrote: > > On 01/27/2013 00:54, Hans Petter Selasky wrote: > > > Maybe you can dump the HID descriptor of this device? > > > > Setting quirk UQ_KBD_BOOTPROTO didn't change the behavior. > > > > # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 0 0x100 > > REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x08 0x19 0x01 0x29 0x03 > > 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x03 0x91 0x02 0x95 0x05 0x91 0x01 > > 0x05 0x07 0x1a 0xe0 0x00 0x2a 0xe7 0x00 0x95 0x08 0x81 0x02 0x75 0x08 > > 0x95 0x01 0x81 0x01 0x19 0x00 0x2a 0x91 0x00 0x26 0xff 0x00 0x95 0x06 > > 0x81 0x00 0xc0><)%u*u*&> > > Hi, > > I don't see anything wrong in this HID descriptor. > > Can you send dmesg output when hw.usb.ukbd.debug=15 ? Please include dmesg from when you plug the device into the USB port. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 08:28:27 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2F1EE1AB for ; Wed, 30 Jan 2013 08:28:27 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 0BF7A742 for ; Wed, 30 Jan 2013 08:28:26 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0U8SEmw055186; Wed, 30 Jan 2013 00:28:15 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5108D99E.6000903@rawbw.com> Date: Wed, 30 Jan 2013 00:28:14 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <5104FD23.7010404@rawbw.com> <201301291848.04554.hselasky@c2i.net> <201301291852.12807.hselasky@c2i.net> In-Reply-To: <201301291852.12807.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 08:28:27 -0000 On 01/29/2013 09:52, Hans Petter Selasky wrote: > Please include dmesg from when you plug the device into the USB port. Here is the log for disconnecting and connecting again. Yuri ukbd_intr_callback: error=USB_ERR_STALLED ugen1.2: at usbus1 (disconnected) ukbd0: at uhub1, port 1, addr 2 (disconnected) ukbd_detach: ukbd_intr_callback: error=USB_ERR_CANCELLED ukbd_detach: ukbd0: disconnected ums0: at uhub1, port 1, addr 2 (disconnected) uhid0: at uhub1, port 1, addr 2 (disconnected) ugen1.2: at usbus1 ukbd_probe: ukbd_probe: ukbd0: on usbus1 ukbd_attach: Parsing HID descriptor of 57 bytes ukbd_parse_hid: Found left control ukbd_parse_hid: Found right control ukbd_parse_hid: Found left shift ukbd_parse_hid: Found right shift ukbd_parse_hid: Found left alt ukbd_parse_hid: Found right alt ukbd_parse_hid: Found left GUI ukbd_parse_hid: Found right GUI ukbd_parse_hid: Found keyboard events ukbd_parse_hid: Found keyboard numlock ukbd_parse_hid: Found keyboard capslock ukbd_parse_hid: Found keyboard scrolllock ukbd_set_leds: leds=0x00 ukbd_set_leds: leds=0x00 kbd2 at ukbd0 ukbd_probe: ukbd_set_leds_callback: len=1, id=0 ums0: on usbus1 ums0: 5 buttons and [XYZT] coordinates ID=26 ums0: 0 buttons and [T] coordinates ID=0 ukbd_probe: uhid0: on usbus1 ukbd_set_leds: leds=0x00 ukbd_set_leds_callback: len=1, id=0 ukbd_set_leds: leds=0x00 ukbd_set_leds_callback: len=1, id=0 ukbd_set_leds: leds=0x00 ukbd_set_leds_callback: len=1, id=0 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 08:32:56 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 78C2D340 for ; Wed, 30 Jan 2013 08:32:56 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 12378781 for ; Wed, 30 Jan 2013 08:32:55 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 368468392; Wed, 30 Jan 2013 09:32:47 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Wed, 30 Jan 2013 09:33:59 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301291852.12807.hselasky@c2i.net> <5108D99E.6000903@rawbw.com> In-Reply-To: <5108D99E.6000903@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 08:32:56 -0000 On Wednesday 30 January 2013 09:28:14 Yuri wrote: > On 01/29/2013 09:52, Hans Petter Selasky wrote: > > Please include dmesg from when you plug the device into the USB port. > > Here is the log for disconnecting and connecting again. > > Yuri That part looks OK. What is printed in dmesg with ukbd.debug enabled when you press a key or two. And also try NumLock. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 08:56:26 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9235F759 for ; Wed, 30 Jan 2013 08:56:26 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 6905F87F for ; Wed, 30 Jan 2013 08:56:26 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0U8uLLN058044; Wed, 30 Jan 2013 00:56:21 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5108E035.8020904@rawbw.com> Date: Wed, 30 Jan 2013 00:56:21 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <201301291852.12807.hselasky@c2i.net> <5108D99E.6000903@rawbw.com> <201301300933.59232.hselasky@c2i.net> In-Reply-To: <201301300933.59232.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 08:56:26 -0000 On 01/30/2013 00:33, Hans Petter Selasky wrote: > What is printed in dmesg with ukbd.debug enabled when you press a key or two. > And also try NumLock. I have hw.usb.ukbd.debug=15 and nothing is printed in dmesg. Based on my previous dtrace log, no key click messages reach ukbd driver at all. This is the reason nothing gets logged. This keyboard only has 2 buttons, and NumLock isn't among them. I think the buttons are supposed to be PgUp/PgDown. Yuri From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:09:07 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 33C45A30 for ; Wed, 30 Jan 2013 09:09:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id A0E3C903 for ; Wed, 30 Jan 2013 09:09:05 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 376244131; Wed, 30 Jan 2013 10:08:58 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Wed, 30 Jan 2013 10:10:10 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301300933.59232.hselasky@c2i.net> <5108E035.8020904@rawbw.com> In-Reply-To: <5108E035.8020904@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:09:07 -0000 On Wednesday 30 January 2013 09:56:21 Yuri wrote: > On 01/30/2013 00:33, Hans Petter Selasky wrote: > > What is printed in dmesg with ukbd.debug enabled when you press a key or > > two. And also try NumLock. > > I have hw.usb.ukbd.debug=15 and nothing is printed in dmesg. Based on my > previous dtrace log, no key click messages reach ukbd driver at all. > This is the reason nothing gets logged. > This keyboard only has 2 buttons, and NumLock isn't among them. > I think the buttons are supposed to be PgUp/PgDown. Hi, I see what is going on now. Your keyboard is endpoint 0x81 and no events are reported here. Instead those key events are part of the mouse protocol, 0x82, and it is currently not supported that a mouse can generate key-events. However, it might be that those keys are mapped into some axis. Try to enable hw.usb.ums.debug=15 instead. Can you also try to dump the other HID descriptors: usbconfig -d X.Y do_request 0x81 0x06 0x2200 0 0x100 usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x100 usbconfig -d X.Y do_request 0x81 0x06 0x2200 2 0x100 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:17:25 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 670A6D9F for ; Wed, 30 Jan 2013 09:17:25 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 57DF4972 for ; Wed, 30 Jan 2013 09:17:25 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0U9HL0i060325; Wed, 30 Jan 2013 01:17:21 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5108E521.5000503@rawbw.com> Date: Wed, 30 Jan 2013 01:17:21 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <201301300933.59232.hselasky@c2i.net> <5108E035.8020904@rawbw.com> <201301301010.10490.hselasky@c2i.net> In-Reply-To: <201301301010.10490.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:17:25 -0000 On 01/30/2013 01:10, Hans Petter Selasky wrote: > On Wednesday 30 January 2013 09:56:21 Yuri wrote: >> On 01/30/2013 00:33, Hans Petter Selasky wrote: >>> What is printed in dmesg with ukbd.debug enabled when you press a key or >>> two. And also try NumLock. >> I have hw.usb.ukbd.debug=15 and nothing is printed in dmesg. Based on my >> previous dtrace log, no key click messages reach ukbd driver at all. >> This is the reason nothing gets logged. >> This keyboard only has 2 buttons, and NumLock isn't among them. >> I think the buttons are supposed to be PgUp/PgDown. > Hi, > > I see what is going on now. Your keyboard is endpoint 0x81 and no events are > reported here. Instead those key events are part of the mouse protocol, 0x82, > and it is currently not supported that a mouse can generate key-events. > However, it might be that those keys are mapped into some axis. Try to enable > hw.usb.ums.debug=15 instead. > > Can you also try to dump the other HID descriptors: > > usbconfig -d X.Y do_request 0x81 0x06 0x2200 0 0x100 > usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x100 > usbconfig -d X.Y do_request 0x81 0x06 0x2200 2 0x100 Here is what is printed from the keyboard click: ums_intr_callback: sc=0xfffffe02f497d000 actlen=5 ums_intr_callback: data = 16 00 00 27 00 00 00 00 ums_intr_callback: sc=0xfffffe02f497d000 actlen=5 ums_intr_callback: data = 16 00 00 00 00 00 00 00 Here are the other HID descriptors: # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 0 0x100 REQUEST = <0x05 0x01 0x09 0x06 0xa1 0x01 0x05 0x08 0x19 0x01 0x29 0x03 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x03 0x91 0x02 0x95 0x05 0x91 0x01 0x05 0x07 0x1a 0xe0 0x00 0x2a 0xe7 0x00 0x95 0x08 0x81 0x02 0x75 0x08 0x95 0x01 0x81 0x01 0x19 0x00 0x2a 0x91 0x00 0x26 0xff 0x00 0x95 0x06 0x81 0x00 0xc0><)%u*u*&> # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 1 0x100 REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x05 0x01 0x09 0x02 0xa1 0x02 0x85 0x1a 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x05 0x95 0x05 0x75 0x01 0x15 0x00 0x25 0x01 0x81 0x02 0x75 0x03 0x95 0x01 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31 0x95 0x02 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0xa1 0x02 0x85 0x12 0x09 0x48 0x95 0x01 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0xb1 0x02 0x85 0x1a 0x09 0x38 0x35 0x00 0x45 0x00 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0xc0 0xa1 0x02 0x85 0x12 0x09 0x48 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0xb1 0x02 0x35 0x00 0x45 0x00 0x75 0x04 0xb1 0x01 0x85 0x1a 0x05 0x0c 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x0a 0x38 0x02 0x81 0x06 0xc0 0xc0 0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x05 0x01 0x09 0x02 0xa1 0x02 0x85 0x1f 0x05 0x0c 0x0a 0x38 0x02 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0x85 0x17 0x06 0x00 0xff 0x0a 0x06 0xff 0x0a 0x0f 0xff 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0x95 0x02 0x75 0x02 0xb1 0x02 0x0a 0x04 0xff 0x35 0x00 0x45 0x00 0x95 0x01 0x75 0x01 0xb1 0x02 0x75 0x03 0xb1 0x01 0xc0 0x85 0x16 0x05 0x0c 0x19 0x00 0x2a 0xff 0x03 0x95 0x01 0x75 0x10 0x15 0x00 0x26 0xff 0x03 0x81 0x00 0x06 0x00 0xff 0x1a 0x01 0xfd 0x2a 0xff 0xfd 0x15 0x01 0x26 0xff 0x00><)u%u01u&Hu%5E85Eu&Hu%5E5Euu&88u&%5Eu5Euu*u&*&> # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 2 0x100 REQUEST = <0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x20 0x06 0x00 0xff 0x15 0x00 0x26 0xff 0x00 0x75 0x08 0x95 0x12 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x21 0x06 0x00 0xff 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x10 0x1a 0x10 0xfa 0x2a 0x1f 0xfa 0x81 0x02 0x85 0x28 0x06 0x00 0xff 0x1a 0x10 0xfa 0x2a 0x1f 0xfa 0xb1 0x02 0x85 0x22 0x06 0x00 0xff 0x15 0x00 0x26 0xff 0x00 0x75 0x08 0x95 0x1a 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x23 0x06 0x00 0xff 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x24 0x06 0x00 0xff 0x95 0x1f 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x25 0x06 0x00 0xff 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x26 0x06 0x00 0xff 0x0a 0x0a 0xfa 0xb1 0x02 0x85 0x27 0x06 0x00 0xff 0x0a 0x0a 0xfa 0x81 0x02 0x85 0x14 0x06 0x00 0xff 0x15 0x00 0x25 0x03 0x75 0x02 0x95 0x01 0x0a 0x01 0xfe 0x81 0x02 0x75 0x06 0x81 0x01 0x85 0x04 0x06 0x00 0xff 0x15 0x00 0x25 0x03 0x75 0x02 0x95 0x01 0x0a 0x01 0xfe 0x81 0x02 0x75 0x06 0x81 0x01 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x85 0x07 0x05 0x0c 0x19 0x00 0x2a 0xff 0x03 0x95 0x01 0x75 0x10 0x15 0x00 0x26 0xff 0x03 0x81 0x00 0x05 0x07 0x19 0x00 0x29 0xff 0x75 0x08 0x26 0xff 0x00 0x81 0x00 0x81 0x01 0x06 0x00 0xff 0x0a 0x03 0xfe 0x0a 0x04 0xfe 0x75 0x01 0x95 0x02 0x25 0x01 0x81 0x02 0x0a 0x05 0xff 0x95 0x01 0x75 0x05 0x25 0x1f 0x81 0x02 0x75 0x01 0x81 0x01 0x1a 0x01 0xfd 0x2a 0xff 0xfd 0x15 0x01>< &u!%u*(*"&u#$%&'%uu%uu*u&)u&u%u%u*> From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:24:17 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 041ACE78 for ; Wed, 30 Jan 2013 09:24:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id 8DC799C5 for ; Wed, 30 Jan 2013 09:24:15 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 371750980; Wed, 30 Jan 2013 10:24:08 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Wed, 30 Jan 2013 10:25:20 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301301010.10490.hselasky@c2i.net> <5108E521.5000503@rawbw.com> In-Reply-To: <5108E521.5000503@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:24:17 -0000 On Wednesday 30 January 2013 10:17:21 Yuri wrote: > On 01/30/2013 01:10, Hans Petter Selasky wrote: > > On Wednesday 30 January 2013 09:56:21 Yuri wrote: > >> On 01/30/2013 00:33, Hans Petter Selasky wrote: > >>> What is printed in dmesg with ukbd.debug enabled when you press a key > >>> or two. And also try NumLock. > >> > >> I have hw.usb.ukbd.debug=15 and nothing is printed in dmesg. Based on my > >> previous dtrace log, no key click messages reach ukbd driver at all. > >> This is the reason nothing gets logged. > >> This keyboard only has 2 buttons, and NumLock isn't among them. > >> I think the buttons are supposed to be PgUp/PgDown. > > > > Hi, > > > > I see what is going on now. Your keyboard is endpoint 0x81 and no events > > are reported here. Instead those key events are part of the mouse > > protocol, 0x82, and it is currently not supported that a mouse can > > generate key-events. However, it might be that those keys are mapped > > into some axis. Try to enable hw.usb.ums.debug=15 instead. > > > > Can you also try to dump the other HID descriptors: > > > > usbconfig -d X.Y do_request 0x81 0x06 0x2200 0 0x100 > > usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x100 > > usbconfig -d X.Y do_request 0x81 0x06 0x2200 2 0x100 > > Here is what is printed from the keyboard click: > ums_intr_callback: sc=0xfffffe02f497d000 actlen=5 > ums_intr_callback: data = 16 00 00 27 00 00 00 00 > ums_intr_callback: sc=0xfffffe02f497d000 actlen=5 > ums_intr_callback: data = 16 00 00 00 00 00 00 00 > The length was a bit too short. Can you re-run? usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x300 --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:27:41 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C820BFBA for ; Wed, 30 Jan 2013 09:27:41 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id B21B49FD for ; Wed, 30 Jan 2013 09:27:41 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0U9RbLm061484; Wed, 30 Jan 2013 01:27:37 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <5108E788.6010401@rawbw.com> Date: Wed, 30 Jan 2013 01:27:36 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <201301301010.10490.hselasky@c2i.net> <5108E521.5000503@rawbw.com> <201301301025.20211.hselasky@c2i.net> In-Reply-To: <201301301025.20211.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:27:41 -0000 On 01/30/2013 01:25, Hans Petter Selasky wrote: > usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x300 # usbconfig -d 1.2 do_request 0x81 0x06 0x2200 1 0x300 REQUEST = <0x05 0x01 0x09 0x02 0xa1 0x01 0x05 0x01 0x09 0x02 0xa1 0x02 0x85 0x1a 0x09 0x01 0xa1 0x00 0x05 0x09 0x19 0x01 0x29 0x05 0x95 0x05 0x75 0x01 0x15 0x00 0x25 0x01 0x81 0x02 0x75 0x03 0x95 0x01 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31 0x95 0x02 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0xa1 0x02 0x85 0x12 0x09 0x48 0x95 0x01 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0xb1 0x02 0x85 0x1a 0x09 0x38 0x35 0x00 0x45 0x00 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0xc0 0xa1 0x02 0x85 0x12 0x09 0x48 0x75 0x02 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0xb1 0x02 0x35 0x00 0x45 0x00 0x75 0x04 0xb1 0x01 0x85 0x1a 0x05 0x0c 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x0a 0x38 0x02 0x81 0x06 0xc0 0xc0 0xc0 0xc0 0x05 0x0c 0x09 0x01 0xa1 0x01 0x05 0x01 0x09 0x02 0xa1 0x02 0x85 0x1f 0x05 0x0c 0x0a 0x38 0x02 0x95 0x01 0x75 0x10 0x16 0x01 0x80 0x26 0xff 0x7f 0x81 0x06 0x85 0x17 0x06 0x00 0xff 0x0a 0x06 0xff 0x0a 0x0f 0xff 0x15 0x00 0x25 0x01 0x35 0x01 0x45 0x04 0x95 0x02 0x75 0x02 0xb1 0x02 0x0a 0x04 0xff 0x35 0x00 0x45 0x00 0x95 0x01 0x75 0x01 0xb1 0x02 0x75 0x03 0xb1 0x01 0xc0 0x85 0x16 0x05 0x0c 0x19 0x00 0x2a 0xff 0x03 0x95 0x01 0x75 0x10 0x15 0x00 0x26 0xff 0x03 0x81 0x00 0x06 0x00 0xff 0x1a 0x01 0xfd 0x2a 0xff 0xfd 0x15 0x01 0x26 0xff 0x00 0x75 0x08 0x81 0x00 0x81 0x01 0x85 0x1c 0x06 0x00 0xff 0x0a 0x25 0xff 0x15 0x00 0x25 0x04 0x75 0x08 0x95 0x01 0x81 0x02 0x0a 0x26 0xff 0x75 0x10 0x15 0x00 0x27 0xff 0xff 0x00 0x00 0x81 0x02 0xc0><)u%u01u&Hu%5E85Eu&Hu%5E5Euu&88u&%5Eu5Euu*u&*&u%%u&u'> From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 09:39:46 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 991AB555 for ; Wed, 30 Jan 2013 09:39:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id EE645AA2 for ; Wed, 30 Jan 2013 09:39:45 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 372082605; Wed, 30 Jan 2013 10:39:43 +0100 From: Hans Petter Selasky To: Yuri Subject: Re: Why my USB keyboard doesn't generate scancodes? Date: Wed, 30 Jan 2013 10:40:54 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <5104974C.803@rawbw.com> <201301301025.20211.hselasky@c2i.net> <5108E788.6010401@rawbw.com> In-Reply-To: <5108E788.6010401@rawbw.com> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 09:39:46 -0000 On Wednesday 30 January 2013 10:27:36 Yuri wrote: > On 01/30/2013 01:25, Hans Petter Selasky wrote: > > usbconfig -d X.Y do_request 0x81 0x06 0x2200 1 0x300 > Hi, Your HID descriptor is decoded like this: Report descriptor: Collection type=Application page=Generic_Desktop usage=Mouse Collection type=Logical page=Generic_Desktop usage=Mouse Collection type=Physical page=Generic_Desktop usage=Pointer Input rid=26 size=1 count=1 page=Button usage=Button_1, logical range 0..1 Input rid=26 size=1 count=1 page=Button usage=Button_2, logical range 0..1 Input rid=26 size=1 count=1 page=Button usage=Button_3, logical range 0..1 Input rid=26 size=1 count=1 page=Button usage=Button_4, logical range 0..1 Input rid=26 size=1 count=1 page=Button usage=Button_5, logical range 0..1 Input rid=26 size=3 count=1 page=0x0000 usage=0x0000 Const Array, logical range 0..1 Input rid=26 size=16 count=1 page=Generic_Desktop usage=X, logical range -32767..32767 Input rid=26 size=16 count=1 page=Generic_Desktop usage=Y, logical range -32767..32767 Collection type=Logical page=Generic_Desktop usage=Y Feature rid=18 size=2 count=1 page=Generic_Desktop usage=Resolution_Multiplier, logical range 0..1, physical range 1..4 Input rid=26 size=16 count=1 page=Generic_Desktop usage=Wheel, logical range -32767..32767 End collection Collection type=Logical page=Generic_Desktop usage=Wheel Feature rid=18 size=2 count=1 page=Generic_Desktop usage=Resolution_Multiplier, logical range 0..1, physical range 1..4 Feature rid=18 size=4 count=1 page=0x0000 usage=0x0000 Const Array, logical range 0..1 Input rid=26 size=16 count=1 page=Consumer usage=AC_Pan, logical range -32767..32767 End collection End collection End collection End collection Collection type=Application page=Consumer usage=Consumer_Control Collection type=Logical page=Generic_Desktop usage=Mouse Input rid=31 size=16 count=1 page=Consumer usage=AC_Pan, logical range -32767..32767 Feature rid=23 size=2 count=1 page=Microsoft usage=0xff06, logical range 0..1, physical range 1..4 Feature rid=23 size=2 count=1 page=Microsoft usage=0xff0f, logical range 0..1, physical range 1..4 Feature rid=23 size=1 count=1 page=Microsoft usage=0xff04, logical range 0..1 Feature rid=23 size=3 count=1 page=0x0000 usage=0x0000 Const Array, logical range 0..1 End collection Input rid=22 size=16 count=1 page=Consumer usage=Unassigned Array, logical range 0..1023 Input rid=22 size=8 count=1 page=Microsoft usage=0xfd01 Array, logical range 1..255 Input rid=22 size=8 count=1 page=0x0000 usage=0x0000 Const Array, logical range 1..255 Input rid=28 size=8 count=1 page=Microsoft usage=0xff25, logical range 0..4 Input rid=28 size=16 count=1 page=Microsoft usage=0xff26, logical range 0..65535 End collection Total input size 10 bytes Total output size 0 bytes Total feature size 2 bytes Work for you: RID=22 (0x16) is the one you are receiving. This is a microsoft specific extension to the HID class. I don't have time to look at this right now, but if you can get documentation for this HID usage, then we could map it to a mouse button at least. Else press all the buttons on your mouse while recording USB trace information. Then reverse engineer the values, make a nice table and I can implement it for you in the ums driver. --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 11:14:45 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EC721BF3 for ; Wed, 30 Jan 2013 11:14:45 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id DCAB8FF4 for ; Wed, 30 Jan 2013 11:14:45 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0UBEiXQ073758 for ; Wed, 30 Jan 2013 03:14:45 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <510900A1.5090208@rawbw.com> Date: Wed, 30 Jan 2013 03:14:41 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Subject: Re: Plugging out Microsoft Nano Tranceiver (USB mouse) causes PS2 keyboard to cease functioning References: <50F48D49.1060406@rawbw.com> In-Reply-To: <50F48D49.1060406@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 11:14:46 -0000 I found the cause of this problem. Due to the bug in Xorg it unloads the keyboard driver when it gets signal from hald that keyboard is disconnected, even though there is still another keyboard that is hooked up to kbdmux. Looks like Xorg code assumes that there can only be one keyboard and isn't aware of kbdmux. This was when hald is enabled (by default), and ServerFlags section in xorg.conf looked like this: Section "ServerFlags" Option "AllowEmptyInput" "yes" EndSection When I changed this section to this: Section "ServerFlags" Option "AutoAddDevices" "False" EndSection keyboard doesn't get affected, but mouse disappears for good when unplugged and plugged back, since (I guess) Xorg ignores ums0 device errors. I filed the following PRs with Xorg: https://bugs.freedesktop.org/show_bug.cgi?id=60069 https://bugs.freedesktop.org/show_bug.cgi?id=60070 Yuri From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 12:41:47 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D7BA8426 for ; Wed, 30 Jan 2013 12:41:47 +0000 (UTC) (envelope-from gperez@entel.upc.edu) Received: from violet.upc.es (violet.upc.es [147.83.2.51]) by mx1.freebsd.org (Postfix) with ESMTP id 45455745 for ; Wed, 30 Jan 2013 12:41:46 +0000 (UTC) Received: from ackerman2.upc.es (ackerman2.upc.es [147.83.2.244]) by violet.upc.es (8.14.1/8.13.1) with ESMTP id r0UCfjwY031236 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Wed, 30 Jan 2013 13:41:45 +0100 Received: from [10.0.2.151] ([147.83.40.183]) (authenticated bits=0) by ackerman2.upc.es (8.14.4/8.14.4) with ESMTP id r0UCficQ017405 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 30 Jan 2013 13:41:45 +0100 Message-ID: <51091508.5060906@entel.upc.edu> Date: Wed, 30 Jan 2013 13:41:44 +0100 From: =?ISO-8859-1?Q?Gustau_P=E9rez_i_Querol?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 MIME-Version: 1.0 To: Yuri Subject: Re: Plugging out Microsoft Nano Tranceiver (USB mouse) causes PS2 keyboard to cease functioning References: <50F48D49.1060406@rawbw.com> <510900A1.5090208@rawbw.com> In-Reply-To: <510900A1.5090208@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.70 on 147.83.2.244 X-Mail-Scanned: Criba 2.0 + Clamd X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (violet.upc.es [147.83.2.51]); Wed, 30 Jan 2013 13:41:45 +0100 (CET) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 12:41:47 -0000 Al 30/01/2013 12:14, En/na Yuri ha escrit: > I found the cause of this problem. > > Due to the bug in Xorg it unloads the keyboard driver when it gets > signal from hald that keyboard is disconnected, even though there is > still another keyboard that is hooked up to kbdmux. > Looks like Xorg code assumes that there can only be one keyboard and > isn't aware of kbdmux. > > This was when hald is enabled (by default), and ServerFlags section in > xorg.conf looked like this: > Section "ServerFlags" > Option "AllowEmptyInput" "yes" > EndSection > > When I changed this section to this: > Section "ServerFlags" > Option "AutoAddDevices" "False" > EndSection > keyboard doesn't get affected, but mouse disappears for good when > unplugged and plugged back, since (I guess) Xorg ignores ums0 device > errors. > > I filed the following PRs with Xorg: > https://bugs.freedesktop.org/show_bug.cgi?id=60069 > https://bugs.freedesktop.org/show_bug.cgi?id=60070 > > Yuri > _______________________________________________ > 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" Take a look at uhidd. I had the same problem a few time ago and because of it I switched to it. Perhaps will do fine for your setup. Regards, Gustau -- Salut i força, Gustau --------------------------------------------------------------------------- Prou top-posting : http://ca.wikipedia.org/wiki/Top-posting Stop top-posting : http://en.wikipedia.org/wiki/Posting_style O O O Gustau Pérez i Querol O O O Unitat de Gestió dels departaments O O O Matemàtica Aplicada IV i Enginyeria Telemàtica Universitat Politècnica de Catalunya Edifici C3 - Despatx S101-B UPC Campus Nord UPC C/ Jordi Girona, 1-3 08034 - Barcelona From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 15:56:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D325B6CC for ; Wed, 30 Jan 2013 15:56:21 +0000 (UTC) (envelope-from development@langner.net) Received: from swdevil.de (swdevil.de [78.47.225.20]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB1F2C6 for ; Wed, 30 Jan 2013 15:56:20 +0000 (UTC) Received: from jupiter2 (e181219222.adsl.alicedsl.de [85.181.219.222]) (authenticated bits=0) by swdevil.de (8.14.5/8.14.5) with ESMTP id r0UFmwhs045003 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 30 Jan 2013 16:49:00 +0100 (CET) (envelope-from development@langner.net) From: "Dipl.-Ing. Harald Langner" To: "'Hans Petter Selasky'" References: <201301242211.r0OMBmZm032367@red.freebsd.org> <201301252332.32405.hselasky@c2i.net> In-Reply-To: <201301252332.32405.hselasky@c2i.net> Subject: *****SPAM***** RE: usb/175551: Seagate 2TB USB extern hard disk have errors with freeBSD Date: Wed, 30 Jan 2013 16:48:22 +0100 Organization: LANGNER Software & Consulting Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac37S7YbAL9hHiQjRdu481534w1/dwDspTzg Content-Language: de X-Spam-Flag: YES X-Spam-Status: Yes, score=7.6 required=4.3 tests=BAYES_40,DOS_OUTLOOK_TO_MX, FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,KHOP_DYNAMIC,RCVD_IN_BRBL_LASTEXT, RCVD_IN_PBL,RCVD_IN_SORBS_DUL,URIBL_BLOCKED shortcircuit=no autolearn=no version=3.3.2 X-Spam-Report: * 0.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address * [85.181.219.222 listed in dnsbl.sorbs.net] * 3.3 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL * [85.181.219.222 listed in zen.spamhaus.org] * 1.4 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT * [85.181.219.222 listed in bb.barracudacentral.org] * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. * See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more information. * [URIs: swdevil.de] * 0.0 FSL_HELO_NON_FQDN_1 FSL_HELO_NON_FQDN_1 * -0.0 BAYES_40 BODY: Bayes spam probability is 20 to 40% * [score: 0.2802] * 0.0 KHOP_DYNAMIC Relay looks like a dynamic address * 0.0 HELO_NO_DOMAIN Relay reports its domain incorrectly * 2.8 DOS_OUTLOOK_TO_MX Delivered direct to MX with Outlook headers X-Spam-Level: ******* X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on swdevil.de Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: development@langner.net List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 15:56:21 -0000 Hello Hans Petter, thank you for your response. I want answer your questions - sorry for = the late reply: 1) Does the drive have separate power connected? A: Yes 2) Have you tried using the disk at USB 2.0 by disabling USB 3.0 in the = BIOS A: I used for this a very old PC, a "Hewlett-Packard HP Vectra VL60 with Intel Pentium III (Copermine) 733Mhz / 256MB RAM / Mainboard D8611-60001 Board-S/N:FR02632024 / PhoenixBOIS 4.0 Release6.0.L /" 1985-2000 Hewellt Packard Rev, Version: HY.01.07 (15 Jan 2002)" It has no USB 3.0, nor can boot from USB. 3) Have you tried setting "hw.usb.umass.throttle" to 1,4 or 16, which is available in 9-stable, when "options USB_DEBUG" is enable. A: No - I have not known that. But I believe that my pc is more to slow = than to fast. 4) "The CAM layer hang you are experiencing is possibly fixed in 10-current." -> fine, I will give it a try when 10-current becomes 10-release. Thank you for give me the information that it is a "CAM layer hang" - whatever this is. So it is not my fault. I now used another (older) external 320 GB USB hard drive. With that I = get no problems (making partitions, formatting,..) With best regards, Harald Langner _________________________________________________________________________= ___ _____ Dipl.-Ing. (FH) Harald E. Langner - Software-Developer - eMail: mailto:Harald.Langner@web.de Url: http://www.swdevil.de http://www.langner.net Phone: +49 (69) 383 575 Telefax: +49 (69) 3877 8692 Mobile:=A0 +49 (179) 617 90 80 Address: Auf der Beun, No. 20 D - 65 933=A0 Frankfurt at Main EUROPE (Germany) -----Original Message----- From: Hans Petter Selasky [mailto:hselasky@c2i.net]=20 Sent: Friday, January 25, 2013 11:33 PM To: freebsd-usb@freebsd.org Cc: Harald Langner; freebsd-gnats-submit@freebsd.org Subject: Re: usb/175551: Seagate 2TB USB extern hard disk have errors = with freeBSD On Thursday 24 January 2013 23:11:48 Harald Langner wrote: > >Number: 175551 > >Category: usb > >Synopsis: Seagate 2TB USB extern hard disk have errors with = freeBSD > >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 Jan 24 22:20:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Harald Langner > >Release: 9.1 Release > >Organization: >=20 > >Environment: > FreeBSD haraldlangner.de 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Wed Jan = 9 > 18:13:51 CET 2013 = root@haraldlangner.de:/usr/obj/usr/src/sys/GENERIC=20 > i386 >=20 > >Description: > it seems to be a driver sw-bug >=20 > I had tried to use an external Seagate 2 TB USB 3.0 hard disk, and=20 > want to format the third partition on it with FreeBSD. But I had have=20 > no look. So I step to the forum to get help. But no help was possible. = > It seems to be a hardware problem between this Seagate Plus Desktop = Drive: > http://www.seagate.com/external-hard-drives/desktop-hard-drives/backup > -plu > s-desk/ and freeBSD. >=20 > The last poster in the forum > http://forums.freebsd.org/showthread.php?t=3D36938 commend me to post = a=20 > problem report - so I want to do here. >=20 > I had try different things (see the post above). Everey time the=20 > USB-Disk hangs up. On Windows I got no problems with this Seagate USB drive. >=20 > I have tried serval time to format a bevore created partition with=20 > freeBSD > - no look: >=20 > # newfs /dev/da0s3 > /dev/da0s3: 267264.0MB (547356656 sectors) block size 32768, fragment=20 > size > 4096 using 362 cylinder groups of 740.00MB, 23680 blks, 47360 inodes. > super-block backups (for fsck -b #) at: > 192, 1515712, 3031232, 4546752, 6062272, 7577792, 9093312, 10608832,=20 > 12124352, 13639872, 15155392, 16670912, 18186432, 19701952, 21217472,=20 > 22732992, 24248512, 25764032, 27279552, 28795072, 30310592, 31826112, = > 33341632, 34857152, 36372672, 37888192, 39403712, 40919232, 42434752,=20 > 43950272, 45465792, 46981312, 48496832, 50012352, 51527872, 53043392, = > 54558912, 56074432, 57589952, 59105472, 60620992, ---Here it hangs -=20 > and I have to switch of the PC. >=20 >=20 > I thing I give up with this Seagte USB device. I had also created a=20 > FAT32 partition (in the 3. Partition as described in the post) with a=20 > second Windows PC. Copy some data on it and try to mount it with the freeBSD PC. > # mount -t msdosfs -o large /dev/da0s3 /mnt/bckup Same Problem - it=20 > hangs: >=20 >=20 > Here are the error message that cames up, when it hangs, on console: > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 c8 32 5d 28 0 0 8 0 > (da0:umass-sim0:0:0:0): CAM status: CCB reques completed with an error > (da0:umass-sim0:0:0:0): Retrying command > ugen0.2: at usbus0 (disconnected) > umass0: at uhub0, port 1, addr 2 (disconnected) > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 c8 32 5d 28 0 0 8 0 > (da0:umass-sim0:0:0:0): CAM status: CCB reques completed with an error > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 c8 32 5d 28 0 0 8 0 > (da0:umass-sim0:0:0:0): CAM status: Section Timeout > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 0 c8 32 5d 28 0 0 8 0 > (da0:umass-sim0:0:0:0): CAM status: Section Timeout > (da0:umass-sim0:0:0:0): Retrying command > (da0:umass-sim0:0:0:0): lost device - 1 outstanding, 2 refs > (da0:umass-sim0:0:0:0): outstanding 0 > (pass3:da0:umass-sim0:0:0:0): passdevgonecb devfs entry is gone >=20 > Here the system hang up. I have to press the power knobe for a new = boot. >=20 > I found in the sources cam.c where the messages seems to be made: > http://svn.freebsd.org/base/user/eri/pf45/head/sys/cam/cam.c and this > info: http://bintree.net/freebsd/de/de1/cam_8c.html. But i dislike to=20 > grubber deeper, what it could be. Maybe my information about the error = > will give the developer of cam.c (and code around) some ideas how=20 > Seagates hard disks can get to work with freeBSD. >=20 > If there are any questions left, please ask me. >=20 > Whish you all best > Harald >=20 > >How-To-Repeat: > Take the "Seagate Plus Desktop Drive" - try to format it - or copy=20 > some data on it, use it. I have buyed this Seagate Plus Desktop=20 > because it should work also with MAC. And Mac kernel is a freeBSD=20 > System - right? But maybe MAC and Windows have different driver. Also=20 > it was written that the Seagate should be upwarts compatible. Because=20 > my old PC (freeBSD) has only USB 2.0 or USB 1.0. >=20 > >Fix: > take another USB drive >=20 Hi, 1) Does the drive have separate power connected? 2) Have you tried using the disk at USB 2.0 by disabling USB 3.0 in the = BIOS 3) Have you tried setting "hw.usb.umass.throttle" to 1,4 or 16, which is available in 9-stable, when "options USB_DEBUG" is enable. The CAM layer hang you are experiencing is possibly fixed in 10-current. = It is not a USB fault. --HPS ----- No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2890 / Virus Database: 2639/6063 - Release Date: = 01/28/13 From owner-freebsd-usb@FreeBSD.ORG Wed Jan 30 22:26:45 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 01485AE1 for ; Wed, 30 Jan 2013 22:26:45 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id DF18DA77 for ; Wed, 30 Jan 2013 22:26:44 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0UMQc9o027772; Wed, 30 Jan 2013 14:26:39 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <51099E1E.1010107@rawbw.com> Date: Wed, 30 Jan 2013 14:26:38 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Hans Petter Selasky Subject: Re: Why my USB keyboard doesn't generate scancodes? References: <5104974C.803@rawbw.com> <201301301025.20211.hselasky@c2i.net> <5108E788.6010401@rawbw.com> <201301301040.54478.hselasky@c2i.net> In-Reply-To: <201301301040.54478.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 22:26:45 -0000 On 01/30/2013 01:40, Hans Petter Selasky wrote: > Work for you: > > RID=22 (0x16) is the one you are receiving. This is a microsoft specific extension to the HID class. > I don't have time to look at this right now, but if you can get documentation for this HID usage, then > we could map it to a mouse button at least. Else press all the buttons on your mouse while recording USB > trace information. Then reverse engineer the values, make a nice table and I can implement it for you in > the ums driver. So the keyboard signal comes to the mouse endpoint. One possible solution is to have a quirk in ums driver that would post the event to the corresponding ukbd instance. Since these are really the keyboard signals. Microsoft makes some of the best mice today (IMO, based on the research of what's available from all vendors). That's why I want FreeBSD to support their mice better. I will do some research, also will try to partially reverse-engineer the protocol. It might be something in their protocol that makes keyboard signals be piped into the mouse pipe. Yuri From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 07:34:50 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2844B67A; Thu, 31 Jan 2013 07:34:50 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id E2DDF94; Thu, 31 Jan 2013 07:34:49 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0V7Yn5p064958; Thu, 31 Jan 2013 07:34:49 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0V7YnS1064954; Thu, 31 Jan 2013 07:34:49 GMT (envelope-from linimon) Date: Thu, 31 Jan 2013 07:34:49 GMT Message-Id: <201301310734.r0V7YnS1064954@freefall.freebsd.org> To: development@langner.net, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-usb@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: usb/175703: Re: usb/175551: Seagate 2TB USB extern hard disk have errors with freeBSD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 07:34:50 -0000 Old Synopsis: *****SPAM***** FW: usb/175551: Seagate 2TB USB extern hard disk have errors with freeBSD New Synopsis: Re: usb/175551: Seagate 2TB USB extern hard disk have errors with freeBSD State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Thu Jan 31 07:33:49 UTC 2013 State-Changed-Why: Misfiled followup to usb/175551usb/175551usb/175551usb/175551usb/175551usb/175551usb/175551usb/175551usb/175551; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-usb Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jan 31 07:33:49 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=175703 From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 14:10:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8AC8E921 for ; Thu, 31 Jan 2013 14:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5975F972 for ; Thu, 31 Jan 2013 14:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0VEA149037373 for ; Thu, 31 Jan 2013 14:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0VEA1fl037372; Thu, 31 Jan 2013 14:10:01 GMT (envelope-from gnats) Resent-Date: Thu, 31 Jan 2013 14:10:01 GMT Resent-Message-Id: <201301311410.r0VEA1fl037372@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Norbert Koch Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EE000720 for ; Thu, 31 Jan 2013 14:03:03 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id CF66A924 for ; Thu, 31 Jan 2013 14:03:03 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0VE33xi015069 for ; Thu, 31 Jan 2013 14:03:03 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0VE33ng015068; Thu, 31 Jan 2013 14:03:03 GMT (envelope-from nobody) Message-Id: <201301311403.r0VE33ng015068@red.freebsd.org> Date: Thu, 31 Jan 2013 14:03:03 GMT From: Norbert Koch To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 14:10:01 -0000 >Number: 175731 >Category: usb >Synopsis: detaching USB keyboard freezes other USB keyboards >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 Jan 31 14:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Norbert Koch >Release: 9.0 >Organization: >Environment: FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Thu Jan 24 16:31:49 CET 2013 root@entw-pr2.demig.intra:/usr/home/nk/src/kernel/src/sys/EMBEDDED_USBKBD_ONLY i386 >Description: My kernel is compiled without support for atkbd. I only use USB keyboards. Attaching is fine but when detaching, any of the keyboards - I tried up to three - the other keyboards freeze. If I attach the keyboard again the other keyboards unfreeze and work as before. The problem has something to do with devd. Detaching works without problems in single user mode or with devd not running. As long as dev does not run *during* detaching things seem to be ok too. Commenting out usb keyboard related entries in /etc/devd.conf or /etc/devd/usb.conf does not help. Commenting out syscons_setkeyboard in /etc/rc.d/syscons does not help either. >How-To-Repeat: Attach two USB keyboards. Detach any of them. The still connected keyboards freezes. Reconnect other keyboard. Both keyboards work. >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 14:22:26 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D7240BF8; Thu, 31 Jan 2013 14:22:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe09.c2i.net [212.247.155.2]) by mx1.freebsd.org (Postfix) with ESMTP id 28F0E9E4; Thu, 31 Jan 2013 14:22:25 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe09.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 199507946; Thu, 31 Jan 2013 15:22:23 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 31 Jan 2013 15:23:34 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: <201301311403.r0VE33ng015068@red.freebsd.org> In-Reply-To: <201301311403.r0VE33ng015068@red.freebsd.org> X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: Norbert Koch , freebsd-gnats-submit@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 14:22:27 -0000 On Thursday 31 January 2013 15:03:03 Norbert Koch wrote: > >Number: 175731 > >Category: usb > >Synopsis: detaching USB keyboard freezes other USB keyboards > >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 Jan 31 14:10:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Norbert Koch > >Release: 9.0 > >Organization: > > >Environment: > FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Thu Jan 24 16:31:49 CET > 2013 > root@entw-pr2.demig.intra:/usr/home/nk/src/kernel/src/sys/EMBEDDED_USBKBD_ > ONLY i386 > > >Description: > My kernel is compiled without support for atkbd. I only use USB keyboards. > > Attaching is fine but when detaching, any of the keyboards - I tried up to > three - the other keyboards freeze. If I attach the keyboard again the > other keyboards unfreeze and work as before. > > The problem has something to do with devd. > Detaching works without problems in single user mode or with devd not > running. As long as dev does not run *during* detaching things seem to be > ok too. > > Commenting out usb keyboard related entries in /etc/devd.conf > or /etc/devd/usb.conf does not help. > Commenting out syscons_setkeyboard in /etc/rc.d/syscons does not help > either. > > >How-To-Repeat: > Attach two USB keyboards. > Detach any of them. > The still connected keyboards freezes. > Reconnect other keyboard. > Both keyboards work. Hi, Is this with or without X11? Can you try 9-stable? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 14:30:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 300A9CD3 for ; Thu, 31 Jan 2013 14:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 223B2A28 for ; Thu, 31 Jan 2013 14:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0VEU1ri041462 for ; Thu, 31 Jan 2013 14:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0VEU1re041461; Thu, 31 Jan 2013 14:30:01 GMT (envelope-from gnats) Date: Thu, 31 Jan 2013 14:30:01 GMT Message-Id: <201301311430.r0VEU1re041461@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 14:30:02 -0000 The following reply was made to PR usb/175731; it has been noted by GNATS. From: Hans Petter Selasky To: freebsd-usb@freebsd.org Cc: Norbert Koch , freebsd-gnats-submit@freebsd.org Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 31 Jan 2013 15:23:34 +0100 On Thursday 31 January 2013 15:03:03 Norbert Koch wrote: > >Number: 175731 > >Category: usb > >Synopsis: detaching USB keyboard freezes other USB keyboards > >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 Jan 31 14:10:00 UTC 2013 > >Closed-Date: > >Last-Modified: > >Originator: Norbert Koch > >Release: 9.0 > >Organization: > > >Environment: > FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Thu Jan 24 16:31:49 CET > 2013 > root@entw-pr2.demig.intra:/usr/home/nk/src/kernel/src/sys/EMBEDDED_USBKBD_ > ONLY i386 > > >Description: > My kernel is compiled without support for atkbd. I only use USB keyboards. > > Attaching is fine but when detaching, any of the keyboards - I tried up to > three - the other keyboards freeze. If I attach the keyboard again the > other keyboards unfreeze and work as before. > > The problem has something to do with devd. > Detaching works without problems in single user mode or with devd not > running. As long as dev does not run *during* detaching things seem to be > ok too. > > Commenting out usb keyboard related entries in /etc/devd.conf > or /etc/devd/usb.conf does not help. > Commenting out syscons_setkeyboard in /etc/rc.d/syscons does not help > either. > > >How-To-Repeat: > Attach two USB keyboards. > Detach any of them. > The still connected keyboards freezes. > Reconnect other keyboard. > Both keyboards work. Hi, Is this with or without X11? Can you try 9-stable? --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 16:20:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 33B4CBA for ; Thu, 31 Jan 2013 16:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 0CE1F11A for ; Thu, 31 Jan 2013 16:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0VGK116061872 for ; Thu, 31 Jan 2013 16:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0VGK1u0061871; Thu, 31 Jan 2013 16:20:01 GMT (envelope-from gnats) Date: Thu, 31 Jan 2013 16:20:01 GMT Message-Id: <201301311620.r0VGK1u0061871@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Norbert Koch Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Norbert Koch List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 16:20:02 -0000 The following reply was made to PR usb/175731; it has been noted by GNATS. From: Norbert Koch To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards Date: Thu, 31 Jan 2013 17:04:03 +0100 It seems to be an X11 only problem. My xorg.conf is auto-generated. Hald is running. In xorg.conf I see Driver "kbd". Does X11 bypass kbdmux? From owner-freebsd-usb@FreeBSD.ORG Thu Jan 31 19:07:49 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id B1FE76BD for ; Thu, 31 Jan 2013 19:07:49 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD14B1C for ; Thu, 31 Jan 2013 19:07:49 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id r0VJ7Z19064293; Thu, 31 Jan 2013 11:07:36 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <510AC0F7.3090605@rawbw.com> Date: Thu, 31 Jan 2013 11:07:35 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130129 Thunderbird/17.0.2 MIME-Version: 1.0 To: Norbert Koch Subject: Re: usb/175731: detaching USB keyboard freezes other USB keyboards References: <201301311620.r0VGK1u0061871@freefall.freebsd.org> In-Reply-To: <201301311620.r0VGK1u0061871@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2013 19:07:49 -0000 On 01/31/2013 08:20, Norbert Koch wrote: > It seems to be an X11 only problem. > My xorg.conf is auto-generated. Hald is running. > In xorg.conf I see Driver "kbd". > Does X11 bypass kbdmux? > This is the same problem I was seeing. Xorg assumes there is only one keyboard. When hald notifies xorg that some keyboard is detached, xorg unloads the keyboard driver. Even though xorg didn't open that particular device (normally kbdmux is the keyboard driver) You can see it in xorg.log See this PR https://bugs.freedesktop.org/show_bug.cgi?id=60069 If you disable hald in xorg.conf, you may experience another issue with disconnectable devices: https://bugs.freedesktop.org/show_bug.cgi?id=60070 Yuri From owner-freebsd-usb@FreeBSD.ORG Fri Feb 1 07:24:10 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 010B4E51 for ; Fri, 1 Feb 2013 07:24:09 +0000 (UTC) (envelope-from hoselang@gmail.com) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx1.freebsd.org (Postfix) with ESMTP id AC1E7F6E for ; Fri, 1 Feb 2013 07:24:09 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id k14so3852035oag.39 for ; Thu, 31 Jan 2013 23:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=+wOVJTC8i/qIV5H5COtIZjfNkiJEVU1D2f539LmFqoI=; b=dIUw/pt5gKQJ8q2Ihtcy6ZEZTxdj68SJeg8dyZC2kpdbWpG0lF3hLNAuEw3dZkTfvr IEifsGNfgrlwI8vSLeI4knCchn+Gd/5I32iR4buOqi2jdWLJcTNlef09JkfUBp3jVGJS KIE3qi0w3iiVocI+Kg2IQGhc3jHMWXJDEw0zKvOwJEiu7pA8/aPi15sLbGKNjpvwFsGG xVivksFMp4vOkQyf4YXsUr9qvbXrV2c9nARwtkZxcsQ+wCuiS7k3ayc7gccqBrU6BmbZ IKVbJrQQEPtAGXgzOoD3erObc0UotBbzzvwHp6+ltZ2/m+R4mJWYgvk1kESxbIoMF4By pHfA== MIME-Version: 1.0 X-Received: by 10.182.54.102 with SMTP id i6mr8575683obp.67.1359703442357; Thu, 31 Jan 2013 23:24:02 -0800 (PST) Received: by 10.60.174.3 with HTTP; Thu, 31 Jan 2013 23:24:02 -0800 (PST) Date: Fri, 1 Feb 2013 15:24:02 +0800 Message-ID: Subject: sata to usb not working From: john smith To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 07:24:10 -0000 Hello, I bought two cheap sata to usb adapters (one with enclosure and one without, one of them is self powerd, so that's not the problem), and both give me the messages below. Tried with 8.2 and 9.1 to which I'm migrating. I have another portable hard-disk which works just fine, so it's probably the new ones I bought that are not supported or something (all three are usb 3). I'm not a developer. Thanks in advance. kernel: usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED kernel: ugen4.2: at usbus4 (disconnected) kernel: uhub_reattach_port: could not allocate new device Dmesg below: Copyright (c) 1992-2011 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.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz (2270.05-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Family = 6 Model = 17 Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd AMD Features=0x20100800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 3984601088 (3800 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard Cuse4BSD v0.1.15 @ /dev/cuse wlan: mac acl policy registered kbd1 at kbdmux0 acpi0: on motherboard CPU0: local APIC error 0x40 acpi0: [ITHREAD] acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, bff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x1800-0x1807 mem 0xf2000000-0xf23fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 32764k stolen memory agp0: aperture size is 256M vgapci1: mem 0xf2400000-0xf24fffff at device 2.1 on pci0 pci0: at device 3.0 (no driver attached) atapci0: port 0x1828-0x182f,0x180c-0x180f,0x1820-0x1827,0x1808-0x180b,0x1810-0x181f irq 18 at device 3.2 on pci0 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] pci0: at device 3.3 (no driver attached) em0: port 0x1840-0x185f mem 0xf2600000-0xf261ffff,0xf2625000-0xf2625fff irq 20 at device 25.0 on pci0 em0: Using an MSI interrupt em0: [FILTER] em0: Ethernet address: 00:1f:16:1f:da:e3 uhci0: port 0x1860-0x187f irq 20 at device 26.0 on pci0 uhci0: [ITHREAD] usbus0: on uhci0 uhci1: port 0x1880-0x189f irq 21 at device 26.1 on pci0 uhci1: [ITHREAD] usbus1: on uhci1 uhci2: port 0x18a0-0x18bf irq 22 at device 26.2 on pci0 uhci2: [ITHREAD] usbus2: on uhci2 ehci0: mem 0xf2826c00-0xf2826fff irq 23 at device 26.7 on pci0 ehci0: [ITHREAD] usbus3: EHCI version 1.0 usbus3: on ehci0 hdac0: mem 0xf2620000-0xf2623fff irq 17 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20100226_0142 hdac0: [ITHREAD] pcib1: irq 20 at device 28.0 on pci0 pci2: on pcib1 pcib2: irq 21 at device 28.1 on pci0 pci3: on pcib2 iwn0: mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3 iwn0: MIMO 1T2R, MoW, address 00:22:fa:f5:62:fa iwn0: [ITHREAD] iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps pcib3: irq 23 at device 28.3 on pci0 pci5: on pcib3 uhci3: port 0x18c0-0x18df irq 16 at device 29.0 on pci0 uhci3: [ITHREAD] usbus4: on uhci3 uhci4: port 0x18e0-0x18ff irq 17 at device 29.1 on pci0 uhci4: [ITHREAD] usbus5: on uhci4 uhci5: port 0x1c00-0x1c1f irq 18 at device 29.2 on pci0 uhci5: [ITHREAD] usbus6: on uhci5 ehci1: mem 0xf2827000-0xf28273ff irq 19 at device 29.7 on pci0 ehci1: [ITHREAD] usbus7: EHCI version 1.0 usbus7: on ehci1 pcib4: at device 30.0 on pci0 pci13: on pcib4 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0x1c48-0x1c4f,0x183c-0x183f,0x1c40-0x1c47,0x1838-0x183b,0x1c20-0x1c3f mem 0xf2826000-0xf28267ff irq 16 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI v1.20 controller with 4 3Gbps ports, PM not supported ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_tz0: on acpi0 acpi_tz1: on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 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] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd0fff,0xd1000-0xd1fff,0xd2000-0xd2fff,0xde000-0xdf7ff,0xe0000-0xeffff 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: cannot reserve I/O port range est0: on cpu0 p4tcc0: on cpu0 est1: on cpu1 p4tcc1: on cpu1 Timecounters tick every 1.000 msec vboxdrv: fAsync=0 offMin=0x297 offMax=0x93b usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus4: 12Mbps Full Speed USB v1.0 usbus5: 12Mbps Full Speed USB v1.0 usbus6: 12Mbps Full Speed USB v1.0 usbus7: 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 ugen5.1: at usbus5 uhub5: on usbus5 ugen6.1: at usbus6 uhub6: on usbus6 ugen7.1: at usbus7 uhub7: on usbus7 uhub0: 2 ports with 2 removable, self powered uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered uhub5: 2 ports with 2 removable, self powered uhub6: 2 ports with 2 removable, self powered ad8: 238475MB at ata4-master UDMA100 SATA 1.5Gb/s hdac0: HDA Codec #0: Conexant CX20561 (Hermosa) pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 SMP: AP CPU #1 Launched! Root mount waiting for: usbus7 usbus3 Root mount waiting for: usbus7 usbus3 uhub3: 6 ports with 6 removable, self powered uhub7: 6 ports with 6 removable, self powered Root mount waiting for: usbus3 ugen3.2: at usbus3 Trying to mount root from ufs:/dev/ad8s1a ugen1.2: at usbus1 vboxnet0: Ethernet address: 0a:00:27:00:00:00 IP Filter: v4.1.28 initialized. Default = pass all, Logging = enabled wlan0: Ethernet address: 00:1f:16:1f:da:e3 wlan0: link state changed to UP lagg0: link state changed to UP fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 drm0: on vgapci0 info: [drm] MSI enabled 1 message(s) vgapci0: child drm0 requested pci_enable_busmaster info: [drm] AGP at 0xd0000000 256MB info: [drm] Initialized i915 1.6.0 20080730 drm0: [ITHREAD] usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED ugen4.2: at usbus4 (disconnected) uhub_reattach_port: could not allocate new device From owner-freebsd-usb@FreeBSD.ORG Fri Feb 1 07:31:09 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BEEAE1E4 for ; Fri, 1 Feb 2013 07:31:09 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 561C6FD4 for ; Fri, 1 Feb 2013 07:31:08 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 369173811; Fri, 01 Feb 2013 08:31:01 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Subject: Re: sata to usb not working Date: Fri, 1 Feb 2013 08:32:13 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-STABLE; KDE/4.8.4; amd64; ; ) References: In-Reply-To: X-Face: ?p&W)c(+80hU; '{.$5K+zq{oC6y| /D'an*6mw>j'f:eBsex\Gi, Cc: john smith X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2013 07:31:09 -0000 On Friday 01 February 2013 08:24:02 john smith wrote: > Hello, > I bought two cheap sata to usb adapters (one with enclosure and one > without, one of them is self powerd, so that's not the problem), and > both give me the messages below. Tried with 8.2 and 9.1 to which I'm > migrating. I have another portable hard-disk which works just fine, so > it's probably the new ones I bought that are not supported or > something (all three are usb 3). I'm not a developer. Thanks in > advance. > > kernel: usb_alloc_device: set address 2 failed (USB_ERR_STALLED, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 2 > failed, USB_ERR_STALLED > kernel: usbd_req_re_enumerate: addr=2, set address failed! > (USB_ERR_STALLED, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 2 > failed, USB_ERR_STALLED > kernel: usbd_req_re_enumerate: addr=2, set address failed! > (USB_ERR_STALLED, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 2 > failed, USB_ERR_STALLED > kernel: ugen4.2: at usbus4 (disconnected) > kernel: uhub_reattach_port: could not allocate new device > Hi, Can you upgrade the kernel to -stable, and then tune some of these sysctls up until it works? hw.usb.timings.extra_power_up_time: 20 hw.usb.timings.resume_recovery: 50 hw.usb.timings.resume_wait: 50 hw.usb.timings.resume_delay: 250 hw.usb.timings.set_address_settle: 10 hw.usb.timings.port_resume_delay: 40 hw.usb.timings.port_powerup_delay: 300 hw.usb.timings.port_reset_recovery: 250 hw.usb.timings.port_root_reset_delay: 250 hw.usb.timings.port_reset_delay: 50 --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Feb 2 08:49:05 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EBB9AB9D for ; Sat, 2 Feb 2013 08:49:05 +0000 (UTC) (envelope-from hoselang@gmail.com) Received: from mail-ob0-f175.google.com (mail-ob0-f175.google.com [209.85.214.175]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF486AB for ; Sat, 2 Feb 2013 08:49:05 +0000 (UTC) Received: by mail-ob0-f175.google.com with SMTP id uz6so4826433obc.6 for ; Sat, 02 Feb 2013 00:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=WDFla5y24CkAg7RwZyigeVnXis0HfZ+FoceZajF6pB8=; b=OATd5v+7Zpx+Xf2UyDRvHSpeoytopHtb/czZivGaqUD+QUCtgTHQuoHkp115O3IZul kK/eVPSZFAtDG7H8Li5qWwftQlZ3FWy7N0QYO+4YQAWftjRvTTnwpqCboIYCYSWbCR/f aP9hARa7+Ew35bMDQRexYy3o9eEm9Obin42Nb5X+z+QXNezOqw5kAgVzeMRaKBbScGsp NLGow2a4LPMIhKVxFL9lFky1UYTEHsI2BPcfW0IQQ4AVEsHOFEHmH0rg3lLB5vR1rIfA +z/i05CiW5oZzbboN8MY9E/fjDUArrcUqh+LT926Uqo6McdYVJapQuxbCIOqAdFNz48+ U4/w== MIME-Version: 1.0 X-Received: by 10.60.172.131 with SMTP id bc3mr12230442oec.79.1359794939683; Sat, 02 Feb 2013 00:48:59 -0800 (PST) Received: by 10.60.174.3 with HTTP; Sat, 2 Feb 2013 00:48:59 -0800 (PST) In-Reply-To: References: <201302010832.13117.hselasky@c2i.net> <201302010902.43882.hselasky@c2i.net> Date: Sat, 2 Feb 2013 16:48:59 +0800 Message-ID: Subject: Fwd: sata to usb not working From: john smith To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Feb 2013 08:49:06 -0000 sorry I did not send directly to the list ---------- Forwarded message ---------- From: john smith Date: Sat, Feb 2, 2013 at 4:18 PM Subject: Re: sata to usb not working To: Hans Petter Selasky I've done the upgrade, but still get the same errors. How exactly should I tweak the timings? Any hints? Tks On Sat, Feb 2, 2013 at 9:22 AM, john smith wrote: > Hello, > I'm doing the upgrade to -stable (still in "buildworld"), in the meantime > I've found out that the powered one (the one without enclosure) works if in > turn connected to a powered hub (both must have external power to work). > Here is the relevant usbconfig output: > > ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE > ugen7.3: at usbus7, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=ON > > here the /var/log/messages: > > kernel: ugen7.3: at usbus7 > kernel: umass0: addr 3> on usbus7 > kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000 > kernel: umass0:5:0:-1: Attached to scbus5 > kernel: (probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 > 0 0 > kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error > kernel: (probe0:umass-sim0:0:0:0): SCSI status: Check Condition > kernel: (probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 > (Invalid command operation code) > kernel: (probe0:umass-sim0:0:0:0): Error 22, Unretryable error > kernel: da0 at umass-sim0 bus 0 scbus5 target 0 lun 0 > kernel: da0: Fixed Direct Access SCSI-5 device > kernel: da0: 40.000MB/s transfers > kernel: da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) > > > > > On Fri, Feb 1, 2013 at 4:23 PM, john smith wrote: > >> ok, thanks, will let you know. >> >> On 2/1/13, Hans Petter Selasky wrote: >> > On Friday 01 February 2013 08:59:07 john smith wrote: >> >> Hi, >> >> thanks for you reply. >> >> Is upgrading to -stable conditio sine qua non? >> >> If so I'll give it a try. >> > >> > Hi, >> > >> > If you are on 9-release and upgrade to 9-stable, should not break >> anything. >> > >> > If you have USB modules in /boot/modules, those might have to be >> > re-compiled. >> > >> > --HPS >> > >> > >