From: Johan Hovold <johan@kernel.org>
To: Tung Pham <Tung.Pham@silabs.com>
Cc: Hung Nguyen <Hung.Nguyen@silabs.com>,
"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>,
Pho Tran <Pho.Tran@silabs.com>
Subject: Re: Bugs: usb serial crash when close second comport
Date: Tue, 2 Feb 2021 09:32:16 +0100 [thread overview]
Message-ID: <YBkOEHM8/VfK5Gc+@hovoldconsulting.com> (raw)
In-Reply-To: <CO1PR11MB48821E7544DCB4E06665849481B59@CO1PR11MB4882.namprd11.prod.outlook.com>
On Tue, Feb 02, 2021 at 03:50:50AM +0000, Tung Pham wrote:
> > Can you reproduce this with a mainline kernel?
> >
> > Otherwise, you may need to bring this up with Ubuntu.
>
> this bug doesn't occur on Ubuntu running on pc, it only occur on
> raspberry.
I understand, but if you can only reproduce this using a Ubuntu kernel
on the RPi it could be to something that they've put in their kernel's
(e.g. some out-of-tree driver) which doesn't exist in mainline. That's
why you need to be able to reproduce it on a mainline kernel.
> One additional thing: the bug doesn't occur with HUB: Orico, model
> W6ph4-u3-v1, Manufacture: VIA Labs, inc.
> It only occur with hub: HB-UM43 hub, Genesys Logic, Inc.
Ok, so depending on if the kernel crashes or not, it could still be a
bug in the hub firmware.
> > This sounds like you could have a problem with the host-controller
> > driver. What controller is the RPi4 using?
>
> For the Pi 4, a fully-featured host controller drives the downstream
> USB ports. Downstream USB is provided by a Via Labs VL805 chip - that
> supports two USB 2.0 ports and two USB 3.0 ports
Which driver does it use? I believe some of the earlier RPi used an
out-of-tree host-controller driver, but perhaps that's no longer the
case.
> > As you write above, the usb_serial_generic_close() is needed to
> > cancel the outstanding URBs during close so you can't remove that.
> >
> > But my guess is that something breaks in the HCD when unlinking
> > those URBs when connected through the hub. Do you have a stack trace
> > from an oops? Or do things just lock up?
>
> I don't know how to capture stack trace?
If the kernel oopses/crashes (e.g. due to a bug in the driver) you
should find a stack trace in the kernel log (e.g. run dmesg).
But if the USB bus just locks up (until you disconnect the hub or
device, or reload the USB serial driver), then this could also be a
firmware bug in the host-controller or hub.
Johan
next prev parent reply other threads:[~2021-02-02 8:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <PU1PR06MB2117988A6B7680CA1806DBE091B69@PU1PR06MB2117.apcprd06.prod.outlook.com>
2021-02-01 8:40 ` Bugs: usb serial crash when close second comport Johan Hovold
[not found] ` <CO1PR11MB48828958BDC51E796D37D63F81B69@CO1PR11MB4882.namprd11.prod.outlook.com>
2021-02-01 10:19 ` Johan Hovold
2021-02-02 3:50 ` Tung Pham
2021-02-02 8:32 ` Johan Hovold [this message]
2021-02-02 9:48 ` Tung Pham
2021-02-03 8:49 ` Johan Hovold
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=YBkOEHM8/VfK5Gc+@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=Hung.Nguyen@silabs.com \
--cc=Pho.Tran@silabs.com \
--cc=Tung.Pham@silabs.com \
--cc=linux-usb@vger.kernel.org \
/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