Skip to content

thunderbolt: queue the DP sleep-gate reopen on system_dfl_wq - #1098

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
fix/thunderbolt-dp-pm-dfl-wq
Nov 7, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
fix/thunderbolt-dp-pm-dfl-wq

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

The thunderbolt DP sleep gate queues its reopen work on system_unbound_wq, which is deprecated in this tree. So the first resume on every fleet Mac with a Type-C port logs a kernel warning (seen on fleet22 on the Neo and the M2):

workqueue: work func tb_dp_pm_reopen_fn [thunderbolt] enqueued on deprecated workqueue. Use system_{percpu|dfl}_wq instead.

This PR queues the work on system_dfl_wq instead. That queue replaces the unbound one and behaves the same way. The work only takes the system sleep lock and clears a flag, so it needs no CPU affinity.

Testing

  • checkpatch --strict: 0 errors, 0 warnings.
  • Test kernel 7.3.0-aurora-f4tbwq1 = integration 43c790f + this commit (tree 27e96963, config byte-identical to fleet22). Booted one-shot on the M2 (eDP + DP-1 external over Type-C) and ran the FLEET4 silent regression suite against the fleet22 baseline. It covered 6 systemd suspends and 6 direct freezes (pm_test=platform), Wi-Fi and Bluetooth reconnect, vkcube, glmark, the camera and the speakerguardd-v2 gates.
    • The warning is gone after 12 resumes (fleet22: one per boot).
    • DP-1 stays connected after every resume.
    • Kernel err 0, 0 AVC (Enforcing), 0 failed units, v2 regrant 12/12, 0 amp faults.
    • No new kernel warning classes.
  • Results: work/linux/fleet4-20261107/results/f4tbwq1/m2-t1 on the lab disk.

🤖 Generated with Claude Code

The PM notifier queues tb_dp_pm_reopen_work on system_unbound_wq. That
queue is deprecated in this tree, so the first resume on every Mac with
a Type-C port prints a kernel warning:

  workqueue: work func tb_dp_pm_reopen_fn [thunderbolt] enqueued on
  deprecated workqueue. Use system_{percpu|dfl}_wq instead.

system_dfl_wq is the unbound queue's replacement and keeps the same
behaviour: the work only takes the system sleep lock and clears a flag,
so it needs no CPU affinity.

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
@RyanTheTide
RyanTheTide merged commit 810b92c into integration/aurora Nov 7, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the fix/thunderbolt-dp-pm-dfl-wq branch November 7, 2026 11:59
RyanTheTide added a commit that referenced this pull request Nov 7, 2026
Adds the 11-07 evening batch: t8140 disabled SPI3/FPWM0/SPMI nodes
(#1034), J700 CPU zones (#1043), J616C fans (#1092) and the thunderbolt
DP PM workqueue fix (#1098).

Signed-off-by: Ryan Murray <[email protected]>
Assisted-by: LLM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant