linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Mario Limonciello (AMD) (kernel.org)" <superm1@kernel.org>
To: Kenneth Crudup <kenny@panix.com>,
	Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: mario.limonciello@amd.com, andreas.noever@gmail.com,
	westeri@kernel.org, YehezkelShB@gmail.com, Sanath.S@amd.com,
	linux-usb@vger.kernel.org
Subject: Re: [PATCH] thunderbolt: Reset NHI during S4 restore_noirq() callback
Date: Wed, 5 Nov 2025 13:16:33 -0600	[thread overview]
Message-ID: <4d15e4de-12db-4aa3-9c14-55bafa3b6353@kernel.org> (raw)
In-Reply-To: <e77b71c0-11a6-4df3-8f2d-412f92c1056b@panix.com>



On 11/5/2025 1:06 PM, Kenneth Crudup wrote:
> 
> On 11/4/25 13:21, Mario Limonciello wrote:
> 
>> For the purposes of testing this patch works it's probably easiest to 
>> do pure S4.
> 
> Well, you were right ... the patch didn't (re-/properly) enumerate the 
> devices when I'd switched TB docks before coming out of suspend ... :|
> 
> That being said, I do "suspend-then-hibernate" AND "hybrid sleep" (which 
> I'm about to disable the former as I think that solves an unrelated 
> issue I have with "double suspend").

Yeah I would suggest either/or.

> 
> So, could this patch be applied for the coming out of (s0ix) sleep case 
> as well? (I swear that used to work properly until a few kernel revs 
> ago ....)
> 
> -Kenny
> 

Well the problems for suspend/resume and hibernate/resume are actually a 
bit different.

The hibernate/resume case is specifically because the system may have a 
Pre-OS CM that is running which had configured all the devices 
differently than the SW CM in Linux does.

For bootup we go through a reset to ensure Linux gets a chance to set up 
everything as intended.

This is /mostly/ for differences of opinions between FW and Linux for 
PCIe resource enumeration, but it also has implications for other tunnel 
types like DP.

So for hibernate/resume this patch aligns the policies for bootup and 
resume from hibernate.

For suspend, some tunnels are left active but not all of them.

DP tunnels are explicitly released through 
tb_disconnect_and_release_dp().  They come back up on resume plug events.

So if you're having problems unique to suspend/resume and DP tunnels 
there is either a problem with the handling of that hotplug event or a 
problem in the graphics driver most likely.


But I'm still wondering about pure S4.  Does it help there?

      reply	other threads:[~2025-11-05 19:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-23  5:03 [PATCH] thunderbolt: Reset NHI during S4 restore_noirq() callback Mario Limonciello (AMD)
2025-10-23  5:56 ` Mika Westerberg
2025-10-23 14:13   ` Mario Limonciello
2025-11-04 19:11     ` Kenneth Crudup
2025-11-04 19:12       ` Mario Limonciello
2025-11-04 20:22         ` Kenneth Crudup
2025-11-04 20:31           ` Mario Limonciello
2025-11-04 21:19             ` Kenneth Crudup
2025-11-04 21:21               ` Mario Limonciello
2025-11-05 19:06                 ` Kenneth Crudup
2025-11-05 19:16                   ` Mario Limonciello (AMD) (kernel.org) [this message]

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=4d15e4de-12db-4aa3-9c14-55bafa3b6353@kernel.org \
    --to=superm1@kernel.org \
    --cc=Sanath.S@amd.com \
    --cc=YehezkelShB@gmail.com \
    --cc=andreas.noever@gmail.com \
    --cc=kenny@panix.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=mika.westerberg@linux.intel.com \
    --cc=westeri@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;
as well as URLs for NNTP newsgroup(s).