From owner-freebsd-usb@freebsd.org Thu Nov 26 15:08:33 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 24E074AE5D9 for ; Thu, 26 Nov 2020 15:08:33 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Chh3N71hpz4bqV for ; Thu, 26 Nov 2020 15:08:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id F0F934AE3F1; Thu, 26 Nov 2020 15:08:32 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F0C1F4AE4FF for ; Thu, 26 Nov 2020 15:08:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Chh3N60KMz4c1N for ; Thu, 26 Nov 2020 15:08:32 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F12E826020D; Thu, 26 Nov 2020 16:08:30 +0100 (CET) Subject: Re: webcamd, usb and two webcams - only one works To: Thomas Steen Rasmussen Cc: usb@freebsd.org References: <9a382539-c90d-91b9-bfac-f36c0f19d3f7@selasky.org> <723be24d-b2fe-85df-4961-5483004050e8@gibfest.dk> <6c527c1f-62a6-3089-50b8-02cda74b4eb1@selasky.org> <13180470-0336-b115-ce31-bc392ff8da76@gibfest.dk> From: Hans Petter Selasky Message-ID: <638a1059-f8dc-59c5-21ff-aabc380cac28@selasky.org> Date: Thu, 26 Nov 2020 16:08:22 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <13180470-0336-b115-ce31-bc392ff8da76@gibfest.dk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Chh3N60KMz4c1N X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2020 15:08:33 -0000 On 11/26/20 3:38 PM, Thomas Steen Rasmussen wrote: > I tried swapping the webcams around, the error is always with the second > webcam connected (so video2), regardless of which webcam it is. Hi, Might be a bug in the XHCI controller driver or XHCI HW, that the isochronous transactions don't get scheduling time. Do you have the possibility to test on another computer running FreeBSD? There is a debug knob for the XHCI controller, sysctl hw.usb.xhci.debug Try flipping it to 17 for a second while in the "timeout" state, and then flip it back to 0. Prints end up in dmesg and /var/log/messages . It might sched some more details into the exact XHCI error code. --HPS