From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE614265CBE for ; Sat, 11 Apr 2026 13:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775914783; cv=none; b=Bo23DxkLDK5P6tqVrzRTQ6AbWU/P7XgIQnzxhkalzcKE5/WFE2iwYbeMaVe9P1w0NRXtm+61jjQ2yRR/HnrbzKSQcknYN9lFRDUFG/51WK7pfVG3NtNOfD1UrDbXs5Eg7mgREetGl07quaJOcUL8gURtwGzZJvzsVqm8i6LucZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775914783; c=relaxed/simple; bh=GlYCZfWgWZ+Auk8Kau0yI40Dl4yPnI6VLalMiXlRhRg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TX2b6FURSfK8PaMhd/RL3a71E9jRtuyyHj+lG8I3/EBxcsxXu86r++83yc48+4aRAIV3usqICwdd8hXLc1BdewpxM1Z9KNRoaWwYvogz/VY/kzeLLnE9WjCBLDYqWD72xjtYQ0I7zsD0JGmcEK/bnMqzP1bq8jiQ2fg/w0Qxg+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NaJqVQ36; arc=none smtp.client-ip=209.85.128.44 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.b="NaJqVQ36" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-488971db0fdso29116445e9.0 for ; Sat, 11 Apr 2026 06:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775914780; x=1776519580; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=pDRr3a1WzbFHjnYdc5Yz0jdXm1HUWqyueTEULNfk4+U=; b=NaJqVQ36UnAvMXD6iIduaGM/LB1QYrOxPYSAR5JnvcrjYm0aFHr6nXJNegqNQr6CO4 5mB9QEvjTUFJ9YODYPs+OOl8Kc/ctWPJ7f5/NHSb4+01tml3n3zyw1b7C6GskQc+ZDH+ 3h9mPl4gZ/U9jzNEKGV6yNMWc9wPZtl0KR5MnVKFBAoYnQzqLGEhM+1W3HLCNWeRQxF8 1CU1zmrGd8P3lwvc28Gt49CfLkm9mPL91GaaRYQApA49bO3DfakkZCYx6Vqx0jaPEIZc 48zGYJysJiLfBx70dLWSWeTXMo6yIKjk0bhKiqOj6DW2VTcHabry0aFhPNjeb4MyRCvZ jaBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775914780; x=1776519580; h=content-transfer-encoding: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; bh=pDRr3a1WzbFHjnYdc5Yz0jdXm1HUWqyueTEULNfk4+U=; b=nQa2SWuD0cBHivKJLDbQ/i6T10dKZwbCqW3PKhelI9gJQI7S4pbcpPR/yiBAZPniXw xwpj8PN8bDBaMxi+xO6FgI48BAVxPJlxWvkapgN0h4rjU1SOuH7+EcGu7SOEVgnmy6M8 0Ndcv4qcFC/VNjuxahSTgwUAC09lW6UtRh4BeXVEkVNu57KgXdAvHhcJvIc1FkfHKh72 QdyO/Ee2zCFB3k2fYc6oEqgevnG00OLrj6W11pel3YavDMZ6ZGHxAmHWacqIdXVp2YAu zM1w2qaUlDTGWt7+TjttHr+Iw/VHBh++4nOSg/e8rid/Om5jkPE3gIhXd3rZW07fr/dQ Hg7w== X-Forwarded-Encrypted: i=1; AJvYcCWh5YntSm+nNtDUdJbLSp9DoZarbxYgZrEBifXmKRIg6wdDCTiOr8+NodZWwNQ+tzyY7iuyoD7xxhI=@vger.kernel.org X-Gm-Message-State: AOJu0Yxe3LwHIQK82U73DHc+TT+Iy2b/wd+94E/TFjTocFhMQoEv/mco ALsp8EdQ2dSV2QANuYn19JxZ0NdhufNZZ29A95EdpYX8Z6Yhq7DYUMS4 X-Gm-Gg: AeBDiev1ZVFVjt5ZG7O0oJw4PMblm3HtATOvOFUrtBbrvOWuWuI3HyV9yc1Q8pJNgsM rw+w2iNJhr56XDR1gYJATeClZb7jafntKkjqZnRVoIjOYfHKJSskxRln6NA8BYTlMRx3oGUrGdP NX0scV1/+rxBfxs9+MoNm0B229tWmuOr2VmOfgdu5t9N4cLi9k7A8ou8FWxGCglk7+7Bd6P6m7W J5CDeYc0obq5z25eTd3hP1WpSVMqwd/ErOGD75t9EAL8mwHn/VBSRT9aX685brDIRF5YcRAQNgj SAPZMGQYi4/uOoWwamaoWdmCZRoY5B9UgrS7EKWzhHFEWZMlOkG1xqnpmZvXYTXH+yYz0M8gj1C EswD1R/yqOkPRIgzFLnlej4rhfbSU7QrtbYoe5RJkPf/fRhRcW95ax3NmwUt74rO1pj0LW7s82K 9eO+lFJ0wVnqK9b8o8pvOM5E4YRT1QPtq/hug= X-Received: by 2002:a05:600c:8585:b0:488:9bf8:7f17 with SMTP id 5b1f17b1804b1-488d684bcb0mr70355895e9.14.1775914780064; Sat, 11 Apr 2026 06:39:40 -0700 (PDT) Received: from foxbook (bfi125.neoplus.adsl.tpnet.pl. [83.28.46.125]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5347ea5sm169775625e9.8.2026.04.11.06.39.38 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Sat, 11 Apr 2026 06:39:39 -0700 (PDT) Date: Sat, 11 Apr 2026 15:39:35 +0200 From: Michal Pecio To: Mathias Nyman Cc: Ricardo Ribalda , JP Hein , Alan Stern , Laurent Pinchart , Hans de Goede , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v5 2/3] media: uvcvideo: add UVC_QUIRK_CTRL_THROTTLE for fragile firmware Message-ID: <20260411153935.2fc5c030.michal.pecio@gmail.com> In-Reply-To: References: <20260331003806.212565-1-jp@jphein.com> <20260331003806.212565-3-jp@jphein.com> <20260409100247.7cfb62d1.michal.pecio@gmail.com> <20260409221749.5e6bccab.michal.pecio@gmail.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 11 Apr 2026 00:48:05 +0300, Mathias Nyman wrote: > > Five seconds later two control URBs are unlinked: > > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Cancel URB 00000000122aa5e2, dev 3.1, ep 0x0, starting at offset 0x11e227b40 > > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: // Ding dong! > > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Cancel URB 000000008a55bcd3, dev 3.1, ep 0x0, starting at offset 0x11e227b20 > > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Not queuing Stop Endpoint on slot 18 ep 0 in state 0x44 > > log continues with: > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Removing canceled TD starting at 0x11e227b40 (dma) in stream 0 URB 00000000122aa5e2 > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Removing canceled TD starting at 0x11e227b20 (dma) in stream 0 URB 000000008a55bcd3 > Mar 30 16:59:21 katana kernel: xhci_hcd 0000:00:14.0: Set TR Deq ptr 0x11e227b40, cycle 0 > > One theory could be that xHC control endpoint refuses to restart when > its dequeue pointer is moved to a no-op TD like in this case (second > cancelled URB). This could explain why it doesn't work later, but not why these URBs have been unlinked after making no progress for 5 seconds. EP0 was probably still functioning normally during those submit-unlink cycles on 0x85 and there were no EP0 unlinks until these above. Another corner case which could potentially confuse HCs is Set TR Deq to a Link TRB, but it doesn't occur in this log on any endpoint. By the way, are you able to find out what this is? 198 falls into the "vendor defined error" range and vendor is Intel. crash-6.17.0-xhci-test-20260410-154243.log, isochronous URB unlink: [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: Transfer error for slot 36 ep 2 on endpoint [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: ERROR Unknown event condition 198 for slot 36 ep 2 , HC probably busted [Fri Apr 10 15:44:31 2026] xhci_hcd 0000:00:14.0: Stopped on Transfer TRB for slot 36 ep 2