linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brian Morrison <bdm@fenrir.org.uk>
To: Mathias Nyman <mathias.nyman@linux.intel.com>
Cc: linux-usb@vger.kernel.org,
	Linux kernel regressions list <regressions@lists.linux.dev>
Subject: Re: USB regression in kernel 6.2.2
Date: Thu, 9 Mar 2023 20:04:15 +0000	[thread overview]
Message-ID: <20230309200415.118777d2@deangelis.fenrir.org.uk> (raw)
In-Reply-To: <db2e0984-6eb5-5987-44e1-a7143141469b@linux.intel.com>

On Wed, 8 Mar 2023 17:16:01 +0200
Mathias Nyman <mathias.nyman@linux.intel.com> wrote:
 
> 
> Looks like that those devices initially enumerated fine, but suddenly
> disconnect about 19 seconds after boot.
> 
> [   19.155556] usb 2-1.1: USB disconnect, device number 4
> [   19.155685] cp210x ttyUSB0: cp210x converter now disconnected from
> ttyUSB0 [   19.159290] usb 2-1.4: USB disconnect, device number 6
> [   19.242344] usb 2-1.4: 3:0: failed to get current value for ch 0
> (-22) [   20.100761] usb 2-4.1: USB disconnect, device number 8
> [   20.100894] cp210x ttyUSB1: cp210x converter now disconnected from
> ttyUSB1 [   20.100999] cp210x 2-4.1:1.0: device disconnected
> [   20.107188] usb 2-4.2: USB disconnect, device number 9
> [   20.107253] cp210x ttyUSB2: cp210x converter now disconnected from
> ttyUSB2 [   20.107284] cp210x 2-4.2:1.0: device disconnected
> [   20.111938] usb 2-4.4: USB disconnect, device number 10
> [   20.181363] usb 2-4.4: 3:0: failed to get current value for ch 0
> (-22)
> 
> Interestingly those are all the devices behind external hubs.
> 
> Bisecting this to find the offending commit would be best, but a dmesg
> with xhci and usb core dynamic debug enabled could also show why
> those devices disconnect.
> 
> Adding "usbcore.dyndbg=+p xhci_hcd.dyndbg=+p" to your kernel cmdline
> should do this.

In addition to the debug output I have been looking at the diff between
kernel-6.1 and kernel-6.2 in the /drivers/usb tree, in particular under
/drivers/usb/core/hub.h and /drivers/usb/core/hub.c where the vendor
for this device with VID 0451 is newly listed although its PID is not:

Bus 003 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub

this device is missing from lsusb output in kernel 6.2.2 but is present
with kernel 6.1.*

In my inexpert way I think it is all tied in to changes from a few
months ago (November 2022) that went into the 6.2rc kernels where the
early_stop capability was added to USB enumeration but I am certainly
not smart enough to identify exactly why the particular combination of
hardware I have is caught up in it. I can see from the extended dmesg
output that certain USB interfaces are unregistered for no obvious
reason and that once this happens they are invisible to the OS. The
altered USB core code would seem to be a prime suspect as the cause of
this regression.

-- 

Brian Morrison


  parent reply	other threads:[~2023-03-09 20:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-07 13:21 USB regression in kernel 6.2.2 Brian Morrison
2023-03-08  9:52 ` Linux regression tracking #adding (Thorsten Leemhuis)
2023-03-08 15:16 ` Mathias Nyman
2023-03-08 16:45   ` Brian Morrison
2023-03-09 20:04   ` Brian Morrison [this message]
2023-03-12  0:03     ` Brian Morrison
2023-03-13 10:06       ` Mathias Nyman
2023-03-14 14:00         ` Brian Morrison
2023-03-15 11:19           ` Mathias Nyman
2023-03-15 14:53             ` Alan Stern
2023-03-17 18:37               ` Brian Morrison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230309200415.118777d2@deangelis.fenrir.org.uk \
    --to=bdm@fenrir.org.uk \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@linux.intel.com \
    --cc=regressions@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).