public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
From: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Kenneth Crudup <kenny@panix.com>
Cc: "Bjorn Helgaas" <helgaas@kernel.org>,
	ilpo.jarvinen@linux.intel.com,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Jian-Hong Pan" <jhp@endlessos.org>,
	linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org,
	"Niklāvs Koļesņikovs" <pinkflames.linux@gmail.com>,
	"Andreas Noever" <andreas.noever@gmail.com>,
	"Michael Jamet" <michael.jamet@intel.com>,
	"Lukas Wunner" <lukas@wunner.de>,
	"Yehezkel Bernat" <YehezkelShB@gmail.com>,
	linux-usb@vger.kernel.org
Subject: Re: diagnosing resume failures after disconnected USB4 drives (Was: Re: PCI/ASPM: Fix L1SS saving (linus/master commit 7507eb3e7bfac))
Date: Fri, 28 Feb 2025 12:49:25 +0200	[thread overview]
Message-ID: <20250228104925.GO3713119@black.fi.intel.com> (raw)
In-Reply-To: <5c131927-87c1-4e21-90f8-8e3a34cd6dbf@panix.com>

Hi,

On Thu, Feb 27, 2025 at 09:46:07AM -0800, Kenneth Crudup wrote:
> So I think, the failure mode may be related in some part to DP/Tunneling,
> too- I finally got another lockup (this time, after a hibernate, which I
> guess is some of the same facility) but what was different about this time
> where I couldn't reproduce the lockups (and what happens when I use my
> CalDigit dock) was I had an external USB-C monitor connected when I resumed,
> and when I'm home (where I sometimes forget to remove the NVMe USB4 adaptor)
> I always have my monitor connected to the dock.

It would be good to stick with a "proven" use-case so that the steps are
always the same. This may involve several issues in various parts of the
kernel and we need to track them one by one. If you change the steps in the
middle then we may end up finding completely different issues and it is not
helping the debugging effort.

The steps at the moment would be simply this:

1. Boot the system up, nothing connected.
2. Connect Thunderbolt dock and make sure UI authorizes it.
3. Connect Thunderbolt NVMe to the Thunderbolt dock and make sure UI authorizes it.
4. Verify that the devices behind PCIe tunnels are visible and functional (lspci for example)
5. Suspend the laptop by closing lid.
6. Unplug the dock (and the NVMe).
7. Resume the laptop by opening the lid.

Expectation: The system resumes just fine, finds the devices gone and stays functional.
Actual result: The system does not resume properly, seems to crash and burn the screen
	       is black.

Please correct me if I got something wrong. This is essentially that you go
from work to home, unplugging the dock and then resuming it at home.

The other thing is that in the pstore I see these:

thunderbolt 0000:00:0d.2: 0:5: __tb_path_deactivate_hop(): 401

but there is no such log in the mainline. If you have done some local
changes I suggest to drop all them to make sure we are looking at the same
source code.

> See attached dump log. I'm using the (somewhat still experimental) Xe
> display driver, but I've seen this same lockup happen with i915.

Please also keep using tha same graphics driver.

> In any case, I've now reverted 9d573d19, and when I get back to my CalDigit
> I can try instrumenting the code paths in the commit and see exactly where
> we're locking up.

No need to add any changes. Just try with the revert and see if that at
least makes the system resume properly. If it does then there could be
other issues but then you can take full dmesg and send to us instead of
those pstore snippets.

  reply	other threads:[~2025-02-28 10:49 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <b2abd254-d11f-4ef7-8664-b9e5a1409abc@panix.com>
2025-02-10 21:05 ` PCI/ASPM: Fix L1SS saving (linus/master commit 7507eb3e7bfac) Bjorn Helgaas
2025-02-11  0:18   ` Kenneth Crudup
2025-02-11  5:57     ` Mika Westerberg
2025-02-11  6:17       ` diagnosing resume failures after disconnected USB4 drives (Was: Re: PCI/ASPM: Fix L1SS saving (linus/master commit 7507eb3e7bfac)) Kenneth Crudup
2025-02-13 13:59         ` Mika Westerberg
2025-02-13 19:19           ` Kenneth Crudup
2025-02-14 16:29             ` Mika Westerberg
2025-02-14 17:39               ` Kenneth Crudup
2025-02-26  8:44                 ` Mika Westerberg
2025-02-26  9:10                   ` Lukas Wunner
2025-02-26  9:19                     ` Mika Westerberg
2025-03-03 20:00                       ` Lukas Wunner
2025-03-03 20:57                         ` Kenneth Crudup
2025-03-04  8:23                         ` Mika Westerberg
2025-03-06 16:45                           ` Lukas Wunner
2025-03-06 16:56                             ` Kenneth Crudup
2025-03-06 18:18                               ` Lukas Wunner
2025-03-06 20:38                             ` Kenneth Crudup
2025-03-07  2:04                             ` Kenneth Crudup
2025-03-07 10:34                             ` Mika Westerberg
2025-02-26 15:31                   ` Kenneth Crudup
2025-02-26 21:13                   ` Kenneth Crudup
2025-02-26 21:14                   ` Kenneth Crudup
2025-02-27 17:46                     ` Kenneth Crudup
2025-02-28 10:49                       ` Mika Westerberg [this message]
2025-02-28 16:04                         ` Kenneth Crudup
2025-03-02 16:13                           ` Kenneth Crudup
2025-03-03 10:48                             ` Mika Westerberg

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=20250228104925.GO3713119@black.fi.intel.com \
    --to=mika.westerberg@linux.intel.com \
    --cc=YehezkelShB@gmail.com \
    --cc=andreas.noever@gmail.com \
    --cc=bhelgaas@google.com \
    --cc=helgaas@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jhp@endlessos.org \
    --cc=kenny@panix.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=michael.jamet@intel.com \
    --cc=pinkflames.linux@gmail.com \
    /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