From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794823277; b=si4HGRZbmBjnwpaqhpAI+t9XDF4X1w7X5URdEZAuyy5w2IBk7YVESGHohURm47lfYXWF lkG4sIyEJHBmKF51kYuWMqBCsgdxMSLRI25TkY2lAqvoBioC6y//gHCoKYXEP6iIeKQMf d1upvHyAqStkE9fsAPiO/7XzTCRrdFZblSlrUzguqmHMrHnknQ9hXJM6sxnAGs7eakrQq pjBgCHtiAqvm2//v5+vs2xUFtQPmPx59vvyIrtVNSps99idqVZnGPEwyFbpM7u4jjaxQ3 W2qVqxvfIHBeOT9zkS/hEjWbtLfHqUiQ4q8N9bVBfYzcqOrofR6N6QqJ0bXQkDp22ZQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794823277; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=HAPsj9EPt3xx3oOcKM0qxDAiWjAw9T5TeCGOtGfLqLg=; b=ltQzYqRlst5r6iPmrq/b5xMhgHo/BtVSxjZ9RXZpF6u2WYGsfiAKkocsiFUo5I4NTbQ+ /G6VLR2+dgMhWCVXkahOuPWwsVOg6wV+B3wDt/AHDGAcGu8MEitkfetwnQRr8DmIGO/6m vACQGRkSVM3MLt3/AArGemfsX5sXvAQGxxtxJeCrqcR5SxDBwAveZYn6hdy0NF3qNT17w y/YThlOxsNgFs9D09IT1q/kHhW60gqgYtrg0RDwDIdlsRZG886hZOGLYPzmEzkh8eWNJK sdWTyvI0hWQPOAmpbONLQBNvRv+YQYTZxH4cmc6i4QwVSB0jDVNWyKjsazmpt1mWmsw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bV9SAvyc; arc=none smtp.remote-ip=209.85.221.50 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15E2D606A323 for ; Mon, 16 Nov 2026 10:01:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 15E2D606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=bV9SAvyc Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-492fcbfaa88so1627646f8f.3 for ; Mon, 16 Nov 2026 02:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794823275; x=1795428075; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=HAPsj9EPt3xx3oOcKM0qxDAiWjAw9T5TeCGOtGfLqLg=; b=bV9SAvycJRfeOYR8BIq1Be9Fy2zb8dvoTD/CZLfyMdaMIhqYAWlfdEs7nnWMPQK6SY 59VF1W4oetFpA74tjXYeb+jVXg4rhkmv2jS0UyiikXKvatplOgW6EK6zQyKGBFGC75NJ DtjCaEudey2H2whw1e5tdv70hcgVLLwtSdp90FWpFmOZKyDt10wake8wgz7UkmIHjrdQ WZXKFQSh7x3PIHKhe/Dvx0qPY3s77iCwKpKfnNZxpIxMbAJiYEM0kQmveBI43Y92prmQ n9/WXtAmqCW5vIxfbZ3gBcw2+XxB/gqzutmy2UCIG59CZs5106wG50mvVcQFebKbhwfm eoOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794823275; x=1795428075; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=HAPsj9EPt3xx3oOcKM0qxDAiWjAw9T5TeCGOtGfLqLg=; b=EjCXv0sTcqyABWLNgxC6thA7srUA3feRIS4TAFuidYCXkILL92an1XqtA6nH84p4iL /mhWbaFYBWvFw+gn2AG+OMbpyXQb3pnZLN/nNgmJgmlNYSh75JhY5PzoVWYPtmUgtqR2 Put6Nym351FO8tI5R0iYM2VHb4Wu5ZiCHwJvf1JdBMcZFKK8pUZbnkjz/FtrD3OFYRyJ /uawgx4LacfawyA8VwmwFsH91HgIh6iOgWIbb8UjRSGPT3yOfn6eXbhqtgPJD9PPjFw9 cNWocxotetcAqEKSlHCyOwvzK3xupKg18kEEbp9pkeNzGxkdGpY4E+0dh28a2Cr/4imL 2K3A== X-Forwarded-Encrypted: i=1; AL+hErFbdC6Br9RNSBbnXcHCJZn2c/JU6onKGlK72U3W0R0iD0gVF97ptrejbdjEjdK5e0dazRvAeayfAbY=@vger.kernel.org X-Gm-Message-State: APuU4Z+Y6a+tTcafOwlvK8hzxD01yJjZGMBilnyH76Ne6DbtQimFyB37 /cRZ0TwoLakQWN+oAc9lKFRqu6mgr7pKIwLwbb5USoqT0M0+rJ5jS+GS X-Gm-Gg: AZFdTZeFfOR8qQNyOVgHFYVS+5K9eyq+Zw838+aPzjYi1NDQkVTTt61aDEz+H1FEp1j bROGhb9GREA9VWd+WdLSu0G5R+NnbnrLxWCcyDs5EFWZR7EculXydLtsSVYIgHSWYF/U8yAhSr3 BA+yBXWhDtjOMYvtbyPFd1MUTbnI+gTzd4YL9SKcRnqK1gffL/1sd/zgWsjinF+gUfuv+16IE6/ KCIgB4bVGVx3Sg+IAWUapFva9S+J702umjun+6Dr2BT7g4EgyknE+di7hnQsIkqL1wOqRpKSjxt f0tXLXfFETbLZhv4FTf8SyZxI2N77VQVz6118GJTtTNEZR01d4AA2wpb3adlTfT2+iDjUuugG3Z qvwspA0tdJ2QZ9IjmOuBO0o0vKvPTSZX5vZxJ4j+hQAlF/Dt/BZBzJzk5j3ZtVeQHnYgeOyXWm3 148M7WZwpY7FwZBip49IfTs07+WoQJaUcztK6w1X6wby0RX1RrdMrfHWpYnW6sVkk8AsNjAspqT WWutoHS2mQKW9K9K3srDYVQKzQk+jqiyx9GZDml8KinABYhq5DmAXMWhrqKQrUI4kmuYpumO+zB oTFwvcP2b/zMZsJGjUDGdGGSW7H1L3+EuT2FSQ== X-Received: by 2002:a05:6000:26cf:b0:492:f6b7:f488 with SMTP id ffacd0b85a97d-49c6fc9dbf5mr23191710f8f.7.1794823274810; Mon, 16 Nov 2026 02:01:14 -0800 (PST) Received: from foxbook (bgu85.neoplus.adsl.tpnet.pl. [83.28.84.85]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-49c608cf46dsm22895243f8f.43.2026.11.16.02.01.13 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 16 Nov 2026 02:01:14 -0800 (PST) Date: Sun, 15 Nov 2026 11:01:32 +0100 From: Michal Pecio To: Jeffrey Hein Cc: Mathias Nyman , Ricardo Ribalda , Alan Stern , Laurent Pinchart , Hans de Goede , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH v5 2/3] media: uvcvideo: add UVC_QUIRK_CTRL_THROTTLE for fragile firmware Message-ID: <20261115110132.2b0bda47.michal.pecio@gmail.com> In-Reply-To: References: <20260331003806.212565-1-jp@jphein.com> <20260427083553.36ff4731.michal.pecio@gmail.com> <20260826134501.1726230-1-jp@jphein.com> X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi, FYI, I had a *broken* Kiyo Pro available for a few days in October. Starting a stream or autosuspend made it stop working altogether, but it was responding to control requests normally until then. Under such conditions, your stress test script ran at a rate of 2-3 iterations per second for thousands of iterations without issues. The only exception was ASMedia host controllers, where the script triggered a known HW bug related to repeated restarting of interrupt endpoints. Same bug is also triggered by toggling USB3 NICs up and down and on a different USB3 UVC camera, but only if I slow down its interrupt endpoint polling rate to match Kiyo Pro. So I found no evidence of HW bugs in this specific broken Kiyo Pro under my limited testing, but I found that UVC triggers HC bugs. I'm curious if you could check how this camera works on 7.3 and newer releases, because commit 7c0c31c66a7f solved most cases of the ASMedia interrupt bug - it was caused not just by any repeated restarting of the endpoint, but by repeated restarting while on a link TRB. It also solved crashes of VL805 on repeated USB3 isochronous restarts. Looks like some HW may not be handling No-Op and Link TRBs 100% right. > - What has kept calls working in practice is never stopping the > stream: an always-on OBS instance holds the camera open and > applications read a v4l2loopback virtual camera, so stream > stop/reconfigure never reaches the firmware. One stall under that > setup was absorbed by a hub VBUS cycle with no visible interruption. Well, that's possibly an HC bug triggered by stopping UVC streaming, like on VL805 but with different symptoms. > - The two cameras now sit on two hosts (Intel Cannon Lake 00:14.0 on > the desktop; a Titan Ridge Thunderbolt xHCI on a laptop) with the > same stack on both, so a remaining desktop-only failure isolates the > host. Not sure what you mean, is the Titan Ridge free of problems? > Still open from my side: the A/B on your xhci-test patch. Is there a > 7.x rebase, or should I run the 6.17 pair with the version skew? Are you referring to what I posted on April 9th? Both parts of that patch (fix soft retry after short transfers and override bogus wBytesPerInterval values) are now in mainline. OTOH, you could try the patch below, which is not in mainline. It makes stopping UVC streams less stressful for buggy HCs and it worked for those VL806 crashes which seem to be solved in 7.3 now. Regards, Michal --- diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc/uvc_video.c index fc3536a4399f..bc03e4b205e2 100644 --- a/drivers/media/usb/uvc/uvc_video.c +++ b/drivers/media/usb/uvc/uvc_video.c @@ -1901,7 +1901,13 @@ static void uvc_video_stop_transfer(struct uvc_streaming *stream, * will be prevented from resubmitting the URBs. */ for_each_uvc_urb(uvc_urb, stream) - usb_poison_urb(uvc_urb->urb); + usb_block_urb(uvc_urb->urb); + + for_each_uvc_urb(uvc_urb, stream) + usb_unlink_urb(uvc_urb->urb); + + for_each_uvc_urb(uvc_urb, stream) + usb_kill_urb(uvc_urb->urb); flush_workqueue(stream->async_wq);