Repository navigation
drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit - #2464
Conversation
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]>
|
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:
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 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]>
Signed-off-by: Ryan Murray <[email protected]>
There was a problem hiding this comment.
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]>
|
Fixed in 69df13f (one commit, no force push), per the review at 72421bc:
The hardware rows in the body were taken on the head before this commit. This commit changes only the helper's |
There was a problem hiding this comment.
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.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at |
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
git merge-treemerges of linux#2263 power: supply: macsmc: Report net discharge as discharging on every battery #2303 soc: apple: sep: Count sensor bring-up and frame failures; document the remaining SEP retries #2363 drm/apple: dcp: give each Type-C reconnect request its whole budget #2364 drm/apple: name the brightness and 180 Hz probe retry budgets and report their exhaustion #2387 drm/apple: stop the DCPLink when a start or swap ends the session #2460 drm/apple, kbuild, tools/aurora-sep: drop dead kill switches, Kconfig/Makefile leftovers and the login refresh unit #2464 btrfs: verify large data reads in parts #2493 soc: apple: display-gate: request T8122 storage by soc-device record #2682 drm/asahi: mmu: publish a binding without the VM reservation #2799 soc: apple: aop: refuse EPIC calls once the firmware has crashed #2800 soc: apple: sep: gate per-user key bags on a proven capability, not the create variant #2806 soc: apple: sep: read the pnon digest on the two-to-four-page SEPs #2810 PCI: apple: T6050: wait for the radio's port with a wait queue #2377 PCI: apple: t6050: write the gen5 shadow tunables into the 32 GT/s bank #2794 wifi: apple: centauri: T6050: don't veto s2idle for a failed or stopped N1 #2795, fleet89 config (+CONFIG_USB_BILLBOARD=m), LLVM 22.1.6 / rustc 1.97.1; build warnings are the same as main's (23 rustc dead-code warnings, all present on main).grub2-rebootone-shot, no Stage 2 or DTB change. Each Mac went back to its saved fleet kernel, the test kernel was removed, and production state was verified: saved entry, empty next_entry, Enforcing, 0 failed units.genpd_prepare -11, brcmfmac LPAS fallback), and the fleet kernel's own s2idle shows them too. On J615, dsw1's boot also had one brcmfmacring 4: r_ptr 0 outside depth 0line, not seen on 3 fleet boots. No PR in the batch touches brcmfmac.Merge main into deadweight/dcp-killswitch-params(no conflicts).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_timestampandtypec_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:
timestamps 1andflip_timestamp 1.Origins:
peer_allocation_probe,peer_scanout: 231d448 (DjDeveloperr)takeover_adopt: 14f5a01j613_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..modinfo: exactly these six parameters disappear and nothing is added.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
selectof 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: dropBT_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 thecfg_attronCONFIG_RUSTC_HAS_COERCE_POINTEE, removed from init/Kconfig in v7.1.drivers/gpu/drm/apple/Kconfig: dropselect DRM_KMS_DMA_HELPER(the symbol no longer exists).drivers/gpu/drm/asahi/Kconfig: use upstream'sRUST_DRM_GPUVMinstead of a second definition.RUST_DRM_SCHEDstays, now with a comment: it is a bool so thatDRM_SCHEDis built in for the built-in Rust kernel crate. SelectingDRM_SCHEDstraight from the tristateDRM_ASAHIturned it intomon the fleet config, which the config check caught.drivers/soc/apple/Kconfig: drop the transitionalAPPLE_T8140_SLEEP.Testing
make Image modules dtbsRC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.git grepon 0abc2f3 (evidence below).olddefconfig, ARCH=arm64 LLVM=1) before and after this branch: the.configis byte-identical (sha256 8a8639a8...) and Kconfig prints the same warnings.Still to run
Nothing build-side.
Evidence per removal
git grep '^config BT_HCIMT79XX_PCIE|^config BT_HCIDTL1|^config BT_HCIBT3C|^config BT_HCIBLUECARD'returns nothing;git cat-file -efails 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...")config RUSTC_HAS_COERCE_POINTEEis in v7.0 init/Kconfig, gone from v7.1 and from this tree. Added with 67d9c99DRM_SCHED y -> m)Not included: our
CONFIG_EDAC_APPLE_SOC=mline in upstreamdefconfig. 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
refreshmode and their Fedora/Arch packaging. Keep the ordering from a062512: the greeter unit does not wait foraurora-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
bash -non the script; Fedora spec and Arch PKGBUILD source/checksum lists checked by hand (23 sources, 23 sums).The distribution packages carry the same change: aurora-sep: start the login screen without waiting for Touch ID fedora-aurora#428, aurora-sep: start the login screen without waiting for Touch ID alarm-aurora#352, aurora-sep: start the login screen without waiting for Touch ID nixos-aurora#333.
J616s (T6040, fleet75, greeter unit enabled, automatic login on), 5 boots per arm: A = production, B = this unit as an
/etcoverride of the packaged one. Kernel monotonic, median (min-max):aurora-sep-readydone (s)gdm now starts 3.8 s earlier and no longer waits for Touch ID (the enclave itself is ready at the same time as before). All ten boots: no failed units, no AVC denials.
Still to run
The hardware rows of those three PRs (J616s first): gdm starts before
aurora-sep-ready.servicefinishes, 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.