Skip to content

drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit - #2464

Merged
RyanTheTide merged 12 commits into
mainfrom
deadweight/dcp-killswitch-params
Nov 29, 2026
Merged

RyanTheTide merged 12 commits into
mainfrom
deadweight/dcp-killswitch-params

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What: Removes kill switches for features that are now the default, Kconfig/Makefile entries that point at nothing, and the login-screen refresh unit (folds #2366, #2381).
Tested: J615 (M3 Air) and J473 (M2 mini) at f8e749d, in one combined one-shot test kernel 7.3.0-aurora-dsw1 (main d8c6043 + this PR + 15 other drafts). This PR's files there are byte-identical to the current head 72421bc (= f8e749d + a clean merge of main) (iomfb.c/iomfb_v26_6.c there also carried #2387/#2460 hunks). J615 (eDP) and J473 (HDMI + USB-C DP): boot on the default command line with the kill switches gone, displays connected, Touch ID/SEP up (J615), GPU smoke (gpubench-vk submit/compute/render) rc 0, one 15 s s2idle rc 0 each, 0 failed units, 0 WARN/BUG.
Risk: two-way · all Macs (removals only)
Not yet: nothing beyond the rows here (removals only)

Evidence
Original description

What: drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit. This PR now carries these drafts as one feature (merge commits, the commits themselves unchanged):

Tested: each part as tested on its own PR (folded bodies below; no hardware row on this head yet). Combined with current main (ba29027) together with the other folds of 11-25: full arm64 build (Image, modules, dtbs; fleet89 config, clang 22, rustc 1.97.1) clean.

Risk: two-way · all Macs (removals only)

Not yet: a default-cmdline boot on one Mac with DCP on this head.

#2464 original description

Problem

Six drm/apple module parameters only exist to switch off features that are now the normal path: peer_allocation_probe, peer_scanout, takeover_adopt, j613_25g83_swap_timestamps, j613_25g83_flip_timestamp and typec_follow_crtc. All default to on, and nothing we ship sets them. Each is a branch production never takes.

Change

Remove the parameters and their off branches (net -46 lines). The visible behaviour is the same as with the parameters at their defaults:

  • the peer-probe sysfs files stay visible, as with the parameter on;
  • the J613 debugfs lines keep printing timestamps 1 and flip_timestamp 1.

Origins:

  • peer_allocation_probe, peer_scanout: 231d448 (DjDeveloperr)
  • takeover_adopt: 14f5a01
  • j613_25g83_*: aa504d6 (Satya Benson)
  • typec_follow_crtc: 6ebfaaa (Christian Bartels)

Testing

  • make drivers/gpu/drm/apple/ with the fleet config, before and after: RC=0, no warnings.
  • appledrm.o .modinfo: exactly these six parameters disappear and nothing is added.
  • 24 host tests that read the touched files (dcpext26-*, display26, iomfb-startup, tunnel-route, apple-dcp lifecycle/desktop/display/edid/rate/m4 and others): identical exit codes before and after.
  • Setter search: nothing in the kernel tree, fedora/alarm/nixos/aurora-platform, aura or the 1,471 kit scripts and configs. The only mention is an old release-note comment in tools/aurora-sep/install-aurora-sep.sh.

Still to run

Nothing hardware-side: with the parameters at their defaults, the removed branches never ran.

#2366 original description

Problem

Our delta carries Kconfig and Makefile entries that point at nothing: Makefile rules for drivers that no longer exist, a select of a removed symbol, a second definition of an upstream symbol, and a transitional symbol no config sets.

Change

Six commits (the last one corrects the fourth), net -16 lines, no functional change:

  • drivers/bluetooth/Makefile: drop BT_HCIMT79XX_PCIE, BT_HCIDTL1, BT_HCIBT3C, BT_HCIBLUECARD. They came back through a conflict resolution in a03e01f; upstream removed the PCMCIA drivers in 794b5e7.
  • rust/kernel/lib.rs: drop the cfg_attr on CONFIG_RUSTC_HAS_COERCE_POINTEE, removed from init/Kconfig in v7.1.
  • drivers/gpu/drm/apple/Kconfig: drop select DRM_KMS_DMA_HELPER (the symbol no longer exists).
  • drivers/gpu/drm/asahi/Kconfig: use upstream's RUST_DRM_GPUVM instead of a second definition. RUST_DRM_SCHED stays, now with a comment: it is a bool so that DRM_SCHED is built in for the built-in Rust kernel crate. Selecting DRM_SCHED straight from the tristate DRM_ASAHI turned it into m on the fleet config, which the config check caught.
  • drivers/soc/apple/Kconfig: drop the transitional APPLE_T8140_SLEEP.

Testing

  • Combined fleet build of all eleven deadweight code branches stacked on 0abc2f3 (DEBUG_INFO off): make Image modules dtbs RC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.
  • Each removal was checked with git grep on 0abc2f3 (evidence below).
  • Fleet config (Fedora asahi fc44 base + asahi.config, olddefconfig, ARCH=arm64 LLVM=1) before and after this branch: the .config is byte-identical (sha256 8a8639a8...) and Kconfig prints the same warnings.

Still to run

Nothing build-side.

Evidence per removal
item evidence
BT Makefile git grep '^config BT_HCIMT79XX_PCIE|^config BT_HCIDTL1|^config BT_HCIBT3C|^config BT_HCIBLUECARD' returns nothing; git cat-file -e fails for btmtk_pcie.c, dtl1_cs.c, bt3c_cs.c and bluecard_cs.c (absent in v7.3 too). Added by a03e01f ("Bluetooth: add J813 N1 native transport...")
COERCE_POINTEE config RUSTC_HAS_COERCE_POINTEE is in v7.0 init/Kconfig, gone from v7.1 and from this tree. Added with 67d9c99
DRM_KMS_DMA_HELPER not defined in any Kconfig at the tip. Added with ed25d27 ("drm/apple: Add DCP display driver")
RUST_DRM_GPUVM upstream definition at drivers/gpu/drm/Kconfig:221 (depends on DRM, selects DRM_GPUVM); DRM_ASAHI depends on DRM=y
RUST_DRM_SCHED kept: without it the fleet config gets DRM_SCHED=m (diffconfig DRM_SCHED y -> m)
APPLE_T8140_SLEEP 0 code references; set in none of fleet release.config, the fleet base configs, or the Fedora/Arch/NixOS kernel configs; asahi.config sets CONFIG_APPLE_SOC_SLEEP=y. From d9b438c (Diljit Singh)

Not included: our CONFIG_EDAC_APPLE_SOC=m line in upstream defconfig. It's redundant with asahi.config, but it keeps a defconfig build compiling the driver.

#2381 original description

Problem

aurora-sep-greeter-refresh.service (added in a062512) restarts gdm once Touch ID comes up, a few seconds after the login screen appears. Anyone typing their password at that moment loses it along with the login screen. Restarting the display manager to pick up a late device is also the kind of retry this tree avoids.

Change

Drop the refresh unit, the script's refresh mode and their Fedora/Arch packaging. Keep the ordering from a062512: the greeter unit does not wait for aurora-sep-ready.

The login screen right after boot needs no fingerprint. As on macOS, which offers Touch ID only after one password login since the restart, aurora-sep keeps require_password_after_boot = yes, so that login screen takes the password anyway. Later login screens (after a log out) and the lock screen find the reader once it is up. The unit comment and README say so.

Testing

Still to run

The hardware rows of those three PRs (J616s first): gdm starts before aurora-sep-ready.service finishes, the boot login screen takes the password, and after a log out the next login screen offers the fingerprint.

Why the ordering matters

J616s, Fedora 45, with the greeter unit enabled: gdm started at 11.51 s after kernel start, its critical chain aurora-sep-greeter-fingerprint <- aurora-sep-ready (+0.31 s) <- aurora-sep.service (+4.17 s). The distribution copies still had the pre-a06251263367 unit.

RyanTheTide and others added 8 commits November 20, 2026 00:30
Commit a03e01f ("Bluetooth: add J813 N1 native transport and
encrypted connection bring-up") brought back four obj- rules while
resolving a conflict: BT_HCIMT79XX_PCIE (btmtk_pcie.o) and the PCMCIA
drivers BT_HCIDTL1, BT_HCIBT3C and BT_HCIBLUECARD. Upstream removed the
PCMCIA drivers in 794b5e7 ("bluetooth: remove all PCMCIA
drivers"). None of the four symbols is defined in any Kconfig and none
of the source files exists, so the rules expand to nothing.

Dropping them brings drivers/bluetooth/Makefile back in line with
upstream apart from our own drivers.

Signed-off-by: Ryan Murray <[email protected]>
The downstream feature block in rust/kernel/lib.rs enables
pin_coerce_unsized_trait when CONFIG_RUSTC_HAS_COERCE_POINTEE is set.
That symbol was removed from init/Kconfig in v7.1, so the attribute
never applies on this tree.

Signed-off-by: Ryan Murray <[email protected]>
DRM_KMS_DMA_HELPER no longer exists in drivers/gpu/drm/Kconfig, so the
select has done nothing since the symbol was removed upstream. The
driver already selects DRM_GEM_DMA_HELPER, which is what it uses.

Signed-off-by: Ryan Murray <[email protected]>
drivers/gpu/drm/asahi/Kconfig defines RUST_DRM_GPUVM a second time.
Upstream already defines it in drivers/gpu/drm/Kconfig (depends on DRM,
selects DRM_GPUVM), and DRM_ASAHI depends on DRM=y, so the duplicate
only drops the dependency.

RUST_DRM_SCHED has no user: nothing tests CONFIG_RUST_DRM_SCHED and the
Rust scheduler bindings are built unconditionally. It only proxies a
select of DRM_SCHED, so select DRM_SCHED from DRM_ASAHI and remove it.

Signed-off-by: Ryan Murray <[email protected]>
APPLE_T8140_SLEEP was kept as a transitional symbol when the option was
renamed to APPLE_SOC_SLEEP in d9b438c. No code tests it and no
kernel config we ship sets it (fleet, Fedora, Arch and NixOS configs);
asahi.config sets CONFIG_APPLE_SOC_SLEEP=y directly.

Signed-off-by: Ryan Murray <[email protected]>
The previous commit replaced RUST_DRM_SCHED with a direct select of
DRM_SCHED from DRM_ASAHI. That is not equivalent: DRM_ASAHI is
tristate, so with DRM_ASAHI=m the select makes DRM_SCHED=m, while the
Rust scheduler bindings live in the built-in kernel crate and need
DRM_SCHED=y. The fleet config shows it (diffconfig: DRM_SCHED y -> m).

Restore the bool proxy and say why it exists. The duplicate
RUST_DRM_GPUVM definition stays removed; the upstream one is a bool
with the same select.

Signed-off-by: Ryan Murray <[email protected]>
aurora-sep-greeter-refresh.service restarted gdm once Touch ID came up,
seconds after the login screen appeared, so a password being typed at
that moment was lost with the login screen. The login screen right
after boot needs no fingerprint: as on macOS, where Touch ID is offered
only after one password login since the restart, aurora-sep keeps
require_password_after_boot = yes, so that login screen takes the
password anyway. Later login screens (after a log out) and the lock
screen find the reader once it is up.

Keep the ordering from a062512 (the greeter unit does not wait for
aurora-sep-ready) and drop the refresh unit, the script's refresh mode
and their packaging.

Signed-off-by: Ryan Murray <[email protected]>
Six 0444/0644 parameters only ever switch off a feature that is now
the normal path: peer_allocation_probe and peer_scanout (firmware-27
peer display allocation, 231d448), takeover_adopt (adopt the
loader's panel mode, 14f5a01), j613_25g83_swap_timestamps and
j613_25g83_flip_timestamp (J613 v26 swap timestamps, aa504d6)
and typec_follow_crtc (follow direct Type-C routes on modeset,
6ebfaaa). All default to on and nothing we ship sets them
(kernel configs, distro and platform packages, aura, lab kits).

Remove the parameters and the off branches. The peer-probe sysfs files
lose their is_visible callback and stay visible, as with the parameter
on, and the J613 debugfs lines keep printing "timestamps 1" and
"flip_timestamp 1".

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

Copy link
Copy Markdown
Contributor Author

No blockers.

I checked all eight files at a0c940e. Every removed branch was the parameter's off side, and each condition left behind is the old condition with the parameter at its default: dcp_typec_follows_crtc(), the peer modeset/check/stop/scanout/swap-complete gates, dcp_peer_hints_v27(), the takeover loop in dcp_takeover_trial(), and the v26 swap and flush paths. Nothing else in the tree references the six names. The selftest stub in tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py:1863 is unused. The PR merges cleanly into the current integration/aurora, and host-tests pass. It can leave draft.

  1. Nit: tools/aurora-sep/install-aurora-sep.sh:145 still tells readers that appledrm.typec_follow_crtc=0 turns it off. That is a release-note line, but the knob no longer exists. Add "(removed later)" or drop the parenthesis so nobody puts a dead parameter on a command line.
  2. Merge-order note: drm/apple: stop the DCPLink when a start or swap ends the session #2460 also edits the dcp_v26_swap() block at iomfb_v26_6.c:1602. The two trees merge without a conflict, but whichever lands second should rerun the display26 host test.

HW row: none needed. With the parameters at their defaults the removed code never ran. A boot of the fleet kernel with this applied on one v26 or firmware-27 Mac (J616s), with the same appledrm .modinfo diff, 0 AVC, 0 failed units and no new kernel errors, is enough.

Assisted-by: LLM (Claude:Opus 5.5)

…t point at nothing (-16)

Folds #2366 into this PR unchanged.

Signed-off-by: Ryan Murray <[email protected]>
…sh unit

Folds #2381 into this PR unchanged.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide RyanTheTide changed the title drm/apple: drop the kill switches for features that are now the default (-46) drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit Nov 25, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documented manual install previously copied the refresh unit into /etc and enabled it through Also=. Updating the helper and reinstalling the remaining unit leaves that old unit and its wants link on disk. Its ExecStart still passes refresh, which now falls through to the normal path and removes/rebuilds the running GDM overlay. Please handle the legacy refresh argument safely and document removal of the old unit for manual upgrades. Also check an upgrade with refresh previously enabled and spell out migration for old configs still using APPLE_T8140_SLEEP, since olddefconfig loses that enable when the transitional symbol is dropped.

…fig working

Two things this series removed are still reachable after an upgrade:

- A manual install from before this change has aurora-sep-greeter-refresh.service
  in /etc, enabled through Also=. Its ExecStart passes "refresh", which now fell
  through to the normal path and removed and rebuilt the overlay of a login screen
  that was already running. "refresh" is now a no-op that logs, and the README
  says how to remove the old unit.
- Configs that still set APPLE_T8140_SLEEP=y would lose APPLE_SOC_SLEEP at
  olddefconfig once the transitional symbol was gone. Keep the transitional symbol
  and its default.

Reported by the aurora-silicon review of #2464.

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

Copy link
Copy Markdown
Contributor Author

Fixed in 69df13f (one commit, no force push), per the review at 72421bc:

  1. Legacy refresh: aurora-sep-greeter-fingerprint refresh is now a no-op. It logs "'refresh' is no longer used; disable and remove aurora-sep-greeter-refresh.service (see README)" and exits 0 before it touches /run/aurora-sep/greeter or the drop-in. So an old enabled refresh unit can no longer remove and rebuild the overlay of a running login screen. sh -n is clean.
  2. Manual upgrades: the README's manual-install section now has the one-time cleanup: systemctl disable the old unit, remove /etc/systemd/system/aurora-sep-greeter-refresh.service and its gdm.service.wants link, then daemon-reload. On packaged installs the unit file goes away with the package. A leftover wants link is only a dangling link now, since nothing runs refresh any more.
  3. APPLE_T8140_SLEEP: the transitional symbol and default APPLE_T8140_SLEEP on APPLE_SOC_SLEEP are kept, not dropped. Checked: a fleet89-based .config with the APPLE_SOC_SLEEP line removed and only CONFIG_APPLE_T8140_SLEEP=y comes out of olddefconfig with CONFIG_APPLE_SOC_SLEEP=y.

The hardware rows in the body were taken on the head before this commit. This commit changes only the helper's refresh branch, the README and Kconfig, and neither boot runs those paths (Kconfig has no runtime effect with the fleet config).

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 69df13f after current-head upgrade and hosted validation.

Checked: The legacy refresh argument now exits before the overlay removal. The exact script passed shell syntax checking and a scratch run with only the overlay and drop-in paths redirected. Both sentinels survived. The Kconfig delta restores the transitional APPLE_T8140_SLEEP symbol and the APPLE_SOC_SLEEP default from it. Please record the olddefconfig migration result and current-head test evidence in the PR body, which still cites the earlier head.

@github-actions github-actions Bot added the area:display Area from CODEOWNERS (bot) label Nov 28, 2026
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:rust Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 69df13f7. App approved, rows J615+J473. Merges 1 h from now under the 6-point rule once hosted CI is green, unless you object.

@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at 69df13f7: not ready yet

Check Detail
CI at head running running: KUnit isp, KUnit jpeg, KUnit prores, KUnit scaler, KUnit macsmc, KUnit clpc
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 69df13f7, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · all Macs (removals only)

Areas: area:display, area:gpu, area:platform, area:rust

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 69df13f7. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: J615+J473. (5) There's no blocking review. (6) Dj was pinged here 457 min ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 1743883 into main Nov 29, 2026
26 of 28 checks passed
@RyanTheTide
RyanTheTide deleted the deadweight/dcp-killswitch-params branch November 29, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) area:rust Area from CODEOWNERS (bot) blast:all Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant