From owner-freebsd-current@FreeBSD.ORG Wed Dec 24 00:24:45 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA7651065670 for ; Wed, 24 Dec 2008 00:24:45 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id 64CE08FC12 for ; Wed, 24 Dec 2008 00:24:45 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.peganest.com (78-33-110-3.static-adsl.entanet.co.uk [78.33.110.3] (may be forged)) (authenticated bits=0) by hercules.mthelicon.com (8.14.3/8.14.3) with ESMTP id mBO0OZZv014707 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 24 Dec 2008 00:24:37 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-current@freebsd.org Date: Wed, 24 Dec 2008 00:24:28 +0000 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; amd64; ; ) References: <20081222214010.GA18389@elvis.mu.org> <200812231130.33842.hselasky@c2i.net> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_8EYUJqowLqIEGR2" Message-Id: <200812240024.28505.ken@mthelicon.com> Cc: remko@elvandar.org, Hans Petter Selasky Subject: Re: HEADSUP usb2 (usb4bsd) to become default in 2 weeks. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 00:24:45 -0000 --Boundary-00=_8EYUJqowLqIEGR2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Tuesday 23 December 2008 10:56:10 Pegasus Mc Cleaft wrote: > ----- Original Message ----- > From: "Hans Petter Selasky" > To: > Cc: ; "Pegasus Mc Cleaft" > Sent: Tuesday, December 23, 2008 10:30 AM > Subject: Re: HEADSUP usb2 (usb4bsd) to become default in 2 weeks. > > > On Tuesday 23 December 2008, Remko Lodder wrote: > >> On Tue, December 23, 2008 11:03 am, Hans Petter Selasky wrote: > >> > On Tuesday 23 December 2008, Pegasus Mc Cleaft wrote: > >> >> I believe that the Prolific USB serial adapter is broken on AMD64. I > >> >> tried > >> >> one of the adapters on my machine and no matter what serial speed I > >> >> was > >> >> selecting with cu it would come back with an error stating the speed > >> >> was > >> >> unsupported. I moved the adapter to a 8-current machine (i386) with > >> >> the > >> >> usb1 stack and everything worked fine. > >> >> > >> >> Peg > >> > > >> > Are you sure that this is not an mpsafetty problem? > >> > >> Given that he states that it works under the original USB stack, I would > >> guess that it's not an MPsafeTTY thingy else it wouldn't work under the > >> original stack either. > > > > Try to turn on USB debugging for: > > > > sysctl hw.usb2.ucom.debug=15 > > sysctl hw.usb2.uftdi.debug=15 > > > > Have a look in "/usr/src/sys/dev/usb2/serial/uftdi2.c" and the function: > > > > uftdi_8u232am_getrate(). > > > > Extra checks have been added to detect invalid line speeds between USB1 > > and > > USB2. > > > > What rate are you trying to set? > > > > Minimum and maximum rate is defined like this: > > > > if ((speed < 178) || (speed > ((3000000 * 100) / 97))) > > return (1); /* prevent numerical overflow */ > > > > --HPS > > > > uftdi_8u232am_getrate > > Hi Hans, > > I was trying something like: cu -l /dev/cuaU0 -s 9600 > > I did also try the same with /dev/ttyU0, both with various speeds from > 300 to 115200. > > Interestingly, I also tried doing a cat /dev/random > /dev/cuaU0 and > that didnt throw an error (Dont know if it actually sent anything as I > didnt have a scope hooked to the line). Like I said in another email, I > will try moving the machines around between the USB1 and 2 stack tongiht > and see if I can pin it down to a specific combination (MP vrs non-MP, > AMD64 vrs i386) > Hi everyone, I havent tried this on the i386 box yet (as it takes a few hours to compile the world and kernel) but I did some more testing on the AMD64 box. What I have found is: AMD64 USB2 on prolific adapter: BAD AMD64 USB1 on prolific adapter: GOOD AMD64 USB2 on FTDI adapter: GOOD I have included a few text files of the dmesg USB section for debugging with the prolific adapter. Anything I can do to help, please let me know.. Peg --Boundary-00=_8EYUJqowLqIEGR2 Content-Type: text/plain; charset="iso-8859-1"; name="AMD64_USB1_PROLIFIC.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="AMD64_USB1_PROLIFIC.txt" IApmZWF0aGVycyMgY3UgLWwgL2Rldi9jdWFVMCAtcyA5NjAwCkNvbm5lY3RlZApmZmZmZmZmZmZm ZmZmZmZmZnx8fHx8/nx8fHxcXFzH/f/9vv19v72978fv5+/vrefu7+/v5+/nO+fv9uc1925uO/tu P7c7u247+z+5P9u7+bv729va27v529tbW8PbT3tvv2/p9/1vv29pb2/tL2/t/f3X1/+399f37e/1 Xbfr6fdf19dd1/3XXddd19f919ddvevXXV1d19/XXV3XXV1d3bvtt9fXXV1d1/98fHx8fHx8fHx8 fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHwhISEhISEhISEhISEhISF+fn5+fn5+fn5+fn5+fn5+fn4K W0VPVF0KZmVhdGhlcnMjCg== --Boundary-00=_8EYUJqowLqIEGR2 Content-Type: text/plain; charset="iso-8859-1"; name="AMD64_USB2_PROLIFIC.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="AMD64_USB2_PROLIFIC.txt" feathers# cu -l /dev/cuaU0 -s 9600 cu: unsupported speed 9600 feathers# ugen5.2: at usbus5 uplcom0: on usbus5 usb2_com_attach_sub:317: tp = 0xffffff000864f000, unit = 0 usb2_com_attach_sub:336: ttycreate: U0 usb2_com_open:532: tp = 0xffffff000864f000 usb2_com_dtr:757: onoff = 1 usb2_com_rts:786: onoff = 1 usb2_com_break:728: onoff = 0 usb2_com_status_change:846: usb2_com_param:895: sc = 0xffffff005e146a78 usb2_com_dtr:757: onoff = 1 usb2_com_rts:786: onoff = 1 usb2_com_cfg_open:498: usb2_com_cfg_dtr:742: onoff=1 usb2_com_ioctl:627: cmd = 0x402c7413 usb2_com_ioctl:627: cmd = 0x802c7416 usb2_com_ioctl:627: cmd = 0x2000740d usb2_com_cfg_rts:768: onoff=1 usb2_com_ioctl:627: cmd = 0x402c7413 usb2_com_ioctl:627: cmd = 0x2000740e usb2_com_close:594: tp=0xffffff000864f000 usb2_com_shutdown:412: usb2_com_dtr:757: onoff = 0 usb2_com_rts:786: onoff = 1 usb2_com_cfg_break:713: onoff=0 usb2_com_cfg_dtr:742: onoff=1 usb2_com_cfg_dtr:742: onoff=0 usb2_com_cfg_rts:768: onoff=1 usb2_com_cfg_close:572: --Boundary-00=_8EYUJqowLqIEGR2 Content-Type: text/plain; charset="iso-8859-1"; name="AMD64_USB2_FTDI.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="AMD64_USB2_FTDI.txt" Dec 23 23:59:27 feathers kernel: ugen5.2: at usbus5 Dec 23 23:59:27 feathers kernel: uftdi0: on usbus5 ^C feathers# feathers# feathers# feathers# cu -l /dev/cuaU0 -s 9600 Connected ~ [EOT] feathers# feathers# --Boundary-00=_8EYUJqowLqIEGR2--