Skip to content

btcentauri, drm/apple t8132_ext: queue on system_percpu_wq instead of the deprecated system_wq - #1104

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
bootlog2/system-wq-users
Nov 7, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
bootlog2/system-wq-users

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

system_wq and system_unbound_wq are deprecated in this tree: the first work item queued on either logs workqueue: work func ... enqueued on deprecated workqueue. Use system_{percpu|dfl}_wq instead. at warning level (pr_warn_once, global). After the Thunderbolt DP sleep-gate fix (FLEET4, fix/thunderbolt-dp-pm-dfl-wq), these are the only remaining users in Apple driver paths:

  • drivers/bluetooth/btcentauri.c: the send path re-arms the poll work with mod_delayed_work(system_wq, ...), while every other caller uses schedule_delayed_work(), which already queues on system_percpu_wq. Use system_percpu_wq so the work always runs on the queue the rest of the driver uses.
  • drivers/gpu/drm/apple/t8132_ext_drm.c: the delayed flip event goes on system_percpu_wq; behaviour unchanged.

Both are token swaps to the per-CPU queue that replaces system_wq, with the same semantics.

Tests:

  • Built in test kernel 7.3.0-aurora-b2t1 (fleet22 recipe; DRM_APPLE_DCP_T8132=y is in the fleet config). BT_CENTAURI is not in the fleet config; its object is compiled separately (result added here).
  • No J813 (N1) or J713 hardware here; the changed calls keep the queue type the rest of each driver already uses.

🤖 Generated with Claude Code

The send path re-arms the poll work with mod_delayed_work(system_wq),
while every other caller uses schedule_delayed_work(), which already
queues on system_percpu_wq. system_wq is deprecated and logs a warning
the first time an item is queued on it.

Use system_percpu_wq so the work always runs on the queue the rest of
the driver uses, and the kernel log stays clean.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
system_wq is deprecated, and the first item queued on it logs "enqueued
on deprecated workqueue" at warning level. Queue the delayed flip event
on system_percpu_wq, the per-CPU queue that replaces it; the behaviour
is unchanged.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Compile: test kernel 7.3.0-aurora-b2t1 (fleet22 recipe, config identical to fleet22, asahi.config 142/0) built rc 0 with both changes. Separately, W=1 builds of drivers/bluetooth/btcentauri.o (with CONFIG_BT_CENTAURI=m, not in the fleet config) and drivers/gpu/drm/apple/t8132_ext_drm.o: no warnings. FLEET4 proved the companion Thunderbolt fix on the M2 (no deprecated-workqueue line after 12 resumes), so these two are the last Apple-path users.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Neo b2t1 one-shot also ran an rtcwake s2idle cycle: no 'deprecated workqueue' line from any driver afterwards. Ready for the merge train.

@RyanTheTide
RyanTheTide merged commit 67f3581 into integration/aurora Nov 7, 2026
1 check passed
@RyanTheTide
RyanTheTide deleted the bootlog2/system-wq-users branch November 7, 2026 13:06
RyanTheTide added a commit that referenced this pull request Nov 7, 2026
Brings aurora-wip up to fleet25: DT descriptions (#1029, #1030, #1112),
the J715 board (#1129), Stockholm NFC (#1042, #1136), the AV1 tile check
(#1100), the M4 Max ANE profile and AVD quirk (#1088, #1091), boot-log
fixes (#1103, #1104) and the Neo ANE memory floor (#1137).

Conflicts: macaudio.c and apple,macaudio.yaml, where aurora-wip's J813
and J873 entries and integration's J715 entries were added at the same
spot. Keep all of them.

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