🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #2

[Bug 299199] thunderbolt(4): Suspend routine is incomplete

#2
From: bugzilla-noreply
Date: Wed, 07 Oct 2026 12:27
47 lines
3508 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299199

            Bug ID: 299199
           Summary: thunderbolt(4): Suspend routine is incomplete
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: obiwac@FreeBSD.org

There are a few things we should be doing in our suspend routine for it to be
complete which we are not yet doing:

- We should be sending LT_LRoff to downstream routers on the sideband (normally
we can't send anything on the sideband after setting the sleep bit but LT_LRoff
is an exception). See 4.5.1. 
- We should make sure the USB3 hub is in the U3 state and it's PCI endpoint is
in D3.
- We should be able to choose which events wake us up from sleep (wake on PCIe,
wake on USB3, or wake on DP).
- We should wait for the ROP_CMPLT notification on v2 routers instead of
polling the SLPR bit (see 4.5.1). But v2 routers do still support v1-style
polling and I don't think FreeBSD yet has a mechanism for asynchronous suspend
in newbus, so this is fine for the time being.

None of these prevent suspending enough to unblock S0i3 entry, but for full
USB4 support we will need to take care of these eventually.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-299199-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 299199] thunderbolt(4): Suspend routine is incomplete
Date: Wed, 07 Oct 2026 12:27:48 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299199-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="51710"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1791376068;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding;
	bh=yyxhVx3PUnVoWIslMOoB6akNy/i3oFHku+DLAfJ9Mnk=;
	b=Bw+FuU8LEohMCio9k6i22Wx8awOlep+VLMQDEQEgR0PwcO/008h5Vxc7EHKg/Q922Jy7TJ
	+D4aH3ZZMeslNNj3TMCpYFETXhKcnO1OFB1vTsQ9dWuHqbK9Ot9DfaLR4je/ms7avyhX77
	ZxVMLV0wBM4/12gjC3CeaKDFRo/t5NQp1XUZb5nUCI4OiUaYh+ZQMSFHrgFLi4YHcBa1qE
	zt4q193P11R5PYAuWEha4mfBigv4OGzGOCRxJklXr/wyc1qT4Y/pu6KAc/G17ZIdpisvbF
	QHDZA67ELMHHVGO2Q7mxyMjol2HA0jXJcYIOCo47X0cvo5ok32TL+tLD08E3GA==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes