Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp20336pxb; Tue, 7 Sep 2021 16:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVCqOlC1FBFzybHBuRlJvmvkebkr8Hw9WTH6HJOs4w4TImqXmDa9v5GCSRy3i4vG1+9+k/ X-Received: by 2002:aa7:c313:: with SMTP id l19mr780573edq.131.1631057440973; Tue, 07 Sep 2021 16:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631057440; cv=none; d=google.com; s=arc-20160816; b=svq17WyRob1NvTzrDSbBidlZ+qKelIMZdSTHp7HJYJPOlxUD285ATMvMAydZEMz+1X yMrGq0XN93M/Lr4B2f5ZTSOfB0R/Z4rX83iSlmG0C8cdT8I0gkNIicfCbMYko5ugIV2R RSc+gZ5t2+9j5uiGzMbT1wvyMYXgf7pIbo6w3a9NCptQV0BTzy5SZf+fp27TyeK6/oub 71CTAqMN2MjGvE3+ZBe7bpN5xsLJ/n1P3WVj/EoTynYHs56tH8FCt43CX3gmKpMgMvjS Ioc6k12nIg6birl/5YbdFvV8kXhZDf987pBdWi1SaLQY5l8Ecd7nAkn+balTH49d8JU5 0yyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=XZgjYLlFtvzdYAFW99AMj/mNnjSEdgWxrfOV4Te+PY0=; b=kXuXgv4gZB3t4NILnXPOSnWyLN7KzXXKUpw6bgooc9LnTPnrST6JYBUY50PZ/oDePV Mujan+vqHIxQ53zmY6ivN/DhroxyYblVC+PaVEYPPyxJfJjKXXSNA4i0nBokL3qzHOVP AlXKPn5ntnyKb4KVPW8X4yvZhg0TyIBvWrD/KlgT2YZuwfvEbzJDx9P3rG/ih0vjbglC kah1RrwD92EMRTbS6F47fLLjCwArxWJPV52P+EoLeuydHveAYE5PYJmwP9YQtJinGdQi CbqGqr44MS0j4TjZ6ONqmsMfzQamSA6rnakttZy3ZI8KVuuLwMVQwLfNnSgr5dyXXcLu S7oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e1si405538ejy.467.2021.09.07.16.30.17; Tue, 07 Sep 2021 16:30:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235425AbhIGXaE convert rfc822-to-8bit (ORCPT + 99 others); Tue, 7 Sep 2021 19:30:04 -0400 Received: from smtprelay04.ispgateway.de ([80.67.18.16]:62950 "EHLO smtprelay04.ispgateway.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230238AbhIGXaC (ORCPT ); Tue, 7 Sep 2021 19:30:02 -0400 X-Greylist: delayed 1024 seconds by postgrey-1.27 at vger.kernel.org; Tue, 07 Sep 2021 19:30:02 EDT Received: from [88.78.105.74] (helo=sju.home.jstuber.net) by smtprelay04.ispgateway.de with esmtpa (Exim 4.94.2) (envelope-from ) id 1mNfiD-000511-CP; Tue, 07 Sep 2021 20:20:49 +0200 Date: Tue, 7 Sep 2021 20:23:10 +0200 From: Juergen Stuber To: linux-kernel@vger.kernel.org Cc: Ricky Wu , Mathias Nyman Subject: Thunderbolt 3 Dock, USB issues when undocking then docking Message-ID: <20210907202310.77dea423@sju.home.jstuber.net> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Df-Sender: OTE4MDk1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greetings! In Linux versions 5.10-rc1 or newer (exact bisect see below) I have issues when I undock and then dock my Thunderbolt 3 dock. Afterwards I see - log messages like "retire_capture_urb: 571 callbacks suppressed" (always) - audio glitches when playing audio via the dock on USB speakers (almost always) - keyboard events are lost on a dock-connected keyboard (sometimes) I tested this by undocking, waiting a short while, then redocking, and after that playing audio via USB speakers connected to the dock. It seems to be deterministic, that is, in affected kernels it seems to happen on every undock-dock cycle. This is a Thinkpad T14 Gen1 Intel (20S0000HGE) and a Thinkpad Thunderbolt 3 Dock Gen2 (40AN / SD20M70247), the USB speakers are Logitech Z-10, the distribution is Debian bullseye. I bisected the issue, this pointed to the first bad commit 726eb70e0d34 Merge tag 'char-misc-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc Since that was a big merge and thus not too helpful, I bisected the two branches that were merged. That is, I bisected one branch and merged into the head of the other branch and tested the merge. On char-misc this pointed to 7c33e3c4c79a misc: rtsx: Add power saving functions and fix driving parameter The affected driver is in use for a device in my system: 02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader [10ec:522a] (rev 01) Log output: [ 1.179205] rtsx_pci 0000:02:00.0: enabling device (0000 -> 0002) On the mainline side the bisect points to edc649a82341 xhci: Tune interrupt blocking for isochronous transfers I tried to revert each of these, but that was not easily possible. RedHat has a bug report about this issue: https://bugzilla.redhat.com/show_bug.cgi?id=1951372 Please ask if you need more info or testing. Jürgen -- Jürgen Stuber http://www.jstuber.net/