Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 99EFB1E7C03 for ; Sun, 22 Mar 2026 22:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774219836; cv=none; b=JblZcMKjwdYLLrvlyrOU1ALpuiBdLgK19oW947Bmo1rkYu6kraSnzpZfn0qFVdPFn08GSK8kLh1ch7KaJwZksJjA6tzg54tAvnPhgfYDEoWv5rfzX1c0urTsiWVJjenHhYQJxV0n5IUKiaW7chXOOAPPzLX1pje/2ABPNjK7smA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774219836; c=relaxed/simple; bh=0rBP9cmP3Rq9XVksFITPmsWOgg65fxpyDfXQOlq5fX0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iAFJKGSMCxTavBYBJPgAKjY2D2j17IOl+G8rS+QpCad3l/sP6/iBfvFnmpFHODlNLTfD0MG8BNZzPNskPTymJo//5wPHXn3HmUGOxJfVsJBp3P99qBQNtiWq/E9eINneP/0LBLfdIMPKqelpCQo928GyrwMbomARMwUKJt+QeLY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=jphein.com; spf=pass smtp.mailfrom=jphein.com; dkim=pass (2048-bit key) header.d=jphein.com header.i=@jphein.com header.b=z2XWmGKp; arc=none smtp.client-ip=74.125.82.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=jphein.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jphein.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jphein.com header.i=@jphein.com header.b="z2XWmGKp" Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-2c0ea57fea7so4224363eec.0 for ; Sun, 22 Mar 2026 15:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jphein.com; s=google; t=1774219833; x=1774824633; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nUoyhbPcIc2EMQIlt76bSFYcSIJJ4Un7MV9DQ53afaM=; b=z2XWmGKpJraYTn2kyGrsxQMAG1glpDCkGtmHAeyFXyOJc9spdTOkWirOjegwJUI48y 4oCCHqCv5X85ZFM3YBhqapdfLO3R8Z6FfVW+aGuk7QY2Yn1lo06fYJVB8r0BbGaq7ujU 2mVBMJzk7MnNz4MWqvpwfm83hPDzQf5uZKNtjMyOygkd/Yg55G67nD7fUkvurPUPOHx8 /Bv8WRr15RqK9gLjXfkHA3/+B8jc82TTUUMu+ncyrvfSx6XWVNr9pJQjGyF7grnITJj5 KTAvMC/eQhSktskUgeLZKMGa9heHb+MvgkBQemuX6Y1QO/OYcNkEiCIxM9j0UqHOrocb 6/eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774219833; x=1774824633; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=nUoyhbPcIc2EMQIlt76bSFYcSIJJ4Un7MV9DQ53afaM=; b=XFQwZJ+NL+8xVWpy/rkKS6ifb5qBtr1o5DP9/ibGgAVom/kSigmrpxVMWcZLApKUOx G60Lpe4wQqi8yXfq6iyyW8d6pxlQyXXZ6v5ZdPOBH7NyfkXIjesPv3f9NgIgGN3Qqd5t 9onOO4f0wjQpy9lH2nMsBurk4tHSPlQQC4Cijb3htnkbXR9r2UMgUUpiPZFH7OY4HWBY JAl/bYfAN5jRqEvWoQOhJpa8gQtsTS5bkKPtBGdQoVX0A95RVI43G23QDRmNmfO+5K/5 XewP5EImohlOcDRiSAUq7Ka9byGCnE4hpA3e8qVN+vYiUDly5xXn6jCPeNSJtc2Y1ZfD 5jkA== X-Gm-Message-State: AOJu0Yx1UjTqX1tbzq5TnFepqJ1+gHOxvN3Jq6Duk77uFCKmYjjCpSby 9R5th0LIlLDhyWqOgfq5h9k8BwKJh2Co4smFFdovKXDeK2PbHFgU8KodcmlqlraV0w== X-Gm-Gg: ATEYQzz7xgOorxUcY/wkfVMrW76nhZrGjruIlqwH1CjVjvaOTK6A/gRx+YThCj6Kebc FVIa/gSPQEqD9SsS+yUS/yLpNMiu4D9f/F1brcyrhFrJrOXzh0qcMFlHOvXNA5+Zwsg/QE+w/xv JRGNPRQK6FFjq4B6Fnfm1Q8E5kcx6RAm6z+gVdXtTIBCm9CJR4q100/GhChJrv3y17mVfFzWgiX Z56QAZ5ZanLR3E4rA4fcVjCr5t29yotYSTF63VJu4qXhufw6nEY3dcV8DOb81fXPxqX/2xzBhJ2 nPv8WpniXLxIs3hyUpid8XFYvyvmesYC35ySKFOzV2HPlGAjAW4lJENkJpcrxXgb3U20Te+4RWi zG5JmL10sN0IMOokT0ZrIJjfqhICg9D407BAqK7/a0Yqs+xIjdsTGo8o7OdrJoNr0h8hOyrTRFl uF0WOrCTWV X-Received: by 2002:a05:7301:1f15:b0:2be:884e:17c3 with SMTP id 5a478bee46e88-2c1095a7a7amr4111742eec.7.1774219832489; Sun, 22 Mar 2026 15:50:32 -0700 (PDT) Received: from katana.lan ([108.74.4.89]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2c10b31ebd5sm10928052eec.27.2026.03.22.15.50.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2026 15:50:32 -0700 (PDT) From: JP Hein To: Laurent Pinchart , Hans de Goede , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, linux-usb@vger.kernel.org, stable@vger.kernel.org, JP Hein Subject: [PATCH v4 0/3] USB/UVC: Add quirks to prevent Razer Kiyo Pro xHCI cascade failure Date: Sun, 22 Mar 2026 15:50:09 -0700 Message-ID: <20260322225012.1817920-1-jp@jphein.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Razer Kiyo Pro (1532:0e05) is a USB 3.0 webcam whose firmware has a well-documented failure mode that cascades into complete xHCI host controller death, disconnecting every USB device on the bus -- including keyboards and mice, requiring a hard reboot. The device has two crash triggers: 1. LPM/autosuspend resume: Device enters LPM or autosuspend, fails to reinitialize on resume, producing EPIPE (-32) on UVC SET_CUR. The stalled endpoint triggers an xHCI stop-endpoint timeout, and the kernel declares the host controller dead. 2. Rapid control transfers: sustained rapid UVC SET_CUR operations (hundreds over several seconds) overwhelm the firmware. The error-code query (GET_CUR on UVC_VC_REQUEST_ERROR_CODE_CONTROL) amplifies the failure by sending a second transfer to the already-stalling device, pushing it into a full lockup and xHCI controller death. This has been reported as Ubuntu Launchpad Bug #2061177, with reports across kernel versions 6.5 through 6.8. There are currently no device-specific quirks for this webcam in either the USB core quirks table or the UVC driver device table. This series adds three patches: Patch 1: USB core -- USB_QUIRK_NO_LPM to prevent Link Power Management transitions that destabilize the device firmware. Patch 2: UVC driver -- introduce UVC_QUIRK_CTRL_THROTTLE to rate-limit SET_CUR control transfers (50ms minimum interval) and skip the error-code query after EPIPE errors on affected devices. Patch 3: UVC driver -- add Razer Kiyo Pro device table entry with UVC_QUIRK_CTRL_THROTTLE, UVC_QUIRK_DISABLE_AUTOSUSPEND, and UVC_QUIRK_NO_RESET_RESUME to address both crash triggers. Together, these keep the device in a stable active state, prevent rapid control transfer crashes, and avoid the power management transitions that trigger the firmware bug. Changes since v3: - Regenerated patches against media-committers next branch to fix context mismatch (v3 was based on Ubuntu 6.8 source) Tested on: - Kernel: 6.8.0-106-generic (Ubuntu 24.04) - Hardware: Intel Cannon Lake PCH xHCI (8086:a36d) - Device: Razer Kiyo Pro (1532:0e05), firmware 8.21 - Stress test: 50 rounds of rapid UVC control changes, 0 failures Stress test and crash evidence: https://github.com/jphein/kiyo-xhci-fix JP Hein (3): USB: core: add NO_LPM quirk for Razer Kiyo Pro webcam media: uvcvideo: add UVC_QUIRK_CTRL_THROTTLE for fragile firmware media: uvcvideo: add quirks for Razer Kiyo Pro webcam drivers/media/usb/uvc/uvc_driver.c | 17 ++++++++++++++++ drivers/media/usb/uvc/uvc_video.c | 32 ++++++++++++++++++++++++++++++ drivers/media/usb/uvc/uvcvideo.h | 3 +++ drivers/usb/core/quirks.c | 2 ++ 4 files changed, 54 insertions(+)