Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/2] thunderbolt: suppress reset-induced ring interrupt warning
@ 2026-09-02 12:33 Andrei Rusu de Castro
  2026-09-02 12:34 ` [PATCH 1/2] thunderbolt: Do not warn when a reset clears ring interrupts Andrei Rusu de Castro
  2026-09-02 12:34 ` [PATCH 2/2] thunderbolt: Test ring interrupt warning after host reset Andrei Rusu de Castro
  0 siblings, 2 replies; 6+ messages in thread
From: Andrei Rusu de Castro @ 2026-09-02 12:33 UTC (permalink / raw)
  To: linux-usb
  Cc: andreas.noever, westeri, YehezkelShB, Sanath.S, Basavaraj.Natikar,
	linux-kernel

The AMD DMA-teardown quirk resets the host interface before USB4NET
stops its service rings. The reset clears the ring interrupt bits while
the rings remain logically active. Their later interrupt-disable write
is therefore a no-op and emits a warning, even though hardware reset is
the cause.

Reordering teardown is unsafe because stopping the ring first clears its
descriptor base and unmaps frame buffers before pending path traffic has
drained.

Patch 1 tracks the host-interface reset generation and excuses only a
redundant disable by a ring that crossed an eligible reset. Genuine
software-state drift retains the warning. Patch 2 covers duplicate
enable, duplicate disable, post-reset suppression, and real register
changes.

The exact series passed all 49 Thunderbolt UML KUnit cases and three
production configuration builds with warnings fatal. The resulting
Thunderbolt module booted on two AMD USB4 systems. The affected peer-host
XDomain teardown could not be reproduced because the available attached
device is a hub rather than a peer host.

Andrei Rusu de Castro (2):
  thunderbolt: Do not warn when a reset clears ring interrupts
  thunderbolt: Test ring interrupt warning after host reset

 drivers/thunderbolt/nhi.c   | 56 ++++++++++++++++++++++++-
 drivers/thunderbolt/nhi.h   |  4 ++
 drivers/thunderbolt/test.c  | 82 +++++++++++++++++++++++++++++++++++++
 include/linux/thunderbolt.h |  9 ++++
 4 files changed, 149 insertions(+), 2 deletions(-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-03  3:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-02 12:33 [PATCH 0/2] thunderbolt: suppress reset-induced ring interrupt warning Andrei Rusu de Castro
2026-09-02 12:34 ` [PATCH 1/2] thunderbolt: Do not warn when a reset clears ring interrupts Andrei Rusu de Castro
2026-09-02 12:50   ` Mika Westerberg
2026-09-02 20:53     ` Mario Limonciello
2026-09-03  3:44       ` Mika Westerberg
2026-09-02 12:34 ` [PATCH 2/2] thunderbolt: Test ring interrupt warning after host reset Andrei Rusu de Castro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox