From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 06:49:37 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 565D82B1 for ; Sun, 13 Oct 2013 06:49:37 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id DAF9D255F for ; Sun, 13 Oct 2013 06:49:36 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 2E91D7A171; Sun, 13 Oct 2013 08:49:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 44A978F8D8A; Sun, 13 Oct 2013 08:50:00 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dj1KC4LPEXDm; Sun, 13 Oct 2013 08:49:59 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 7981F8F8D55; Sun, 13 Oct 2013 08:49:59 +0200 (CEST) Message-ID: <525A42CD.5020201@bitfrost.no> Date: Sun, 13 Oct 2013 08:50:53 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> In-Reply-To: <20131012190107.GA15100@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 06:49:37 -0000 On 10/12/13 21:01, Alexey Dokuchaev wrote: > On Sun, Oct 13, 2013 at 12:59:43AM +0700, Alexey Dokuchaev wrote: >> Two other iPhones have prodid of 0x1297, and attach messages indicate some >> problem: >> >> kernel: usbus4: port reset timeout >> kernel: uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT >> kernel: uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1 >> root: Unknown USB device: vendor 0x05ac product 0x1297 bus uhub4 >> kernel: ugen4.2: at usbus4 > > Perhaps this could give some clues: gphoto2 debug output excerpts: > > For "good" iPhone: > > ... > gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... > gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... > gphoto2-port-usb(1): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1). > gphoto2-port-usb(2): inep to look for is 81 > gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting > 0, idVendor ID 05ac, idProduct 12a0, inep 81, outep 02, intep 83 > gphoto2-abilities-list.c(2): Found 'USB PTP Class Camera' (0x6,0x1,0x1) > ... > > For "bad" iPhones: > > ... > gphoto2-port-usb(1): Looking for USB device (vendor 0x5ac, product 0x1297)... found. > gphoto2-port-usb(2): inep to look for is 81 > gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 > gphoto2-abilities-list.c(2): Found 'Apple iPhone 4 (PTP mode)' (0x5ac,0x1297) > ... > > HTH, > > ./danfe Hi, iPhones sometimes have multiple configurations. See: usbconfig -d X.Y dump_device_desc usbconfig -d X.Y set_config 1 usbconfig -d X.Y set_config 2 usbconfig -d X.Y set_config 3 PTP might not always be available from the first configuration. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 08:22:12 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 34ED7D0E for ; Sun, 13 Oct 2013 08:22:12 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D3839288C for ; Sun, 13 Oct 2013 08:22:11 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1VVGw0-00078Y-C7; Sun, 13 Oct 2013 15:22:01 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id r9D8MFeM074940; Sun, 13 Oct 2013 15:22:25 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id r9D8MASH074908; Sun, 13 Oct 2013 15:22:10 +0700 (NOVT) (envelope-from danfe) Date: Sun, 13 Oct 2013 15:22:10 +0700 From: Alexey Dokuchaev To: Hans Petter Selasky Subject: Re: iPhone 4(S) access via gphoto2 Message-ID: <20131013082210.GA65964@regency.nsu.ru> References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <525A42CD.5020201@bitfrost.no> User-Agent: Mutt/1.4.2.1i Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 08:22:12 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Oct 13, 2013 at 08:50:53AM +0200, Hans Petter Selasky wrote: > iPhones sometimes have multiple configurations. > > usbconfig -d X.Y dump_device_desc Dumping desc produced almost identical files (the only differences were in idProduct and iSerialNumber, quite expectedly). > usbconfig -d X.Y set_config 1 > usbconfig -d X.Y set_config 2 > usbconfig -d X.Y set_config 3 I presume I do not need to re-plug or otherwise re-init the phone after setting config, correct? (It seems I don't, asking just to make sure.) > PTP might not always be available from the first configuration. I've tried to play with set_config, but without much luck. However, I did dump_all_config_desc to discover that config index 2 (the one that is "PTP + Apple Mobile Device", with bInterfaceClass = 0x0006) is missing from the output for the "bad" iPhone (diff attached). Why is it missing? Is there any way to force/inject it into the stack? ./danfe --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="iphone_desc.diff" --- ok.all_config 2013-10-13 15:34:36.000000000 +0800 +++ bad.all_config 2013-10-13 15:35:04.000000000 +0800 @@ -203,92 +203,6 @@ - Configuration index 2 - - bLength = 0x0009 - bDescriptorType = 0x0002 - wTotalLength = 0x003e - bNumInterfaces = 0x0002 - bConfigurationValue = 0x0003 - iConfiguration = 0x0007 - bmAttributes = 0x00c0 - bMaxPower = 0x00fa - - Interface 0 - bLength = 0x0009 - bDescriptorType = 0x0004 - bInterfaceNumber = 0x0000 - bAlternateSetting = 0x0000 - bNumEndpoints = 0x0003 - bInterfaceClass = 0x0006 - bInterfaceSubClass = 0x0001 - bInterfaceProtocol = 0x0001 - iInterface = 0x0000 - - Endpoint 0 - bLength = 0x0007 - bDescriptorType = 0x0005 - bEndpointAddress = 0x0002 - bmAttributes = 0x0002 - wMaxPacketSize = 0x0200 - bInterval = 0x000a - bRefresh = 0x0000 - bSynchAddress = 0x0000 - - Endpoint 1 - bLength = 0x0007 - bDescriptorType = 0x0005 - bEndpointAddress = 0x0081 - bmAttributes = 0x0002 - wMaxPacketSize = 0x0200 - bInterval = 0x000a - bRefresh = 0x0000 - bSynchAddress = 0x0000 - - Endpoint 2 - bLength = 0x0007 - bDescriptorType = 0x0005 - bEndpointAddress = 0x0083 - bmAttributes = 0x0003 - wMaxPacketSize = 0x0040 - bInterval = 0x000a - bRefresh = 0x0000 - bSynchAddress = 0x0000 - - - Interface 1 - bLength = 0x0009 - bDescriptorType = 0x0004 - bInterfaceNumber = 0x0001 - bAlternateSetting = 0x0000 - bNumEndpoints = 0x0002 - bInterfaceClass = 0x00ff - bInterfaceSubClass = 0x00fe - bInterfaceProtocol = 0x0002 - iInterface = 0x0000 - - Endpoint 0 - bLength = 0x0007 - bDescriptorType = 0x0005 - bEndpointAddress = 0x0004 - bmAttributes = 0x0002 - wMaxPacketSize = 0x0200 - bInterval = 0x0000 - bRefresh = 0x0000 - bSynchAddress = 0x0000 - - Endpoint 1 - bLength = 0x0007 - bDescriptorType = 0x0005 - bEndpointAddress = 0x0085 - bmAttributes = 0x0002 - wMaxPacketSize = 0x0200 - bInterval = 0x0000 - bRefresh = 0x0000 - bSynchAddress = 0x0000 - - - Configuration index 3 bLength = 0x0009 --mP3DRpeJDSE+ciuQ-- From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 08:36:43 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B7BA6DA8 for ; Sun, 13 Oct 2013 08:36:43 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 449C028F2 for ; Sun, 13 Oct 2013 08:36:42 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 5A6F17A15B; Sun, 13 Oct 2013 10:36:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 9FED48EC6AC; Sun, 13 Oct 2013 10:37:05 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D1QfVFBRSF8A; Sun, 13 Oct 2013 10:37:04 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id BEB008EC6A3; Sun, 13 Oct 2013 10:37:04 +0200 (CEST) Message-ID: <525A5BE6.4050801@bitfrost.no> Date: Sun, 13 Oct 2013 10:37:58 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru> In-Reply-To: <20131013082210.GA65964@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 08:36:43 -0000 On 10/13/13 10:22, Alexey Dokuchaev wrote: > On Sun, Oct 13, 2013 at 08:50:53AM +0200, Hans Petter Selasky wrote: >> iPhones sometimes have multiple configurations. >> >> usbconfig -d X.Y dump_device_desc > > Dumping desc produced almost identical files (the only differences were in > idProduct and iSerialNumber, quite expectedly). > >> usbconfig -d X.Y set_config 1 >> usbconfig -d X.Y set_config 2 >> usbconfig -d X.Y set_config 3 > Hi, > I presume I do not need to re-plug or otherwise re-init the phone after > setting config, correct? (It seems I don't, asking just to make sure.) No need to re-plug. > >> PTP might not always be available from the first configuration. > > I've tried to play with set_config, but without much luck. However, I did > dump_all_config_desc to discover that config index 2 (the one that is "PTP > + Apple Mobile Device", with bInterfaceClass = 0x0006) is missing from the > output for the "bad" iPhone (diff attached). > > Why is it missing? Is there any way to force/inject it into the stack? You cannot force it. You might want to watch "usbdump -i usbusX -f Y -vvv -s 65536" while running the config descriptor dump for the broken device. Look for non-zero ERR= Might also be a corrupt USB descriptor, which the USB stack will reject. Would be interesting to know what the cause of this issue is. Are any of these iPhones JailBroken? --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 09:45:26 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6CBDA57A for ; Sun, 13 Oct 2013 09:45:26 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1969C2B3F for ; Sun, 13 Oct 2013 09:45:26 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.69) (envelope-from ) id 1VVIEe-0008Pb-Gh; Sun, 13 Oct 2013 16:45:21 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id r9D9jaug088164; Sun, 13 Oct 2013 16:45:46 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id r9D9jVc3088132; Sun, 13 Oct 2013 16:45:31 +0700 (NOVT) (envelope-from danfe) Date: Sun, 13 Oct 2013 16:45:30 +0700 From: Alexey Dokuchaev To: Hans Petter Selasky Subject: Re: iPhone 4(S) access via gphoto2 Message-ID: <20131013094530.GA85752@regency.nsu.ru> References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru> <525A5BE6.4050801@bitfrost.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <525A5BE6.4050801@bitfrost.no> User-Agent: Mutt/1.4.2.1i Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 09:45:26 -0000 On Sun, Oct 13, 2013 at 10:37:58AM +0200, Hans Petter Selasky wrote: > You might want to watch "usbdump -i usbusX -f Y -vvv -s 65536" > > while running the config descriptor dump for the broken device. Look for > non-zero ERR= Not much, only occasional timeouts (probably after I repeated usbconfig(8) too fast): # usbdump -i usbus4 -f 2 -vvv -s 65536 | grep ERR= | grep -v ERR=0 17:04:17.306156 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT > Might also be a corrupt USB descriptor, which the USB stack will reject. > > Would be interesting to know what the cause of this issue is. Are any of > these iPhones JailBroken? No, none of them are/were jailbroken. All dumps are available if you are interested. ./danfe From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 10:43:52 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E17F8E06 for ; Sun, 13 Oct 2013 10:43:52 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9CA2D27 for ; Sun, 13 Oct 2013 10:43:52 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 860F07A172; Sun, 13 Oct 2013 12:43:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id C4D948EBF9E; Sun, 13 Oct 2013 12:44:15 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ecbc8Tiy9pra; Sun, 13 Oct 2013 12:44:15 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 10B368EBF9B; Sun, 13 Oct 2013 12:44:15 +0200 (CEST) Message-ID: <525A79B5.5080700@bitfrost.no> Date: Sun, 13 Oct 2013 12:45:09 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru> <525A5BE6.4050801@bitfrost.no> <20131013094530.GA85752@regency.nsu.ru> In-Reply-To: <20131013094530.GA85752@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 10:43:52 -0000 On 10/13/13 11:45, Alexey Dokuchaev wrote: > # usbdump -i usbus4 -f 2 -vvv -s 65536 | grep ERR= | grep -v ERR=0 > 17:04:17.306156 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT Could you get the previous SUBMIT packet for this TIMEOUT, including verbose data dump. --HPS From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 15:39:15 2013 Return-Path: Delivered-To: usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A9140FA4 for ; Sun, 13 Oct 2013 15:39:15 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 380B02866 for ; Sun, 13 Oct 2013 15:39:11 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id EA0027A156; Sun, 13 Oct 2013 17:39:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 436158EC7DA; Sun, 13 Oct 2013 17:39:28 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dpvk0U2jjvjE; Sun, 13 Oct 2013 17:39:27 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 40D6B8EC741; Sun, 13 Oct 2013 17:39:27 +0200 (CEST) Message-ID: <525ABEE5.8030809@bitfrost.no> Date: Sun, 13 Oct 2013 17:40:21 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev , usb@FreeBSD.org Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru> <525A5BE6.4050801@bitfrost.no> <20131013094530.GA85752@regency.nsu.ru> <525A79B5.5080700@bitfrost.no> <20131013111518.GA3478@regency.nsu.ru> In-Reply-To: <20131013111518.GA3478@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 15:39:15 -0000 Hi, Your iPhone times out when reading the configuration descriptor: > 19:05:57.365047 usbus4.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 02 00 00 09 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 9 bytes > flags 0x10 > status 0xea1a3 > 19:05:57.365404 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=12,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 9 bytes > 0000 09 02 3E 00 02 03 07 C0 FA -- -- -- -- -- -- -- |..>...... | > flags 0x10 > status 0xca1a1 > 19:05:57.365412 usbus4.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 02 00 00 3E 00 -- -- -- -- -- -- -- -- |......>. | > frame[1] READ 62 bytes > flags 0x10 > status 0xca1a3 > 19:05:58.353453 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT > flags 0x10 > status 0xaa1a5 Subsequent reads of the configuration descriptor are successful. Probably a driver problem in the USB firmware stack of the iPhone. To figure out what is actually going on you need a USB analyzer connected to the USB cable. The problem you are seeing is probably timing dependant. BTW: You can add "options USB_REQ_DEBUG" to the kernel config file. Then you will get some more sysctls which affect the timing of control transfers under hw.usb. You can try contacting Apple about this. I'm sure if you hit the right guy, they will fix try to fix it. --HPS From owner-freebsd-usb@FreeBSD.ORG Mon Oct 14 11:06:57 2013 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B2D1457B for ; Mon, 14 Oct 2013 11:06:57 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9ECB32C98 for ; Mon, 14 Oct 2013 11:06:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9EB6vH8035381 for ; Mon, 14 Oct 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9EB6vZr035379 for freebsd-usb@FreeBSD.org; Mon, 14 Oct 2013 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 14 Oct 2013 11:06:57 GMT Message-Id: <201310141106.r9EB6vZr035379@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-usb@FreeBSD.org Subject: Current problem reports assigned to freebsd-usb@FreeBSD.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Oct 2013 11:06:57 -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/182936 usb [patch] [usbdevs] if_run update for Beklin F6D4050v2 o usb/182820 usb usbusX if destroy page fault panic o usb/182505 usb patch to update usb driver if_urtwn.c for new device o usb/182361 usb [panic] Suspend when using USB disc as root causes ker o usb/181987 usb USB isochronous transfer of the USB driver (Mentor Gra o usb/181425 usb USB keyboard with full N-key rollover not working o usb/181159 usb Problem attaching USB device o usb/180837 usb [scsi_da] [patch] Kingston DT 101 G2 usb stick quirk ( o usb/180726 usb XHCI umass support breaks between r248085 and r252560 o usb/180657 usb [PATCH] Filco Majestouch 2 keyboard recognized as keyb o usb/180617 usb New quirk (another member of Western Digital My Passpo o usb/180254 usb FreeBSD 9.1 on 384GB memory server o usb/180119 usb FreeBSD 9.1 umass driver does not correctly handle Pan o usb/179505 usb Kernel detaches Arduino Leonardo (and similar) board u o usb/179342 usb Freebsd 10.0-current USB 3.0 not working (xhci_do_coma o usb/179109 usb After detach USB Flash a keyboard does not work. o usb/179107 usb [usb] After detach USB Flash a keyboard does not work. o usb/178773 usb [usbdevs] [patch] Huawei E303 USB 3G modem support o usb/178771 usb [usbdevs] [patch] Western Digital My Passport HD o usb/178722 usb FreeBSD 9.1-STABLE r250561 breaks support for webcam L o usb/178267 usb [usb] USB causing interrupt storm on irq16 o usb/177897 usb [u3g][patch] add support for the Huawei E352 modem o usb/177896 usb man page for usb_quirk suggests adding device to kerne o usb/177895 usb similar 1TB Western Digital "My Passports" - some load o usb/177666 usb [usbdevs] [patch] Add support for Texas Instruments / o usb/176913 usb [ehci] High interrupt load with ehci o usb/176841 usb [umass] Sony DSC-H2 USB connection fails o usb/176417 usb [xhci][cam][umass] kernelpanic while removing plugged o usb/175731 usb detaching USB keyboard freezes other USB keyboards o usb/175639 usb not detect usb netcard D-LINK DUB-E100 rev C1 o usb/175599 usb [usbdevs][patch]Liebert UPS PSI1000 being assigned uhi o usb/175551 usb Seagate 2TB USB extern hard disk have errors with Free o usb/175379 usb usb card-reader problem o usb/175302 usb don't mount virtual driver CD for my phone o usb/174963 usb buffalo wli-uc-gn wireless card sometimes unusable and o usb/174835 usb uaudio fails to create pcm/dsp device file o usb/174814 usb [PATCH] support for MiFi 2200 o usb/174695 usb usb keeps disconnecting mouse or keyboard o usb/174575 usb Interrupt storm error on startup o usb/174464 usb clone MAC address(es) on usb networks cdce(4) && ue[0- o usb/174254 usb MIDI keyboard not recognised o usb/173722 usb [xhci] xhci driver bug after suspend to RAM (ACPI S3 m o usb/173616 usb LG USB DVD-RW USB STALL o usb/173182 usb usbus appears as a network device o usb/172937 usb FreeBSD 9.1-RC2 usb3 port disconnects o usb/172633 usb Sony Cybershot not recognized as USB mem stick o usb/172199 usb [xhci] high interrupts load xhci o usb/171354 usb [umass] Medium not present error on flash drive [regre o usb/171262 usb plug in sdhc via usb reader reboots machine o usb/171197 usb ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1 o usb/170699 usb FreeBSD 9.0 Doesn't list HDD or its partitions in part o usb/170688 usb patch][usbdevs][wlan] Patch for ASUS Black Diamond USB o usb/170606 usb r239222 kernel panic at boot - usb locking issue o usb/170358 usb [ums] Wrong (duplicate) button numbers o usb/170123 usb [umass] HP v210w USB stick not supported o usb/169935 usb [keyboard] Unable use USB keyboard while panic o usb/169789 usb [u3g] [patch] add support for huawei e3131 o usb/169461 usb [ugen] USB2 high-speed device detected as full speed o usb/169428 usb [ugen] ugen not detecting all endpoints on device [reg o usb/168551 usb [umass] Issues with embedded card reader (Laptop ASUS o usb/168132 usb [umass] MATSHITA memory card size reported wrong, moun o usb/167847 usb [ural] dlink dwl-122g e crashes(?) when trying wap2 cr o usb/167001 usb [USB] [PATCH] add support for Smart G2 64MB memory key o usb/165815 usb [usbdevs] [patch] add k3772z 3g modem support o usb/165163 usb [keyboard] The USB RF keyboard and mouse become non-re o usb/164058 usb [umass] Lexar 8GB USB flash drive doesn't work by defa f usb/163328 usb [usb] Support for Atheros USB abgn devices o kern/163091 usb [panic] Fatal trap 12: page fault while in kernel mode f usb/162306 usb usb devices cant get address asignation, no memories, o usb/162054 usb usbdump just hangs on 9.0-RC1 f usb/161793 usb poor EHCI usb2 i/o performance o usb/160436 usb ucom wedges machine on parity error ? o usb/160299 usb MicroSDHC-to-USB adapters do not work in FreeBSD 8.x o usb/160192 usb [install] Installation from USB-Stick doesn't find the o usb/159274 usb USB 3.0 Etron EJ168A does not work. f usb/159191 usb [fusefs-ntfs] write on fusefs-ntfs mounted partition r o usb/157376 usb LaCie USB disk not recognized o usb/157074 usb [boot] [usb8] vfs_mountroot_ask is called when no usb o usb/156898 usb [keyboard] usb keyboard does not work while boot (ps2 f usb/156735 usb Need Quirk for Goflex USB Disk Drives o usb/156726 usb [snd_uaudio]: snd_uaudio(4) fails to detach when mixer o usb/156725 usb USB stack stall cause complete system input loss o usb/156596 usb [ehci] Extremely high interrupt rate on ehci/uhci IRQ1 o usb/156000 usb rum(4) Fatal trap 18: integer divide fault while in ke f usb/155996 usb NanoBSD not booted as Disk o usb/155784 usb Problem with Transcend StoreJet 25M3 (2AJ1) on Asus M2 o usb/155663 usb [usbdevs] [patch] Add support for Supertop Nano 1GB US o usb/154753 usb [usbdevs] [patch] Support for Qualcomm USB modem/stora o usb/154506 usb [umass] Copying dir with large files makes FreeBSD loa o usb/154192 usb [umass] In Garmin Oregon GPS, only the first umass dev o i386/153851 usb [keyboard] keyboard issues on new Intel Mother boards. o usb/153703 usb [keyboard] My USB keyboard can not be used in 8-STABLE o usb/153609 usb [zyd] [panic] kernel: Fatal trap 12: page fault while f kern/153514 usb [cam] [panic] CAM related panic o usb/153149 usb [umass] USB stick quirk regression [regression] o usb/152075 usb [usb8] [ehci] [request] Add quirk for CS5536 USB o usb/150892 usb [zyd] Whenever network contacted in any shape, way or o usb/150189 usb [run] [usb8] [patch] if_run appears to corrupt IP traf p usb/149764 usb [u3g] [patch] usbdevs update: Huawei K3765 3G modem o usb/149283 usb [uftdi] avrdude unable to talk to Arduino board (via u o usb/149162 usb [ural] ASUS WL-167g doesn't work in 8.1 (continue of 1 s usb/148702 usb [usb8] [request] IO DATA USB-RSAQ5 support on FreeBSD- o usb/148080 usb usbconfig(8) sometimes does not turn off the device o i386/147475 usb [install] FreeBSD 8.x does not install on ASUS K8N4-E o usb/146840 usb [hang] FreeBSD 7.2 / 7.3 / 8.0 hang at startup after e o usb/146153 usb [axe] [usb8] Hosts in network doesn't receive any pack f usb/146054 usb [urtw] [usb8] urtw driver potentially out of date f usb/145513 usb [usb8] New USB stack: no new devices after forced usb p usb/145455 usb [usb8] [patch] USB debug support cannot be disabled o usb/145415 usb [umass] [usb8] USB card reader does not create slices a usb/145184 usb GENERIC can't mount root from USB on Asus EEE o usb/145165 usb [keyboard] [usb8] ukbd_set_leds_callback: error=USB_ER f kern/144938 usb [keyboard] [boot] Boot Failure with Apple (MB869LL/A) o usb/144387 usb [run] [panic] if_run panic o usb/144043 usb [umass] [usb8] USB DLT tape drive throws random errors a usb/143790 usb [boot] [cam] can not boot from usb hdd f usb/143620 usb [cdce] [usb8] the module if_cdce doesn't support my Op f usb/143294 usb [usb8] copying process stops at some time (10 - 50 sec o usb/143286 usb [ukbd] [usb8] [boot] boot failures on RELENG_8 system p usb/143186 usb [usbdevs] [usb8] [patch] add USB device IDs for Google a usb/143139 usb [umass] [usb8] [patch] Quirk for Century EX35SW4_SB4 J p usb/143045 usb [umass] [usb8] [patch] mounting Fujitsu 2600Z camera d f usb/142989 usb [usb8] canon eos 50D attaches but detaches after few s f usb/142957 usb [umass] [usb8] [patch] patch for USB disk SYNCHRONIZE o usb/142719 usb [urtw] [usb8] AirLive WL-1600USB (RTL8187L chipset) fa f usb/142276 usb [umass] [usb8] Cache Synchronization Error with Olympu o usb/142229 usb [ums] [usb8] [hang] connecting a USB mouse to a Dell P f usb/141680 usb [uath] [usb8] Netgear WG111T not working with uath dri o usb/141664 usb [pcm] [usb8] Logitech USB microphone failure [regressi o usb/141474 usb [boot] [usb8] FreeBSD 8.0 can not install from USB CDR o usb/141212 usb [ukbd] [usb8] ukbd_set_leds_callback:700: error=USB_ER o kern/141011 usb [usb8] Encrypted root, geli password at boot; enter ke o usb/140920 usb [install] [usb8] USB based install fails on 8.0-RELEAS o usb/140893 usb [urtw] [usb8] WPA2 not working on rtl8187b o kern/140849 usb [ums] [usb8] USB mouse doesn't work under FreeBSD 8.0- a usb/140810 usb [uftdi] [usb8] 8.X copy and paste problem / tty overfl o usb/140477 usb [umass] [usb8] [patch] allow boot-time attachment of d o usb/140236 usb [msdosfs] [usb8] Labels wiped on external Journaled US o usb/140160 usb [usb8] [acpi] USB ports are no longer "active" after A o usb/138798 usb [boot] [usb8] 8.0-BETA4 can't boot from USB flash driv o usb/138659 usb [usb8][uftdi] driver broken in RELENG_8/CURRENT o kern/138292 usb [zyd] [usb8] "zyd0: device timeout" with ZyXEL G-202 o usb/138124 usb [snd_uaudio] [usb8] Axed uaudio functionality in the u o usb/137377 usb [usb8] request support for Huawei E180 o usb/137341 usb [usb8][rum] driver if_rum doesn't work at all and thro f usb/137190 usb [usb8][patch] inhibit spurious button releases for som o usb/137189 usb [usb8][patch] create and use sysctl nodes for HID repo p usb/137188 usb [usb8][patch] correctly handle USB report descriptors o usb/137129 usb [ums] [usb8] SteelSeries Ikari USB laser mouse not att o usb/135542 usb [keyboard] boot loader does not work with a usb keyboa o usb/135206 usb machine reboots when inserted USB device f usb/135200 usb SAMSUNG i740 usb mass: Synchronize cache failed, statu o usb/134950 usb Lowering DTR for USB-modem via ubsa is not possible o usb/134299 usb Kernel Panic plugging in MF626 USB UMTS Stick u3g o usb/134193 usb System freeze on usb MP3 player insertion o usb/134085 usb [umass] [patch] Adding usb quirk for Sony USB flash dr o usb/133989 usb [usb8] [ukbd] USB keyboard dead at mountroot> prompt o usb/133712 usb [ural] [patch] RE: Fixed an issue with ural(4) that wa o usb/133390 usb umass crashes system in 7.1 when Olympus D-540 attache o usb/133296 usb [rum] driver not working properly in hostap mode o usb/132594 usb USB subsystem causes page fault and crashes o usb/132080 usb [patch] [usb] [rum] [panic] Kernel panic after NOMEM c o usb/132066 usb [ukbd] Keyboard failure USB keyboard DELL 760 o usb/132036 usb [panic] page fault when connecting Olympus C740 camera o usb/131583 usb [umass] Failure when detaching umass Device o usb/131576 usb [aue] ADMtek USB To LAN Converter can't send data o usb/131521 usb Registering Belkin UPS to usb_quirks.c o usb/131074 usb no run-time detection of usb devices plugged into exte o usb/130736 usb Page fault unplugging USB stick o usb/130208 usb Boot process severely hampered by umass0 error o usb/130122 usb [usb8] DVD drive detects as 'da' device f usb/129766 usb [usb] [panic] plugging in usb modem HUAWEI E226 panics o usb/129500 usb [umass] [panic] FreeBSD Crashes when connecting SanDis o usb/129311 usb [usb] [panic] Instant crash with an USB card reader f usb/128745 usb [zyd] zyd theoretically supported usb device makes ker o usb/128485 usb [umodem] [patch] Nokia N80 modem support o usb/128425 usb [umass] Cannot Connect Maxtor Onetouch 4 USB drive o usb/128418 usb [panic] [rum] loading if_rum causes panic, looks like o usb/127926 usb [boot] USB Timeout during bootup o usb/127342 usb [boot] [panic] enabling usb keyboard and mouse support o usb/127248 usb [ucom] panic while uplcom devices attach and detach o usb/126884 usb [ugen] [patch] Bug in buffer handling in ugen.c o usb/126848 usb [usb]: USB Keyboard hangs during Installation o usb/126740 usb [ulpt] doesn't work on 7.0-RELEASE, 10 second stall be o usb/126519 usb [usb] [panic] panic when plugging in an iphone o kern/126396 usb [panic] kernel panic after unplug USB Bluetooth device o usb/125631 usb [ums] [panic] kernel panic during bootup while 'Logite o usb/125510 usb [panic] repeated plug and unplug of USB mass storage d f usb/125450 usb [panic] Removing USB flash card while being accessed c o usb/125088 usb [keyboard] Touchpad not detected on Adesso AKB-430UG U o usb/124980 usb [panic] kernel panic on detaching unmounted umass devi o kern/124777 usb [ucom] USB cua devices don't revert to tty devices whe o usb/124758 usb [rum] [panic] rum panics SMP kernel o usb/124708 usb [panic] Kernel panic on USB KVM reattach o kern/124130 usb [usb] gmirror fails to start usb devices that were pre o usb/123969 usb [usb] Supermicro H8SMi-2 usb problem: port reset faile o usb/123714 usb [usb] [panic] Panic when hald-storage-probe runs with o usb/123691 usb usbd(8): usbd hangs o usb/123690 usb [usb] [panic] Panic on USB device insertion when usb l o usb/123611 usb [usb] BBB reset failed, STALLED from Imation/Mitsumi U o usb/122992 usb [umass] [patch] MotoROKR Z6 Phone not recognised by um o usb/122936 usb [ucom] [ubsa] Device does not receive interrupt o usb/122905 usb [ubsa] [patch] add Huawei E220 to ubsa o usb/122547 usb [ehci] USB Printer not being recognized after reboot o usb/122539 usb [ohci] [panic] AnyDATA ADU-E1000D - kernel panic: ohci o usb/122483 usb [panic] [ulpt] Repeatable panic in 7.0-STABLE o usb/122119 usb [umass] umass device causes creation of daX but not da o usb/121734 usb [ugen] ugen HP1022 printer device not working since up o usb/121708 usb [keyboard] nforce 650i mobo w/ usb keyboard infinite k o usb/121275 usb [boot] [panic] FreeBSD fails to boot with usb legacy s o usb/121169 usb [umass] Issues with usb mp3 player o usb/121045 usb [uftdi] [patch] Add support for PC-OP-RS1 and KURO-RS f usb/120786 usb [usb] [panic] Kernel panic when forced umount of a det o usb/120729 usb [panic] fault while in kernel mode with connecting USB o conf/120406 usb [devd] [patch] Handle newly attached pcm devices (eg. o usb/120321 usb [hang] System hangs when transferring data to WD MyBoo o usb/120283 usb [panic] Automation reboot with wireless keyboard & mou o usb/120034 usb [hang] 6.2 & 6.3 hangs on boot at usb0: OHCI with 1.5 o usb/119977 usb [ums] Mouse does not work in a Cherry-USB keyboard/mou o usb/119653 usb [cam] [patch] iriver s7 player sync cache error patch o usb/119633 usb [umass] umass0: BBB reset failed, IOERROR [regression] o usb/119509 usb [usb] USB flaky on Dell Optiplex 755 o usb/119389 usb [umass] Sony DSC-W1 CBI reset failed, STALLED [regress o usb/119227 usb [ubsa] [patch] ubsa buffer is too small; should be tun o usb/118480 usb [umass] Timeout in USB mass storage freezes vfs layer o usb/118353 usb [panic] [ppp] repeatable kernel panic during ppp(4) se o usb/118141 usb [ucom] usb serial and nokia phones ucomreadcb ucomread o usb/118140 usb [ucom] [patch] quick hack for ucom to get it behave wi o usb/118098 usb [umass] 6th gen iPod causes problems when disconnectin o usb/117955 usb [umass] [panic] inserting minolta dimage a2 crashes OS o usb/117946 usb [panic] D-Link DUB-E100 rev. B1 crashes FreeBSD 7.0-BE o usb/117938 usb [ums] [patch] Adding support for MS WL Natural and MS o usb/117911 usb [ums] [request] Mouse Gembird MUSWC not work o usb/117893 usb [umass] Lacie USB DVD writing failing o usb/117613 usb [uhci] [irq] uhci interrupt storm & USB leaked memory o usb/117598 usb [snd_uaudio] [patch] Not possible to record with Plant o usb/117313 usb [umass] [panic] panic on usb camera insertion o usb/117183 usb [panic] USB/fusefs -- panic while transferring large a f usb/117150 usb [zyd] usb zyd device under moderate load panics system o usb/116561 usb [umodem] [panic] RELENG_6 umodem panic "trying to slee o usb/116282 usb [ulpt] Cannot print on USB HP LJ1018 or LJ1300 o usb/115935 usb [usbdevs] [patch] kernel counterproductively attaches o usb/115400 usb [ehci] Problem with EHCI on ASUS M2N4-SLI o usb/115298 usb [ulpt] [panic] Turning off USB printer panics kernel o usb/114916 usb [umass] [patch] USB Maxtor drive (L300RO) requires qui o kern/114780 usb [uplcom] [panic] Panics while stress testing the uplco o usb/114682 usb [umass] generic USB media-card reader unusable o usb/114310 usb [libusb] [patch] [panic] USB hub attachment panics ker o conf/114013 usb [patch] WITHOUT_USB allow to compil a lot of USB stuff o usb/99431 usb [keyboard] FreeBSD on MSI 6566E (Intel 845E motherboar o usb/98343 usb [boot] BBB reset failed errors with Creative Muvo MP3 o usb/97472 usb [cam] [patch] add support for Olympus C150,D390 s usb/97286 usb [mouse] [request] MS Wireless Intellimouse Explorer 2. o usb/97175 usb [umass] [hang] USB cardreader hangs system o usb/96457 usb [umass] [panic] fatback on umass = reboot o usb/96224 usb [usb] [msdosfs] mount_msdosfs cause page fault in sync s usb/96120 usb [ums] [request] USB mouse not always detected s usb/95636 usb [umass] [boot] 5 minute delay at boot when using VT620 o usb/95562 usb [umass] Write Stress in USB Mass drive causes "vinvalb o usb/95037 usb [umass] USB disk not recognized on hot-plug. o usb/94897 usb [panic] Kernel Panic when cleanly unmounting USB disk o usb/94717 usb [ulpt] Reading from /dev/ulpt can break work of a UHCI o usb/94384 usb [panic] kernel panic with usb2 hardware o usb/93828 usb [ohci] [panic] ohci causes panic on boot (HP Pavillion o usb/93389 usb [umass] [patch] Digital Camera Pentax S60 don't work o usb/92852 usb [ums] [patch] Vertical scroll not working properly on o usb/92171 usb [panic] panic unplugging Vodafone Mobile Connect (UMTS o usb/92142 usb [uhub] SET_ADDR_FAILED and SHORT_XFER errors from usb o usb/92083 usb [ural] [panic] panic using WPA on ural NIC in 6.0-RELE o usb/92052 usb [ulpt] usbd causes defunct process with busy file-hand o usb/91906 usb [ehci] [hang] FreeBSD hangs while booting with USB leg f usb/91896 usb camcontrol(8): Serial Number of USB Memory Sticks is n o usb/91811 usb [umass] Compact Flash in HP Photosmart 2610 return " o usb/91546 usb [umodem] [patch] Nokia 6630 mobile phone does not work o usb/91538 usb [ulpt] [patch] Unable to print to EPSON CX3500 o usb/91283 usb [boot] [regression] booting very slow with usb devices o usb/91238 usb [umass] USB tape unit fails to write a second tape fil o usb/90700 usb [umass] [panic] Kernel panic on connect/mount/use umas o usb/89954 usb [umass] [panic] USB Disk driver race condition? o usb/88743 usb [hang] [regression] USB makes kernel hang at boot (reg o usb/88408 usb [axe] axe0 read PHY failed o usb/87648 usb [mouse] Logitech USB-optical mouse problem. f usb/87224 usb [usb] Cannot mount USB Zip750 o usb/86767 usb [umass] [patch] bogus "slice starts beyond end of the o usb/86298 usb [mouse] Known good USB mouse won't work with correct s s usb/85067 usb [uscanner] Cannot attach ScanJet 4300C to usb device o usb/83977 usb [ucom] [panic] ucom1: open bulk out error (addr 2): IN o usb/83863 usb [ugen] Communication problem between opensc/openct via o usb/83756 usb [ums] [patch] Microsoft Intellimouse Explorer 4.0A doe o usb/83504 usb [kernel] [patch] SpeedTouch USB stop working on recent o usb/82520 usb [udbp] [reboot] Reboot when USL101 connected o usb/82350 usb [ucom] [panic] null pointer dereference in USB stack o usb/81621 usb [ehci] [hang] external hd hangs under load on ehci o usb/80935 usb [uvisor] [patch] uvisor.c is not work with CLIE TH55. s usb/80777 usb [request] usb_rem_task() should wait for callback to c s usb/80776 usb [udav] [request] UDAV device driver shouldn't use usb_ o usb/80774 usb [patch] have "usbd_find_desc" in line with the other " o usb/80361 usb [umass] [patch] mounting of Dell usb-stick fails f usb/80040 usb [sound] [hang] Use of sound mixer causes system freeze o usb/79723 usb [usb] [request] prepare for high speed isochronous tra o usb/78984 usb [umass] [patch] Creative MUVO umass failure o usb/76653 usb [umass] [patch] Problem with Asahi Optical usb device s usb/75928 usb [umass] [request] Cytronix SmartMedia card (SMC) reade o usb/75800 usb [ucom] ucom1: init failed STALLED error in time of syn o usb/75764 usb [umass] [patch] "umass0: Phase Error" - no device for s usb/74453 usb [umass] [patch] Q-lity CD-RW USB ECW-043 (ScanLogic SL o usb/74211 usb [umass] USB flash drive causes CAM status 0x4 on 4.10R o usb/71417 usb [ugen] Cryptoflex e-gate USB token (ugen0) communicati o usb/71416 usb [ugen] Cryptoflex e-gate USB token (ugen0) detach is n o usb/71280 usb [aue] aue0 device (linksys usb100tx) doesn't work in 1 o usb/71155 usb [ulpt] misbehaving usb-printer hangs processes, causes o usb/69006 usb [usbdevs] [patch] Apple Cinema Display hangs USB ports o usb/67301 usb [uftdi] [panic] RTS and system panic o usb/66547 usb [ucom] Palm Tungsten T USB does not initialize correct s usb/62257 usb [umass] [request] card reader UCR-61S2B is only half-s s usb/52026 usb [new driver] [request] umass driver support for InSyst 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 319 problems total. From owner-freebsd-usb@FreeBSD.ORG Tue Oct 15 06:30:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8FFDC839 for ; Tue, 15 Oct 2013 06:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7E3D9254D for ; Tue, 15 Oct 2013 06:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9F6U1Ps003100 for ; Tue, 15 Oct 2013 06:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9F6U1uH003099; Tue, 15 Oct 2013 06:30:01 GMT (envelope-from gnats) Date: Tue, 15 Oct 2013 06:30:01 GMT Message-Id: <201310150630.r9F6U1uH003099@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/182936: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 06:30:01 -0000 The following reply was made to PR usb/182936; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/182936: commit references a PR Date: Tue, 15 Oct 2013 06:24:01 +0000 (UTC) Author: hselasky Date: Tue Oct 15 06:23:54 2013 New Revision: 256500 URL: http://svnweb.freebsd.org/changeset/base/256500 Log: Add new USB ID. PR: usb/182936 Submitted by: Keith White MFC after: 1 week Modified: head/sys/dev/usb/usbdevs head/sys/dev/usb/wlan/if_run.c Modified: head/sys/dev/usb/usbdevs ============================================================================== --- head/sys/dev/usb/usbdevs Tue Oct 15 05:50:02 2013 (r256499) +++ head/sys/dev/usb/usbdevs Tue Oct 15 06:23:54 2013 (r256500) @@ -1259,6 +1259,7 @@ product BELKIN F5D8055V2 0x825b F5D8055 product BELKIN F5D9050V3 0x905b F5D9050 ver 3 Wireless Adapter product BELKIN2 F5U002 0x0002 F5U002 Parallel printer product BELKIN F6D4050V1 0x935a F6D4050 v1 +product BELKIN F6D4050V2 0x935b F6D4050 v2 /* Billionton products */ product BILLIONTON USB100 0x0986 USB100N 10/100 FastEthernet Modified: head/sys/dev/usb/wlan/if_run.c ============================================================================== --- head/sys/dev/usb/wlan/if_run.c Tue Oct 15 05:50:02 2013 (r256499) +++ head/sys/dev/usb/wlan/if_run.c Tue Oct 15 06:23:54 2013 (r256500) @@ -147,6 +147,7 @@ static const STRUCT_USB_HOST_ID run_devs RUN_DEV(BELKIN, F5D8055), RUN_DEV(BELKIN, F5D8055V2), RUN_DEV(BELKIN, F6D4050V1), + RUN_DEV(BELKIN, F6D4050V2), RUN_DEV(BELKIN, RT2870_1), RUN_DEV(BELKIN, RT2870_2), RUN_DEV(CISCOLINKSYS, AE1000), _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Oct 15 07:10:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EFF644F6 for ; Tue, 15 Oct 2013 07:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DCCE327AD for ; Tue, 15 Oct 2013 07:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9F7A1wS017014 for ; Tue, 15 Oct 2013 07:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9F7A1bv017013; Tue, 15 Oct 2013 07:10:01 GMT (envelope-from gnats) Date: Tue, 15 Oct 2013 07:10:01 GMT Message-Id: <201310150710.r9F7A1bv017013@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: Hans Petter Selasky Subject: Re: usb/181987: USB isochronous transfer of the USB driver (Mentor Graphics OTG: musb_otg) is not working. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Hans Petter Selasky List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 07:10:02 -0000 The following reply was made to PR usb/181987; it has been noted by GNATS. From: Hans Petter Selasky To: SAITOU Toshihide Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: usb/181987: USB isochronous transfer of the USB driver (Mentor Graphics OTG: musb_otg) is not working. Date: Tue, 15 Oct 2013 09:05:26 +0200 This is a multi-part message in MIME format. --------------090607060603090803000207 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 09/10/13 13:01, SAITOU Toshihide wrote: > >> Number: 181987 >> Category: usb >> Synopsis: USB isochronous transfer of the USB driver (Mentor Graphics OTG: musb_otg) is not working. >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-usb >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Tue Sep 10 11:10:00 UTC 2013 >> Closed-Date: >> Last-Modified: >> Originator: SAITOU Toshihide >> Release: FreeBSD 10.0-CURRENT >> Organization: >> Environment: > FreeBSD bbb 10.0-CURRENT FreeBSD 10.0-CURRENT #1: Mon Sep 9 23:34:15 JST 2013 toshi@fbsd:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm > >> Description: > The patch attached is somewhat fixed the problem for the > LOGICOOL C920 but still most UVC devices are not working. > > My guess is that the not working device requires three > transactions per *microframe* for the data transfer rate as > the video streaming but the current driver performs one > transaction per microframe. The following page imply the > existence of the undocumented setting to perform so. > http://e2e.ti.com/support/embedded/wince/f/353/t/68966.aspx > >> How-To-Repeat: > >> Fix: > > >> 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" > Hi, Can you please test the attached patch and report back? --HPS --------------090607060603090803000207 Content-Type: text/x-patch; name="musb.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="musb.diff" === sys/dev/usb/controller/musb_otg.c ================================================================== --- sys/dev/usb/controller/musb_otg.c (revision 256504) +++ sys/dev/usb/controller/musb_otg.c (local) @@ -646,8 +646,8 @@ count = MUSB2_READ_2(sc, MUSB2_REG_RXCOUNT); /* verify the packet byte count */ - if (count != td->max_frame_size) { - if (count < td->max_frame_size) { + if (count != td->max_packet_size) { + if (count < td->max_packet_size) { /* we have a short packet */ td->short_pkt = 1; got_short = 1; @@ -775,7 +775,7 @@ if (csr & MUSB2_MASK_CSR0L_TXPKTRDY) { return (1); /* not complete */ } - count = td->max_frame_size; + count = td->max_packet_size; if (td->remainder < count) { /* we have a short packet */ td->short_pkt = 1; @@ -936,8 +936,8 @@ count = MUSB2_READ_2(sc, MUSB2_REG_RXCOUNT); /* verify the packet byte count */ - if (count != td->max_frame_size) { - if (count < td->max_frame_size) { + if (count != td->max_packet_size) { + if (count < td->max_packet_size) { /* we have a short packet */ td->short_pkt = 1; got_short = 1; @@ -1126,7 +1126,7 @@ } /* check for short packet */ - count = td->max_frame_size; + count = td->max_packet_size; if (td->remainder < count) { /* we have a short packet */ td->short_pkt = 1; @@ -1453,8 +1453,8 @@ /* * Check for short or invalid packet: */ - if (count != td->max_frame_size) { - if (count < td->max_frame_size) { + if (count != td->max_packet_size) { + if (count < td->max_packet_size) { /* we have a short packet */ td->short_pkt = 1; got_short = 1; @@ -1592,7 +1592,7 @@ return (1); /* not complete */ } /* check for short packet */ - count = td->max_frame_size; + count = td->max_packet_size; if (td->remainder < count) { /* we have a short packet */ td->short_pkt = 1; @@ -1661,7 +1661,8 @@ } /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_TXMAXP, td->max_packet_size | + ((td->max_packet_count - 1) << 11)); /* write command */ MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, @@ -1726,13 +1727,17 @@ td->hport); /* RX NAK timeout */ - MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, MAX_NAK_TO); + if (td->transfer_type & MUSB2_MASK_TI_PROTO_ISOC) + MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, 0); + else + MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, MAX_NAK_TO); /* Protocol, speed, device endpoint */ MUSB2_WRITE_1(sc, MUSB2_REG_RXTI, td->transfer_type); /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_RXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_RXMAXP, td->max_packet_size | + ((td->max_packet_count - 1) << 11)); /* Data Toggle */ csrh = MUSB2_READ_1(sc, MUSB2_REG_RXCSRH); @@ -1797,8 +1802,8 @@ /* * Check for short or invalid packet: */ - if (count != td->max_frame_size) { - if (count < td->max_frame_size) { + if (count != td->max_packet_size) { + if (count < td->max_packet_size) { /* we have a short packet */ td->short_pkt = 1; got_short = 1; @@ -1938,7 +1943,7 @@ return (0); /* complete */ } - if (csr & MUSB2_MASK_CSRL_TXNAKTO ) { + if (csr & MUSB2_MASK_CSRL_TXNAKTO) { /* * Flush TX FIFO before clearing NAK TO */ @@ -1989,7 +1994,7 @@ } /* check for short packet */ - count = td->max_frame_size; + count = td->max_packet_size; if (td->remainder < count) { /* we have a short packet */ td->short_pkt = 1; @@ -2069,13 +2074,17 @@ td->hport); /* TX NAK timeout */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, MAX_NAK_TO); + if (td->transfer_type & MUSB2_MASK_TI_PROTO_ISOC) + MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, 0); + else + MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, MAX_NAK_TO); /* Protocol, speed, device endpoint */ MUSB2_WRITE_1(sc, MUSB2_REG_TXTI, td->transfer_type); /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_TXMAXP, td->max_packet_size | + ((td->max_packet_count - 1) << 11)); if (!td->transaction_started) { csrh = MUSB2_READ_1(sc, MUSB2_REG_TXCSRH); @@ -2444,7 +2453,6 @@ } temp.transfer_type |= ep_no; - td->max_packet = xfer->max_packet_size; td->toggle = xfer->endpoint->toggle_next; } @@ -2534,7 +2542,8 @@ /* regular data transfer */ - temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; + temp.short_pkt = ((!xfer->flags_int.isochronous_xfr) && + xfer->flags.force_short_xfer) ? 0 : 1; } musbotg_setup_standard_chain_sub(&temp); @@ -3158,7 +3167,12 @@ if (dynfifo) { if (frx && (temp <= nrx)) { - if (temp < 8) { + if (temp == 1) { + frx = 12; /* 4K */ + MUSB2_WRITE_1(sc, MUSB2_REG_RXFIFOSZ, + MUSB2_VAL_FIFOSZ_4096 | + MUSB2_MASK_FIFODB); + } else if (temp < 8) { frx = 10; /* 1K */ MUSB2_WRITE_1(sc, MUSB2_REG_RXFIFOSZ, MUSB2_VAL_FIFOSZ_512 | @@ -3175,7 +3189,12 @@ offset += (1 << frx); } if (ftx && (temp <= ntx)) { - if (temp < 8) { + if (temp == 1) { + ftx = 12; /* 4K */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXFIFOSZ, + MUSB2_VAL_FIFOSZ_4096 | + MUSB2_MASK_FIFODB); + } else if (temp < 8) { ftx = 10; /* 1K */ MUSB2_WRITE_1(sc, MUSB2_REG_TXFIFOSZ, MUSB2_VAL_FIFOSZ_512 | @@ -4042,7 +4061,7 @@ * reasonable dummies: */ parm->hc_max_packet_size = 0x400; - parm->hc_max_frame_size = 0x400; + parm->hc_max_frame_size = 0xc00; if ((parm->methods == &musbotg_device_isoc_methods) || (parm->methods == &musbotg_device_intr_methods)) @@ -4116,7 +4135,8 @@ td = USB_ADD_BYTES(parm->buf, parm->size[0]); /* init TD */ - td->max_frame_size = xfer->max_frame_size; + td->max_packet_size = xfer->max_packet_size; + td->max_packet_count = xfer->max_packet_count; td->ep_no = ep_no; td->obj_next = last_obj; === sys/dev/usb/controller/musb_otg.h ================================================================== --- sys/dev/usb/controller/musb_otg.h (revision 256504) +++ sys/dev/usb/controller/musb_otg.h (local) @@ -315,10 +315,10 @@ struct usb_page_cache *pc; uint32_t offset; uint32_t remainder; - uint16_t max_frame_size; /* packet_size * mult */ + uint16_t max_packet_size; uint8_t ep_no; uint8_t transfer_type; - uint8_t max_packet; + uint8_t max_packet_count; uint8_t error:1; uint8_t alt_next:1; uint8_t short_pkt:1; --------------090607060603090803000207-- From owner-freebsd-usb@FreeBSD.ORG Tue Oct 15 13:20:02 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 72657BD3 for ; Tue, 15 Oct 2013 13:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 50C592285 for ; Tue, 15 Oct 2013 13:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9FDK1gi030542 for ; Tue, 15 Oct 2013 13:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9FDK197030541; Tue, 15 Oct 2013 13:20:01 GMT (envelope-from gnats) Date: Tue, 15 Oct 2013 13:20:01 GMT Message-Id: <201310151320.r9FDK197030541@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: SAITOU Toshihide Subject: Re: usb/181987: USB isochronous transfer of the USB driver (Mentor Graphics OTG: musb_otg) is not working. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: SAITOU Toshihide List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 13:20:02 -0000 The following reply was made to PR usb/181987; it has been noted by GNATS. From: SAITOU Toshihide To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: usb/181987: USB isochronous transfer of the USB driver (Mentor Graphics OTG: musb_otg) is not working. Date: Tue, 15 Oct 2013 22:17:17 +0900 (JST) In message: <525CE936.70800@bitfrost.no> Hans Petter Selasky writes: > On 09/10/13 13:01, SAITOU Toshihide wrote: >> >>> Number: 181987 >>> Category: usb >>> Synopsis: USB isochronous transfer of the USB driver (Mentor >>> Graphics OTG: musb_otg) is not working. >>> Confidential: no >>> Severity: non-critical >>> Priority: low >>> Responsible: freebsd-usb >>> State: open >>> Quarter: >>> Keywords: >>> Date-Required: >>> Class: sw-bug >>> Submitter-Id: current-users >>> Arrival-Date: Tue Sep 10 11:10:00 UTC 2013 >>> Closed-Date: >>> Last-Modified: >>> Originator: SAITOU Toshihide >>> Release: FreeBSD 10.0-CURRENT >>> Organization: >>> Environment: >> FreeBSD bbb 10.0-CURRENT FreeBSD 10.0-CURRENT #1: Mon Sep 9 >> 23:34:15 JST 2013 >> toshi@fbsd:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE arm >> >>> Description: >> The patch attached is somewhat fixed the problem for the >> LOGICOOL C920 but still most UVC devices are not working. >> >> My guess is that the not working device requires three >> transactions per *microframe* for the data transfer rate as >> the video streaming but the current driver performs one >> transaction per microframe. The following page imply the >> existence of the undocumented setting to perform so. >> http://e2e.ti.com/support/embedded/wince/f/353/t/68966.aspx >> >>> How-To-Repeat: >> >>> Fix: >> >> >>> 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" >> > > Hi, > > Can you please test the attached patch and report back? > > --HPS I tried to use a UVC device using libusb but couldn't get the data. The latter patch was the same result. FreeBSD revision is 255933. When libusb_submit_transfer's call back is called, actual_length of libusb_iso_packet_descriptor is 0 or 12. A snippet of ``sysctl hw.usb.debug=4'' is below: musbotg_device_isoc_enter: start next=537 musbotg_ep_int_set: ep_no=1, on=1 musbotg_host_data_rx: ep_no=1 musbotg_host_data_rx: csr=0x01 musbotg_host_data_rx: csrh=0x00 musbotg_interrupt: real endpoint interrupt rx=0x0002, tx=0x0000 musbotg_host_data_rx: ep_no=1 musbotg_host_data_rx: csr=0x01 musbotg_host_data_rx: count=0x0a80 musbotg_channel_free: ep_no=1 musbotg_ep_int_set: ep_no=1, on=0 musbotg_device_done: xfer=0xc2c080c0, endpoint=0xc2ac3cb8, error=22 It seems that more data are collected... Thanks, -- SAITOU Toshihide From owner-freebsd-usb@FreeBSD.ORG Tue Oct 15 17:20:01 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 52A5AC09 for ; Tue, 15 Oct 2013 17:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3EF192867 for ; Tue, 15 Oct 2013 17:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9FHK1Dc093074 for ; Tue, 15 Oct 2013 17:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9FHK0jv093073; Tue, 15 Oct 2013 17:20:00 GMT (envelope-from gnats) Date: Tue, 15 Oct 2013 17:20:00 GMT Message-Id: <201310151720.r9FHK0jv093073@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org Cc: From: dfilter@FreeBSD.ORG (dfilter service) Subject: Re: usb/181987: commit references a PR X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: dfilter service List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 17:20:01 -0000 The following reply was made to PR usb/181987; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: usb/181987: commit references a PR Date: Tue, 15 Oct 2013 17:11:22 +0000 (UTC) Author: hselasky Date: Tue Oct 15 17:11:13 2013 New Revision: 256548 URL: http://svnweb.freebsd.org/changeset/base/256548 Log: Correct programming of XXX_MAXP register. This register is 16-bit wide and not 8-bit. Fix support for isochronous transfers in USB host mode. Fix a whitespace while at it. MFC after: 1 week Reported by: SAITOU Toshihide PR: usb/181987 Modified: head/sys/dev/usb/controller/musb_otg.c head/sys/dev/usb/controller/musb_otg.h Modified: head/sys/dev/usb/controller/musb_otg.c ============================================================================== --- head/sys/dev/usb/controller/musb_otg.c Tue Oct 15 17:03:02 2013 (r256547) +++ head/sys/dev/usb/controller/musb_otg.c Tue Oct 15 17:11:13 2013 (r256548) @@ -1661,7 +1661,7 @@ repeat: } /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_TXMAXP, td->reg_max_packet); /* write command */ MUSB2_WRITE_1(sc, MUSB2_REG_TXCSRL, @@ -1726,13 +1726,16 @@ repeat: td->hport); /* RX NAK timeout */ - MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, MAX_NAK_TO); + if (td->transfer_type & MUSB2_MASK_TI_PROTO_ISOC) + MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, 0); + else + MUSB2_WRITE_1(sc, MUSB2_REG_RXNAKLIMIT, MAX_NAK_TO); /* Protocol, speed, device endpoint */ MUSB2_WRITE_1(sc, MUSB2_REG_RXTI, td->transfer_type); /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_RXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_RXMAXP, td->reg_max_packet); /* Data Toggle */ csrh = MUSB2_READ_1(sc, MUSB2_REG_RXCSRH); @@ -1938,7 +1941,7 @@ musbotg_host_data_tx(struct musbotg_td * return (0); /* complete */ } - if (csr & MUSB2_MASK_CSRL_TXNAKTO ) { + if (csr & MUSB2_MASK_CSRL_TXNAKTO) { /* * Flush TX FIFO before clearing NAK TO */ @@ -2069,13 +2072,16 @@ musbotg_host_data_tx(struct musbotg_td * td->hport); /* TX NAK timeout */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, MAX_NAK_TO); + if (td->transfer_type & MUSB2_MASK_TI_PROTO_ISOC) + MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, 0); + else + MUSB2_WRITE_1(sc, MUSB2_REG_TXNAKLIMIT, MAX_NAK_TO); /* Protocol, speed, device endpoint */ MUSB2_WRITE_1(sc, MUSB2_REG_TXTI, td->transfer_type); /* Max packet size */ - MUSB2_WRITE_1(sc, MUSB2_REG_TXMAXP, td->max_packet); + MUSB2_WRITE_2(sc, MUSB2_REG_TXMAXP, td->reg_max_packet); if (!td->transaction_started) { csrh = MUSB2_READ_1(sc, MUSB2_REG_TXCSRH); @@ -2406,7 +2412,6 @@ musbotg_setup_standard_chain(struct usb_ if (xfer->flags_int.usb_mode == USB_MODE_HOST) { speed = usbd_get_speed(xfer->xroot->udev); - xfer_type = xfer->endpoint->edesc->bmAttributes & UE_XFERTYPE; switch (speed) { case USB_SPEED_LOW: @@ -2444,7 +2449,6 @@ musbotg_setup_standard_chain(struct usb_ } temp.transfer_type |= ep_no; - td->max_packet = xfer->max_packet_size; td->toggle = xfer->endpoint->toggle_next; } @@ -2469,9 +2473,9 @@ musbotg_setup_standard_chain(struct usb_ x = 0; } - if (x != xfer->nframes) { - tx = 0; + tx = 0; + if (x != xfer->nframes) { if (xfer->endpointno & UE_DIR_IN) tx = 1; @@ -2532,9 +2536,14 @@ musbotg_setup_standard_chain(struct usb_ } else { - /* regular data transfer */ - - temp.short_pkt = (xfer->flags.force_short_xfer) ? 0 : 1; + if (xfer->flags_int.isochronous_xfr) { + /* isochronous data transfer */ + /* don't force short */ + temp.short_pkt = 1; + } else { + /* regular data transfer */ + temp.short_pkt = (xfer->flags.force_short_xfer ? 0 : 1); + } } musbotg_setup_standard_chain_sub(&temp); @@ -3158,7 +3167,12 @@ musbotg_init(struct musbotg_softc *sc) if (dynfifo) { if (frx && (temp <= nrx)) { - if (temp < 8) { + if (temp == 1) { + frx = 12; /* 4K */ + MUSB2_WRITE_1(sc, MUSB2_REG_RXFIFOSZ, + MUSB2_VAL_FIFOSZ_4096 | + MUSB2_MASK_FIFODB); + } else if (temp < 8) { frx = 10; /* 1K */ MUSB2_WRITE_1(sc, MUSB2_REG_RXFIFOSZ, MUSB2_VAL_FIFOSZ_512 | @@ -3175,7 +3189,12 @@ musbotg_init(struct musbotg_softc *sc) offset += (1 << frx); } if (ftx && (temp <= ntx)) { - if (temp < 8) { + if (temp == 1) { + ftx = 12; /* 4K */ + MUSB2_WRITE_1(sc, MUSB2_REG_TXFIFOSZ, + MUSB2_VAL_FIFOSZ_4096 | + MUSB2_MASK_FIFODB); + } else if (temp < 8) { ftx = 10; /* 1K */ MUSB2_WRITE_1(sc, MUSB2_REG_TXFIFOSZ, MUSB2_VAL_FIFOSZ_512 | @@ -4042,7 +4061,7 @@ musbotg_xfer_setup(struct usb_setup_para * reasonable dummies: */ parm->hc_max_packet_size = 0x400; - parm->hc_max_frame_size = 0x400; + parm->hc_max_frame_size = 0xc00; if ((parm->methods == &musbotg_device_isoc_methods) || (parm->methods == &musbotg_device_intr_methods)) @@ -4117,6 +4136,8 @@ musbotg_xfer_setup(struct usb_setup_para /* init TD */ td->max_frame_size = xfer->max_frame_size; + td->reg_max_packet = xfer->max_packet_size | + ((xfer->max_packet_count - 1) << 11); td->ep_no = ep_no; td->obj_next = last_obj; Modified: head/sys/dev/usb/controller/musb_otg.h ============================================================================== --- head/sys/dev/usb/controller/musb_otg.h Tue Oct 15 17:03:02 2013 (r256547) +++ head/sys/dev/usb/controller/musb_otg.h Tue Oct 15 17:11:13 2013 (r256548) @@ -316,9 +316,9 @@ struct musbotg_td { uint32_t offset; uint32_t remainder; uint16_t max_frame_size; /* packet_size * mult */ + uint16_t reg_max_packet; uint8_t ep_no; uint8_t transfer_type; - uint8_t max_packet; uint8_t error:1; uint8_t alt_next:1; uint8_t short_pkt:1; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" From owner-freebsd-usb@FreeBSD.ORG Tue Oct 15 21:08:57 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C084BBDC for ; Tue, 15 Oct 2013 21:08:57 +0000 (UTC) (envelope-from monty11ez@gmail.com) Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8F09628CD for ; Tue, 15 Oct 2013 21:08:57 +0000 (UTC) Received: by mail-ob0-f178.google.com with SMTP id uz6so6307497obc.23 for ; Tue, 15 Oct 2013 14:08:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=47bdmB9nKqCmtICxBdVTE6yeoNmdL9NlIVZHCLHRNkg=; b=to20tr0brSZVXZIFWIHQ4WPVTl3G/Sd6m+OuzVEsQ0nCDXa3eilcF101I4cgx6cPPQ b1Z30nso0Yv1iaLnimEf6QaOWrvFRnwbP3HOWOmyzdRb7n7WBD6tmxY13Cc3NrOMteEj yb8g/N8YYbrJx6xF7blnCrQMnZjYIKtAKi2xQZIf5vCG66bbaK/f4MuURVl8YgOy+heP uUZ942J+NQrFKlzl2lyS1Jw5WUz2wO5KoHcOXTH4cKtK9+gByQTGaHJJp54AEB9f5/5h l95httS4me+gijUL3IVm0+6mNC/KHfhWX/XyhtT0BJ0dZ4ej8AKxXrx+i+8hfp27NINM MKpA== MIME-Version: 1.0 X-Received: by 10.182.50.130 with SMTP id c2mr15864112obo.35.1381871336841; Tue, 15 Oct 2013 14:08:56 -0700 (PDT) Received: by 10.182.34.199 with HTTP; Tue, 15 Oct 2013 14:08:56 -0700 (PDT) Date: Tue, 15 Oct 2013 17:08:56 -0400 Message-ID: Subject: Apple Slim Keyboard USB Hub Power From: Monty Chaney-Geib To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Oct 2013 21:08:57 -0000 I have an Apple Keyboard with Numeric Keypad, and I am having a problem getting the built in USB hub to supply power to my devices. In OSX it will change my iPod and do whatever I want it to, and in windows I found a registry hack that allows it to function in the same manner. I was wondering if there was a way I could do something similar in FreeBSD. I recently posted this on the forums, but was referred here by a mod. From owner-freebsd-usb@FreeBSD.ORG Wed Oct 16 06:26:50 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D8E49657 for ; Wed, 16 Oct 2013 06:26:50 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 94FEB2405 for ; Wed, 16 Oct 2013 06:26:50 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 104197A12C; Wed, 16 Oct 2013 08:26:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 3DEB18F9544; Wed, 16 Oct 2013 08:27:13 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ksJv1TjOGbPd; Wed, 16 Oct 2013 08:27:12 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 892E28ED5A1; Wed, 16 Oct 2013 08:27:12 +0200 (CEST) Message-ID: <525E31F3.6030805@bitfrost.no> Date: Wed, 16 Oct 2013 08:28:03 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Monty Chaney-Geib Subject: Re: Apple Slim Keyboard USB Hub Power References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 06:26:50 -0000 On 10/15/13 23:08, Monty Chaney-Geib wrote: > I have an Apple Keyboard with Numeric Keypad, and I am having a problem > getting the built in USB hub to supply power to my devices. In OSX it will > change my iPod and do whatever I want it to, and in windows I found a > registry hack that allows it to function in the same manner. I was > wondering if there was a way I could do something similar in FreeBSD. I > recently posted this on the forums, but was referred here by a mod. s/change/charge? Have you looked into /usr/ports/sysutils/ipad_charge/ ? --HPS From owner-freebsd-usb@FreeBSD.ORG Wed Oct 16 23:52:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id C69CA3B6 for ; Wed, 16 Oct 2013 23:52:21 +0000 (UTC) (envelope-from dwhite@gumbysoft.com) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.freebsd.org (Postfix) with ESMTP id B47802369 for ; Wed, 16 Oct 2013 23:52:21 +0000 (UTC) Received: from kruse-235.2.ixsystems.com (unknown [69.198.165.132]) by carver.gumbysoft.com (Postfix) with ESMTPSA id 01A77C5743 for ; Wed, 16 Oct 2013 16:43:30 -0700 (PDT) From: Doug White Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: xhci on Intel Lynx Point still broke Date: Wed, 16 Oct 2013 16:43:30 -0700 Message-Id: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> To: freebsd-usb@freebsd.org Mime-Version: 1.0 (Apple Message framework v1085) X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 23:52:21 -0000 Hey folks, Sorry, I'm not subbed to the list, please keep me CC'd on replies. What's the status on fixing xhci for Intel Lynx Point USB cores? I have = several boards with PCHs with this chipset in my lab that have no = functional USB if XHCI is enabled in BIOS on -CURRENT with all of the = currently committed USB changes. Is there anything I can do to help = debug this problem? I found PR 179342 but it seems the issues there are = resolved -- would going through the debug procedure there be useful? The board I am using for testing is: SuperMicro X10SLM-F -- C226 chipset I can make this available remotely for testing if needed. I also have another board with USB issues -- (dis)connects are not = handled after boot and the IPMI virtual devices don't attach properly, = though USB keyboard works as long as you don't disconnect it: SuperMicro X9SBAA-F -- Atom S1260 SoC Thanks very much for any information you can provide.= From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 05:52:30 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E7AC5D5F for ; Thu, 17 Oct 2013 05:52:30 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id A38F023BC for ; Thu, 17 Oct 2013 05:52:30 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id B63317A21F; Thu, 17 Oct 2013 07:52:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 1850D8FA428; Thu, 17 Oct 2013 07:52:48 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QjuJT8XLmViV; Thu, 17 Oct 2013 07:52:47 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 4A0418FA427; Thu, 17 Oct 2013 07:52:47 +0200 (CEST) Message-ID: <525F7B60.6030102@bitfrost.no> Date: Thu, 17 Oct 2013 07:53:36 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Doug White Subject: Re: xhci on Intel Lynx Point still broke References: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> In-Reply-To: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 05:52:31 -0000 On 10/17/13 01:43, Doug White wrote: > Hey folks, > > Sorry, I'm not subbed to the list, please keep me CC'd on replies. > > What's the status on fixing xhci for Intel Lynx Point USB cores? I have several boards with PCHs with this chipset in my lab that have no functional USB if XHCI is enabled in BIOS on -CURRENT with all of the currently committed USB changes. Is there anything I can do to help debug this problem? I found PR 179342 but it seems the issues there are resolved -- would going through the debug procedure there be useful? Hi, Is the problem fixed if you set: hw.usb.xhci.xhci_port_route=-1 in /boot/loader.conf > The board I am using for testing is: > > SuperMicro X10SLM-F -- C226 chipset > > I can make this available remotely for testing if needed. Basically dmesg would do at first. > > I also have another board with USB issues -- (dis)connects are not handled after boot and the IPMI virtual devices don't attach properly, though USB keyboard works as long as you don't disconnect it: > > SuperMicro X9SBAA-F -- Atom S1260 SoC > XHCI is a more high-level controller, and I suspect that the makers have added some propritary glue to switch ports back and forth between XHCI and EHCI which is not documented anywhere. --HPS > Thanks very much for any information you can provide. From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 14:01:23 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 2F050274 for ; Thu, 17 Oct 2013 14:01:23 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1237D2285 for ; Thu, 17 Oct 2013 14:01:22 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VWo8f-000426-SK for freebsd-usb@freebsd.org; Thu, 17 Oct 2013 07:01:21 -0700 Date: Thu, 17 Oct 2013 07:01:21 -0700 (PDT) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1382018481869-5852605.post@n5.nabble.com> Subject: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:01:23 -0000 FreeBSD 9.2-STABLE #0 r256650 amd64, device in question is Sansa Clip+ music player, with Rockbox firmware- Oct 17 15:52:25 Thinkpad kernel: usbus3: port reset timeout Oct 17 15:52:25 Thinkpad kernel: usbd_req_re_enumerate: addr=2, port reset failed, USB_ERR_TIMEOUT Oct 17 15:52:26 Thinkpad kernel: usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED, ignored) Oct 17 15:52:27 Thinkpad kernel: usbd_setup_device_desc: getting device descriptor at addr 2 failed, USB_ERR_STALLED Oct 17 15:52:27 Thinkpad kernel: usb_alloc_device: Failure selecting configuration index 0:USB_ERR_STALLED, port 1, addr 2 (ignored) Oct 17 15:52:27 Thinkpad kernel: ugen3.2: at usbus3 Oct 17 15:52:27 Thinkpad kernel: ugen3.2: at usbus3 (disconnected) With original firmware: Oct 17 15:47:56 Thinkpad kernel: g_vfs_done():da1[READ(offset=0, length=8192)]error = 6 Oct 17 15:48:20 Thinkpad kernel: g_vfs_done():da1[READ(offset=0, length=8192)]error = 6 mount_msdosfs: /dev/da1: Device not configured After setting hw.usb.debug=1 - usbd_do_request_flags: Handle Request function is set usb_alloc_device: parent_dev=0xfffffe00041e8b00, bus=0xffffff80006becd8, parent_hub=0xfffffe0006f2b000, depth=1, port_index=0, port_no=1, speed=3, usb_mode=0 usb_set_device_state: udev 0xfffffe008bc99000 state DETACHED -> POWERED usbd_do_request_callback: st=0 usbd_transfer_submit: xfer=0xffffff8000ee2148, endpoint=0xfffffe008bc990d8, nframes=1, dir=write usb_dump_endpoint: endpoint=0xfffffe008bc990d8 edesc=0xfffffe008bc99600 isoc_next=0 toggle_next=0 bEndpointAddress=0x00 usb_dump_queue: endpoint=0xfffffe008bc990d8 xfer: usbd_transfer_submit: open usbd_pipe_enter: enter usbd_pipe_start: start usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION usbd_callback_wrapper_sub: xfer=0xffffff8000ee2148 endpoint=0xfffffe008bc990d8 sts=0 alen=8, slen=8, afrm=1, nfrm=1 usbd_do_request_callback: st=1 usbd_do_request_callback: st=0 usbd_transfer_submit: xfer=0xffffff8000ee2148, endpoint=0xfffffe008bc990d8, nframes=1, dir=write usb_dump_endpoint: endpoint=0xfffffe008bc990d8 edesc=0xfffffe008bc99600 isoc_next=0 toggle_next=1 bEndpointAddress=0x00 usb_dump_queue: endpoint=0xfffffe008bc990d8 xfer: usbd_pipe_enter: enter usbd_pipe_start: start usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION usbd_callback_wrapper_sub: xfer=0xffffff8000ee2148 endpoint=0xfffffe008bc990d8 sts=0 alen=0, slen=0, afrm=1, nfrm=1 usbd_do_request_callback: st=1 usb_set_device_state: udev 0xfffffe008bc99000 state POWERED -> ADDRESSED usbd_setup_device_desc: Minimum MaxPacketSize is large enough to hold the complete device descriptor or only once MaxPacketSize choice usbd_transfer_stop: close usbd_transfer_done: err=USB_ERR_CANCELLED usbd_transfer_done: not transferring usbd_do_request_callback: st=0 usbd_transfer_submit: xfer=0xffffff8000ee2148, endpoint=0xfffffe008bc990d8, nframes=2, dir=write usb_dump_endpoint: endpoint=0xfffffe008bc990d8 edesc=0xfffffe008bc99600 isoc_next=0 toggle_next=1 bEndpointAddress=0x00 usb_dump_queue: endpoint=0xfffffe008bc990d8 xfer: usbd_transfer_submit: open usbd_pipe_enter: enter usbd_pipe_start: start usbd_transfer_done: err=USB_ERR_NORMAL_COMPLETION (looping) -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 14:07:02 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9533D55F for ; Thu, 17 Oct 2013 14:07:02 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 51D272308 for ; Thu, 17 Oct 2013 14:07:02 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 51B247A22C; Thu, 17 Oct 2013 16:07:00 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 8AAD38EDBC2; Thu, 17 Oct 2013 16:07:25 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uypGDL2WjT+L; Thu, 17 Oct 2013 16:07:24 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id AC9568ED64A; Thu, 17 Oct 2013 16:07:24 +0200 (CEST) Message-ID: <525FEF4E.4030100@bitfrost.no> Date: Thu, 17 Oct 2013 16:08:14 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Jakub Lach Subject: Re: 9-STABLE, lost access to previously working usb device References: <1382018481869-5852605.post@n5.nabble.com> In-Reply-To: <1382018481869-5852605.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:07:02 -0000 On 10/17/13 16:01, Jakub Lach wrote: > FreeBSD 9.2-STABLE #0 r256650 amd64, device in question is > Sansa Clip+ music player, with Rockbox firmware- > > Oct 17 15:52:25 Thinkpad kernel: usbus3: port reset timeout > Oct 17 15:52:25 Thinkpad kernel: usbd_req_re_enumerate: addr=2, port reset > failed, USB_ERR_TIMEOUT > Oct 17 15:52:26 Thinkpad kernel: usbd_req_re_enumerate: addr=2, set address > failed! (USB_ERR_STALLED, ignored) > Oct 17 15:52:27 Thinkpad kernel: usbd_setup_device_desc: getting device > descriptor at addr 2 failed, USB_ERR_STALLED > Oct 17 15:52:27 Thinkpad kernel: usb_alloc_device: Failure selecting > configuration index 0:USB_ERR_STALLED, port 1, addr 2 (ignored) > Oct 17 15:52:27 Thinkpad kernel: ugen3.2: at usbus3 > Oct 17 15:52:27 Thinkpad kernel: ugen3.2: at usbus3 > (disconnected) > > With original firmware: > > Oct 17 15:47:56 Thinkpad kernel: g_vfs_done():da1[READ(offset=0, > length=8192)]error = 6 > Oct 17 15:48:20 Thinkpad kernel: g_vfs_done():da1[READ(offset=0, > length=8192)]error = 6 > > mount_msdosfs: /dev/da1: Device not configured > > After setting hw.usb.debug=1 - Hi, Make sure you are using the latest Rock-Box firmware. If your Thinkpad has EHCI, then try: sysctl hw.usb.ehci.no_hs=1 Then re-plug. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 14:10:08 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 994D89BC for ; Thu, 17 Oct 2013 14:10:08 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7C7342351 for ; Thu, 17 Oct 2013 14:10:08 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VWoH9-0005OM-OA for freebsd-usb@freebsd.org; Thu, 17 Oct 2013 07:10:07 -0700 Date: Thu, 17 Oct 2013 07:10:07 -0700 (PDT) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1382019007743-5852613.post@n5.nabble.com> In-Reply-To: <1382018481869-5852605.post@n5.nabble.com> References: <1382018481869-5852605.post@n5.nabble.com> Subject: Re: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:10:08 -0000 After re-examination, the problem is confined to case of mounting when running Rockbox firmware, however I used to do so for a quite long time. Maybe upgrading Rockbox while on Windows wasn't such a good idea after all. -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605p5852613.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 14:18:16 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BB07CD84 for ; Thu, 17 Oct 2013 14:18:16 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9D2F8240D for ; Thu, 17 Oct 2013 14:18:16 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VWoP1-0006Uo-QJ for freebsd-usb@freebsd.org; Thu, 17 Oct 2013 07:18:15 -0700 Date: Thu, 17 Oct 2013 07:18:15 -0700 (PDT) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1382019495810-5852619.post@n5.nabble.com> In-Reply-To: <1382019007743-5852613.post@n5.nabble.com> References: <1382018481869-5852605.post@n5.nabble.com> <1382019007743-5852613.post@n5.nabble.com> Subject: Re: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:18:16 -0000 Of course even after upgrade transferring files when running Rockbox worked under Windows, iirc. There is a hw.usb.ehci.no_hs=1 but that doesn't change anything. Thanks for a reply, I think I will have to live with reverting to original fw to manipulate files, or will try downgrading later. -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605p5852619.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 14:28:10 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id EDAA6403 for ; Thu, 17 Oct 2013 14:28:10 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id AB7D724C5 for ; Thu, 17 Oct 2013 14:28:10 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id C30E57A236; Thu, 17 Oct 2013 16:28:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 1BF468EEB80; Thu, 17 Oct 2013 16:28:35 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UI2NqSWH6FQZ; Thu, 17 Oct 2013 16:28:34 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 41CA68EEB7C; Thu, 17 Oct 2013 16:28:34 +0200 (CEST) Message-ID: <525FF443.9080309@bitfrost.no> Date: Thu, 17 Oct 2013 16:29:23 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Jakub Lach Subject: Re: 9-STABLE, lost access to previously working usb device References: <1382018481869-5852605.post@n5.nabble.com> <1382019007743-5852613.post@n5.nabble.com> <1382019495810-5852619.post@n5.nabble.com> In-Reply-To: <1382019495810-5852619.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 14:28:11 -0000 On 10/17/13 16:18, Jakub Lach wrote: > Of course even after upgrade transferring files when running Rockbox worked > under Windows, iirc. > > There is a hw.usb.ehci.no_hs=1 but that doesn't change anything. > > Thanks for a reply, I think I will have to live with reverting to original > fw to manipulate files, or will try downgrading later. > Hi, There has been some similar threads regarding rockbock and freebsd before. Try googling a bit. --HPS From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 15:00:49 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id AF65269C for ; Thu, 17 Oct 2013 15:00:49 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 91ABB27C2 for ; Thu, 17 Oct 2013 15:00:49 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VWp4D-0000j1-0P for freebsd-usb@freebsd.org; Thu, 17 Oct 2013 08:00:49 -0700 Date: Thu, 17 Oct 2013 08:00:49 -0700 (PDT) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1382022049006-5852648.post@n5.nabble.com> In-Reply-To: <525FF443.9080309@bitfrost.no> References: <1382018481869-5852605.post@n5.nabble.com> <1382019007743-5852613.post@n5.nabble.com> <1382019495810-5852619.post@n5.nabble.com> <525FF443.9080309@bitfrost.no> Subject: Re: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 15:00:49 -0000 I failed to find threads regarding precisely my situation, closest would be Bartosz Fabianowski's thread from 2011, however I had Rockbox working in 2013, and now it's broken. I will try now to revert to older firmware, as Rockbox tip has the same issue. Anyway, thanks for replies, as Rockbox is clearly not your responsibility :) -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605p5852648.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Thu Oct 17 15:13:28 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9C4BCE45 for ; Thu, 17 Oct 2013 15:13:28 +0000 (UTC) (envelope-from jakub_lach@mailplus.pl) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D31528ED for ; Thu, 17 Oct 2013 15:13:28 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VWpGR-0001fN-6B for freebsd-usb@freebsd.org; Thu, 17 Oct 2013 08:13:27 -0700 Date: Thu, 17 Oct 2013 08:13:27 -0700 (PDT) From: Jakub Lach To: freebsd-usb@freebsd.org Message-ID: <1382022807183-5852651.post@n5.nabble.com> In-Reply-To: <1382022049006-5852648.post@n5.nabble.com> References: <1382018481869-5852605.post@n5.nabble.com> <1382019007743-5852613.post@n5.nabble.com> <1382019495810-5852619.post@n5.nabble.com> <525FF443.9080309@bitfrost.no> <1382022049006-5852648.post@n5.nabble.com> Subject: Re: 9-STABLE, lost access to previously working usb device MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 15:13:28 -0000 It's good I confirmed it... but it's actually Rockbox regression. Once again, thanks for help! -- View this message in context: http://freebsd.1045724.n5.nabble.com/9-STABLE-lost-access-to-previously-working-usb-device-tp5852605p5852651.html Sent from the freebsd-usb mailing list archive at Nabble.com. From owner-freebsd-usb@FreeBSD.ORG Fri Oct 18 01:24:03 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CB92F8E9 for ; Fri, 18 Oct 2013 01:24:03 +0000 (UTC) (envelope-from dwhite@gumbysoft.com) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.freebsd.org (Postfix) with ESMTP id B995C20BF for ; Fri, 18 Oct 2013 01:24:03 +0000 (UTC) Received: from kruse-235.2.ixsystems.com (unknown [69.198.165.132]) by carver.gumbysoft.com (Postfix) with ESMTPSA id 25D42C5743; Thu, 17 Oct 2013 18:23:57 -0700 (PDT) Subject: Re: xhci on Intel Lynx Point still broke Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Doug White In-Reply-To: <525F7B60.6030102@bitfrost.no> Date: Thu, 17 Oct 2013 18:23:56 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> <525F7B60.6030102@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1085) Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 01:24:03 -0000 On Oct 16, 2013, at 10:53 PM, Hans Petter Selasky wrote: > Is the problem fixed if you set: >=20 > hw.usb.xhci.xhci_port_route=3D-1 >=20 > in /boot/loader.conf No, no change in (lack of) functionality. I uploaded these bootverbose-enabled dmesg outputs: With XHCI Mode =3D Disabled in BIOS (reverts ports to EHCI control): http://people.freebsd.org/~dwhite/dmesg.xhci_off_in_bios.20131017 With XHCI Mode =3D Enabled in BIOS and with tunable = hw.usb.xhci.xhci_port_route=3D-1 set: http://people.freebsd.org/~dwhite/dmesg.xhci_on.with_routing.20131017 > XHCI is a more high-level controller, and I suspect that the makers = have added some propritary glue to switch ports back and forth between = XHCI and EHCI which is not documented anywhere. On the first board (X10SLM-F), XHCI Mode is a BIOS setting and affects = all USB ports. I haven't experimented with settings on the Atom yet. The = Atom uses a Renesas chip for its USB ports, though, and no USB from the = SoC itself, that I can tell. From owner-freebsd-usb@FreeBSD.ORG Fri Oct 18 06:22:59 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A1381980 for ; Fri, 18 Oct 2013 06:22:59 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 34413207C for ; Fri, 18 Oct 2013 06:22:58 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 5E81F7A234; Fri, 18 Oct 2013 08:22:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id B3B6E8FA845; Fri, 18 Oct 2013 08:23:23 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GFPhUTBihHdL; Fri, 18 Oct 2013 08:23:22 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id B0A6B8FA84B; Fri, 18 Oct 2013 08:23:21 +0200 (CEST) Message-ID: <5260D409.5070906@bitfrost.no> Date: Fri, 18 Oct 2013 08:24:09 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Doug White Subject: Re: xhci on Intel Lynx Point still broke References: <7CFE54E6-7FD5-40C5-B1FC-BBF46134A6AE@gumbysoft.com> <525F7B60.6030102@bitfrost.no> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: sarah.a.sharp@linux.intel.com, freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 06:22:59 -0000 On 10/18/13 03:23, Doug White wrote: > > On Oct 16, 2013, at 10:53 PM, Hans Petter Selasky wrote: > >> Is the problem fixed if you set: >> >> hw.usb.xhci.xhci_port_route=-1 >> >> in /boot/loader.conf > > No, no change in (lack of) functionality. > > I uploaded these bootverbose-enabled dmesg outputs: > > With XHCI Mode = Disabled in BIOS (reverts ports to EHCI control): > > http://people.freebsd.org/~dwhite/dmesg.xhci_off_in_bios.20131017 > > With XHCI Mode = Enabled in BIOS and with tunable hw.usb.xhci.xhci_port_route=-1 set: > > http://people.freebsd.org/~dwhite/dmesg.xhci_on.with_routing.20131017 > >> XHCI is a more high-level controller, and I suspect that the makers have added some propritary glue to switch ports back and forth between XHCI and EHCI which is not documented anywhere. > > On the first board (X10SLM-F), XHCI Mode is a BIOS setting and affects all USB ports. I haven't experimented with settings on the Atom yet. The Atom uses a Renesas chip for its USB ports, though, and no USB from the SoC itself, that I can tell. > Hi Doug, It looks like the XHCI controller is not getting any port events, like it should. Basically the XHCI controller you've got does not behave like I would expect, according to the XHCI specification from INTEL. I've CC'ed Sarah Sharp @ Intel which is working on the Linux XHCI driver. --HPS Hi Sarah! We FreeBSD guys have seen several oddities regarding the Lynx Point Intel based controllers, and would like to know if some additional datasheets exist regarding how ports switch actually works. The last issue on the block was that the Lynx Point's returned a invalid parameter error on the set address command which configures the device context (no set address sent), if a USB device was plugged into the XHCI controller, and the port routing was enabled. If the command was issued when no USB device was plugged in by faking a port connection status change, then it would succeed. > http://svnweb.freebsd.org/base/head/sys/dev/usb/controller/xhci.c?r1=255356&r2=255768 I'm sorry to say I fear this extra magic about the port routing for Lynx Points is not working like expected. Sarah, do you have any more clues for us FreeBSD USB guys? Thank you! --HPS From owner-freebsd-usb@FreeBSD.ORG Fri Oct 18 21:40:00 2013 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B9CCB3C0 for ; Fri, 18 Oct 2013 21:40:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8006F2FEA for ; Fri, 18 Oct 2013 21:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9ILe0UD043278 for ; Fri, 18 Oct 2013 21:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9ILe0fG043277; Fri, 18 Oct 2013 21:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 18 Oct 2013 21:40:00 GMT Resent-Message-Id: <201310182140.r9ILe0fG043277@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Panyushkin Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 753E112A for ; Fri, 18 Oct 2013 21:30:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 63F762F12 for ; Fri, 18 Oct 2013 21:30:37 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9ILUbmI083210 for ; Fri, 18 Oct 2013 21:30:37 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9ILUbq0083188; Fri, 18 Oct 2013 21:30:37 GMT (envelope-from nobody) Message-Id: <201310182130.r9ILUbq0083188@oldred.freebsd.org> Date: Fri, 18 Oct 2013 21:30:37 GMT From: Alexander Panyushkin To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/183090: Logitech USB microphone failure X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 21:40:00 -0000 >Number: 183090 >Category: usb >Synopsis: Logitech USB microphone failure >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 18 21:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Alexander Panyushkin >Release: FreeBSD 10.0-BETA1 #0 r256507 >Organization: none >Environment: FreeBSD scorpion.kiev.ua 10.0-BETA1 FreeBSD 10.0-BETA1 #0 r256507: Tue Oct 15 14:14:08 EEST 2013 root@scorpion.kiev.ua:/usr/obj/usr/src/sys/Kernel amd64 >Description: If dd if=/dev/dsp2.0 of=/dev/dsp0.0 bs=64 microphone was working fine. But in the Skype have problem. Microphone not working. #cat /dev/sndstat Installed devices: pcm0: (play/rec) default pcm1: (play) pcm2: (rec) #mixer Mixer vol is currently set to 72:72 Mixer pcm is currently set to 100:100 Mixer line is currently set to 100:100 Mixer mic is currently set to 100:100 Mixer rec is currently set to 100:100 Mixer igain is currently set to 100:100 Mixer ogain is currently set to 100:100 Mixer monitor is currently set to 100:100 #kldstat | egrep "snd|cuse" 5 1 0xffffffff80e0e000 40358 snd_hda.ko 13 1 0xffffffff81dc6000 6998 cuse4bsd.ko 20 1 0xffffffff81e14000 8992 snd_uaudio.ko #pkg info -ix skype skype-2.1.0.81_1,1 >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-usb@FreeBSD.ORG Sat Oct 19 05:46:13 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8E071BFF for ; Sat, 19 Oct 2013 05:46:13 +0000 (UTC) (envelope-from taner76@gmail.com) Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com [IPv6:2a00:1450:4010:c04::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F3AD0273D for ; Sat, 19 Oct 2013 05:46:12 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id p9so3922645lbv.27 for ; Fri, 18 Oct 2013 22:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=psoXoLiCRED12XN3Dzx9/tflb2r0Uwmo1uMJgYWYUc0=; b=zSkkJVlws5d0DLE1BlplnZ8PccbFdTELO0wZVUpfSeKulVHrnPFc2dx5JBZ9qqThSC wZTNaApy+bpr4BdpZZAjGvuDbAsHoO7TpXkZ8+PRR4gK5qXuePexnuKKm+09ZrrwNnMV oLwZcZhgz+2HVkiFOvcPnrHkNHIY7z6lM0HZsCNqM4BomodWsYBlPXMBfaZzMcqShD21 vPdGaf6zcnaFPBxHZTmxlcoabzLb55wb47UeBa5AGVd9H762y80wrBXxUhWXK4Jv7QGZ 4XbEJVNzM1z6hU5TY+DuHD05BDgkGirEWOGcXuXtVhhaWOi5k11o2WJKlN1ZMt62AkVg oFLQ== MIME-Version: 1.0 X-Received: by 10.112.143.3 with SMTP id sa3mr4953841lbb.12.1382161570656; Fri, 18 Oct 2013 22:46:10 -0700 (PDT) Received: by 10.112.99.1 with HTTP; Fri, 18 Oct 2013 22:46:10 -0700 (PDT) Date: Sat, 19 Oct 2013 08:46:10 +0300 Message-ID: Subject: Scratchy playback issue with USB CLASS2 audio device From: Taner To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 05:46:13 -0000 Hi, I'm trying to solve scratchy (as like as scratched vinyl records) playback issue with my Amanero Asyncronous USB to I2S interface (http://amanero.com/) on a amd64 FreeBSD-10-BETA1 system. Amanero is a 2 channels high speed usb class2 audio device which capable of accepting up to 32bit 384khz data format. I haven't similar issues with other operating systems. I played with many sysctl setting combinations including: dev.pcm.0.play.vchanmode=fixed/adaptive dev.pcm.0.play.vchanformat:s32le:2.0 dev.pcm.0.play.vchans=0 dev.pcm.0.bitperfect:1 etc. With enabling debug, lots of these error messages appear on dmesg output: uaudio_chan_play_sync_callback: Value = 0x0005fff8 uaudio_chan_play_sync_callback: Comparing 47998 < 48000 uaudio_chan_play_sync_callback: Value = 0x0005fff6 uaudio_chan_play_sync_callback: Comparing 47998 < 48000 or uaudio_chan_play_sync_callback: Value = 0x000bfff0 uaudio_chan_play_sync_callback: Comparing 95997 < 96000 uaudio_chan_play_sync_callback: Value = 0x000bfff0 uaudio_chan_play_sync_callback: Comparing 95997 < 96000 ---> dmesg output while device attached uaudio0: at uhub1, port 3, addr 1 (disconnected) pcm0: detached uaudio0: on usbus0 uaudio0: Play: 96000 Hz, 2 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: Play: 88200 Hz, 2 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: Play: 48000 Hz, 2 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: Play: 44100 Hz, 2 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: Play: 32000 Hz, 2 ch, 32-bit S-LE PCM format, 2x8ms buffer. uaudio0: No recording. uaudio0: No MIDI sequencer. pcm0: on uaudio0 uaudio0: No HID volume keys found. ---> usbconfig -d 0.2 dump_all_config_desc ugen0.2: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (128mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x00b0 bNumInterfaces = 0x0003 bConfigurationValue = 0x0001 iConfiguration = 0x0002 bmAttributes = 0x0080 bMaxPower = 0x0040 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x08 bDescriptorType = 0x0b bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x08, 0x0b, 0x01, 0x02, 0x01, 0x00, 0x20, 0x00 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0001 bInterfaceProtocol = 0x0020 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x09, 0x24, 0x01, 0x00, 0x02, 0x01, 0x48, 0x00, 0x08 | 0x00 Additional Descriptor bLength = 0x08 bDescriptorType = 0x24 bDescriptorSubType = 0x0a RAW dump: 0x00 | 0x08, 0x24, 0x0a, 0x29, 0x03, 0x07, 0x00, 0x02 Additional Descriptor bLength = 0x08 bDescriptorType = 0x24 bDescriptorSubType = 0x0b RAW dump: 0x00 | 0x08, 0x24, 0x0b, 0x28, 0x01, 0x29, 0x03, 0x02 Additional Descriptor bLength = 0x11 bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x11, 0x24, 0x02, 0x2a, 0x01, 0x01, 0x00, 0x28, 0x08 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10 | 0x00 Additional Descriptor bLength = 0x12 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x12, 0x24, 0x06, 0x0a, 0x2a, 0x0f, 0x00, 0x00, 0x08 | 0x00, 0x0f, 0x00, 0x00, 0x00, 0x0f, 0x00, 0x00, 0x10 | 0x00, 0x00 Additional Descriptor bLength = 0x0c bDescriptorType = 0x24 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x0c, 0x24, 0x03, 0x2b, 0x01, 0x03, 0x00, 0x0a, 0x08 | 0x28, 0x00, 0x00, 0x00 Interface 2 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0020 iInterface = 0x0000 Interface 2 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0002 bAlternateSetting = 0x0001 bNumEndpoints = 0x0002 bInterfaceClass = 0x0001 bInterfaceSubClass = 0x0002 bInterfaceProtocol = 0x0020 iInterface = 0x0000 Additional Descriptor bLength = 0x10 bDescriptorType = 0x24 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x10, 0x24, 0x01, 0x2a, 0x00, 0x01, 0x01, 0x00, 0x08 | 0x00, 0x00, 0x02, 0x03, 0x00, 0x00, 0x00, 0x00 Additional Descriptor bLength = 0x06 bDescriptorType = 0x24 bDescriptorSubType = 0x02 RAW dump: 0x00 | 0x06, 0x24, 0x02, 0x01, 0x04, 0x20 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0005 bmAttributes = 0x0005 wMaxPacketSize = 0x0400 bInterval = 0x0001 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x08 bDescriptorType = 0x25 bDescriptorSubType = 0x01 RAW dump: 0x00 | 0x08, 0x25, 0x01, 0x00, 0x00, 0x02, 0x08, 0x00 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0011 wMaxPacketSize = 0x0004 bInterval = 0x0007 bRefresh = 0x0000 bSynchAddress = 0x0000 Configuration index 1 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0002 iConfiguration = 0x0002 bmAttributes = 0x0080 bMaxPower = 0x0040 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x0000 iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Regards Taner From owner-freebsd-usb@FreeBSD.ORG Sat Oct 19 06:34:43 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CD2C169C for ; Sat, 19 Oct 2013 06:34:43 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 87E0E2934 for ; Sat, 19 Oct 2013 06:34:43 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 99BF67A2C9; Sat, 19 Oct 2013 08:34:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 4F93B8F689D; Sat, 19 Oct 2013 08:35:01 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jf+ILcVfsX8; Sat, 19 Oct 2013 08:35:00 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id D8D298F689B; Sat, 19 Oct 2013 08:34:59 +0200 (CEST) Message-ID: <52622842.6030105@bitfrost.no> Date: Sat, 19 Oct 2013 08:35:46 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Taner Subject: Re: Scratchy playback issue with USB CLASS2 audio device References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 06:34:43 -0000 On 10/19/13 07:46, Taner wrote: > uaudio_chan_play_sync_callback: Value = 0x0005fff8 > uaudio_chan_play_sync_callback: Comparing 47998 < 48000 > uaudio_chan_play_sync_callback: Value = 0x0005fff6 > uaudio_chan_play_sync_callback: Comparing 47998 < 48000 Hi, The normal for adaptive rates is that this value should tilt just above or below the 48000 or whatever is there. Else something is wrong. Did you try to record while playing? Also, are you running -stable? Could also check the amount of samples sent by using "usbdump -i usbusX -f Y -s 65536 -vvv" --HPS From owner-freebsd-usb@FreeBSD.ORG Sat Oct 19 06:41:21 2013 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 40546822 for ; Sat, 19 Oct 2013 06:41:21 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id F2243298F for ; Sat, 19 Oct 2013 06:41:20 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 165607A2C9; Sat, 19 Oct 2013 08:41:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id C4BEF8F689E; Sat, 19 Oct 2013 08:41:45 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id trGyA9qcmg2j; Sat, 19 Oct 2013 08:41:44 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 9AC478F689D; Sat, 19 Oct 2013 08:41:44 +0200 (CEST) Message-ID: <526229D6.6040605@bitfrost.no> Date: Sat, 19 Oct 2013 08:42:30 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 Subject: Re: Scratchy playback issue with USB CLASS2 audio device References: <52622842.6030105@bitfrost.no> In-Reply-To: <52622842.6030105@bitfrost.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Taner , freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Oct 2013 06:41:21 -0000 On 10/19/13 08:35, Hans Petter Selasky wrote: > On 10/19/13 07:46, Taner wrote: >> uaudio_chan_play_sync_callback: Value = 0x0005fff8 >> uaudio_chan_play_sync_callback: Comparing 47998 < 48000 >> uaudio_chan_play_sync_callback: Value = 0x0005fff6 >> uaudio_chan_play_sync_callback: Comparing 47998 < 48000 > > Hi, > > The normal for adaptive rates is that this value should tilt just above > or below the 48000 or whatever is there. Else something is wrong. > > Did you try to record while playing? > > Also, are you running -stable? > > Could also check the amount of samples sent by using > "usbdump -i usbusX -f Y -s 65536 -vvv" > > --HPS Hi, Does this patch make any difference? === dev/sound/usb/uaudio.c ================================================================== --- dev/sound/usb/uaudio.c (revision 256754) +++ dev/sound/usb/uaudio.c (local) @@ -2070,7 +2070,7 @@ chn_intr(ch->pcm_ch); /* start SYNC transfer, if any */ - if ((ch->last_sync_time++ & 7) == 0) + if ((ch->last_sync_time++ & 3) == 0) usbd_transfer_start(ch->xfer[UAUDIO_NCHANBUFS]); case USB_ST_SETUP: --HPS