From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF89D21CC54; Wed, 26 Feb 2025 21:14:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.84.1.89 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740604477; cv=none; b=UVg+fSFLkNyFQOP3cK1ctUp6W6VOfk5GTd9tr15mJBJRMYJhEtnQtQccBN8GcNORSVtRu5ferBaqjzjUxhXQJvNgGzbNBe0wZRyz9Jyn3HBTQy7rmUM6EFFrD42wgQ46b0/3tc6GG/10brHH8xuDXZqaMkpe9tDRymmiwq85KZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740604477; c=relaxed/simple; bh=XcLEjNFPOoLRIwImSrjAbC/QV0oZJMWCJiJfGnQ9RQY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HmbWVNgeq3gQtnvXAFlAc0JRLRMJPHZWzu+SEOPeAgh0T0Pc33CWo8SY0ZjNLTVYwpjR/qp4t01LJkAfkBlSN0r4BhwVTgN+ViQ3KpHfeTjqaR53QH0bmvANgERM64zlw3FQILvAetYx0U9tBrCvtc7E40qsc7zw+vXRVKIWJ20= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=panix.com; spf=pass smtp.mailfrom=panix.com; dkim=pass (1024-bit key) header.d=panix.com header.i=@panix.com header.b=ZqghOfAq; arc=none smtp.client-ip=166.84.1.89 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=panix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=panix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=panix.com header.i=@panix.com header.b="ZqghOfAq" Received: from [10.50.4.36] (45-31-46-51.lightspeed.sndgca.sbcglobal.net [45.31.46.51]) by mailbackend.panix.com (Postfix) with ESMTPSA id 4Z36fx3233z4KrM; Wed, 26 Feb 2025 16:14:33 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=panix.com; s=panix; t=1740604474; bh=XcLEjNFPOoLRIwImSrjAbC/QV0oZJMWCJiJfGnQ9RQY=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=ZqghOfAqRbEIhg3c3Ioc2TNh5inQD/y+OFOdgxVLZsc8iE3R1sVwO2ZRi/vXiSOqd 2NmKjYClWrOaMBjUrLwm9UXEH6hpeUjXCrS8UwlIFBNYncx+7+mstum067/TmwdAMi WeC6LZ3K2qiesn0sRHBRXBbRuB9FIgjNJeJTrogk= Message-ID: Date: Wed, 26 Feb 2025 13:14:32 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: diagnosing resume failures after disconnected USB4 drives (Was: Re: PCI/ASPM: Fix L1SS saving (linus/master commit 7507eb3e7bfac)) To: Mika Westerberg , Kenneth Crudup Cc: Bjorn Helgaas , ilpo.jarvinen@linux.intel.com, Bjorn Helgaas , Jian-Hong Pan , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?B?TmlrbMSBdnMgS2/EvGVzxYZpa292cw==?= , Andreas Noever , Michael Jamet , Lukas Wunner , Yehezkel Bernat , linux-usb@vger.kernel.org References: <20250210210502.GA15655@bhelgaas> <21b72adf-aac6-49fa-af40-6db596c87432@panix.com> <20250211055722.GW3713119@black.fi.intel.com> <83d9302a-f743-43e4-9de2-2dd66d91ab5b@panix.com> <20250213135911.GG3713119@black.fi.intel.com> <20250214162948.GJ3713119@black.fi.intel.com> <661459dd-67d0-4e1c-bb28-9adf1417f660@panix.com> <20250226084404.GM3713119@black.fi.intel.com> Content-Language: en-US From: Kenneth Crudup In-Reply-To: <20250226084404.GM3713119@black.fi.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit OK, just did a resume after suspended (for an hour, which somehow seems to matter) while my CalDigit dock was attached with the ASMedia NVMe adaptor at suspend, but both disconnected on resume, and I am indeed locked up. I can attached the "pstore" report if necessary. Unfortunately I won't be able to get back to the CalDigit until Saturday afternoon California time. I'll be trying all the reverts/commits listed herein and at least check for regressions in other cases, though. -Kenny On 2/26/25 00:44, Mika Westerberg wrote: > Hi Kenneth, > > On Fri, Feb 14, 2025 at 09:39:33AM -0800, Kenneth Crudup wrote: >> >> This is excellent news that you were able to reproduce it- I'd figured this >> regression would have been caught already (as I do remember this working >> before) and was worried it may have been specific to a particular piece of >> hardware (or software setup) on my system. >> >> I'll see what I can dig up on my end, but as I'm not expert in these >> subsystems I may not be able to diagnose anything until your return. > > [Back now] > > My git bisect ended up to this commit: > > 9d573d19547b ("PCI: pciehp: Detect device replacement during system sleep") > > Adding Lukas who is the expert. > > My steps to reproduce on Intel Meteor Lake based reference system are: > > 1. Boot the system up, nothing connected. > 2. Once up, connect Thunderbolt 4 dock and Thunderbolt 3 NVMe in a chain: > > [Meteor Lake host] <--> [TB 4 dock] <--> [TB 3 NVMe] > > 3. Authorize PCIe tunnels (whatever your distro provides, my buildroot just > has the debugging tools so running 'tbauth -r 301') > > 4. Check that the PCIe topology matches the expected (lspci) > > 5. Enter s2idle: > > # rtcwake -s 30 -mmem > > 6. Once it is suspended, unplug the cable between the host and the dock. > > 7. Wait for the resume to happen. > > Expectation: The system wakes up fine, notices that the TB and PCIe devices > are gone, stays responsive and usable. > > Actual result: Resume never completes. > > I added "no_console_suspend" to the command line and the did sysrq-w to > get list of blocked tasks. I've attached it just in case it is needed. > > If I revert the above commit the issue is gone. Now I'm not sure if this is > exactly the same issue that you are seeing but nevertheless this is kind of > normal use case so definitely something we should get fixed. > > Lukas, if you need any more information let me know. I can reproduce this > easily. > >> I also saw some DRM/connected fixes posted to Linus' master so maybe one of >> them corrects this new display-crash issue (I'm not home on my big monitor >> to be able to test yet). >> >> -Kenny >> >> On 2/14/25 08:29, Mika Westerberg wrote: >>> Hi, >>> >>> On Thu, Feb 13, 2025 at 11:19:35AM -0800, Kenneth Crudup wrote: >>>> >>>> On 2/13/25 05:59, Mika Westerberg wrote: >>>> >>>>> Hi, >>>> >>>> As Murphy's would have it, now my crashes are display-driver related (this >>>> is Xe, but I've also seen it with i915). >>>> >>>> Attached here just for the heck of it, but I'll be better testing the NVMe >>>> enclosure-related failures this weekend. Stay tuned! >>> >>> Okay, I checked quickly and no TB related crash there but I was actually >>> able to reproduce hang when I unplug the device chain during suspend. I did >>> not yet have time to look into it deeper. I'm sure this has been working >>> fine in the past as we tested all kinds of topologies including similar to >>> this. >>> >>> I will be out next week for vacation but will continue after that if the >>> problem is not alraedy solved ;-) >>> >> >> -- >> Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County >> CA -- Kenneth R. Crudup / Sr. SW Engineer, Scott County Consulting, Orange County CA