From owner-freebsd-multimedia@freebsd.org Mon Aug 29 17:20:25 2016 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 698A9BC7EB4 for ; Mon, 29 Aug 2016 17:20:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2FD20BA5 for ; Mon, 29 Aug 2016 17:20:25 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7C55A1FE022; Mon, 29 Aug 2016 19:20:23 +0200 (CEST) Subject: Re: [CFT] New version of webcamd, now v4.8.0.2 To: Miguel C References: <050b048b-b73d-0823-885a-e8ab88f070e8@selasky.org> <1a91839a-9026-16bd-7430-2f40cf742a81@selasky.org> Cc: "freebsd-multimedia@freebsd.org" , Oleg Nauman From: Hans Petter Selasky Message-ID: Date: Mon, 29 Aug 2016 19:24:59 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2016 17:20:25 -0000 On 08/29/16 18:16, Miguel C wrote: > On Mon, Aug 29, 2016 at 4:24 PM, Hans Petter Selasky > wrote: > >> On 08/29/16 17:21, Hans Petter Selasky wrote: >> >>> On 08/29/16 16:42, Miguel C wrote: >>> >>>> >>>>> >>>>> 631 urb->status = -EINPROGRESS; >>>>>>> >>>>>>> >>>>>> This submit looks successful. Just enter "continue" after you see >>>>>> "-EINPROGRESS". I need to figure out the failing case. >>>>>> >>>>>> Also do: >>>>>> >>>>>> print *uhe >>>>>> >>>>>> >> Hi, >> >> Can you also add a breakpoint for "return -EPIPE": >> >> break kernel/linux_usb.c:617 >> >> Adding this break doesn't seem to make it break at that point, unless I'm > doing something wrong... I even used just next and still dind't "stop" at > that breakpoint > > And also "print *uhe" > > I did above but here goes again: > print *uhe > $2 = {desc = {bLength = 7 '\a', bDescriptorType = 5 '\005', > bEndpointAddress = 135 '\207', bmAttributes = 3 '\003', > wMaxPacketSize = 16, bInterval = 8 '\b', bRefresh = 0 '\0', > bSynchAddress = 0 '\0'}, ss_ep_comp = { > bLength = 0 '\0', bDescriptorType = 0 '\0', bMaxBurst = 0 '\0', > bmAttributes = 0 '\0', wBytesPerInterval = 0}, > bsd_urb_list = {tqh_first = 0x0, tqh_last = 0x8020764b0}, bsd_xfer = > 0x8020764c0, > extra = 0x80206cfe6 "\005%\003\020", extralen = 5, bsd_iface_index = 0 > '\0', align = 0x8020764e0} > Hi, bEndpointAddress = 135, is the interrupt endpoint. It is not the failing one. Can you try to put the break on "return -EPIPE" one line back? Also, you probably need to run "pwcview" to trigger the open of those failing endpoints. When you catch it send me the dump of *uhe. BTW: Do you have IRC? Maybe it would be faster to meet there and debug :-) --HPS