From owner-freebsd-usb@FreeBSD.ORG Sun Oct 3 08:18:07 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8488106566B for ; Sun, 3 Oct 2010 08:18:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 5C8C08FC16 for ; Sun, 3 Oct 2010 08:18:07 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=n8Bjt7LWsAIA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=dquLli-loZs6EJB_6IgA:9 a=VGmH9BZD_bxUyensN3gA:7 a=y3S4ozwp2ld4xHHS36ffow9wGtYA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 29514440; Sun, 03 Oct 2010 10:18:05 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Sun, 3 Oct 2010 10:19:20 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010031019.20329.hselasky@c2i.net> Cc: Subject: Re: ...but this USB device is more than a printer! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 08:18:08 -0000 On Sunday 03 October 2010 01:19:18 dan wrote: > Hi all, > > I'll go straight to the point. > Here's the output from "usbconfig dump_device_desc" > > #* > ugen0.3: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0110 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0008 > idVendor = 0x04e8 > idProduct = 0x3413 > bcdDevice = 0x0100 > iManufacturer = 0x0001 > iProduct = 0x0002 > iSerialNumber = 0x0003 <8J21BAKYB28091W.> > bNumConfigurations = 0x0001 > #* > > and here's the output from "usbconfig dump_curr_config_desc" > > #* > ugen0.3: at usbus0, cfg=0 md=HOST > spd=FULL (12Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0020 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00c0 > bMaxPower = 0x0000 > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0002 > bInterfaceClass = 0x0007 > bInterfaceSubClass = 0x0001 > bInterfaceProtocol = 0x0002 > iInterface = 0x0000 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0003 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0040 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > #* > > Userland software, such as sane-find-scanner, is currently sure this is > is just a printer. I would like this device to introduce itself for what > it is ... a printer + a color scanner. > Is it feasible? Are there any well-established techniques to (try to) > reach the goal? > > Thanks for any link/suggestion > Hi, Maybe you have to switch some button on the printer. Only one driver can use a set of IN and OUT endpoints at a time in an interface. Maybe the original driver has a multiplexer on top? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 3 10:41:07 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FD64106564A for ; Sun, 3 Oct 2010 10:41:07 +0000 (UTC) (envelope-from glimp@live.com) Received: from blu0-omc1-s19.blu0.hotmail.com (blu0-omc1-s19.blu0.hotmail.com [65.55.116.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4E0188FC25 for ; Sun, 3 Oct 2010 10:41:06 +0000 (UTC) Received: from BLU0-SMTP103 ([65.55.116.9]) by blu0-omc1-s19.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 3 Oct 2010 03:41:06 -0700 X-Originating-IP: [151.49.237.197] X-Originating-Email: [glimp@live.com] Message-ID: Received: from genki.collidiamo.net ([151.49.237.197]) by BLU0-SMTP103.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sun, 3 Oct 2010 03:41:05 -0700 Date: Sun, 3 Oct 2010 12:34:33 +0200 From: dan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <201010031019.20329.hselasky@c2i.net> In-Reply-To: <201010031019.20329.hselasky@c2i.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2010 10:41:05.0829 (UTC) FILETIME=[7B72F550:01CB62E7] Cc: Subject: Re: ...but this USB device is more than a printer! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 10:41:07 -0000 On 03.10.2010 10:19, Hans Petter Selasky wrote: > On Sunday 03 October 2010 01:19:18 dan wrote: >> Hi all, >> >> I'll go straight to the point. >> Here's the output from "usbconfig dump_device_desc" >> >> #* >> ugen0.3: at usbus0, cfg=0 md=HOST >> spd=FULL (12Mbps) pwr=ON >> >> bLength = 0x0012 >> bDescriptorType = 0x0001 >> bcdUSB = 0x0110 >> bDeviceClass = 0x0000 >> bDeviceSubClass = 0x0000 >> bDeviceProtocol = 0x0000 >> bMaxPacketSize0 = 0x0008 >> idVendor = 0x04e8 >> idProduct = 0x3413 >> bcdDevice = 0x0100 >> iManufacturer = 0x0001 >> iProduct = 0x0002 >> iSerialNumber = 0x0003<8J21BAKYB28091W.> >> bNumConfigurations = 0x0001 >> #* >> >> and here's the output from "usbconfig dump_curr_config_desc" >> >> #* >> ugen0.3: at usbus0, cfg=0 md=HOST >> spd=FULL (12Mbps) pwr=ON >> >> >> Configuration index 0 >> >> bLength = 0x0009 >> bDescriptorType = 0x0002 >> wTotalLength = 0x0020 >> bNumInterfaces = 0x0001 >> bConfigurationValue = 0x0001 >> iConfiguration = 0x0000 >> bmAttributes = 0x00c0 >> bMaxPower = 0x0000 >> >> Interface 0 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0000 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0002 >> bInterfaceClass = 0x0007 >> bInterfaceSubClass = 0x0001 >> bInterfaceProtocol = 0x0002 >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0003 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0081 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> #* >> >> Userland software, such as sane-find-scanner, is currently sure this is >> is just a printer. I would like this device to introduce itself for what >> it is ... a printer + a color scanner. >> Is it feasible? Are there any well-established techniques to (try to) >> reach the goal? >> >> Thanks for any link/suggestion >> > > Hi, > > Maybe you have to switch some button on the printer. Only one driver can use a > set of IN and OUT endpoints at a time in an interface. Maybe the original > driver has a multiplexer on top? > > --HPS > > Thanks Hans Petter, the device has no physical switch anywhere. Probably multiplexing is involved. It's worth to note then, if I understand it correctly, that this device does not follow this recommendation I read somewhere: "Important: Do not implement multiplexing over a single USB channel. Software multiplexing is fragile, and the native capabilities of USB should be used for communicating with multiple functions." d From owner-freebsd-usb@FreeBSD.ORG Sun Oct 3 22:47:04 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C85C1065672 for ; Sun, 3 Oct 2010 22:47:04 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (out-0-36.mx.aerioconnect.net [216.240.47.96]) by mx1.freebsd.org (Postfix) with ESMTP id EDBC08FC0C for ; Sun, 3 Oct 2010 22:47:03 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o93MWArN017772; Sun, 3 Oct 2010 15:32:11 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 7C65E2D6017; Sun, 3 Oct 2010 15:32:09 -0700 (PDT) Message-ID: <4CA90492.4000507@freebsd.org> Date: Sun, 03 Oct 2010 15:32:50 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Hans Petter Selasky References: <201010031019.20329.hselasky@c2i.net> In-Reply-To: <201010031019.20329.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-usb@freebsd.org Subject: Re: ...but this USB device is more than a printer! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 22:47:04 -0000 On 10/3/10 1:19 AM, Hans Petter Selasky wrote: > On Sunday 03 October 2010 01:19:18 dan wrote: >> Hi all, >> >> I'll go straight to the point. >> Here's the output from "usbconfig dump_device_desc" >> >> #* >> ugen0.3: at usbus0, cfg=0 md=HOST >> spd=FULL (12Mbps) pwr=ON >> >> bLength = 0x0012 >> bDescriptorType = 0x0001 >> bcdUSB = 0x0110 >> bDeviceClass = 0x0000 >> bDeviceSubClass = 0x0000 >> bDeviceProtocol = 0x0000 >> bMaxPacketSize0 = 0x0008 >> idVendor = 0x04e8 >> idProduct = 0x3413 >> bcdDevice = 0x0100 >> iManufacturer = 0x0001 >> iProduct = 0x0002 >> iSerialNumber = 0x0003<8J21BAKYB28091W.> >> bNumConfigurations = 0x0001 >> #* >> >> and here's the output from "usbconfig dump_curr_config_desc" >> >> #* >> ugen0.3: at usbus0, cfg=0 md=HOST >> spd=FULL (12Mbps) pwr=ON >> >> >> Configuration index 0 >> >> bLength = 0x0009 >> bDescriptorType = 0x0002 >> wTotalLength = 0x0020 >> bNumInterfaces = 0x0001 >> bConfigurationValue = 0x0001 >> iConfiguration = 0x0000 >> bmAttributes = 0x00c0 >> bMaxPower = 0x0000 >> >> Interface 0 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0000 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0002 >> bInterfaceClass = 0x0007 >> bInterfaceSubClass = 0x0001 >> bInterfaceProtocol = 0x0002 >> iInterface = 0x0000 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0003 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> Endpoint 1 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0081 >> bmAttributes = 0x0002 >> wMaxPacketSize = 0x0040 >> bInterval = 0x0000 >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> #* >> >> Userland software, such as sane-find-scanner, is currently sure this is >> is just a printer. I would like this device to introduce itself for what >> it is ... a printer + a color scanner. >> Is it feasible? Are there any well-established techniques to (try to) >> reach the goal? >> >> Thanks for any link/suggestion >> > Hi, > > Maybe you have to switch some button on the printer. Only one driver can use a > set of IN and OUT endpoints at a time in an interface. Maybe the original > driver has a multiplexer on top? I've seen quite a bit of this sort of thing. usually there are separate interface descriptors (can we handle that?) but I've also seen examples of this where there appear to be setups that would normally require a separate driver. maybe there should be a way to split out an endpoint and provide it with a virtual separate interface. (speaking in USB terms) > --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Sun Oct 3 22:47:04 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47CBB1065674 for ; Sun, 3 Oct 2010 22:47:04 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (out-0-36.mx.aerioconnect.net [216.240.47.96]) by mx1.freebsd.org (Postfix) with ESMTP id 26BEB8FC12 for ; Sun, 3 Oct 2010 22:47:04 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o93MYe3f017804; Sun, 3 Oct 2010 15:34:40 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 864882D6015; Sun, 3 Oct 2010 15:34:39 -0700 (PDT) Message-ID: <4CA90529.6080301@freebsd.org> Date: Sun, 03 Oct 2010 15:35:21 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: dan References: <201010031019.20329.hselasky@c2i.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-usb@freebsd.org Subject: Re: ...but this USB device is more than a printer! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 22:47:04 -0000 On 10/3/10 3:34 AM, dan wrote: > On 03.10.2010 10:19, Hans Petter Selasky wrote: >> On Sunday 03 October 2010 01:19:18 dan wrote: >>> Hi all, >>> >>> I'll go straight to the point. >>> Here's the output from "usbconfig dump_device_desc" >>> >>> #* >>> ugen0.3: at usbus0, cfg=0 md=HOST >>> spd=FULL (12Mbps) pwr=ON >>> >>> bLength = 0x0012 >>> bDescriptorType = 0x0001 >>> bcdUSB = 0x0110 >>> bDeviceClass = 0x0000 >>> bDeviceSubClass = 0x0000 >>> bDeviceProtocol = 0x0000 >>> bMaxPacketSize0 = 0x0008 >>> idVendor = 0x04e8 >>> idProduct = 0x3413 >>> bcdDevice = 0x0100 >>> iManufacturer = 0x0001 >>> iProduct = 0x0002 >>> iSerialNumber = 0x0003<8J21BAKYB28091W.> >>> bNumConfigurations = 0x0001 >>> #* >>> >>> and here's the output from "usbconfig dump_curr_config_desc" >>> >>> #* >>> ugen0.3: at usbus0, cfg=0 md=HOST >>> spd=FULL (12Mbps) pwr=ON >>> >>> >>> Configuration index 0 >>> >>> bLength = 0x0009 >>> bDescriptorType = 0x0002 >>> wTotalLength = 0x0020 >>> bNumInterfaces = 0x0001 >>> bConfigurationValue = 0x0001 >>> iConfiguration = 0x0000 >>> bmAttributes = 0x00c0 >>> bMaxPower = 0x0000 >>> >>> Interface 0 >>> bLength = 0x0009 >>> bDescriptorType = 0x0004 >>> bInterfaceNumber = 0x0000 >>> bAlternateSetting = 0x0000 >>> bNumEndpoints = 0x0002 >>> bInterfaceClass = 0x0007 >>> bInterfaceSubClass = 0x0001 >>> bInterfaceProtocol = 0x0002 >>> iInterface = 0x0000 >>> >>> Endpoint 0 >>> bLength = 0x0007 >>> bDescriptorType = 0x0005 >>> bEndpointAddress = 0x0003 >>> bmAttributes = 0x0002 >>> wMaxPacketSize = 0x0040 >>> bInterval = 0x0000 >>> bRefresh = 0x0000 >>> bSynchAddress = 0x0000 >>> >>> Endpoint 1 >>> bLength = 0x0007 >>> bDescriptorType = 0x0005 >>> bEndpointAddress = 0x0081 >>> bmAttributes = 0x0002 >>> wMaxPacketSize = 0x0040 >>> bInterval = 0x0000 >>> bRefresh = 0x0000 >>> bSynchAddress = 0x0000 >>> #* >>> >>> Userland software, such as sane-find-scanner, is currently sure >>> this is >>> is just a printer. I would like this device to introduce itself >>> for what >>> it is ... a printer + a color scanner. >>> Is it feasible? Are there any well-established techniques to (try to) >>> reach the goal? >>> >>> Thanks for any link/suggestion >>> >> >> Hi, >> >> Maybe you have to switch some button on the printer. Only one >> driver can use a >> set of IN and OUT endpoints at a time in an interface. Maybe the >> original >> driver has a multiplexer on top? >> >> --HPS >> >> > Thanks Hans Petter, > > the device has no physical switch anywhere. > Probably multiplexing is involved. It's worth to note then, if I > understand it correctly, that this device does not follow this > recommendation I read somewhere: > > "Important: Do not implement multiplexing over a single USB channel. > Software multiplexing is fragile, and the native capabilities of USB > should be used for communicating with multiple functions." Well they are not multiplexing on a single endpoint, and are using separate endpoints to do this but they are doing it at the wrong level in order to keep the entire device under the control of a single (their) driver rather than have to risk having a separate driver usurp part of it. > > d > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Sun Oct 3 23:56:12 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49B02106564A; Sun, 3 Oct 2010 23:56:12 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 116208FC0A; Sun, 3 Oct 2010 23:56:11 +0000 (UTC) Received: by pxi17 with SMTP id 17so1485238pxi.13 for ; Sun, 03 Oct 2010 16:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=xpy4jvI/N5nr1N6pjq7QG3xeQIhWe993fjgzyGDrnsI=; b=wT/gdd9UZIWxx8LlC7M8LyUClb6ruR2RgDxcWkjMkmH3R9EjH0vBQTzhe9dtvNZUOR 7QmBjd0UIE4SUSr7eD+ZIv1J1aq7RWDhZ6wOpQUs6sRExnGVElYWr/vhOgccG2BYvq4k tDT6D4EdZBqwtgWKQoNxJtKFTJlF90d94yv6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=wTmns4+OdNnHbwP286Kytk5h65O3RM4NPm9Pok1H/tWfW/UqxwHIkw70D3nWFq1Pi1 YsUx+4h0/dMBKB4SkStwflSWnmtrKvV9P6uVIQdJdF2HpD78BeQ/kh6YTnWcwo12Zp11 kRnZfaspUJeOkYSr+g4rOVsMSje0zVBfDXAAs= Received: by 10.114.102.20 with SMTP id z20mr10356489wab.133.1286150171418; Sun, 03 Oct 2010 16:56:11 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id r37sm8109302wak.11.2010.10.03.16.56.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 03 Oct 2010 16:56:09 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Sun, 3 Oct 2010 16:54:23 -0700 From: Pyun YongHyeon Date: Sun, 3 Oct 2010 16:54:23 -0700 To: Hans Petter Selasky Message-ID: <20101003235423.GB1135@michelle.cdnetworks.com> References: <20101002001100.GL10521@michelle.cdnetworks.com> <201010020841.57474.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010020841.57474.hselasky@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2010 23:56:12 -0000 On Sat, Oct 02, 2010 at 08:41:57AM +0200, Hans Petter Selasky wrote: > On Saturday 02 October 2010 02:11:00 Pyun YongHyeon wrote: > > Hi, > > > > I don't know how long it had been there but it seems current USB > > stack does not honor fairness of TX/RX on USB ethernet controller. > > Unidirectional performance test(UDP) or most-unidirectional > > performance(TCP) test works well without problems. However if heavy > > TX/RX traffic hits controller at the same time either TX or RX is > > not served at all. I'm under the impression that whenever TX work > > is done it seems USB reschedules next pending TX again instead of > > processing RX such that RX is starved to death. This can be easily > > reproduced on two hosts with the netperf performance test. > > Whenever both hosts send tiny UDP datagrams to the other host > > either TX or RX packet counters are not increasing until the end > > of the UDP torture test. The number of EHCI interrupt is about 8K/s > > while test is in progress so I think it reached its maximum > > processing limit. After netperf testing, it can still process TX/RX > > packets even though it dropped too many RX packets. But these > > dropped packets are not counted so netstat(1) shows 0 dropped > > frames even though it lost millions of packets. > > > > Hans, do you have any idea what's going on here? > > You can use the following netperf command on both hosts after > > running netserver. > > %netperf -c -H ip_addr_of_other_host -tUDP_STREAM -l 300 -- -m 1 > > > > Another odd thing I noticed is number of interrupts does not go > > down to 0 after the testing. It constantly generates 1k/s > > interrupts after that. > > Maybe we are triggering a bug. Can you enable USB debugging to figure out what > data lengths are transmitted or received. > In the middle of testing? If yes, that would be meaningless as it would generate bunch of messages. The test case generates payload size 1 UDP datagrams with full speed so enabling debug messages will change timing. Note, I'm exercising number of packets per second, not number of bytes per second. > USB EHCI uses round robin, so this is either USB device problem or a test- > program software failure. > I'm pretty sure the benchmark program is not broken, so either axe(4) or USB stack could be wrong here. I see three issues from the UDP torture test. - Either TX or RX could be starved to death. If you start TX test first, RX would be stuck. If you start RX test first, TX would be stuck. - The number of packets sent or received are much lower than expected. For TX case, the number of packets sent per second is exactly 8k which is much less than that of non-USB controllers. For gigabit controllers number of TX packets could be several hundred thousands per second. For RX packets it shows 14K/s packets with 8K/s interrupts. I thought USB ethernet controllers can send more than 8k packets per second. Because the number of interrupts per second and 8k packets per second is the same, this also make me wonder there could be some relations there. - Number of interrupts does not go back to 0 after the testing. I'll let you know if I find some clue but it may take long time as I'm not familiar with USB stack. :-( > Check the CPU usage of the host computer during the test. Do you see anything? > I didn't notice odd thing except 8k/s interrupts. > > The only way I stop that interrupts was to > > down the ue0 interface with "ifconfig ue0 down" command. > > --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 03:45:03 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C357106564A; Mon, 4 Oct 2010 03:45:03 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (outb.internet-mail-service.net [216.240.47.225]) by mx1.freebsd.org (Postfix) with ESMTP id 042DF8FC12; Mon, 4 Oct 2010 03:45:02 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o943WwWp010893; Sun, 3 Oct 2010 20:32:58 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id AAF1D2D6011; Sun, 3 Oct 2010 20:32:57 -0700 (PDT) Message-ID: <4CA94B13.7020809@freebsd.org> Date: Sun, 03 Oct 2010 20:33:39 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: pyunyh@gmail.com References: <20101002001100.GL10521@michelle.cdnetworks.com> <201010020841.57474.hselasky@freebsd.org> <20101003235423.GB1135@michelle.cdnetworks.com> In-Reply-To: <20101003235423.GB1135@michelle.cdnetworks.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 03:45:03 -0000 On 10/3/10 4:54 PM, Pyun YongHyeon wrote: > On Sat, Oct 02, 2010 at 08:41:57AM +0200, Hans Petter Selasky wrote: >> On Saturday 02 October 2010 02:11:00 Pyun YongHyeon wrote: >>> Hi, >>> >>> I don't know how long it had been there but it seems current USB >>> stack does not honor fairness of TX/RX on USB ethernet controller. >>> Unidirectional performance test(UDP) or most-unidirectional >>> performance(TCP) test works well without problems. However if heavy >>> TX/RX traffic hits controller at the same time either TX or RX is >>> not served at all. I'm under the impression that whenever TX work >>> is done it seems USB reschedules next pending TX again instead of >>> processing RX such that RX is starved to death. This can be easily >>> reproduced on two hosts with the netperf performance test. >>> Whenever both hosts send tiny UDP datagrams to the other host >>> either TX or RX packet counters are not increasing until the end >>> of the UDP torture test. The number of EHCI interrupt is about 8K/s >>> while test is in progress so I think it reached its maximum >>> processing limit. After netperf testing, it can still process TX/RX >>> packets even though it dropped too many RX packets. But these >>> dropped packets are not counted so netstat(1) shows 0 dropped >>> frames even though it lost millions of packets. >>> >>> Hans, do you have any idea what's going on here? >>> You can use the following netperf command on both hosts after >>> running netserver. >>> %netperf -c -H ip_addr_of_other_host -tUDP_STREAM -l 300 -- -m 1 >>> >>> Another odd thing I noticed is number of interrupts does not go >>> down to 0 after the testing. It constantly generates 1k/s >>> interrupts after that. >> Maybe we are triggering a bug. Can you enable USB debugging to figure out what >> data lengths are transmitted or received. >> > In the middle of testing? If yes, that would be meaningless as it > would generate bunch of messages. The test case generates payload > size 1 UDP datagrams with full speed so enabling debug messages > will change timing. Note, I'm exercising number of packets per > second, not number of bytes per second. > >> USB EHCI uses round robin, so this is either USB device problem or a test- >> program software failure. >> > I'm pretty sure the benchmark program is not broken, so either > axe(4) or USB stack could be wrong here. I see three issues from > the UDP torture test. > - Either TX or RX could be starved to death. If you start TX test > first, RX would be stuck. If you start RX test first, TX would > be stuck. > - The number of packets sent or received are much lower than > expected. > For TX case, the number of packets sent per second is exactly 8k > which is much less than that of non-USB controllers. For gigabit that is a big clue. the USB hardware uses an 8 thousand time per second clock for it's internal polling. > controllers number of TX packets could be several hundred > thousands per second. For RX packets it shows 14K/s packets with > 8K/s interrupts. I thought USB ethernet controllers can send > more than 8k packets per second. Because the number of > interrupts per second and 8k packets per second is the same, > this also make me wonder there could be some relations there. > - Number of interrupts does not go back to 0 after the testing. > > I'll let you know if I find some clue but it may take long time as > I'm not familiar with USB stack. :-( > >> Check the CPU usage of the host computer during the test. Do you see anything? >> > I didn't notice odd thing except 8k/s interrupts. > >>> The only way I stop that interrupts was to >>> down the ue0 interface with "ifconfig ue0 down" command. >> --HPS > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 06:50:44 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47E1A106564A; Mon, 4 Oct 2010 06:50:44 +0000 (UTC) (envelope-from takachan@running-dog.net) Received: from www1027.sakura.ne.jp (www1027.sakura.ne.jp [219.94.129.37]) by mx1.freebsd.org (Postfix) with ESMTP id EAAA68FC1A; Mon, 4 Oct 2010 06:50:43 +0000 (UTC) Received: from www1027.sakura.ne.jp (ksav11.sakura.ne.jp [210.224.165.45]) by www1027.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id o9461VmH032964; Mon, 4 Oct 2010 15:01:31 +0900 (JST) (envelope-from takachan@running-dog.net) X-Nat-Received: from [219.94.129.37]:52936 [ident-empty] by smtp-proxy.isp with TPROXY id 1286172091.21248 Received: from mail.running-dog.net (x239049.ppp.asahi-net.or.jp [122.249.239.49]) (authenticated bits=0) by www1027.sakura.ne.jp (8.14.3/8.14.3) with ESMTP id o9461RlM032949; Mon, 4 Oct 2010 15:01:30 +0900 (JST) (envelope-from takachan@running-dog.net) Date: Mon, 04 Oct 2010 15:01:27 +0900 (JST) Message-Id: <20101004.150127.2222536696766454807.takachan@running-dog.net> To: hselasky@c2i.net From: TAKANO Yuji In-Reply-To: <201009291159.34054.hselasky@c2i.net> References: <201009290151.o8T1pAX4076640@www.freebsd.org> <201009291159.34054.hselasky@c2i.net> X-Mailer: Mew version 7.0.50 on Emacs 23.2 / Mule 6.0 =?iso-2022-jp?B?KBskQjJWOzZOJBsoQik=?= X-Face: eat%|YBNv.@HDTro$1f+Kxp"N1C>75Ph~a; %UoNP'VPsk^-)}'RY[MD{y@M{b]|9twYu|3? )FuCzVmt8O?uRq$>LMwi=LLP^MRJDD50aZ=w~MIc"NiQLai,-UkQ@](.; @}o-vrjPH/eXW$; )u.%GU I4SW{fv2kAdS!k|Fd2lCR}f(.DSJtf3do0e3!X Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Anti-Virus: Kaspersky Anti-Virus for Linux Mail Server 5.6.44/RELEASE, bases: 03102010 #4282816, status: clean Cc: takachan@running-dog.net, freebsd-gnats-submit@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/151043: Please add USB device MELCO WLR-UC-G X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 06:50:44 -0000 Hi. From: Hans Petter Selasky さん > On Wednesday 29 September 2010 03:51:10 TAKANO Yuji wrote: > > >Number: 151043 > > >Category: usb > > >Synopsis: Please add USB device MELCO WLR-UC-G > > >Confidential: no > > >Severity: non-critical > > >Priority: medium > > >Responsible: freebsd-usb > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: change-request > > >Submitter-Id: current-users > > >Arrival-Date: Wed Sep 29 02:00:11 UTC 2010 > > >Closed-Date: > > >Last-Modified: > > >Originator: TAKANO Yuji > > >Release: FreeBSD 8.1-STABLE amd64 > > >Organization: > > > > >Environment: > > FreeBSD rocky.running-dog.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Sep 26 > > 16:58:40 JST 2010 > > takachan@rocky.running-dog.net:/usr/obj/usr/src/sys/Rocky_8.1-STABLE_AMD64 > > _SMP_Kernel amd64 > > > > >Description: > > I give it a patch. > > > > >How-To-Repeat: > > > > >Fix: > > I give it a patch. > > > > > > > > Patch attached with submission follows: > > > > diff -urN ./usb.orig/usbdevs ./usb/usbdevs > > --- ./usb.orig/usbdevs 2010-09-29 10:07:46.000000000 +0900 > > +++ ./usb/usbdevs 2010-09-29 02:35:38.000000000 +0900 > > @@ -2096,6 +2096,8 @@ > > product MELCO KG54L 0x00da WLI-U2-KG54L > > product MELCO WLIUCG300N 0x00e8 WLI-UC-G300N > > product MELCO SG54HG 0x00f4 WLI-U2-SG54HG > > +product MELCO WLRUCG 0x0116 WLR-UC-G > > +product MELCO WLRUCGAOSS 0x0119 WLR-UC-G-AOSS > > product MELCO WLIUCAG300N 0x012e WLI-UC-AG300N > > product MELCO RT2870_1 0x0148 RT2870 > > product MELCO RT2870_2 0x0150 RT2870 > > diff -urN ./usb.orig/wlan/if_rum.c ./usb/wlan/if_rum.c > > --- ./usb.orig/wlan/if_rum.c 2010-09-01 10:41:33.000000000 +0900 > > +++ ./usb/wlan/if_rum.c 2010-09-29 02:39:28.000000000 +0900 > > @@ -118,6 +118,8 @@ > > RUM_DEV(HUAWEI3COM, WUB320G), > > RUM_DEV(MELCO, G54HP), > > RUM_DEV(MELCO, SG54HP), > > + RUM_DEV(MELCO, WLRUCG), > > + RUM_DEV(MELCO, WLRUCGAOSS), > > RUM_DEV(MSI, RT2573_1), > > RUM_DEV(MSI, RT2573_2), > > RUM_DEV(MSI, RT2573_3), > > > > >Release-Note: > > >Audit-Trail: > > > > >Unformatted: > > _______________________________________________ > > 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" > > Can you send output from: > > usbconfig -d X.Y dump_device_desc > > where X and Y are the numbers after "ugen" > > ? There is two fashion to this device(MELCO WLR-UC-G). The one is a client mode. The one is already an access point mode. Two modes change it with dipswitch. 1. WLR-UC-G (Client Mode) # usbconfig -d 2.2 dump_device_desc ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0411 idProduct = 0x0116 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 2. WLR-UC-G-AOSS (AP Mode) # usbconfig -d 2.2 dump_device_desc ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0411 idProduct = 0x0119 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Thanking you in advance. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 07:00:18 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C87F81065695 for ; Mon, 4 Oct 2010 07:00:18 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9D3728FC1C for ; Mon, 4 Oct 2010 07:00:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9470Ijb077098 for ; Mon, 4 Oct 2010 07:00:18 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9470Icc077072; Mon, 4 Oct 2010 07:00:18 GMT (envelope-from gnats) Date: Mon, 4 Oct 2010 07:00:18 GMT Message-Id: <201010040700.o9470Icc077072@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: TAKANO Yuji Cc: Subject: Re: usb/151043: Please add USB device MELCO WLR-UC-G X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: TAKANO Yuji List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 07:00:19 -0000 The following reply was made to PR usb/151043; it has been noted by GNATS. From: TAKANO Yuji To: hselasky@c2i.net Cc: freebsd-usb@freebsd.org, freebsd-gnats-submit@freebsd.org, takachan@running-dog.net Subject: Re: usb/151043: Please add USB device MELCO WLR-UC-G Date: Mon, 04 Oct 2010 15:01:27 +0900 (JST) Hi. From: Hans Petter Selasky さん > On Wednesday 29 September 2010 03:51:10 TAKANO Yuji wrote: > > >Number: 151043 > > >Category: usb > > >Synopsis: Please add USB device MELCO WLR-UC-G > > >Confidential: no > > >Severity: non-critical > > >Priority: medium > > >Responsible: freebsd-usb > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: change-request > > >Submitter-Id: current-users > > >Arrival-Date: Wed Sep 29 02:00:11 UTC 2010 > > >Closed-Date: > > >Last-Modified: > > >Originator: TAKANO Yuji > > >Release: FreeBSD 8.1-STABLE amd64 > > >Organization: > > > > >Environment: > > FreeBSD rocky.running-dog.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Sun Sep 26 > > 16:58:40 JST 2010 > > takachan@rocky.running-dog.net:/usr/obj/usr/src/sys/Rocky_8.1-STABLE_AMD64 > > _SMP_Kernel amd64 > > > > >Description: > > I give it a patch. > > > > >How-To-Repeat: > > > > >Fix: > > I give it a patch. > > > > > > > > Patch attached with submission follows: > > > > diff -urN ./usb.orig/usbdevs ./usb/usbdevs > > --- ./usb.orig/usbdevs 2010-09-29 10:07:46.000000000 +0900 > > +++ ./usb/usbdevs 2010-09-29 02:35:38.000000000 +0900 > > @@ -2096,6 +2096,8 @@ > > product MELCO KG54L 0x00da WLI-U2-KG54L > > product MELCO WLIUCG300N 0x00e8 WLI-UC-G300N > > product MELCO SG54HG 0x00f4 WLI-U2-SG54HG > > +product MELCO WLRUCG 0x0116 WLR-UC-G > > +product MELCO WLRUCGAOSS 0x0119 WLR-UC-G-AOSS > > product MELCO WLIUCAG300N 0x012e WLI-UC-AG300N > > product MELCO RT2870_1 0x0148 RT2870 > > product MELCO RT2870_2 0x0150 RT2870 > > diff -urN ./usb.orig/wlan/if_rum.c ./usb/wlan/if_rum.c > > --- ./usb.orig/wlan/if_rum.c 2010-09-01 10:41:33.000000000 +0900 > > +++ ./usb/wlan/if_rum.c 2010-09-29 02:39:28.000000000 +0900 > > @@ -118,6 +118,8 @@ > > RUM_DEV(HUAWEI3COM, WUB320G), > > RUM_DEV(MELCO, G54HP), > > RUM_DEV(MELCO, SG54HP), > > + RUM_DEV(MELCO, WLRUCG), > > + RUM_DEV(MELCO, WLRUCGAOSS), > > RUM_DEV(MSI, RT2573_1), > > RUM_DEV(MSI, RT2573_2), > > RUM_DEV(MSI, RT2573_3), > > > > >Release-Note: > > >Audit-Trail: > > > > >Unformatted: > > _______________________________________________ > > 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" > > Can you send output from: > > usbconfig -d X.Y dump_device_desc > > where X and Y are the numbers after "ugen" > > ? There is two fashion to this device(MELCO WLR-UC-G). The one is a client mode. The one is already an access point mode. Two modes change it with dipswitch. 1. WLR-UC-G (Client Mode) # usbconfig -d 2.2 dump_device_desc ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0411 idProduct = 0x0116 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 2. WLR-UC-G-AOSS (AP Mode) # usbconfig -d 2.2 dump_device_desc ugen2.2: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0411 idProduct = 0x0119 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 Thanking you in advance. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 09:14:42 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E12EF106566B for ; Mon, 4 Oct 2010 09:14:42 +0000 (UTC) (envelope-from mike.barnardq@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 90BFC8FC14 for ; Mon, 4 Oct 2010 09:14:42 +0000 (UTC) Received: by qyk35 with SMTP id 35so906608qyk.13 for ; Mon, 04 Oct 2010 02:14:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=mZ2j81rV/pJStLImGDbCoCBplC/zT01CS434wxwmX40=; b=QMMALPLEzZyu4jlB+zvFVxfXMgNgChb/d21S1dSe/nDW1cIA+9CGSZlTsL59d7+Foh riaGL5TOQzpoWKmW6Mvd/1kcdoW1xtWQtVuql2wvCnvMDxeNyFRCrgkhKtDvecwXuFqF ZH/sbQnRxeKP8/bGYx/MdVBzDk2tExtmRcjhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZtEb6XYLKOvozupobR7bVUPE4EUafVqsTGp3RgUTEMXOaH82cw7sU8gG2hU0FdJ8D5 uFnFGw7YmRnIcIlUHLYQDeyXu8uJfrT4DGfDsjhqCRK6Ak4e5+oS6LK2mpm2JU6PXXyG d7wvgD7GrDKVHSHqsF673golhKtugEHOPGNvs= MIME-Version: 1.0 Received: by 10.224.54.143 with SMTP id q15mr6566117qag.399.1286182326369; Mon, 04 Oct 2010 01:52:06 -0700 (PDT) Received: by 10.229.34.17 with HTTP; Mon, 4 Oct 2010 01:52:06 -0700 (PDT) Date: Mon, 4 Oct 2010 11:52:06 +0300 Message-ID: From: Mike Barnard To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Alcatel X220L 3G Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 09:14:43 -0000 Hi, I have myself an Alcatel X220L HSPA modem that is not detected under FreeBSD 8.1-RC1. When plugged in, get this: Oct 4 11:47:13 trinity last message repeated 5 times Oct 4 11:47:19 trinity kernel: ugen7.3: at usbus7 Oct 4 11:47:19 trinity kernel: umass2: on usbus7 Oct 4 11:47:19 trinity kernel: umass2: SCSI over Bulk-Only; quirks = 0x0000 Oct 4 11:47:19 trinity root: Unknown USB device: vendor 0x1bbb product 0xf000 bus uhub7 Oct 4 11:47:20 trinity kernel: umass2:6:2:-1: Attached to scbus6 Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): INQUIRY. CDB: 12 1 0 0 ff 0 Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Oct 4 11:47:20 trinity kernel: (probe0:umass-sim2:2:0:0): Error 22, Unretryable error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: GEOM: new disk da1 Oct 4 11:47:21 trinity kernel: pass4 at umass-sim2 bus 2 scbus6 target 0 lun 0 Oct 4 11:47:21 trinity kernel: pass4: Removable Direct Access SCSI-2 device Oct 4 11:47:21 trinity kernel: pass4: 40.000MB/s transfers Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: da1 at umass-sim2 bus 2 scbus6 target 0 lun 0 Oct 4 11:47:21 trinity kernel: da1: Removable Direct Access SCSI-2 device Oct 4 11:47:21 trinity kernel: da1: 40.000MB/s transfers Oct 4 11:47:21 trinity kernel: da1: Attempt to query device size failed: NOT READY, Medium not present Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): INQUIRY. CDB: 12 21 0 0 ff 0 Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): Error 22, Unretryable error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0 Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (probe0:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: pass5 at umass-sim2 bus 2 scbus6 target 0 lun 1 Oct 4 11:47:21 trinity kernel: pass5: Removable CD-ROM SCSI-2 device Oct 4 11:47:21 trinity kernel: pass5: 40.000MB/s transfers Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: cd2 at umass-sim2 bus 2 scbus6 target 0 lun 1 Oct 4 11:47:21 trinity kernel: cd2: Removable CD-ROM SCSI-2 device Oct 4 11:47:21 trinity kernel: cd2: 40.000MB/s transfers Oct 4 11:47:21 trinity kernel: cd2: Attempt to query device size failed: NOT READY, Medium not present Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:21 trinity kernel: GEOM: new disk cd2 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (cd2:umass-sim2:2:0:1): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): READ CAPACITY(10). CDB: 25 0 0 0 0 0 0 0 0 0 Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): CAM status: SCSI Status Error Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI status: Check Condition Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present) Oct 4 11:47:21 trinity kernel: (da1:umass-sim2:2:0:0): Error 6, Unretryable error Oct 4 11:47:21 trinity kernel: Opened disk da1 -> 6 Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): READ TOC/PMA/ATIP. CDB: 43 20 0 0 0 0 0 0 4 0 Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): Error 22, Unretryable error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): READ TOC/PMA/ATIP. CDB: 43 20 0 0 0 0 0 0 4 0 Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): Error 22, Unretryable error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): READ TOC/PMA/ATIP. CDB: 43 20 0 0 0 0 0 0 4 0 Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): CAM status: SCSI Status Error Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI status: Check Condition Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): SCSI sense: ILLEGAL REQUEST asc:24,0 (Invalid field in CDB) Oct 4 11:47:26 trinity kernel: (cd2:umass-sim2:2:0:1): Error 22, Unretryable error Oct 4 11:47:26 trinity kernel: scsi_cd.c::ioctl cmd=40046304 error=22 Running usbconfig gives the following: root@trinity# usbconfig -d ugen7.3 dump_device_desc ugen7.3: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x1bbb idProduct = 0xf000 bcdDevice = 0x0000 iManufacturer = 0x0003 iProduct = 0x0002 iSerialNumber = 0x0004 <1234567890ABCDEF> bNumConfigurations = 0x0001 root@trinity# usbconfig -d ugen7.3 dump_curr_config_desc ugen7.3: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0001 bmAttributes = 0x00a0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 I do not mind getting my hands into getting this to work, I will need some guidance and direction to get it to work. Is there support for this device on FreeBSD or should I go ahead and attempt to get it supported? Thanks. -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ------------------------------------------------------------ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 10:22:15 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 035A210656C3 for ; Mon, 4 Oct 2010 10:22:15 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 8849C8FC13 for ; Mon, 4 Oct 2010 10:22:14 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=5JjoALxXbjjXRS11aC4A:9 a=SPp-C4eCRbHuVUeTXR7jUQDh97IA:4 a=wPNLvfGTeEIA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 29940489; Mon, 04 Oct 2010 12:22:12 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 4 Oct 2010 12:23:25 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010041223.25628.hselasky@c2i.net> Cc: Subject: Re: Alcatel X220L 3G Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 10:22:15 -0000 On Monday 04 October 2010 10:52:06 Mike Barnard wrote: > Hi, > > I have myself an Alcatel X220L HSPA modem that is not detected under > FreeBSD 8.1-RC1. When plugged in, get this: Look at the u3g driver. Maybe you need to add the idVendor and idProduct there, and an autoinstall quirk. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 10:48:12 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44BE41065695 for ; Mon, 4 Oct 2010 10:48:12 +0000 (UTC) (envelope-from br@bsdjail.com) Received: from bsdpad.com (bsdpad.com [81.19.69.224]) by mx1.freebsd.org (Postfix) with ESMTP id F23778FC12 for ; Mon, 4 Oct 2010 10:48:11 +0000 (UTC) Received: from [81.19.69.226] (helo=bsdjail.com) by bsdpad.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1P2hwP-0000yW-Jr for freebsd-usb@freebsd.org; Mon, 04 Oct 2010 14:06:41 +0400 Received: (from br@localhost) by bsdjail.com (8.14.4/8.14.4/Submit) id o94A6fUb003751 for freebsd-usb@freebsd.org; Mon, 4 Oct 2010 14:06:41 +0400 (MSD) (envelope-from br) Date: Mon, 4 Oct 2010 14:06:41 +0400 From: Ruslan Bukin To: freebsd-usb@freebsd.org Message-ID: <20101004100641.GA3403@bsdjail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Broken-Reverse-DNS: no host name for IP address 81.19.69.226 Subject: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 10:48:12 -0000 Hi! I am using u3g driver for Gobi 2000 QDL device. The open ("/dev/ttyU0", O_RDWR) does not return anything, But it returns immediately with only O_NONBLOCK or O_NDELAY flags. is it normal behavior or not? The device is answering for commands normally in non-block state, but only returns error when I try to write firmware to it. I think may be the problem is in block/non-block modes. Thanks -Ruslan From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:07:07 2010 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E91AD1065693 for ; Mon, 4 Oct 2010 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D6A098FC29 for ; Mon, 4 Oct 2010 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o94B77IY065983 for ; Mon, 4 Oct 2010 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o94B77bd065981 for freebsd-usb@FreeBSD.org; Mon, 4 Oct 2010 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Oct 2010 11:07:07 GMT Message-Id: <201010041107.o94B77bd065981@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 Cc: Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:07:08 -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/151043 usb Please add USB device MELCO WLR-UC-G o usb/150989 usb [patch] Add Netgear WG111V2_2 support to upgt(4) o usb/150892 usb [zyd] Whenever network contacted in any shape, way or p usb/150546 usb libusb(3) libusb_control_transfer() prototype is incor o usb/150401 usb [umass] [usb8] Errors from USB drives mixed between UF o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf o usb/149934 usb [patch] [usb8] Transcend JetFlash V85 poor performance o usb/149900 usb [uftdi] [patch] FreeBSD 8.1 uftdi patch to support usb o usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149675 usb [uftdi] [usb_serial] doesn't react to break properly o usb/149528 usb [zyd] Wireless USB stick not detected - vendor id 0x08 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 o usb/149039 usb [uhso] [patch] Binding problem with uhso 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 usb/147516 usb [umass] [usb67] kernel unable to deal with Olympus USB o usb/146871 usb [usbdevs] [usb8] [patch] provide descriprive string fo 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 o 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 o 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 o usb/143790 usb [boot] 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 f 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 o usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d o usb/142991 usb [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 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 o usb/142713 usb [usb67] [panic] Kernel Panik when connecting an IPhone 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 o 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/141327 usb [ukbd] [usb67] USB kbd not working with 7.1+PAE on IBM o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb] Encrypted root, geli password at boot; enter key 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 f usb/140883 usb [axe] [usb8] USB gigabit ethernet hangs after short pe 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 s usb/139990 usb [panic] [patch] [usb67] Kernel frequently panics after a usb/139598 usb [umass] [usb8] CAM reports "xptioctl: put "device pass o usb/139243 usb [uhci] [usb67] unplug prolific USB serial -> uhci_abor a usb/138904 usb [rum] [panic] [usb67] unpluging USB wifi card panics s f usb/138882 usb [ohci] [panic] [usb67] Can't install FreeBSD 7.2 due t 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/138570 usb [usb] [panic] USB mass device panics current 7.2-STABL o usb/138548 usb [usb67] [usb8] usb devices periodically have unknown a o usb/138175 usb [usb67] [boot] System cannot boot, when USB reader wit o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/138119 usb [usb67] [usb8] MultiBay CDROM (probably on USB bus) is o usb/137872 usb [usb67] [boot] slow booting on usb flash drive o usb/137806 usb [ukbd] [usb67] USB keyboard doesn't work until it's un o usb/137763 usb [usb67][ukbd] Logitech wireless keyboard media keys no 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 p usb/136761 usb [usbdevs][usb67][patch] Teach usbdevs / u3g(4) about H o usb/135938 usb [aue] [usb67] aue driver only passes traffic in promis o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135348 usb [umass] [patch] USB Drive Hangs with ZFS (JMicron USB2 o usb/135206 usb machine reboots when inserted USB device o usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/135182 usb UMASS quirk - Olympus FE20 camera 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] Adding usb quirk for Sony USB flash drive 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/132312 usb [hang] Xorg 7.4 halts USB controller 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 p usb/131123 usb [patch] [usb67] re-add UQ_ASSUME_CM_OVER_DATA USB quir 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/130230 usb Samsung Electronics YP-U3 does not attach in 7.1-RELEA o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device o usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129673 usb [uhci] uhci (uhub) confused on replugging USB 1.1 scan o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader s usb/128990 usb [usb] u3g does not handle RTS/CTS available on for exa o usb/128977 usb [usb67] [patch] uaudio is not full duplex p usb/128803 usb [usbdevs] [patch] Quirk for I-Tuner Networks USBLCD4X2 o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup s usb/127453 usb [request] ubsa, uark, ubser, uftdi, and friends should p docs/127406 usb [patch] update umodem man page: Sony Ericsson W810i 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/127222 usb [ohci] Regression in 7.0 usb storage generic driver 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 o usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125238 usb [ums] Habu Mouse turns off in X o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach f usb/124604 usb [ums] Microsoft combo wireless mouse doesn't work 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/123509 usb [umass] continuous reset Samsung SGH-G600 phone 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/122819 usb [usb] [patch] Patch to provide dynamic additions to th o usb/122813 usb [udbp] [request] udbp driver should be removed in favo o usb/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/121755 usb [ohci] [patch] Fix panic after ohci/uhub cardbus devic o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121474 usb [cam] [patch] QUIRK: SAMSUNG HM250JI in LaCie usb hard o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121232 usb [usb] [panic] USB CardBus card removal causes reboot s p usb/121184 usb [uipaq] [patch] add ids from linux ipaq driver (plus a o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS o usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o usb/120572 usb [usb67] [umass] [patch] quirk to support ASUS P535 as 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/119513 usb [irq] inserting dlink dwl-g630 wireless card results i o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119481 usb [hang] FreeBSD not responding after connecting USB-Mas o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/119201 usb [cam] [patch] Quirks for Olympus FE-210 camera, LG and o usb/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/117200 usb [ugen] ugen0 prints strange string on attach if detach o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a p usb/116947 usb [ukbd] [patch] [regression] enable boot protocol on th o usb/116699 usb [usbhid] USB HID devices do not initialize at system b o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115933 usb [uftdi] [patch] RATOC REX-USB60F (usb serial converter o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o usb/114068 usb [usb67] [usb8] [umass] [patch] Problem with connection o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff s usb/113060 usb [usb67] [ulpt] [patch] Samsung printer not working in o usb/110856 usb [usb67] [ugen] [patch] interrupt in msgs are truncated s usb/108344 usb [usb67] [atausb] [panic] kernel with atausb panics whe o usb/107827 usb [usb67] [ohci] [panic] ohci_add_done addr not found o usb/107388 usb [usb67] [usb8] [new driver] [patch] add utoppy device o usb/106041 usb [usb67] [usb8] [request] FreeBSD does not recognise Mu o usb/105361 usb [usb67] [panic] Kernel panic during unmounting mass st s usb/103917 usb [usb67] [uhub] USB driver reports "Addr 0 should never o usb/103418 usb [usb67] [usb8] [patch] [request] usbhidctl(8) add abil o usb/103046 usb [usb67] [ulpt] [patch] ulpt event driven I/O with sele o usb/101775 usb [usb67] [usb8] [libusbhid] [patch] possible error in r o usb/101761 usb [usb67] [patch] [request] usb.h: increase maximal size o usb/100746 usb [usb67] [ukbd] system does not boot due to USB keyboar o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o kern/99200 usb [bluetooth] SMP-Kernel crashes reliably when Bluetooth o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96381 usb [cam] [patch] add a quirk table entry for a flash ram o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb s usb/95348 usb [keyboard] USB keyboard unplug causes noise on screen o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93872 usb [cam] [patch] SCSI quirk required for ELTA 8061 OL USB o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/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 o usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? s usb/89003 usb [request] LaCie Firewire drive not properly supported o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. o usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device s usb/84336 usb [usb] [reboot] instant system reboot when unmounting a o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83563 usb [umass] [panic] Page Fault while detaching Mpman Usb d o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82660 usb [ehci] [panic] EHCI: I/O stuck in state 'physrd'/panic s usb/82569 usb [umass] [panic] USB mass storage plug/unplug causes sy o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. o usb/80854 usb [patch] [request] suggestion for new iface-no-probe me 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 " f 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 f usb/77294 usb [ucom] [panic] ucom + ulpcom panic o usb/76732 usb [ums] Mouse problems with USB KVM Switch o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device o usb/76461 usb [umass] disklabel of umass(4)-CAM(4)-da(4) not used by f usb/76395 usb [uhci] USB printer does not work, usbdevs says "addr 0 s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn f usb/75797 usb [sound] [regression] 5.3-STABLE(2005 1/4) detect USB h o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for f usb/75705 usb [umass] [panic] da0 attach / Optio S4 (with backtrace) f usb/74771 usb [umass] [hang] mounting write-protected umass device a s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/73307 usb [panic] Kernel panics on USB disconnect s usb/72733 usb [ucom] [request] Kyocera 7135 Palm OS connection probl o usb/71455 usb [umass] Slow USB umass performance of 5.3 o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/70523 usb [umct] [patch] umct sending/receiving wrong characters o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/68232 usb [ugen] [patch] ugen(4) isochronous handling correction o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct o usb/63621 usb [umass] [panic] USB MemoryStick Reader stalls/crashes s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s o usb/59698 usb [keyboard] [patch] Rework of ukbd HID to AT code trans s bin/57255 usb [patch] usbd(8) and multi-function devices s usb/52026 usb [usb] [request] umass driver support for InSystem ISD2 s usb/51958 usb [urio] [patch] update for urio driver o usb/40948 usb [umass] [request] USB HP CDW8200 does not work o usb/30929 usb [usb] [patch] use usbd to initialize USB ADSL modem 315 problems total. From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:07:17 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 478F210656AB for ; Mon, 4 Oct 2010 11:07:17 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 9CB778FC1E for ; Mon, 4 Oct 2010 11:07:16 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=sEolSJAlcSxSMaOm1MQ0bvrIu+BNAN+OqG2UAUgC4Ok= c=1 sm=1 a=SYwBy6LCpUoA:10 a=IkcTkHD0fZMA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=S-bAuPZ71MqSQgLGbUoA:9 a=2oNJNW2egRmI0cgSuXIA:7 a=QxT3FV1Vw_skrRgll3yWCfxF7WYA:4 a=QEXdDO2ut3YA:10 a=SV7veod9ZcQA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 30206369; Mon, 04 Oct 2010 13:07:15 +0200 From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Mon, 4 Oct 2010 13:08:28 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101004100641.GA3403@bsdjail.com> In-Reply-To: <20101004100641.GA3403@bsdjail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201010041308.28424.hselasky@c2i.net> Cc: ed@freebsd.org, Ruslan Bukin Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:07:17 -0000 Hi, This is not directly related to USB, but rather TTY. Ed, any clues? --HPS On Monday 04 October 2010 12:06:41 Ruslan Bukin wrote: > Hi! > > I am using u3g driver for Gobi 2000 QDL device. > The open ("/dev/ttyU0", O_RDWR) does not return anything, > But it returns immediately with only O_NONBLOCK or O_NDELAY flags. > > is it normal behavior or not? > > The device is answering for commands normally in non-block state, > but only returns error when I try to write firmware to it. > > I think may be the problem is in block/non-block modes. > > Thanks > > -Ruslan > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:26:52 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37916106564A for ; Mon, 4 Oct 2010 11:26:52 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id BFB2A8FC08 for ; Mon, 4 Oct 2010 11:26:51 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id CADFE2A28CC4; Mon, 4 Oct 2010 13:26:50 +0200 (CEST) Date: Mon, 4 Oct 2010 13:26:50 +0200 From: Ed Schouten To: Hans Petter Selasky Message-ID: <20101004112650.GF77154@hoeg.nl> References: <20101004100641.GA3403@bsdjail.com> <201010041308.28424.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xaMk4Io5JJdpkLEb" Content-Disposition: inline In-Reply-To: <201010041308.28424.hselasky@c2i.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Ruslan Bukin , freebsd-usb@freebsd.org Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:26:52 -0000 --xaMk4Io5JJdpkLEb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ruslan, * Hans Petter Selasky wrote: > This is not directly related to USB, but rather TTY. >=20 > Ed, any clues? >=20 > --HPS >=20 > On Monday 04 October 2010 12:06:41 Ruslan Bukin wrote: > > Hi! > >=20 > > I am using u3g driver for Gobi 2000 QDL device. > > The open ("/dev/ttyU0", O_RDWR) does not return anything, > > But it returns immediately with only O_NONBLOCK or O_NDELAY flags. > >=20 > > is it normal behavior or not? > >=20 > > The device is answering for commands normally in non-block state, > > but only returns error when I try to write firmware to it. > >=20 > > I think may be the problem is in block/non-block modes. What kind of cable do you have connected to it? Does it have the carried detect (DCD) line properly wired up? If not, the behaviour should be okay, since CLOCAL is turned off by default. If you're not interested in any carrier, you should open it with O_NONBLOCK. --=20 Ed Schouten WWW: http://80386.nl/ --xaMk4Io5JJdpkLEb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkypufoACgkQ52SDGA2eCwU8swCfR/EvQEXzef2z40PBVJQW7eJ7 0gMAn1VGEldrpcJRZjtdfMvV8HqRuP2m =H1k3 -----END PGP SIGNATURE----- --xaMk4Io5JJdpkLEb-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:48:02 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19168106566C for ; Mon, 4 Oct 2010 11:48:02 +0000 (UTC) (envelope-from br@bsdjail.com) Received: from bsdpad.com (bsdpad.com [81.19.69.224]) by mx1.freebsd.org (Postfix) with ESMTP id 7425B8FC1C for ; Mon, 4 Oct 2010 11:48:01 +0000 (UTC) Received: from [81.19.69.226] (helo=bsdjail.com) by bsdpad.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1P2jWR-0001PD-Lx; Mon, 04 Oct 2010 15:47:59 +0400 Received: (from br@localhost) by bsdjail.com (8.14.4/8.14.4/Submit) id o94BlxGD005406; Mon, 4 Oct 2010 15:47:59 +0400 (MSD) (envelope-from br) Date: Mon, 4 Oct 2010 15:47:59 +0400 From: Ruslan Bukin To: Ed Schouten Message-ID: <20101004114759.GA5048@bsdjail.com> References: <20101004100641.GA3403@bsdjail.com> <201010041308.28424.hselasky@c2i.net> <20101004112650.GF77154@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101004112650.GF77154@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Broken-Reverse-DNS: no host name for IP address 81.19.69.226 Cc: freebsd-usb@freebsd.org Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:48:02 -0000 On Mon, Oct 04, 2010 at 01:26:50PM +0200, Ed Schouten wrote: > Ruslan, > > * Hans Petter Selasky wrote: > > This is not directly related to USB, but rather TTY. > > > > Ed, any clues? > > > > --HPS > > > > On Monday 04 October 2010 12:06:41 Ruslan Bukin wrote: > > > Hi! > > > > > > I am using u3g driver for Gobi 2000 QDL device. > > > The open ("/dev/ttyU0", O_RDWR) does not return anything, > > > But it returns immediately with only O_NONBLOCK or O_NDELAY flags. > > > > > > is it normal behavior or not? > > > > > > The device is answering for commands normally in non-block state, > > > but only returns error when I try to write firmware to it. > > > > > > I think may be the problem is in block/non-block modes. > > What kind of cable do you have connected to it? Does it have the carried > detect (DCD) line properly wired up? If not, the behaviour should be > okay, since CLOCAL is turned off by default. If you're not interested in > any carrier, you should open it with O_NONBLOCK. It is the mini pci express QDL device. It is not the modem, but it switches to wwan modem after receiving firmware. even I set stty -f /dev/ttyU0 raw clocal it blocks on open. The communication with device looks like this: => QDL protocol server init request sent 01 51 43 4f 4d 20 68 69 67 68 20 73 70 65 65 64 20 70 72 6f 74 6f 63 6f 6c 20 68 73 74 00 00 00 00 05 05 30 07 48 <= QDL protocol init response received 7e 02 51 43 4f 4d 20 68 69 67 68 20 73 70 65 65 64 20 70 72 6f 74 6f 63 6f 6c ff ff ff ff 24 00 17 5c 05 05 00 00 00 00 00 00 00 00 00 00 00 00 00 30 d6 8a 7e => QDL protocol prep request sent 25 05 2c 50 a9 00 01 00 00 00 04 00 00 40 97 <= QDL protocol prep response received 7e 26 00 00 01 00 00 00 04 52 65 7e => QDL protocol init request sent 27 00 00 00 00 00 00 2c 50 a9 00 db ae QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 1048576 bytes of image QDL protocol server sent 610348 bytes of image <= QDL protocol init response received 7e 0d 19 00 00 00 00 74 27 7e failed the answer "7e 0d 19 00 00 00 00 74 27 7e" means that some error occur after sending the fw image. ok. probably the problem is elsewhere... thanks > > -- > Ed Schouten > WWW: http://80386.nl/ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 11:56:40 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77117106566C for ; Mon, 4 Oct 2010 11:56:40 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (unknown [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 3629C8FC0A for ; Mon, 4 Oct 2010 11:56:40 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id 84B8F2A28CC4; Mon, 4 Oct 2010 13:56:39 +0200 (CEST) Date: Mon, 4 Oct 2010 13:56:39 +0200 From: Ed Schouten To: Ruslan Bukin Message-ID: <20101004115639.GG77154@hoeg.nl> References: <20101004100641.GA3403@bsdjail.com> <201010041308.28424.hselasky@c2i.net> <20101004112650.GF77154@hoeg.nl> <20101004114759.GA5048@bsdjail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xjyYRNSh/RebjC6o" Content-Disposition: inline In-Reply-To: <20101004114759.GA5048@bsdjail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-usb@freebsd.org Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 11:56:40 -0000 --xjyYRNSh/RebjC6o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ruslan Bukin wrote: > stty -f /dev/ttyU0 raw clocal Try this: stty -f /dev/ttyU0.init raw clocal Greetings, --=20 Ed Schouten WWW: http://80386.nl/ --xjyYRNSh/RebjC6o Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkypwPcACgkQ52SDGA2eCwUmTgCfexybXe+Wvfc8zIODqn276fLs oDsAn3P8FpuwyeU9GjVXHgzj9LWxGCjy =QrCf -----END PGP SIGNATURE----- --xjyYRNSh/RebjC6o-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 12:29:39 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F113E106564A for ; Mon, 4 Oct 2010 12:29:39 +0000 (UTC) (envelope-from br@bsdjail.com) Received: from bsdpad.com (bsdpad.com [81.19.69.224]) by mx1.freebsd.org (Postfix) with ESMTP id A89228FC16 for ; Mon, 4 Oct 2010 12:29:39 +0000 (UTC) Received: from [81.19.69.226] (helo=bsdjail.com) by bsdpad.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from ) id 1P2kAk-0001XW-Gu; Mon, 04 Oct 2010 16:29:38 +0400 Received: (from br@localhost) by bsdjail.com (8.14.4/8.14.4/Submit) id o94CTcsU005921; Mon, 4 Oct 2010 16:29:38 +0400 (MSD) (envelope-from br) Date: Mon, 4 Oct 2010 16:29:38 +0400 From: Ruslan Bukin To: Ed Schouten Message-ID: <20101004122938.GA5545@bsdjail.com> References: <20101004100641.GA3403@bsdjail.com> <201010041308.28424.hselasky@c2i.net> <20101004112650.GF77154@hoeg.nl> <20101004114759.GA5048@bsdjail.com> <20101004115639.GG77154@hoeg.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20101004115639.GG77154@hoeg.nl> User-Agent: Mutt/1.5.20 (2009-06-14) X-Broken-Reverse-DNS: no host name for IP address 81.19.69.226 Cc: freebsd-usb@freebsd.org Subject: Re: /dev/ttyU0 - block at open X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 12:29:40 -0000 Hi! Thank you! I set stty -f /dev/ttyU0.init raw clocal and now open returns in block mode. Firmware uploaded success and device was switched to modem! -Ruslan On Mon, Oct 04, 2010 at 01:56:39PM +0200, Ed Schouten wrote: > * Ruslan Bukin wrote: > > stty -f /dev/ttyU0 raw clocal > > Try this: > > stty -f /dev/ttyU0.init raw clocal > > Greetings, > -- > Ed Schouten > WWW: http://80386.nl/ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 13:49:06 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5D0F106566B for ; Mon, 4 Oct 2010 13:49:05 +0000 (UTC) (envelope-from mike.barnardq@gmail.com) Received: from mail-qy0-f182.google.com (mail-qy0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9C2B18FC0A for ; Mon, 4 Oct 2010 13:49:05 +0000 (UTC) Received: by qyk35 with SMTP id 35so1194979qyk.13 for ; Mon, 04 Oct 2010 06:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=me+qEi++l0BMXh+XgGyPmR/KDO6Y/k58qOK6yyskpn0=; b=v1EF19/7waAnm3zlKddsN6idmhDU9PN9ddq0jH1h1+ldeHQAnZSivFPZaGX+qU5Cyb SLCggZ8oJ5C0O4wIUdlUsqPRpqNam3anmxHeeQlF2Q8rv9iOSl4NUj+0cIneJf7N2LCD 1TLDPFfdJMjE6aHEMXyWKB3o2+Fn4EhgXvx4Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JONaicl4qoGw+VpUZGanlezTbViM7feSasl6O9fGbUyXHfDWi7yuf4iGdBFQ3R8bEw 5N3oT9otHWDuYPWTXSEFLFNCXBUq8JLKYmLMGtTHyP0oiOmSq0fMyRvLLzrha6gRgjkD 6Y6g0oQUZ/USnUVk6b3Xllfpz2nJUuNqMf2hQ= MIME-Version: 1.0 Received: by 10.224.96.160 with SMTP id h32mr6709602qan.269.1286200144587; Mon, 04 Oct 2010 06:49:04 -0700 (PDT) Received: by 10.229.34.17 with HTTP; Mon, 4 Oct 2010 06:49:04 -0700 (PDT) In-Reply-To: <201010041223.25628.hselasky@c2i.net> References: <201010041223.25628.hselasky@c2i.net> Date: Mon, 4 Oct 2010 16:49:04 +0300 Message-ID: From: Mike Barnard To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: Alcatel X220L 3G Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 13:49:06 -0000 On Mon, Oct 4, 2010 at 1:23 PM, Hans Petter Selasky wrote: > On Monday 04 October 2010 10:52:06 Mike Barnard wrote: > > Hi, > > > > I have myself an Alcatel X220L HSPA modem that is not detected under > > FreeBSD 8.1-RC1. When plugged in, get this: > > Look at the u3g driver. Maybe you need to add the idVendor and idProduct > there, and an autoinstall quirk. > > hmmm.. I seem to already have ALCATEL entered in usbdevs: vendor ALCATEL 0x11f7 Alcatel But the Vendor ID that shows up when I plug in the device is different. Oct 4 11:47:19 trinity root: Unknown USB device: vendor 0x1bbb product 0xf000 bus uhub7 ^^^^^^^^^^^^^^^^^^^ usbconfig gives this for Vendor ID usbconfig -d ugen7.3 dump_device_desc ugen7.3: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ... ... idVendor = 0x1bbb idProduct = 0xf000 usbdevs however, does not have a product ID for ALCALTEL. I'm puzzled on how to proceed from here. any pointers :-/ -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ------------------------------------------------------------ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 16:16:31 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70FC01065674 for ; Mon, 4 Oct 2010 16:16:31 +0000 (UTC) (envelope-from mike.barnardq@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 21E8C8FC0A for ; Mon, 4 Oct 2010 16:16:30 +0000 (UTC) Received: by qwd6 with SMTP id 6so3831739qwd.13 for ; Mon, 04 Oct 2010 09:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=/OxeOJ/qprH34qZMmSxeNm54Xko6ebIGFMePc6AlB+E=; b=CvxSjrSXrtjLLD5hjJ4wUorRQdN4slo8+eQMs04bbT7bhyXwKze619KXNNwzfSFPp0 xLTQqBEViqC7+xD7ciUQ/x7dDC1qkbkl964V4n20dS3oZCChYVBpMwjhhgWIrcm0Gu18 5rvy9gXwGbg/nc3M+GvqcAG6Jf6KFY5kW0zmM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Y/4xod3q3bWOIqlhRuURL5SwDG+KyNUI5uSB1VDcI6Sp28wpB8nqVY9jxEjjBaald0 2GtSu+xKE6eA9y243GxNc6lG7wCIVawaI+Tr2hvEZaumjc8bbnx8cgwtWm3hERknurFo /gzUDGIQicKs5wBsdGmkKxQM4T4MCXkJdCnoU= MIME-Version: 1.0 Received: by 10.224.67.193 with SMTP id s1mr7104474qai.28.1286208989509; Mon, 04 Oct 2010 09:16:29 -0700 (PDT) Received: by 10.229.34.17 with HTTP; Mon, 4 Oct 2010 09:16:29 -0700 (PDT) In-Reply-To: <201010041223.25628.hselasky@c2i.net> References: <201010041223.25628.hselasky@c2i.net> Date: Mon, 4 Oct 2010 19:16:29 +0300 Message-ID: From: Mike Barnard To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: Alcatel X220L 3G Modem X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 16:16:31 -0000 On Mon, Oct 4, 2010 at 1:23 PM, Hans Petter Selasky wrote: > On Monday 04 October 2010 10:52:06 Mike Barnard wrote: > > Hi, > > > > I have myself an Alcatel X220L HSPA modem that is not detected under > > FreeBSD 8.1-RC1. When plugged in, get this: > > Look at the u3g driver. Maybe you need to add the idVendor and idProduct > there, and an autoinstall quirk. > > I have patched up u3g.c and usbdevs and I get the same dump as in my first email when I plug in the device. root@trinity# diff -u usbdevs.original usbdevs --- usbdevs.original 2010-06-14 17:00:13.000000000 +0300 +++ usbdevs 2010-10-04 18:22:53.000000000 +0300 @@ -576,6 +576,7 @@ vendor SIEMENS3 0x11f5 Siemens vendor PROLIFIC2 0x11f6 Prolific vendor ALCATEL 0x11f7 Alcatel +vendor ALCATEL3G 0x1bbb Alcatel USBModem vendor UNKNOWN3 0x1233 Unknown vendor vendor TSUNAMI 0x1241 Tsunami vendor PHEENET 0x124a Pheenet @@ -876,6 +877,9 @@ /* AKS products */ product AKS USBHASP 0x0001 USB-HASP 0.06 +/* Alcatel Lucent Products */ +product ALCATEL X220L 0xf000 HSPA Modem + /* Alcor Micro, Inc. products */ product ALCOR2 KBD_HUB 0x2802 Kbd Hub and u3g diffs look like this: root@trinity# diff -u u3g.c.original u3g.c --- u3g.c.original 2010-06-14 17:00:12.000000000 +0300 +++ u3g.c 2010-10-04 19:13:44.000000000 +0300 @@ -93,6 +93,7 @@ #define U3GINIT_WAIT 7 /* Device reappears after a delay */ #define U3GINIT_SAEL_M460 8 /* Requires vendor init */ #define U3GINIT_HUAWEISCSI 9 /* Requires Huawei SCSI init command */ +#define U3GINIT_ALCATEL 10 /* Requires Alcatel init command */ enum { U3G_BULK_WR, @@ -184,6 +185,7 @@ U3G_DEV(ACERP, H10, 0), U3G_DEV(AIRPLUS, MCD650, 0), U3G_DEV(AIRPRIME, PC5220, 0), + U3G_DEV(ALCATEL, X220L, U3GINIT_ALCATEL), U3G_DEV(ALINK, 3G, 0), U3G_DEV(ALINK, 3GU, 0), U3G_DEV(ALINK, DWM652U5, 0), @@ -542,6 +544,24 @@ return (0); } +static int +u3g_alcatel_init(struct usb_device *udev) +{ + struct usb_device_request req; + + req.bmRequestType = UT_WRITE_DEVICE; + req.bRequest = UR_SET_FEATURE; + USETW(req.wValue, UF_DEVICE_REMOTE_WAKEUP); + USETW(req.wIndex, UHF_PORT_SUSPEND); + USETW(req.wLength, 0); + + if (usbd_do_request_flags(udev, NULL, &req, + NULL, 0, NULL, USB_MS_HZ)) { + /* ignore any errors */ + } + return (0); +} + static void u3g_sael_m460_init(struct usb_device *udev) { @@ -655,6 +675,12 @@ case U3GINIT_HUAWEISCSI: error = usb_msc_eject(udev, 0, MSC_EJECT_HUAWEI); break; + case U3GINIT_ALCATEL: + error = u3g_alcatel_init(udev); + break; + case U3GINIT_ALCATELSCSI: + error = usb_msc_eject(udev, 0, MSC_EJECT_ALCATEL); + break; case U3GINIT_SCSIEJECT: error = usb_msc_eject(udev, 0, MSC_EJECT_STOPUNIT); break; I may have done something wrong... any pointers are most welcome -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ------------------------------------------------------------ From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 17:30:17 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9ECB31065698 for ; Mon, 4 Oct 2010 17:30:17 +0000 (UTC) (envelope-from donaldcallen@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5409A8FC25 for ; Mon, 4 Oct 2010 17:30:11 +0000 (UTC) Received: by pzk1 with SMTP id 1so760167pzk.13 for ; Mon, 04 Oct 2010 10:30:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=u7S8s36AHL4YAapyeRuhAz1iwhImxR1bMV43JEywQUg=; b=MMQI5xXsMz2pVtDDvEeC7dpblKyk9+cug8G38hHoIXvHKbhuLyLzcyeAz6kGwxp3KC nDtB/dIX/SbcPjMrKedwV3pF+9VBYmNuD+gF3rEn4k1dPnVeYn1Ot9zS8sHf9AsZZCNh geldIp3La1Ti4Fpl3+kDtvZzQ+vcAgsaUHa/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=OkGPNaFdtpn+Y6KdYvG2fP9WCRT8GuhAci2Sh6soDe6pnjQlKe7Sjltakv4bwYffVz h1ZLQHtawWx2z67NO1SAMWPSMYGT25CAyn6Fi6pSkSzoKmsvKiCM7bwyBRedxewSk4fo KO4UmgsmY712IHWD3v8yS1CZ/PazWtxqrq6xo= MIME-Version: 1.0 Received: by 10.142.4.9 with SMTP id 9mr9012660wfd.98.1286213378982; Mon, 04 Oct 2010 10:29:38 -0700 (PDT) Received: by 10.42.177.9 with HTTP; Mon, 4 Oct 2010 10:29:38 -0700 (PDT) In-Reply-To: <20100924153532.GU2846@cicely7.cicely.de> References: <201009230834.12501.hselasky@c2i.net> <20100923155948.GC2846@cicely7.cicely.de> <20100923191256.GE2846@cicely7.cicely.de> <20100923235016.GH2846@cicely7.cicely.de> <20100924153532.GU2846@cicely7.cicely.de> Date: Mon, 4 Oct 2010 13:29:38 -0400 Message-ID: From: Donald Allen To: ticso@cicely.de Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: USB drives still don't work correctly X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 17:30:17 -0000 I've been away for awhile and could not work on this issue. I just looked at the OpenBSD 4.7 sources, and there is no entry in sys/devs/usbdev.h for a vendor with id 0x04fc, nor is there a product id 0x0c15. Considering this and looking at their usb_quirks.c and umass_quirks.c, I don't think OpenBSD is issuing any quirks for the devices I have, and yet these drives work correctly with 4.7, whether plugged in at boot time or hotplugged. So I think there's more to the hotplug problem I'm seeing with FreeBSD 8.1 than simply missing a quirk. If I'm right about this, I'd like to work with those of you actively developing the USB layer to understand what's going on here, leading to a bug-fix if indeed there is a bug. Yes, I can drop this discussion and just work around the problem, albeit inconveniently, by plugging the drives in at boot-time, but given that the drives work with other systems, if I'm going to use FreeBSD, I'd like to see this problem either explained or fixed. /Don On Fri, Sep 24, 2010 at 11:35 AM, Bernd Walter wrote: > On Fri, Sep 24, 2010 at 11:16:14AM -0400, Donald Allen wrote: > > A few more things on this issue: > > > > 1. I installed FreeBSD on another system, just on the off-chance that > > my problem might be caused by testing with an old machine (c. 2005). > > This machine is a relatively new HP desktop and it exhibits exactly > > the same symptoms w.r.t. the USB drives as I described earlier. > > > > 2. I booted the system with one of the drives connected and spinning, > > so I could get the device description with usbconfig: > > > > ugen1.2: at usbus1, > > cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > > You can't ask the hanging device? > It is bulk only so the command channel should be used for identification > only. > > > bLength = 0x0012 > > bDescriptorType = 0x0001 > > bcdUSB = 0x0200 > > bDeviceClass = 0x0000 > > bDeviceSubClass = 0x0000 > > bDeviceProtocol = 0x0000 > > bMaxPacketSize0 = 0x0040 > > idVendor = 0x04fc > > idProduct = 0x0c15 > > bcdDevice = 0xc683 > > iManufacturer = 0x0002 > > iProduct = 0x0003 > > iSerialNumber = 0x0001 > > bNumConfigurations = 0x0001 > > > > If you dump_device_quirks, you find this entry, matching my hardware: > > > > VID=0x04fc PID=0x0c15 REVLO=0x0000 REVHI=0xffff > QUIRK=UQ_MSC_NO_SYNC_CACHE > > > > So this device is known to the FreeBSD USB world. Unfortunately, the > > built-in quirks in the kernel don't completely do the job. If you > > google for 'freebsd sunplus', you turn up other people complaining > > about the same issues I have. One guy even discovered, as I did, that > > the drive works if it's present at boot-time. > > I've found others as well when searching for the error message. > > > 3. Plugging the drive into a self-powered USB hub and then > > hot-plugging the hub into the computer doesn't help. > > This is unexpected :( > So probably it really is the BIOS making the difference. > > If you stop at the loader stage, plug the device in and then start > the kernel - will it change something? > This way the BIOS won't see the device, but the kernel does. > > Will it help if you try usbconfig reset on the device? > > The feature to reset ports wasn't available with the old stack. > It is just wild guessing, since I'm a bit out of ideas, but you > could try UQ_MSC_FORCE_WIRE_BBB and UQ_MSC_FORCE_PROTO_SCSI, although > the point that it works when already plugged in makes it unlikely. > > -- > B.Walter http://www.bwct.de > Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. > From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 19:30:57 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76C64106564A; Mon, 4 Oct 2010 19:30:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3AD798FC12; Mon, 4 Oct 2010 19:30:56 +0000 (UTC) Received: by pvc21 with SMTP id 21so1792099pvc.13 for ; Mon, 04 Oct 2010 12:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=D0ztUFkmtDRDKnY2MtQzT13oGBdMCs5RS6Z8fIFNDb8=; b=bpwBqlprUEsgvIVhli+OjgYVurwrsVpDjP/Pr+wqKnQNUfGfDVuGAV0pAVVdQYgqM6 rWgrUWYygN72Wqrc0urL4laoOR0ygmsZfgQ+OShP6SYWpV7KNF+Cw9GuNtHMgG6g0IL2 6j4cSnFSYfAGGDaiuPXaN/hXldrvet0opz6Ow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=k5LAk4H+fN2vay5WoE4yesrbb05Sx1s7H1iwSVoDzA4okopuIbBIOs2Vw1WqwZrsox BozAGCisSN9sEtMock55/Bd6u398YWAo8kGsb1N3x22vXS0lUZPP+3ZoN55XsERilK1a V6Va5PSf6cHTPhO1a+Ol/dnu+aCl2Vplp/rzU= Received: by 10.114.61.8 with SMTP id j8mr12196270waa.56.1286220656545; Mon, 04 Oct 2010 12:30:56 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id d2sm9903984wam.14.2010.10.04.12.30.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Oct 2010 12:30:54 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 4 Oct 2010 12:29:08 -0700 From: Pyun YongHyeon Date: Mon, 4 Oct 2010 12:29:08 -0700 To: Julian Elischer Message-ID: <20101004192908.GD4814@michelle.cdnetworks.com> References: <20101002001100.GL10521@michelle.cdnetworks.com> <201010020841.57474.hselasky@freebsd.org> <20101003235423.GB1135@michelle.cdnetworks.com> <4CA94B13.7020809@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <4CA94B13.7020809@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Hans Petter Selasky , freebsd-usb@freebsd.org Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 19:30:57 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Oct 03, 2010 at 08:33:39PM -0700, Julian Elischer wrote: > On 10/3/10 4:54 PM, Pyun YongHyeon wrote: > >On Sat, Oct 02, 2010 at 08:41:57AM +0200, Hans Petter Selasky wrote: > >>On Saturday 02 October 2010 02:11:00 Pyun YongHyeon wrote: > >>>Hi, > >>> > >>>I don't know how long it had been there but it seems current USB > >>>stack does not honor fairness of TX/RX on USB ethernet controller. > >>>Unidirectional performance test(UDP) or most-unidirectional > >>>performance(TCP) test works well without problems. However if heavy > >>>TX/RX traffic hits controller at the same time either TX or RX is > >>>not served at all. I'm under the impression that whenever TX work > >>>is done it seems USB reschedules next pending TX again instead of > >>>processing RX such that RX is starved to death. This can be easily > >>>reproduced on two hosts with the netperf performance test. > >>>Whenever both hosts send tiny UDP datagrams to the other host > >>>either TX or RX packet counters are not increasing until the end > >>>of the UDP torture test. The number of EHCI interrupt is about 8K/s > >>>while test is in progress so I think it reached its maximum > >>>processing limit. After netperf testing, it can still process TX/RX > >>>packets even though it dropped too many RX packets. But these > >>>dropped packets are not counted so netstat(1) shows 0 dropped > >>>frames even though it lost millions of packets. > >>> > >>>Hans, do you have any idea what's going on here? > >>>You can use the following netperf command on both hosts after > >>>running netserver. > >>>%netperf -c -H ip_addr_of_other_host -tUDP_STREAM -l 300 -- -m 1 > >>> > >>>Another odd thing I noticed is number of interrupts does not go > >>>down to 0 after the testing. It constantly generates 1k/s > >>>interrupts after that. > >>Maybe we are triggering a bug. Can you enable USB debugging to figure out > >>what > >>data lengths are transmitted or received. > >> > >In the middle of testing? If yes, that would be meaningless as it > >would generate bunch of messages. The test case generates payload > >size 1 UDP datagrams with full speed so enabling debug messages > >will change timing. Note, I'm exercising number of packets per > >second, not number of bytes per second. > > > >>USB EHCI uses round robin, so this is either USB device problem or a test- > >>program software failure. > >> > >I'm pretty sure the benchmark program is not broken, so either > >axe(4) or USB stack could be wrong here. I see three issues from > >the UDP torture test. > > - Either TX or RX could be starved to death. If you start TX test > > first, RX would be stuck. If you start RX test first, TX would > > be stuck. > > - The number of packets sent or received are much lower than > > expected. > > For TX case, the number of packets sent per second is exactly 8k > > which is much less than that of non-USB controllers. For gigabit > > that is a big clue. > the USB hardware uses an 8 thousand time per second clock for it's > internal polling. > > > controllers number of TX packets could be several hundred > > thousands per second. For RX packets it shows 14K/s packets with > > 8K/s interrupts. I thought USB ethernet controllers can send > > more than 8k packets per second. Because the number of > > interrupts per second and 8k packets per second is the same, > > this also make me wonder there could be some relations there. > > - Number of interrupts does not go back to 0 after the testing. > > > >I'll let you know if I find some clue but it may take long time as > >I'm not familiar with USB stack. :-( > > Attached patch address two issues for me. Because axe(4) combines multiple TX into single one, relying on TX completion callback to update TX packet counter was wrong. I moved that counting into TX loop which addressed the issue. Now TX counter shows 221Kpps which looks good to me. I don't think it's correct way to count TX packets as the counter was updated before TX but it seems there is no way to know how many packets are sent at the write callback. The 3rd issue seems to come from setting up interrupt endpoint. It seems controller constantly generates interrupt even if no traffic is there. I was able to decrease number of interrupts generated by setting interval to 1sec which effectively limits number of interrupts generated to 1. However I don't see the point here, why axe(4) needs to setup interrupt endpoint given that axe(4) does nothing in interrupt callback. The callback does not even try to read reported data. The interrupt endpoint carries 8 bytes of data and it contains link UP/DOWN information as well as PHY related data. Because axe(4) relies on mii(4) polling to detect link state changes I see no point to use interrupt endpoint here. Old axe(4) didn't use interrupt endpoint at all, so what is the reason to setup interrupt endpoint given that it's not used at all? Personally I'd like to nuke the use of interrupt endpoint here but want to hear Han's opinion before doing that. --huq684BweRXVnRxX-- From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 19:53:09 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09D0F1065670 for ; Mon, 4 Oct 2010 19:53:09 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 85BFE8FC16 for ; Mon, 4 Oct 2010 19:53:07 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=gl0LPzB4YDQuuzpDoHYit7deEV0cOo++Sg28kyvF6vg= c=1 sm=1 a=pgHCOPxoMUAA:10 a=Q9fys5e9bTEA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=mhfhUBuGQBTWmkyU4Z0A:9 a=699MjKgiiZtrpVag8-ou2JKZBvYA:4 a=PUjeQqilurYA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 30695625; Mon, 04 Oct 2010 21:53:06 +0200 Received-SPF: softfail receiver=mailfe04.swip.net; client-ip=188.126.201.140; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: pyunyh@gmail.com Date: Mon, 4 Oct 2010 21:54:18 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <4CA94B13.7020809@freebsd.org> <20101004192908.GD4814@michelle.cdnetworks.com> In-Reply-To: <20101004192908.GD4814@michelle.cdnetworks.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201010042154.18353.hselasky@freebsd.org> Cc: "freebsd-usb@freebsd.org" Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 19:53:09 -0000 > Personally I'd like to nuke the use of interrupt endpoint here but > want to hear Han's opinion before doing that. If no data is ever transmitted except zero length packets, you can just nuke it. Rest of patch looks Ok. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 19:58:51 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DB2C106564A; Mon, 4 Oct 2010 19:58:51 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E16EF8FC14; Mon, 4 Oct 2010 19:58:50 +0000 (UTC) Received: by pzk1 with SMTP id 1so805568pzk.13 for ; Mon, 04 Oct 2010 12:58:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=i+H89a8Uq4s0+B/lwT9/qwFcFA7pED1+aZhfspyCXXk=; b=Dz3m2T6v9EDVcdiZKmWppthBwVhEpZ1P4JCDQk0L1c4Va4qMsYLtdAQbQl6Ap0EIF8 Fr5nMtKAAd3QLHJpPinl7yafQs/3N5koBraPzoUYVsaUj3VLHozB2+bfzimH4RTtRYRe uXSFSQG9BkOnYQEIjA6bbptKXof1SGucCw5qU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=EebYkUNYXlNlZghH43WXqlrQhTWqW4dX46zqWij3ctkj3NHlBwJXmBdfod6CvT2fPs go0+KDGg6tf/t9yE54+YzOVhnt9TFlqp1j0B9awKZTDziXoCT5T2mGsuOTX0HVjY0K4L 51DmeI3ARYGw3fTwgped00l23hyTmlIsbtx28= Received: by 10.143.166.11 with SMTP id t11mr9207514wfo.57.1286222317871; Mon, 04 Oct 2010 12:58:37 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 9sm6887985wfd.12.2010.10.04.12.58.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 04 Oct 2010 12:58:36 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 4 Oct 2010 12:56:51 -0700 From: Pyun YongHyeon Date: Mon, 4 Oct 2010 12:56:51 -0700 To: Hans Petter Selasky Message-ID: <20101004195651.GE4814@michelle.cdnetworks.com> References: <4CA94B13.7020809@freebsd.org> <20101004192908.GD4814@michelle.cdnetworks.com> <201010042154.18353.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010042154.18353.hselasky@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: "freebsd-usb@freebsd.org" Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 19:58:51 -0000 On Mon, Oct 04, 2010 at 09:54:18PM +0200, Hans Petter Selasky wrote: > > > Personally I'd like to nuke the use of interrupt endpoint here but > > want to hear Han's opinion before doing that. > > If no data is ever transmitted except zero length packets, you can just nuke > it. > Controller always transfers meaningful 8 bytes data(about 1000times/sec) but interrupt callback didn't read it. Even if we can read that data, there is no use for that as link state changes are already handled by mii callback. It seems Linux wants to use that to show link UP/DOWN message though. > Rest of patch looks Ok. > Ok, thanks. > --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 20:00:45 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FA13106566B for ; Mon, 4 Oct 2010 20:00:45 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 333838FC14 for ; Mon, 4 Oct 2010 20:00:44 +0000 (UTC) Received: by eyx24 with SMTP id 24so2632366eyx.13 for ; Mon, 04 Oct 2010 13:00:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=kPCG7Go/GqsbNDKGZAV9SGToj/T6m5mQu5/5MSfsnvE=; b=Zmw/N0NiJ3gRKQk5243egnquEBhfO8s5p61esGIT1KDohDMC2aI2FwVLQnE/NK4e9i PZ9N46qOC9j5Wrh9eU9u9sXprn0w2kHy2rTpH1VKbVWgbWIUDpyIU35Vfn8coU8Au3xi fB17raEs+gYiFo6EZFyjmkMJPvgjibhMpVyiE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=LH/UAaigQfEnqefP2MKKKLcfS0wcLXpNV5O8gLMQw2Dje/jykP2UJgJDlNvRj4RrpG vn1kwCT80Sdx/XORwFgK3PM9EMR1uLGZ2VsBttUHF8WfukyN7INJ4oXPx59vWlC5aNvR n/6VDRkY8wInRaDNOWSD6tFHFw3UY3EOV7LzI= MIME-Version: 1.0 Received: by 10.223.124.208 with SMTP id v16mr8699113far.54.1286220989911; Mon, 04 Oct 2010 12:36:29 -0700 (PDT) Received: by 10.220.200.1 with HTTP; Mon, 4 Oct 2010 12:36:29 -0700 (PDT) In-Reply-To: <20100929101607.17808l2onkq5tdc0@webmail.leidinger.net> References: <20100929101607.17808l2onkq5tdc0@webmail.leidinger.net> Date: Mon, 4 Oct 2010 19:36:29 +0000 Message-ID: From: Paul B Mahol To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Cc: usb@freebsd.org Subject: Re: USB on -current is filling my messages log X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 20:00:45 -0000 On 9/29/10, Alexander Leidinger wrote: > Hi, > > every half an hour I get two log entries in /var/log/messages. They > look like this: > ---snip--- > Sep 28 23:30:00 M87 root: Unknown USB device: vendor 0x1941 product > 0x8021 bus uhub1 > Sep 28 23:30:00 M87 root: Unknown USB device: vendor 0x1941 product > 0x8021 bus uhub1 > ---snip--- > > What is causing this and how to disable it? devd(8) ? From owner-freebsd-usb@FreeBSD.ORG Mon Oct 4 23:45:29 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF326106564A; Mon, 4 Oct 2010 23:45:29 +0000 (UTC) (envelope-from hselasky@freebsd.org) Received: from swip.net (mailfe05.swip.net [212.247.154.129]) by mx1.freebsd.org (Postfix) with ESMTP id 369A98FC19; Mon, 4 Oct 2010 23:45:28 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=5OBHFxb9I47YZ7HELXzI6cL6pwPTRnd5uxbD1DPQ4WY= c=1 sm=1 a=2wVBBF9wa6oA:10 a=kj9zAlcOel0A:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=Kb1ui0xwIw8xraB3kp0A:9 a=w_xaAYqGnn05PGxHOxZxA4XtCvEA:4 a=CjuIK1q_8ugA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:117 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 30271879; Tue, 05 Oct 2010 01:45:27 +0200 Received-SPF: softfail receiver=mailfe05.swip.net; client-ip=188.126.201.140; envelope-from=hselasky@freebsd.org From: Hans Petter Selasky To: freebsd-usb@freebsd.org Date: Tue, 5 Oct 2010 01:46:39 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?utf-8?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?utf-8?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7CoTlKM?= =?utf-8?q?usi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201010050146.39923.hselasky@freebsd.org> Cc: freebsd-current@freebsd.org Subject: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2010 23:45:29 -0000 http://svn.freebsd.org/changeset/base/213437 Please test if you have USB 3.0 hardware. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 09:04:55 2010 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC0C9106564A for ; Tue, 5 Oct 2010 09:04:55 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 6DD7D8FC19 for ; Tue, 5 Oct 2010 09:04:55 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3B163.dip.t-dialin.net [87.179.177.99]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 5D7F184400C; Tue, 5 Oct 2010 11:04:48 +0200 (CEST) Received: from webmail.leidinger.net (unknown [IPv6:fd73:10c7:2053:1::2:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5A4291706; Tue, 5 Oct 2010 11:04:45 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o9594i7k004107; Tue, 5 Oct 2010 11:04:44 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 05 Oct 2010 11:04:44 +0200 Message-ID: <20101005110444.65592qs9up0nnmuc@webmail.leidinger.net> Date: Tue, 05 Oct 2010 11:04:44 +0200 From: Alexander Leidinger To: Paul B Mahol References: <20100929101607.17808l2onkq5tdc0@webmail.leidinger.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 5D7F184400C.A5D79 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=1.274, required 6, autolearn=disabled, RDNS_NONE 1.27) X-EBL-MailScanner-SpamScore: s X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1286874293.48107@GbfF7RdxitLThBaJTGpy+Q X-EBL-Spam-Status: No Cc: usb@freebsd.org Subject: Re: USB on -current is filling my messages log X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 09:04:55 -0000 Quoting Paul B Mahol (from Mon, 4 Oct 2010 19:36:29 +0000): > On 9/29/10, Alexander Leidinger wrote: >> Hi, >> >> every half an hour I get two log entries in /var/log/messages. They >> look like this: >> ---snip--- >> Sep 28 23:30:00 M87 root: Unknown USB device: vendor 0x1941 product >> 0x8021 bus uhub1 >> Sep 28 23:30:00 M87 root: Unknown USB device: vendor 0x1941 product >> 0x8021 bus uhub1 >> ---snip--- >> >> What is causing this and how to disable it? > > devd(8) ? Yes and no... Now that I investigated it a little bit: every half an hour an application is polling some data from this device. The software (ports/net/fowsr) is disconnecting this device from it's driver, does it's job, and then exits. Problably the USB stack is reprobing the device afterwards? Thanks for pointing out devd, I have a look at a rule to match this device, so that I do not get spammed by the message anymore. Bye, Alexander. -- "Her rent will remain what it was." -- Signor Roberto, "Chapter 14", page 209 http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 15:05:19 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFFDB1065674 for ; Tue, 5 Oct 2010 15:05:19 +0000 (UTC) (envelope-from glimp@live.com) Received: from blu0-omc1-s16.blu0.hotmail.com (blu0-omc1-s16.blu0.hotmail.com [65.55.116.27]) by mx1.freebsd.org (Postfix) with ESMTP id A0B898FC1C for ; Tue, 5 Oct 2010 15:05:19 +0000 (UTC) Received: from BLU0-SMTP200 ([65.55.116.9]) by blu0-omc1-s16.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 5 Oct 2010 08:05:19 -0700 X-Originating-IP: [151.49.234.145] X-Originating-Email: [glimp@live.com] Message-ID: Received: from genki.collidiamo.net ([151.49.234.145]) by BLU0-SMTP200.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 5 Oct 2010 08:05:17 -0700 Date: Tue, 5 Oct 2010 16:58:16 +0200 From: dan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20101005 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <201010031019.20329.hselasky@c2i.net> <4CA90529.6080301@freebsd.org> In-Reply-To: <4CA90529.6080301@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Oct 2010 15:05:18.0064 (UTC) FILETIME=[B8F18F00:01CB649E] Cc: Subject: Re: ...but this USB device is more than a printer! X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 15:05:20 -0000 On 10/04/10 00:35, Julian Elischer wrote: > On 10/3/10 3:34 AM, dan wrote: >> On 03.10.2010 10:19, Hans Petter Selasky wrote: >>> On Sunday 03 October 2010 01:19:18 dan wrote: >>>> Hi all, >>>> >>>> I'll go straight to the point. >>>> Here's the output from "usbconfig dump_device_desc" >>>> >>>> #* >>>> ugen0.3: at usbus0, cfg=0 md=HOST >>>> spd=FULL (12Mbps) pwr=ON >>>> >>>> bLength = 0x0012 >>>> bDescriptorType = 0x0001 >>>> bcdUSB = 0x0110 >>>> bDeviceClass = 0x0000 >>>> bDeviceSubClass = 0x0000 >>>> bDeviceProtocol = 0x0000 >>>> bMaxPacketSize0 = 0x0008 >>>> idVendor = 0x04e8 >>>> idProduct = 0x3413 >>>> bcdDevice = 0x0100 >>>> iManufacturer = 0x0001 >>>> iProduct = 0x0002 >>>> iSerialNumber = 0x0003<8J21BAKYB28091W.> >>>> bNumConfigurations = 0x0001 >>>> #* >>>> >>>> and here's the output from "usbconfig dump_curr_config_desc" >>>> >>>> #* >>>> ugen0.3: at usbus0, cfg=0 md=HOST >>>> spd=FULL (12Mbps) pwr=ON >>>> >>>> >>>> Configuration index 0 >>>> >>>> bLength = 0x0009 >>>> bDescriptorType = 0x0002 >>>> wTotalLength = 0x0020 >>>> bNumInterfaces = 0x0001 >>>> bConfigurationValue = 0x0001 >>>> iConfiguration = 0x0000 >>>> bmAttributes = 0x00c0 >>>> bMaxPower = 0x0000 >>>> >>>> Interface 0 >>>> bLength = 0x0009 >>>> bDescriptorType = 0x0004 >>>> bInterfaceNumber = 0x0000 >>>> bAlternateSetting = 0x0000 >>>> bNumEndpoints = 0x0002 >>>> bInterfaceClass = 0x0007 >>>> bInterfaceSubClass = 0x0001 >>>> bInterfaceProtocol = 0x0002 >>>> iInterface = 0x0000 >>>> >>>> Endpoint 0 >>>> bLength = 0x0007 >>>> bDescriptorType = 0x0005 >>>> bEndpointAddress = 0x0003 >>>> bmAttributes = 0x0002 >>>> wMaxPacketSize = 0x0040 >>>> bInterval = 0x0000 >>>> bRefresh = 0x0000 >>>> bSynchAddress = 0x0000 >>>> >>>> Endpoint 1 >>>> bLength = 0x0007 >>>> bDescriptorType = 0x0005 >>>> bEndpointAddress = 0x0081 >>>> bmAttributes = 0x0002 >>>> wMaxPacketSize = 0x0040 >>>> bInterval = 0x0000 >>>> bRefresh = 0x0000 >>>> bSynchAddress = 0x0000 >>>> #* >>>> >>>> Userland software, such as sane-find-scanner, is currently sure this is >>>> is just a printer. I would like this device to introduce itself for >>>> what >>>> it is ... a printer + a color scanner. >>>> Is it feasible? Are there any well-established techniques to (try to) >>>> reach the goal? >>>> >>>> Thanks for any link/suggestion >>>> >>> >>> Hi, >>> >>> Maybe you have to switch some button on the printer. Only one driver >>> can use a >>> set of IN and OUT endpoints at a time in an interface. Maybe the >>> original >>> driver has a multiplexer on top? >>> >>> --HPS >>> >>> >> Thanks Hans Petter, >> >> the device has no physical switch anywhere. >> Probably multiplexing is involved. It's worth to note then, if I >> understand it correctly, that this device does not follow this >> recommendation I read somewhere: >> >> "Important: Do not implement multiplexing over a single USB channel. >> Software multiplexing is fragile, and the native capabilities of USB >> should be used for communicating with multiple functions." > > Well they are not multiplexing on a single endpoint, and are using > separate endpoints to do this but they are doing it at the wrong level > in order to keep the entire device under the control of a single (their) > driver rather than have to risk having a separate driver usurp part of it. Thank you for the feedback. Later I inspected pieces of code in SANE and, as I don't have pure printers, I let it grab this device as a candidate for scanning. As any expert would expect (I suppose), I got an I/O error when a SANE backend (xerox_mfp*), using libusb, tried to start scanning. d * it is reported to work with Samsung SCX-4200, that seems not to differ from SCX-4100 at least for printing. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 17:09:45 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46EE4106567A for ; Tue, 5 Oct 2010 17:09:45 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id BFF688FC19 for ; Tue, 5 Oct 2010 17:09:44 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3B1L-0006jv-RI for freebsd-usb@freebsd.org; Tue, 05 Oct 2010 19:09:43 +0200 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 19:09:43 +0200 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 19:09:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Tue, 05 Oct 2010 10:09:34 -0700 Lines: 78 Message-ID: References: <201010050146.39923.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 In-Reply-To: <201010050146.39923.hselasky@freebsd.org> X-Enigmail-Version: 1.1.2 Cc: freebsd-current@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 17:09:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/04/2010 16:46, Hans Petter Selasky wrote: > http://svn.freebsd.org/changeset/base/213437 > > Please test if you have USB 3.0 hardware. > > --HPS I don't have 3.0, but on my amd64 machine I get this. Not sure if this is part of the root mount changes, usb, or mixture of both. Machine is [...] 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 [*** hang, hit enter on serial console bootup continues] ugen0.1: <0x103c> at usbus0 uhub0: <0x103c UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <0x1166> at usbus1 uhub1: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1 ugen2.1: <0x1166> at usbus2 uhub2: <0x1166 OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen3.1: <0x1166> at usbus3 uhub3: <0x1166 EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 [*** hang, hit enter twice on serial console bootup continues] bce0: bce_pulse(): Warning: bootcode thinks driver is absent! (bc_state = 0x00000006) bce1: bce_pulse(): Warning: bootcode thinks driver is absent! (bc_state = 0x00000006) uhub1: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub0: 2 ports with 2 removable, self powered [*** hang, hit enter 4x, bootup continues] uhub3: 4 ports with 4 removable, self powered [...] ciss0: command status 0x1 (target status) scsi status 0x2 (probe0:ciss0:0:0:0): SCSI status error (probe0:ciss0:0:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 0 0 (probe0:ciss0:0:0:0): CAM status: SCSI Status Error (probe0:ciss0:0:0:0): SCSI status: Check Condition (probe0:ciss0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code) (probe0:ciss0:0:0:0): Error 22, Unretryable error da0 at ciss0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device da0: Serial Number PAFGK0L9VWF3QU da0: 135.168MB/s transfers da0: Command Queueing enabled da0: 139979MB (286677120 512 byte sectors: 255H 32S/T 35132C) GEOM: new disk da0 pass0 at ciss0 bus 0 scbus0 target 0 lun 0 pass0: Fixed Direct Access SCSI-5 device pass0: Serial Number PAFGK0L9VWF3QU pass0: 135.168MB/s transfers pass0: Command Queueing enabled ATA PseudoRAID loaded [...] GEOM_LABEL[1]: MSDOSFS: da0: FAT32 volume not valid. GEOM_LABEL[1]: UFS2 file system detected on da0a. GEOM_LABEL[1]: Label for provider da0a is ufsid/48f52b4e5eb986c7. GEOM_LABEL[1]: UFS2 file system detected on da0a. GEOM_LABEL[1]: MSDOSFS: da0a: FAT32 volume not valid. GEOM_LABEL[1]: Label for provider da0b is label/swap. GEOM_LABEL[1]: MSDOSFS: da0b: no FAT signature found. Root mount waiting for: usbus3 usbus0 [hang, waits forever...] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyrW84ACgkQrDN5kXnx8ybnDACgh61R1y6bAZv45VrNOkdWCueC kV0AnielYry3V52T/osbHS8Lrf1YpGZH =60EQ -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 18:39:45 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBAF2106566B for ; Tue, 5 Oct 2010 18:39:45 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 9139D8FC1B for ; Tue, 5 Oct 2010 18:39:45 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3CQR-0006hp-Mt for freebsd-usb@freebsd.org; Tue, 05 Oct 2010 20:39:43 +0200 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 20:39:43 +0200 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 20:39:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Tue, 05 Oct 2010 11:39:33 -0700 Lines: 19 Message-ID: References: <201010050146.39923.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 In-Reply-To: X-Enigmail-Version: 1.1.2 Cc: freebsd-current@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 18:39:45 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/05/2010 10:09, Mark Atkinson wrote: > Root mount waiting for: usbus3 usbus0 > [hang, waits forever...] Well reverting to r213377 exhibits similar behavior, so I guess this is not suspect. I'll keep reverting until I find the breakage. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyrcOUACgkQrDN5kXnx8yZoDwCfROExHfdDnlaKum/NXrt22MZc MRoAnRGyCDlG0a0gt8Hwf9Etc1Zi+Z67 =4/SF -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 20:18:59 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9B73106566B; Tue, 5 Oct 2010 20:18:59 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id B2E2C8FC17; Tue, 5 Oct 2010 20:18:59 +0000 (UTC) Received: by pzk7 with SMTP id 7so93406pzk.13 for ; Tue, 05 Oct 2010 13:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=7nTfMGq1eShS6vBqCmN+wyU1U2ECqUy92oOk983RS5I=; b=PG7rpRvd8n2RZZ4pgRy1RgXbZEpjLOe+KavLa9LsjthMiA3CmSACG3o2gFzxhxzRX0 UQS4SMN1Gf3plVploULiflB/RPLIidU3Fk8qGo6Vlm5VvJ6cLytPtkDe1QQQc7Tevz1A 5OR7hfQVtUEv2vAz0BdQWH7yyP5o2p7BmQcQI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=DKJ4r9pGCq5n30FnCoXyChHYMnDYv5Ikp4ZjrKpsBgJ44T28O8ekcOw+0gaSqL76kE 777Awa3hJGwMgKleHuc4Nx+XGfA7Xx3NS+06CaNTgtZGT12uaxnYe3Tjm2M1Nm9g7OKN VavNKtDsSHK91Svd1sTXmvOU88U4BIACKlYJY= Received: by 10.115.77.17 with SMTP id e17mr14336323wal.108.1286309939099; Tue, 05 Oct 2010 13:18:59 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id q6sm12013099waj.22.2010.10.05.13.18.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 13:18:57 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 5 Oct 2010 13:17:11 -0700 From: Pyun YongHyeon Date: Tue, 5 Oct 2010 13:17:11 -0700 To: Mark Atkinson Message-ID: <20101005201711.GD9920@michelle.cdnetworks.com> References: <201010050146.39923.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 20:19:00 -0000 On Tue, Oct 05, 2010 at 11:39:33AM -0700, Mark Atkinson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > On 10/05/2010 10:09, Mark Atkinson wrote: > > Root mount waiting for: usbus3 usbus0 > > [hang, waits forever...] > > Well reverting to r213377 exhibits similar behavior, so I guess this is > not suspect. I'll keep reverting until I find the breakage. It seems I also see the similar behavior. Booting to single user and going back to single user does not work. But USB keyboard still seems to work. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 20:56:50 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE0D21065674; Tue, 5 Oct 2010 20:56:50 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 97B368FC18; Tue, 5 Oct 2010 20:56:50 +0000 (UTC) Received: by pvc21 with SMTP id 21so2180357pvc.13 for ; Tue, 05 Oct 2010 13:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=trBJDX3D/nNOg0Kxcfi2YYW/u3JaFuIk8TJiucYJcKc=; b=a78l9ifz3uuf6u66pH2e/PlRQUei6I43ouBpScpvEOQrUsY29WoRZXKwxbjyN4lNQa KgsYJHja9iB7ZsAy4Dyl2V1zZB1zsviNxYVbmnXFC6kZ93IW/+nkSmbQJZxpwggqZd9d isG2MiIR6wkz8CxbHT+9AInbYCkCeU1bNdMc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=T5Xnp/aMsGSiuhJeDPTMrWcv3wAxccl5Xdf6+4kFfkqBu7yT63lkt2mElQEHeRNjKf 8bgMeWp4chFbzKZ7RE/ifrtCx0KvIOwEGt2kJpxdGz6APiNqDl9K1gZB5CdQ05w3RkKD yOaiXhBTw4YvqCmsNDO8hG0YEHLzEIKW0j000= Received: by 10.114.26.6 with SMTP id 6mr14369370waz.82.1286312210024; Tue, 05 Oct 2010 13:56:50 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id r37sm10064wak.11.2010.10.05.13.56.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 05 Oct 2010 13:56:48 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 5 Oct 2010 13:55:03 -0700 From: Pyun YongHyeon Date: Tue, 5 Oct 2010 13:55:03 -0700 To: Hans Petter Selasky Message-ID: <20101005205503.GF9920@michelle.cdnetworks.com> References: <20101002001100.GL10521@michelle.cdnetworks.com> <201010020841.57474.hselasky@freebsd.org> <20101003235423.GB1135@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101003235423.GB1135@michelle.cdnetworks.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: Network TX/RX fairness is not honored by USB stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 20:56:51 -0000 On Sun, Oct 03, 2010 at 04:54:23PM -0700, Pyun YongHyeon wrote: > On Sat, Oct 02, 2010 at 08:41:57AM +0200, Hans Petter Selasky wrote: [...] > > > USB EHCI uses round robin, so this is either USB device problem or a test- > > program software failure. > > > > I'm pretty sure the benchmark program is not broken, so either > axe(4) or USB stack could be wrong here. I see three issues from > the UDP torture test. > - Either TX or RX could be starved to death. If you start TX test > first, RX would be stuck. If you start RX test first, TX would > be stuck. I had some progress for narrowing down the issue. It seems the issue happens on some revision of axe(4) controller so I guess the issue is in axe(4), not USB stack. I spent a lot of time to reproduce it on several axe(4) variants and only one axe(4) showed TX stuck condition under certain conditions. I don't believe the controller is in broken state as there were a couple axe(4) instability issues reported in ML. I vaguely thought the issue could be related with USB stack at that time but my testing indicates it might be caused by axe(4). Unfortunately all USB ethernet controllers did not implement a watchdog timeout handler in new USB stack so it was not easy to detect TX stuck condition(USB stack does not detect this condition). I guess if axe(4) had watchdog timeout code some users would have already reported the issue. Is there any reason not to have watchdog timeout handler in driver? If it is not, why USB ethernet drivers in new USB stack removed watchdog handler? I'm not sure resetting controller in ue_tick_task is allowed or not but trying to recover from TX stuck condition by stopping and reinitializing controller didn't work in axe(4). I still have to find a root cause why TX stuck happens on certain axe(4) controller but I have no clue yet. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 21:58:28 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CEDE106564A for ; Tue, 5 Oct 2010 21:58:28 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id E8D848FC13 for ; Tue, 5 Oct 2010 21:58:27 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3FWj-0003su-O8 for freebsd-usb@freebsd.org; Tue, 05 Oct 2010 23:58:25 +0200 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 23:58:25 +0200 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Oct 2010 23:58:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Tue, 05 Oct 2010 14:58:15 -0700 Lines: 27 Message-ID: References: <201010050146.39923.hselasky@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 In-Reply-To: X-Enigmail-Version: 1.1.2 Cc: freebsd-current@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 21:58:28 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/05/2010 11:39, Mark Atkinson wrote: > > > On 10/05/2010 10:09, Mark Atkinson wrote: >> Root mount waiting for: usbus3 usbus0 >> [hang, waits forever...] > > Well reverting to r213377 exhibits similar behavior, so I guess this is > not suspect. I'll keep reverting until I find the breakage. Wish I had kept his machine on a closer track with current: r212532: working r212553: fail I'm currently suspecting the one-shot timers are causing this box to hang. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyrn3cACgkQrDN5kXnx8yba5wCdGOkoUzm7nnJQQfj2Tc3v5Ptg +xYAnRgcOL3HqjGbm9hAVrpotjg0lLOa =PA/u -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 22:23:19 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A929C1065675; Tue, 5 Oct 2010 22:23:19 +0000 (UTC) (envelope-from andy@fud.org.nz) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 242A78FC0A; Tue, 5 Oct 2010 22:23:18 +0000 (UTC) Received: by wyb29 with SMTP id 29so6354460wyb.13 for ; Tue, 05 Oct 2010 15:23:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.141.138 with SMTP id m10mr10335258wbu.20.1286316094472; Tue, 05 Oct 2010 15:01:34 -0700 (PDT) Sender: andy@fud.org.nz Received: by 10.227.141.76 with HTTP; Tue, 5 Oct 2010 15:01:34 -0700 (PDT) In-Reply-To: References: <201010050146.39923.hselasky@freebsd.org> Date: Wed, 6 Oct 2010 11:01:34 +1300 X-Google-Sender-Auth: M1gy50heQby705Xyh3o4JcCZLGM Message-ID: From: Andrew Thompson To: Mark Atkinson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 22:23:19 -0000 On 6 October 2010 10:58, Mark Atkinson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 10/05/2010 11:39, Mark Atkinson wrote: >> >> >> On 10/05/2010 10:09, Mark Atkinson wrote: >>> Root mount waiting for: usbus3 usbus0 >>> [hang, waits forever...] >> >> Well reverting to r213377 exhibits similar behavior, so I guess this is >> not suspect. =A0I'll keep reverting until I find the breakage. > > Wish I had kept his machine on a closer track with current: > > r212532: working > r212553: fail > r212541 seems to be the only likely candidate between these ranges. Maybe you could try before and after. Andrew From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 22:37:34 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E491106566B for ; Tue, 5 Oct 2010 22:37:34 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from out-0.mx.aerioconnect.net (out-0-18.mx.aerioconnect.net [216.240.47.78]) by mx1.freebsd.org (Postfix) with ESMTP id 0DEFC8FC13 for ; Tue, 5 Oct 2010 22:37:33 +0000 (UTC) Received: from idiom.com (postfix@mx0.idiom.com [216.240.32.160]) by out-0.mx.aerioconnect.net (8.13.8/8.13.8) with ESMTP id o95MbXEC009518; Tue, 5 Oct 2010 15:37:33 -0700 X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id DE3502D6014; Tue, 5 Oct 2010 15:37:31 -0700 (PDT) Message-ID: <4CABA8DB.4050902@freebsd.org> Date: Tue, 05 Oct 2010 15:38:19 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: Mark Atkinson References: <201010050146.39923.hselasky@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.67 on 216.240.47.51 Cc: freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 22:37:34 -0000 On 10/5/10 2:58 PM, Mark Atkinson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 10/05/2010 11:39, Mark Atkinson wrote: >> >> On 10/05/2010 10:09, Mark Atkinson wrote: >>> Root mount waiting for: usbus3 usbus0 >>> [hang, waits forever...] >> Well reverting to r213377 exhibits similar behavior, so I guess this is >> not suspect. I'll keep reverting until I find the breakage. > Wish I had kept his machine on a closer track with current: > > r212532: working > r212553: fail > > I'm currently suspecting the one-shot timers are causing this box to hang. -current hangs around there on boot under Xen. setting kern.eventtimers.periodic=1 from the boot prompt allows it to continue. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.16 (FreeBSD) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkyrn3cACgkQrDN5kXnx8yba5wCdGOkoUzm7nnJQQfj2Tc3v5Ptg > +xYAnRgcOL3HqjGbm9hAVrpotjg0lLOa > =PA/u > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > From owner-freebsd-usb@FreeBSD.ORG Tue Oct 5 23:43:53 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05218106566C for ; Tue, 5 Oct 2010 23:43:53 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id AB8198FC16 for ; Tue, 5 Oct 2010 23:43:52 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3HAl-00058Z-29 for freebsd-usb@freebsd.org; Wed, 06 Oct 2010 01:43:51 +0200 Received: from ip244.gte215.dsl-acs2.sea.iinet.com ([209.20.215.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Oct 2010 01:43:51 +0200 Received: from atkin901 by ip244.gte215.dsl-acs2.sea.iinet.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Oct 2010 01:43:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Tue, 05 Oct 2010 16:38:17 -0700 Lines: 25 Message-ID: <4CABB6E9.2070606@gmail.com> References: <201010050146.39923.hselasky@freebsd.org> <4CABA8DB.4050902@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ip244.gte215.dsl-acs2.sea.iinet.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <4CABA8DB.4050902@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: FYI: USB 3.0 support and the XHCI driver is now fully committed to FreeBSD-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2010 23:43:53 -0000 On 10/5/2010 3:38 PM, Julian Elischer wrote: > On 10/5/10 2:58 PM, Mark Atkinson wrote: > On 10/05/2010 11:39, Mark Atkinson wrote: >>>> >>>> On 10/05/2010 10:09, Mark Atkinson wrote: >>>>> Root mount waiting for: usbus3 usbus0 >>>>> [hang, waits forever...] >>>> Well reverting to r213377 exhibits similar behavior, so I guess this is >>>> not suspect. I'll keep reverting until I find the breakage. > Wish I had kept his machine on a closer track with current: > > r212532: working > r212553: fail > > I'm currently suspecting the one-shot timers are causing this box to > hang. > > >> -current hangs around there on boot under Xen. >> setting kern.eventtimers.periodic=1 from the boot prompt allows it to >> continue. That was next on my list to research that thread, and indeed that works! Thanks! From owner-freebsd-usb@FreeBSD.ORG Wed Oct 6 15:04:35 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 628751065698 for ; Wed, 6 Oct 2010 15:04:35 +0000 (UTC) (envelope-from gofdu-freebsd-usb@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id D7E138FC1C for ; Wed, 6 Oct 2010 15:04:34 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P3VXj-0007nX-RE for freebsd-usb@freebsd.org; Wed, 06 Oct 2010 17:04:31 +0200 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Oct 2010 17:04:31 +0200 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Oct 2010 17:04:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-usb@freebsd.org From: Mark Atkinson Date: Wed, 06 Oct 2010 08:04:21 -0700 Lines: 79 Message-ID: References: <201010050146.39923.hselasky@freebsd.org> <4CABA8DB.4050902@freebsd.org> <4CABB6E9.2070606@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 In-Reply-To: <4CABB6E9.2070606@gmail.com> X-Enigmail-Version: 1.1.2 Cc: freebsd-current@freebsd.org Subject: timer selection w/ one shot timer prevents HP DL385G5 from booting (was usb 3.0) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2010 15:04:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/05/2010 16:38, Mark Atkinson wrote: > On 10/5/2010 3:38 PM, Julian Elischer wrote: >> On 10/5/10 2:58 PM, Mark Atkinson wrote: >> On 10/05/2010 11:39, Mark Atkinson wrote: >>>>> >>>>> On 10/05/2010 10:09, Mark Atkinson wrote: >>>>>> Root mount waiting for: usbus3 usbus0 >>>>>> [hang, waits forever...] >>>>> Well reverting to r213377 exhibits similar behavior, so I guess this is >>>>> not suspect. I'll keep reverting until I find the breakage. >> Wish I had kept his machine on a closer track with current: >> >> r212532: working >> r212553: fail >> >> I'm currently suspecting the one-shot timers are causing this box to >> hang. >> >> >>> -current hangs around there on boot under Xen. >>> setting kern.eventtimers.periodic=1 from the boot prompt allows it to >>> continue. > > That was next on my list to research that thread, and indeed that works! > Thanks! I spoke too soon. I think I may have been booting back to 211813 which was never removed from kernel.old. I should have been renaming whatever kernel build to /boot/kernel.r21XXXX instead of relying on that mechanism. In other words periodic=1 did not work for me, but changing the timer selection did. I left kern.eventtimer.perdiodic="1" in /boot/loader.conf and also changed kern.eventtimer.timer="LAPIC" to boot up. I have not played with running through all the different combinations, but this allowed be to boot r213481 from this morning. I'm assuming it's choosing the HPET timers. kern.eventtimer.choice: HPET(450) HPET1(450) HPET2(450) LAPIC(400) i8254(100) RTC(0) kern.eventtimer.et.LAPIC.flags: 15 kern.eventtimer.et.LAPIC.frequency: 100005979 kern.eventtimer.et.LAPIC.quality: 400 kern.eventtimer.et.i8254.flags: 1 kern.eventtimer.et.i8254.frequency: 1193182 kern.eventtimer.et.i8254.quality: 100 kern.eventtimer.et.HPET.flags: 3 kern.eventtimer.et.HPET.frequency: 14318180 kern.eventtimer.et.HPET.quality: 450 kern.eventtimer.et.HPET1.flags: 3 kern.eventtimer.et.HPET1.frequency: 14318180 kern.eventtimer.et.HPET1.quality: 450 kern.eventtimer.et.HPET2.flags: 3 kern.eventtimer.et.HPET2.frequency: 14318180 kern.eventtimer.et.HPET2.quality: 450 kern.eventtimer.et.RTC.flags: 17 kern.eventtimer.et.RTC.frequency: 32768 kern.eventtimer.et.RTC.quality: 0 kern.eventtimer.periodic: 0 kern.eventtimer.timer: LAPIC kern.eventtimer.idletick: 0 kern.eventtimer.singlemul: 2 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkysj/UACgkQrDN5kXnx8yZSDQCbBrc5gFHhDfBi4pncbzKobNIo 8X4AnRD4QIWaPqQy8R+Blf2Fy82HCiIr =ZUPH -----END PGP SIGNATURE----- From owner-freebsd-usb@FreeBSD.ORG Thu Oct 7 20:12:47 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34FC81065672; Thu, 7 Oct 2010 20:12:47 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C32E8FC12; Thu, 7 Oct 2010 20:12:46 +0000 (UTC) Received: by ewy27 with SMTP id 27so4593ewy.13 for ; Thu, 07 Oct 2010 13:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=INR+Y2YEmc9cCJIGNa9ifcIp1wF8JJvHBJ02qa+d3x8=; b=ARnhUM1BMEwyze8dGB8b6f/n/FMDMbwtoPIlkhUUL8QVuiL+DJMrFspQWuKft0o2rU EwAKLKwGuNOE7QiRgHY0gp+oQG2Uogi/sU9RqZ+WKhEM98+ewhmRE80MX8y1VASHyrc6 fij6cE5Xyo7ZhSFYzaqaaZQkXcHZrIQtkZ8F0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=GNVY6kv21Qj6Af4DVHKZaZSz/PDkn86bkOEpiMXPuXnw19S8GS3RYAyG03KQEhwJaz k2LPsXtHWMZLtgASxIA+ZeUMF69aLGOTaDE9Zv8TRfVJwj/zmC3ojkKtyBlXWTLqaojF XW2qSMtx1SOe4z6I1Om3trE4zxWoPK0C8Ye5w= Received: by 10.213.30.1 with SMTP id s1mr1971382ebc.57.1286482365408; Thu, 07 Oct 2010 13:12:45 -0700 (PDT) Received: from hulk.l.ttyv0.net (80-219-18-72.dclient.hispeed.ch [80.219.18.72]) by mx.google.com with ESMTPS id u3sm201126eeh.7.2010.10.07.13.12.41 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Oct 2010 13:12:42 -0700 (PDT) Message-ID: <4CAE29B8.8010304@gmail.com> Date: Thu, 07 Oct 2010 22:12:40 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.12) Gecko/20101006 Thunderbird/3.0.8 MIME-Version: 1.0 To: Hans Petter Selasky References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> In-Reply-To: <201010021639.11568.hselasky@c2i.net> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB disk on CS5536 unstable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 20:12:47 -0000 On 10/02/10 16:39, Hans Petter Selasky wrote: > On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote: >> On 09/30/10 21:38, Hans Petter Selasky wrote: >>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote: >>>> Maybe sending it to just the USB list was too specific ... >>>> >>>> On 09/30/10 00:08, Anselm Strauss wrote: >>>>> Hi >>>>> >>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion >>>>> chip with integrated USB on it. When I connect a USB disk I have >>>>> observed various problems. For example when I run fsck_ufs on a 250 GB >>>>> partition the process gets stuck in biord state and fsck reports >>>>> unreadable sectors. When I do a dd over the whole disk and direct it >>>>> to /dev/null it suddenly returns with no error, but having read only a >>>>> small fraction of the disk. I tried it with two different disks and >>>>> two different ALIX boards. I'm pretty sure the disks are okay since I >>>>> tried them on other hardware. >>>>> >>>>> As far as I know there was some trouble with the chip regarding >>>>> timeouts. Under load after some time the USB just stops responding. I >>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track >>>>> this down? >>>>> >>>>> Anselm >>> >>> If you compile the kernel with USB_DEBUG, then there are some sysctls >>> under hw.usb.ehci which you can tweak. Needs to be set before boot. >>> >>> --HPS >> >> Did not know that there were configurable bug workarounds in sysctl. >> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems >> seem gone. >> >> Without this setting I got the following kernel message when dd did abort: >> >> ehci_timeout: xfer=0xc29cd3c8 >> >> >> Thanks, >> Anselm > > Maybe you can report the PCI vendor ID and product so that we can add this > quirk. > > --HPS Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX 2d2 from http://pcengines.ch/alix. Anselm From owner-freebsd-usb@FreeBSD.ORG Thu Oct 7 20:22:07 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF8FE1065674; Thu, 7 Oct 2010 20:22:06 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 52F438FC1F; Thu, 7 Oct 2010 20:22:06 +0000 (UTC) Received: by wyb29 with SMTP id 29so619837wyb.13 for ; Thu, 07 Oct 2010 13:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=nf2XUz6JHsImx6QgZRcF7F2bn7xzVyJzr7f4lDNMwmA=; b=FZAI0mBVlKFpV2xSapKvuFolVpjkgeFpS7P7INxKFy97TnCQPKkVF4tH/5io2pfHj+ EpoLwf6e8+ZFOWisz5/q1Cx6WmYBi04UIl03jWryhdysFCAkf8wuGSLmiDM7DSrRBJAi /kFZ9FvMTaslOK7bXr9m5AHD78C2+nTcWVtXc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=oBin4wha7RGNyJY49hmlpAixmvCAWbjOGOSQeIAGz3uQCFqsoL6bo/nfKkM9mIlaIh UxxFiTXhDeZOo9IxiWsumxHe9fejiiQLOzWkVXXXgvGvIy3j5yTlc/Cz6ScvssrTY2bq eXJL9a262DHDnwXyNTv1iD+rmTkGNrFe51HTI= Received: by 10.227.127.193 with SMTP id h1mr1339823wbs.139.1286482925475; Thu, 07 Oct 2010 13:22:05 -0700 (PDT) Received: from hulk.l.ttyv0.net (80-219-18-72.dclient.hispeed.ch [80.219.18.72]) by mx.google.com with ESMTPS id a17sm52692wbe.6.2010.10.07.13.22.03 (version=SSLv3 cipher=RC4-MD5); Thu, 07 Oct 2010 13:22:04 -0700 (PDT) Message-ID: <4CAE2BEA.1020003@gmail.com> Date: Thu, 07 Oct 2010 22:22:02 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.12) Gecko/20101006 Thunderbird/3.0.8 MIME-Version: 1.0 To: Hans Petter Selasky References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> <4CAE29B8.8010304@gmail.com> In-Reply-To: <4CAE29B8.8010304@gmail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB disk on CS5536 unstable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 20:22:07 -0000 On 10/07/10 22:12, Anselm Strauss wrote: > On 10/02/10 16:39, Hans Petter Selasky wrote: >> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote: >>> On 09/30/10 21:38, Hans Petter Selasky wrote: >>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote: >>>>> Maybe sending it to just the USB list was too specific ... >>>>> >>>>> On 09/30/10 00:08, Anselm Strauss wrote: >>>>>> Hi >>>>>> >>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion >>>>>> chip with integrated USB on it. When I connect a USB disk I have >>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB >>>>>> partition the process gets stuck in biord state and fsck reports >>>>>> unreadable sectors. When I do a dd over the whole disk and direct it >>>>>> to /dev/null it suddenly returns with no error, but having read only a >>>>>> small fraction of the disk. I tried it with two different disks and >>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I >>>>>> tried them on other hardware. >>>>>> >>>>>> As far as I know there was some trouble with the chip regarding >>>>>> timeouts. Under load after some time the USB just stops responding. I >>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track >>>>>> this down? >>>>>> >>>>>> Anselm >>>> >>>> If you compile the kernel with USB_DEBUG, then there are some sysctls >>>> under hw.usb.ehci which you can tweak. Needs to be set before boot. >>>> >>>> --HPS >>> >>> Did not know that there were configurable bug workarounds in sysctl. >>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems >>> seem gone. >>> >>> Without this setting I got the following kernel message when dd did abort: >>> >>> ehci_timeout: xfer=0xc29cd3c8 >>> >>> >>> Thanks, >>> Anselm >> >> Maybe you can report the PCI vendor ID and product so that we can add this >> quirk. >> >> --HPS > > Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX > 2d2 from http://pcengines.ch/alix. > > Anselm Sorry, wrong URL: http://pcengines.ch/alix.htm From owner-freebsd-usb@FreeBSD.ORG Thu Oct 7 21:25:49 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FD0E1065670 for ; Thu, 7 Oct 2010 21:25:49 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.49]) by mx1.freebsd.org (Postfix) with ESMTP id 479B98FC13 for ; Thu, 7 Oct 2010 21:25:49 +0000 (UTC) Received: (qmail 8568 invoked from network); 7 Oct 2010 20:59:07 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 7 Oct 2010 20:59:07 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id D6A1150837; Thu, 7 Oct 2010 16:59:06 -0400 (EDT) From: Lowell Gilbert To: Anselm Strauss References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> <4CAE29B8.8010304@gmail.com> Date: Thu, 07 Oct 2010 16:59:06 -0400 In-Reply-To: <4CAE29B8.8010304@gmail.com> (Anselm Strauss's message of "Thu, 07 Oct 2010 22:12:40 +0200") Message-ID: <44bp753ejp.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB disk on CS5536 unstable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2010 21:25:49 -0000 Anselm Strauss writes: > On 10/02/10 16:39, Hans Petter Selasky wrote: >> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote: >>> On 09/30/10 21:38, Hans Petter Selasky wrote: >>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote: >>>>> Maybe sending it to just the USB list was too specific ... >>>>> >>>>> On 09/30/10 00:08, Anselm Strauss wrote: >>>>>> Hi >>>>>> >>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion >>>>>> chip with integrated USB on it. When I connect a USB disk I have >>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB >>>>>> partition the process gets stuck in biord state and fsck reports >>>>>> unreadable sectors. When I do a dd over the whole disk and direct it >>>>>> to /dev/null it suddenly returns with no error, but having read only a >>>>>> small fraction of the disk. I tried it with two different disks and >>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I >>>>>> tried them on other hardware. >>>>>> >>>>>> As far as I know there was some trouble with the chip regarding >>>>>> timeouts. Under load after some time the USB just stops responding. I >>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track >>>>>> this down? >>>>>> >>>>>> Anselm >>>> >>>> If you compile the kernel with USB_DEBUG, then there are some sysctls >>>> under hw.usb.ehci which you can tweak. Needs to be set before boot. >>>> >>>> --HPS >>> >>> Did not know that there were configurable bug workarounds in sysctl. >>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems >>> seem gone. >>> >>> Without this setting I got the following kernel message when dd did abort: >>> >>> ehci_timeout: xfer=0xc29cd3c8 >>> >>> >>> Thanks, >>> Anselm >> >> Maybe you can report the PCI vendor ID and product so that we can add this >> quirk. >> >> --HPS > > Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX > 2d2 from http://pcengines.ch/alix. pciconf(8) will tell you. Try sending "pciconf -l" output. From owner-freebsd-usb@FreeBSD.ORG Fri Oct 8 12:43:44 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2273A106564A for ; Fri, 8 Oct 2010 12:43:44 +0000 (UTC) (envelope-from krismoore134@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id A6D668FC13 for ; Fri, 8 Oct 2010 12:43:43 +0000 (UTC) Received: by fxm4 with SMTP id 4so231620fxm.13 for ; Fri, 08 Oct 2010 05:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type; bh=9ZPkBhCwbw+TNbu+PeDCjtSSkTjtNNJSI3QjCQuDL2Q=; b=VeYYMjTrRbuPxAMZ92/e6oGQsAi/oA8MWXX335af7oKm+C3TvrI2zGJnqzGh6ZpBBb v1L1ayphHdGGMBg1UUoFXePxhQVQrhqH/1SnRw8U5SCEIV6FOff/I1fvS83FL4wZHqxQ +9Ku2WTne4V5b2kjOzPJ/y4bZNOuwICSUBHNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; b=bqgxWvTFS7mq9s+BYGi7rRtZLOzGMUoGLupeJhqudMEAnldBdUuC1w0TiqebYjHyf2 hR9RgwKz3wKdSAQ7Q5GzgSS8vcWh9pV5PUziCo+gZqQYBEIfJ2S9PU/fq3YNpJih5PPO 5DZQEm7xTsxXeuH6Zv9WaZ7Ea5j+4SQRzpOw0= Received: by 10.223.115.71 with SMTP id h7mr2944581faq.59.1286540205970; Fri, 08 Oct 2010 05:16:45 -0700 (PDT) Received: from [172.21.161.55] ([195.37.186.61]) by mx.google.com with ESMTPS id 2sm1602204faz.14.2010.10.08.05.16.44 (version=SSLv3 cipher=RC4-MD5); Fri, 08 Oct 2010 05:16:45 -0700 (PDT) Message-ID: <4CAF0BAC.3030306@gmail.com> Date: Fri, 08 Oct 2010 08:16:44 -0400 From: Kris Moore User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.9) Gecko/20100918 Thunderbird/3.1.4 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: multipart/mixed; boundary="------------010008000509030602020700" Subject: eGalax usb HID information X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 12:43:44 -0000 This is a multi-part message in MIME format. --------------010008000509030602020700 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Attached is the HID output from the eGalax touch-screen that Hans was playing with at EuroBSDCon. Let me know if I can provide any further details from this system for you to start working on. Thanks! -- Kris Moore PC-BSD Software / iXSystems --------------010008000509030602020700 Content-Type: text/plain; name="hid.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="hid.out" REQUEST =3D <0x05 0x0d 0x09 0x04 0xa1 0x01 0x85 0x04 0x09 0x22 0xa1 0x00 = 0x09 0x42 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x81 0x02 0x09 0x32 0x7= 5 0x01 0x95 0x01 0x81 0x02 0x75 0x01 0x95 0x05 0x81 0x03 0x09 0x47 0x75 0= x01 0x95 0x01 0x81 0x02 0x09 0x30 0x75 0x10 0x95 0x01 0x65 0x00 0x36 0x01= 0x00 0x46 0xff 0x07 0x16 0x01 0x00 0x26 0xff 0x07 0x81 0x02 0x09 0x51 0x= 75 0x08 0x95 0x01 0x16 0x00 0x00 0x26 0x20 0x00 0x81 0x02 0x05 0x01 0x09 = 0x30 0x75 0x10 0x95 0x01 0x55 0x0d 0x65 0x33 0x35 0x00 0x46 0xd5 0x21 0x2= 6 0xff 0x7f 0x81 0x02 0x09 0x31 0x75 0x10 0x95 0x01 0x55 0x0d 0x65 0x33 0= x35 0x00 0x46 0xfe 0x13 0x26 0xff 0x7f 0x81 0x02 0xc0 0xa1 0x00 0x05 0x0d= 0x09 0x42 0x15 0x00 0x25 0x01 0x75 0x01 0x95 0x01 0x81 0x02 0x09 0x32 0x= 75 0x01 0x95 0x01 0x81 0x02 0x75 0x01 0x95 0x05 0x81 0x03 0x09 0x47 0x75 = 0x01 0x95 0x01 0x81 0x02 0x09 0x30 0x75 0x10 0x95 0x01 0x65 0x00 0x36 0x0= 1 0x00 0x46 0xff 0x07 0x16 0x01 0x00 0x26 0xff 0x07 0x81 0x02 0x09 0x51 0= x75 0x08 0x95 0x01 0x16 0x00 0x00 0x26 0x20 0x00 0x81 0x02 0x05 0x01 0x09= 0x30 0x75 0x10 0x95 0x01 0x55 0x0d 0x65 0x33 0x35 0x00 0x46 0xd5 0x21 0x= 26 0xff 0x7f 0x81 0x02 0x09 0x31 0x75 0x10 0x95 0x01 0x55 0x0d 0x65 0x33 = 0x35 0x00 0x46 0xfe 0x13 0x26 0xff 0x7f 0x81 0x02 0xc0 0x05 0x0d 0x09 0x5= 4 0x95 0x01 0x75 0x08 0x15 0x00 0x25 0x08 0x81 0x02 0x09 0x55 0xb1 0x02 0= xc0 0x05 0x01 0x09 0x01 0xa1 0x01 0x85 0x01 0x09 0x01 0xa1 0x00 0x05 0x09= 0x19 0x01 0x29 0x02 0x15 0x00 0x25 0x01 0x95 0x02 0x75 0x01 0x81 0x02 0x= 95 0x01 0x75 0x06 0x81 0x01 0x05 0x01 0x09 0x30 0x09 0x31 0x16 0x00 0x00 = 0x26 0xff 0x0f 0x36 0x00 0x00 0x46 0xff 0x0f 0x66 0x00 0x00 0x75 0x10 0x9= 5 0x02 0x81 0x02 0xc0 0xc0 0x06 0x00 0xff 0x09 0x01 0xa1 0x01 0x09 0x01 0= x15 0x00 0x26 0xff 0x00 0x85 0x03 0x75 0x08 0x95 0x3f 0x81 0x02 0x06 0x00= 0xff 0x09 0x01 0x15 0x00 0x26 0xff 0x00 0x75 0x08 0x95 0x3f 0x91 0x02 0x= c0 0x05 0x0d 0x09 0x04 0xa1 0x01 0x85 0x02 0x09 0x20 0xa1 0x00 0x09 0x42 = 0x09 0x32 0x15 0x00 0x25 0x01 0x95 0x02 0x75 0x01 0x81 0x02 0x95 0x06 0x7= 5 0x01 0x81 0x03 0x05 0x01 0x09 0x30 0x75 0x10 0x95 0x01 0xa4 0x55 0x0d 0= x65 0x33 0x36 0x00 0x00 0x46 0xd5 0x21 0x16 0x00 0x00 0x26 0xff 0x0f 0x81= 0x02 0x09 0x31 0x16 0x00 0x00 0x26 0xff 0x0f 0x36 0x00 0x00 0x46 0xfe 0x= 13 0x81 0x02 0xb4 0xc0 0xc0 0x05 0x0d 0x09 0x0e 0xa1 0x01 0x85 0x05 0x09 = 0x22 0xa1 0x00 0x09 0x52 0x09 0x53 0x15 0x00 0x25 0x0a 0x75 0x08 0x95 0x0= 2 0xb1 0x02 0xc0 0xc0><"B%u2uuGu0ue6F&Qu& 0uUe35F!&1uUe35F&B%u2uuGu0ue6F&= Qu& 0uUe35F!&1uUe35F&Tu%U)%uu01&6Ffu&u?&u? B2%uu0uUe36F!&1&6F"RS%u> --------------010008000509030602020700-- From owner-freebsd-usb@FreeBSD.ORG Fri Oct 8 13:14:28 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2DA91065670 for ; Fri, 8 Oct 2010 13:14:28 +0000 (UTC) (envelope-from donaldcallen@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 828B98FC17 for ; Fri, 8 Oct 2010 13:14:28 +0000 (UTC) Received: by pvg4 with SMTP id 4so14933pvg.13 for ; Fri, 08 Oct 2010 06:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=a1q5/ztnpLqufyfvicEzktwmKzUf4J3U0jKbUA1BNWA=; b=lGBbdrcZ6hPAUTJZAjFA10LiQzKhbEUQN+wgJnucPVOnlEUQdWa3Kk1CwBDoOfaIgz yZzxdEHy2lX1jqa7Ag8J3gH8RyIxNHg3XTEVkdC2wBAzwRYKmkno3it5crjQpfzpbK7O 1ZK7AATquanbqn0q9iPyiyfINw7yOsMPbB6Uo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=gy/I0vZiMdpFHPjOBXeNSCI7mvSSAKs0GpG7AaBcOi/jZUCeNF8PFqFhrl1HDd1RrH ctLnUws4c+CZuY2IDPvlP99NybXTgLBA2HLqrGVF3yxg7Tt5YVDygPNS0qkJiAl4RikJ QSTYOE9EJMj9X2raiYSn2Brq4miAGXsDFzgKo= MIME-Version: 1.0 Received: by 10.114.153.16 with SMTP id a16mr2616789wae.228.1286543668171; Fri, 08 Oct 2010 06:14:28 -0700 (PDT) Received: by 10.42.121.14 with HTTP; Fri, 8 Oct 2010 06:14:28 -0700 (PDT) In-Reply-To: References: <201009261401.27047.hselasky@c2i.net> Date: Fri, 8 Oct 2010 09:14:28 -0400 Message-ID: From: Donald Allen To: Marcin Cieslak Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-usb@freebsd.org Subject: Re: usb mouse issue X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2010 13:14:28 -0000 On Sun, Sep 26, 2010 at 4:28 PM, Donald Allen wrote: > > > On Sun, Sep 26, 2010 at 4:22 PM, Marcin Cieslak wrote: > >> >> Donald Allen wrote: >> > On Sun, Sep 26, 2010 at 8:01 AM, Hans Petter Selasky > >wrote: >> > >> >> On Sunday 26 September 2010 13:51:14 Donald Allen wrote: >> >> > I am running 8.1 RELEASE on a Thinkpad X61. I have a wired Microsoft >> usb >> >> > mouse plugged into it. I have hal and dbus running, and when I start >> X, >> >> > everything is fine. However, if I shut down the X server and restart >> it >> >> > (via startx), the mouse no longer works, but the laptop's trackpoint >> >> > device does work. If I unplug and re-plug the mouse, it now works. >> Again, >> >> > as with my report on the usb disks, neither Linux nor OpenBSD exhibit >> >> this >> >> > behavior on this hardware. >> >> >> I am quite happy with X server compiled WITHOUT_HAL=true. While I can't >> hotplug my USB mouse (I am using a Sony Vaio laptop with internal >> touchpad) the good thing is that once I plug it in before X server >> starts I can freely unplug and re-plug it again as necessary. >> >> Can you try that to figure out wheter it's really a HAL issue >> as suggested by HPS? >> > > I will, but it won't be for a week or so. > I'm sorry, but I won't be doing this. I've again (third try in two years) just run into too many problems with FreeBSD and have reinstalled Slackware. Thanks for trying to help -- /Don > > /Don > >> >> //Marcin >> >> _______________________________________________ >> freebsd-usb@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-usb >> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" >> > > From owner-freebsd-usb@FreeBSD.ORG Sat Oct 9 09:06:25 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D438D106566C; Sat, 9 Oct 2010 09:06:25 +0000 (UTC) (envelope-from amsibamsi@gmail.com) Received: from mail-ew0-f54.google.com (mail-ew0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 37D5D8FC13; Sat, 9 Oct 2010 09:06:24 +0000 (UTC) Received: by ewy27 with SMTP id 27so948097ewy.13 for ; Sat, 09 Oct 2010 02:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=iYYz3jz2A0KuqYqRsUfkQe4rVdXpG457AB37ZAg5YQY=; b=FDeRJyOZgyQFHUEtYz6Q4PI08UKl6SnsZTr/3OzV8qEvfAoAWoHepSWYRs3irLZxzi n+CwNBGUVXuZE4KUieSB9VzH+/UQiWzdBWU+oRCQCNjRUAr5lXu0m9KKkjPz9pufU7G6 2z4oeJ9oid6C6pAmhMd778jO/ZoeXUhEMuHH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ZKjqYJRCfTdb7cOK+l9OOf7WnmSO3flhQlQTi2iVMedQMM40Ri0fQICBnwFQ+LFm8A sWjVTPThY+kGbZ0KqMWfLCkkL9S0rdjF9Szoc8J3vRyx4A6R7PtGuWrkMTO2bNo8JntO t4+gnn1QSXAAj2K2LPy7r7516r57dLJU6GWvE= Received: by 10.213.27.76 with SMTP id h12mr550363ebc.60.1286615182869; Sat, 09 Oct 2010 02:06:22 -0700 (PDT) Received: from hulk.l.ttyv0.net (80-219-18-72.dclient.hispeed.ch [80.219.18.72]) by mx.google.com with ESMTPS id q54sm3092230eeh.6.2010.10.09.02.06.20 (version=SSLv3 cipher=RC4-MD5); Sat, 09 Oct 2010 02:06:21 -0700 (PDT) Message-ID: <4CB0308B.7070908@gmail.com> Date: Sat, 09 Oct 2010 11:06:19 +0200 From: Anselm Strauss User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.12) Gecko/20101006 Thunderbird/3.0.8 MIME-Version: 1.0 References: <4CA3B8F5.80904@gmail.com> <201009302138.51616.hselasky@c2i.net> <4CA72917.8060209@gmail.com> <201010021639.11568.hselasky@c2i.net> <4CAE29B8.8010304@gmail.com> <44bp753ejp.fsf@be-well.ilk.org> In-Reply-To: <44bp753ejp.fsf@be-well.ilk.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: USB disk on CS5536 unstable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 09:06:25 -0000 On 10/07/10 22:59, Lowell Gilbert wrote: > Anselm Strauss writes: > >> On 10/02/10 16:39, Hans Petter Selasky wrote: >>> On Saturday 02 October 2010 14:44:07 Anselm Strauss wrote: >>>> On 09/30/10 21:38, Hans Petter Selasky wrote: >>>>> On Thursday 30 September 2010 21:10:59 Anselm Strauss wrote: >>>>>> Maybe sending it to just the USB list was too specific ... >>>>>> >>>>>> On 09/30/10 00:08, Anselm Strauss wrote: >>>>>>> Hi >>>>>>> >>>>>>> I have an ALIX board that has an AMD Geode and the CS5536 companion >>>>>>> chip with integrated USB on it. When I connect a USB disk I have >>>>>>> observed various problems. For example when I run fsck_ufs on a 250 GB >>>>>>> partition the process gets stuck in biord state and fsck reports >>>>>>> unreadable sectors. When I do a dd over the whole disk and direct it >>>>>>> to /dev/null it suddenly returns with no error, but having read only a >>>>>>> small fraction of the disk. I tried it with two different disks and >>>>>>> two different ALIX boards. I'm pretty sure the disks are okay since I >>>>>>> tried them on other hardware. >>>>>>> >>>>>>> As far as I know there was some trouble with the chip regarding >>>>>>> timeouts. Under load after some time the USB just stops responding. I >>>>>>> have tried 8.0 and 8.1. Is there any known problem? How can I track >>>>>>> this down? >>>>>>> >>>>>>> Anselm >>>>> >>>>> If you compile the kernel with USB_DEBUG, then there are some sysctls >>>>> under hw.usb.ehci which you can tweak. Needs to be set before boot. >>>>> >>>>> --HPS >>>> >>>> Did not know that there were configurable bug workarounds in sysctl. >>>> When I set hw.usb.ehci.lostintrbug=1 in /boot/loader.conf the problems >>>> seem gone. >>>> >>>> Without this setting I got the following kernel message when dd did abort: >>>> >>>> ehci_timeout: xfer=0xc29cd3c8 >>>> >>>> >>>> Thanks, >>>> Anselm >>> >>> Maybe you can report the PCI vendor ID and product so that we can add this >>> quirk. >>> >>> --HPS >> >> Not sure what a "PCI vendor ID" is and how to determine it. It's a ALIX >> 2d2 from http://pcengines.ch/alix. > > pciconf(8) will tell you. Try sending "pciconf -l" output. -> pciconf -lv hostb0@pci0:0:1:0: class=0x060000 card=0x20801022 chip=0x20801022 rev=0x33 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Conrad Kostecki' class = bridge subclass = HOST-PCI none0@pci0:0:1:2: class=0x101000 card=0x20821022 chip=0x20821022 rev=0x00 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'Geode GX3 AES Crypto Driver (GX3)' class = encrypt/decrypt vr0@pci0:0:9:0: class=0x020000 card=0x01061106 chip=0x30531106 rev=0x96 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'Rhine III Management Adapter (VT6105M)' class = network subclass = ethernet vr1@pci0:0:11:0: class=0x020000 card=0x01061106 chip=0x30531106 rev=0x96 hdr=0x00 vendor = 'VIA Technologies, Inc.' device = 'Rhine III Management Adapter (VT6105M)' class = network subclass = ethernet ath0@pci0:0:12:0: class=0x020000 card=0x1600185f chip=0x001b168c rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.' device = 'AR5006 family 802.11abg Wireless NIC' class = network subclass = ethernet isab0@pci0:0:15:0: class=0x060100 card=0x20901022 chip=0x20901022 rev=0x03 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 [Geode companion] ISA' class = bridge subclass = PCI-ISA atapci0@pci0:0:15:2: class=0x010180 card=0x209a1022 chip=0x209a1022 rev=0x01 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 IDE Controller (CS5536)' class = mass storage subclass = ATA ohci0@pci0:0:15:4: class=0x0c0310 card=0x20941022 chip=0x20941022 rev=0x02 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 OHCI USB Host Controller (CS5536)' class = serial bus subclass = USB ehci0@pci0:0:15:5: class=0x0c0320 card=0x20951022 chip=0x20951022 rev=0x02 hdr=0x00 vendor = 'Advanced Micro Devices (AMD)' device = 'CS5536 EHCI USB Host Controller (CS5536)' class = serial bus subclass = USB So I guess it is the last one, the ehci device. From owner-freebsd-usb@FreeBSD.ORG Sat Oct 9 12:40:03 2010 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC334106564A for ; Sat, 9 Oct 2010 12:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9D83C8FC08 for ; Sat, 9 Oct 2010 12:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o99Ce3An047874 for ; Sat, 9 Oct 2010 12:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o99Ce3OH047871; Sat, 9 Oct 2010 12:40:03 GMT (envelope-from gnats) Date: Sat, 9 Oct 2010 12:40:03 GMT Message-Id: <201010091240.o99Ce3OH047871@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Markus Dolze Cc: Subject: Re: usb/142991: [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 USB LCD X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Markus Dolze List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 12:40:03 -0000 The following reply was made to PR usb/142991; it has been noted by GNATS. From: Markus Dolze To: bug-followup@FreeBSD.org, Hans Petter Selasky Cc: Subject: Re: usb/142991: [uftdi] [usb67] [patch] Patch to add Crystalfontz 533 USB LCD Date: Sat, 09 Oct 2010 14:03:46 +0200 Hi, yes, the CFA533 display actually has a FTDI FT232RL mounted on its PCB. Sorry, but I missed your last mail. Regards, Markus