All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: Harry Wentland <harry.wentland@amd.com>,
	linux-usb@vger.kernel.org, mathias.nyman@linux.intel.com,
	regressions@lists.linux.dev, Raju.Rangoju@amd.com,
	Sanath.S@amd.com, Greg KH <gregkh@linuxfoundation.org>
Subject: Re: [REGRESSION] usb: acpi: add device link between tunneled USB3 device and USB4 Host Interface
Date: Thu, 3 Oct 2024 16:27:26 +0300	[thread overview]
Message-ID: <20241003132726.GN275077@black.fi.intel.com> (raw)
In-Reply-To: <01bf9a3a-6277-4b57-83ed-82c4bfb62dd2@amd.com>

On Thu, Oct 03, 2024 at 08:10:11AM -0500, Mario Limonciello wrote:
> On 10/3/2024 00:47, Mika Westerberg wrote:
> > Hi Harry,
> > 
> > On Wed, Oct 02, 2024 at 01:42:29PM -0400, Harry Wentland wrote:
> > > I was checking out the 6.12 rc1 (through drm-next) kernel and found
> > > my system hung at boot. No meaningful message showed on the kernel
> > > boot screen.
> > > 
> > > A bisect revealed the culprit to be
> > > 
> > > commit f1bfb4a6fed64de1771b43a76631942279851744 (HEAD)
> > > Author: Mathias Nyman <mathias.nyman@linux.intel.com>
> > > Date:   Fri Aug 30 18:26:29 2024 +0300
> > > 
> > >      usb: acpi: add device link between tunneled USB3 device and USB4 Host Interface
> > > 
> > > A revert of this single patch "fixes" the issue and I can boot again.
> > > The system in question is a Thinkpad T14 with a Ryzen 7 PRO 6850U CPU.
> > > It's running Arch Linux but I doubt that's of consequence.
> > > 
> > > lspci output:
> > >      https://gist.github.com/hwentland/59aef63d9b742b7b64d2604aae9792e0
> > > acpidump:
> > >      https://gist.github.com/hwentland/4824afc8d712c3d600be5c291f7f1089
> > > 
> > > Mario suggested I try modprobe.blacklist=xhci-hcd but that did nothing.
> > > Another suggestion to do usbcore.nousb lets me boot to the desktop
> > > on a kernel with the faulty patch, without USB functionality, obviously.
> > > 
> > > I'd be happy to try any patches, provide more data, or run experiments.
> > 
> > Do you boot with any device connected?
> > > Second thing that I noticed, though I'm not familiar with AMD hardware,
> > but from your lspci dump, I do not see the PCIe ports that are being
> > used to tunnel PCIe. Does this system have PCIe tunneling disabled
> > somehow?
> 
> On some OEM systems it's possible to lock down from BIOS to turn off PCIe
> tunneling, and I agree that looks like the most common cause.
> 
> This is what you would see on a system that has tunnels (I checked on my
> side w/ Z series laptop w/ Rembrandt and a dock connected):
> 
>            +-03.0
>            +-03.1-[03-32]--
>            +-04.0
>            +-04.1-[33-62]----00.0-[34-62]--+-02.0-[35]----00.0
>            |                               \-04.0-[36-62]--
> 
> 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family
> 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
> 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 19h
> USB4/Thunderbolt PCIe tunnel [1022:14cd]
> 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family
> 17h-19h PCIe Dummy Host Bridge [1022:14b7] (rev 01)
> 00:04.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 19h
> USB4/Thunderbolt PCIe tunnel [1022:14cd]

Okay this is more like what I expected, although probably not the
reason here.

Are you able to replicate the issue if you disable PCIe tunneling from
the BIOS on your reference system? (Probably not but just in case).

> > You don't see anything on the console? It's all blank or it just hangs
> > after some messages?
> 
> I guess it is getting stuck on fwnode_find_reference() because it never
> finds the given node?

Looking at the code, I don't see where it could get stuck. If for some
reason there is no such reference (there is based on the ACPI dump) then
it should not affect the boot. It only matters when power management is
involved.

  reply	other threads:[~2024-10-03 13:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-02 17:42 [REGRESSION] usb: acpi: add device link between tunneled USB3 device and USB4 Host Interface Harry Wentland
2024-10-02 19:39 ` Mario Limonciello
2024-10-03  5:47 ` Mika Westerberg
2024-10-03 13:10   ` Mario Limonciello
2024-10-03 13:27     ` Mika Westerberg [this message]
2024-10-03 13:42       ` Mario Limonciello
2024-10-03 13:47         ` Mika Westerberg
2024-10-03 18:23           ` Harry Wentland
2024-10-03 18:51             ` Harry Wentland
2024-10-03 19:09               ` Mario Limonciello
2024-10-03 19:41                 ` Harry Wentland
2024-10-04  6:20                   ` Mika Westerberg
2024-10-03 19:48               ` Michał Pecio
2024-10-03 20:43                 ` Harry Wentland
2024-10-03 21:42                   ` Michał Pecio
2024-10-09 21:52           ` Mathias Nyman
2024-10-10  2:23             ` Mario Limonciello
2024-10-10 12:01               ` Mathias Nyman
2024-10-16 19:48                 ` Harry Wentland
2024-10-21 10:56                   ` Mathias Nyman
2024-10-22 12:33                     ` Mathias Nyman

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=20241003132726.GN275077@black.fi.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=Raju.Rangoju@amd.com \
    --cc=Sanath.S@amd.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=harry.wentland@amd.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.