From 8cc3c2afd381853bab5933eb3d4df7271991e6e2 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 00:30:23 +1100 Subject: [PATCH 1/9] Bluetooth: drop Makefile rules for drivers that no longer exist Commit a03e01fbb5315 ("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 794b5e7727de1 ("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 --- drivers/bluetooth/Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/bluetooth/Makefile b/drivers/bluetooth/Makefile index 4f2f47e39eb43..a49b998fbb5be 100644 --- a/drivers/bluetooth/Makefile +++ b/drivers/bluetooth/Makefile @@ -7,12 +7,8 @@ obj-$(CONFIG_BT_HCIVHCI) += hci_vhci.o obj-$(CONFIG_BT_HCIUART) += hci_uart.o obj-$(CONFIG_BT_HCIBCM203X) += bcm203x.o obj-$(CONFIG_BT_HCIBCM4377) += hci_bcm4377.o -obj-$(CONFIG_BT_HCIMT79XX_PCIE) += btmtk_pcie.o obj-$(CONFIG_BT_HCIBPA10X) += bpa10x.o obj-$(CONFIG_BT_HCIBFUSB) += bfusb.o -obj-$(CONFIG_BT_HCIDTL1) += dtl1_cs.o -obj-$(CONFIG_BT_HCIBT3C) += bt3c_cs.o -obj-$(CONFIG_BT_HCIBLUECARD) += bluecard_cs.o obj-$(CONFIG_BT_HCIBTUSB) += btusb.o obj-$(CONFIG_BT_HCIBTSDIO) += btsdio.o From cad29dc14bc40256739c0277a88d0afbcce768ba Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 00:30:26 +1100 Subject: [PATCH 2/9] rust: drop the feature gate on the removed RUSTC_HAS_COERCE_POINTEE 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 --- rust/kernel/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 3f49946fe0109..85aa682e820ec 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -36,8 +36,6 @@ #![feature(sized_type_properties)] // #![feature(slice_range)] -// -#![cfg_attr(CONFIG_RUSTC_HAS_COERCE_POINTEE, feature(pin_coerce_unsized_trait))] // ============ end asahi dowanstream features ============ // // To be determined. From 6dff0546855d512485dd30a1bb4ce688ec93ecac Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 00:30:49 +1100 Subject: [PATCH 3/9] drm/apple: drop the select of the removed DRM_KMS_DMA_HELPER 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 --- drivers/gpu/drm/apple/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/apple/Kconfig b/drivers/gpu/drm/apple/Kconfig index 3f09ef36c656d..577be4497acbf 100644 --- a/drivers/gpu/drm/apple/Kconfig +++ b/drivers/gpu/drm/apple/Kconfig @@ -12,7 +12,6 @@ config DRM_APPLE select OF_DYNAMIC select DRM_CLIENT_SELECTION select DRM_KMS_HELPER - select DRM_KMS_DMA_HELPER select DRM_GEM_SHMEM_HELPER select DRM_GEM_DMA_HELPER select VIDEOMODE_HELPERS From 9276cf893d984b8e3908cb2b694310d5c2230428 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 00:30:52 +1100 Subject: [PATCH 4/9] drm/asahi: use the upstream RUST_DRM_GPUVM and select DRM_SCHED directly 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 --- drivers/gpu/drm/asahi/Kconfig | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpu/drm/asahi/Kconfig b/drivers/gpu/drm/asahi/Kconfig index d383802ee8825..9513febf6e06a 100644 --- a/drivers/gpu/drm/asahi/Kconfig +++ b/drivers/gpu/drm/asahi/Kconfig @@ -1,13 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -config RUST_DRM_SCHED - bool - select DRM_SCHED - -config RUST_DRM_GPUVM - bool - select DRM_GPUVM - config DRM_ASAHI tristate "Aurora (DRM support for Apple AGX GPUs)" depends on RUST @@ -17,7 +9,7 @@ config DRM_ASAHI depends on IOMMU_SUPPORT depends on PAGE_SIZE_16KB select APPLE_PMP_REPORT - select RUST_DRM_SCHED + select DRM_SCHED select RUST_DRM_GEM_SHMEM_HELPER select RUST_DRM_GPUVM select RUST_APPLE_RTKIT From 450d41ce467d216b44d7e9d5bcce33fbf8f47457 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 00:30:57 +1100 Subject: [PATCH 5/9] soc: apple: drop the transitional APPLE_T8140_SLEEP symbol APPLE_T8140_SLEEP was kept as a transitional symbol when the option was renamed to APPLE_SOC_SLEEP in d9b438c4ca41f. 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 --- drivers/soc/apple/Kconfig | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index a0c18035d2168..eefc92554ab41 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -102,7 +102,6 @@ config APPLE_CLUSTER_PWRGATE config APPLE_SOC_SLEEP bool "Apple SoC system sleep at EL2" - default APPLE_T8140_SLEEP depends on ARM64 && (ARCH_APPLE || COMPILE_TEST) depends on HOTPLUG_CPU && SUSPEND select APPLE_TUNABLE @@ -436,9 +435,3 @@ config APPLE_AURORA_BOOT_SECURITY_LOCKDOWN endmenu endif - -config APPLE_T8140_SLEEP - bool - transitional - help - Transitional config for APPLE_T8140_SLEEP to APPLE_SOC_SLEEP migration. From 868845336d896cfa5ee4b389834bc035a097c7f7 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 01:02:04 +1100 Subject: [PATCH 6/9] drm/asahi: keep RUST_DRM_SCHED as the built-in switch for DRM_SCHED 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 --- drivers/gpu/drm/asahi/Kconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/asahi/Kconfig b/drivers/gpu/drm/asahi/Kconfig index 9513febf6e06a..1ae9f84b016cf 100644 --- a/drivers/gpu/drm/asahi/Kconfig +++ b/drivers/gpu/drm/asahi/Kconfig @@ -1,5 +1,11 @@ # SPDX-License-Identifier: GPL-2.0 +# The Rust DRM scheduler bindings are part of the built-in kernel crate, +# so DRM_SCHED must be built in, not modular like DRM_ASAHI. +config RUST_DRM_SCHED + bool + select DRM_SCHED + config DRM_ASAHI tristate "Aurora (DRM support for Apple AGX GPUs)" depends on RUST @@ -9,7 +15,7 @@ config DRM_ASAHI depends on IOMMU_SUPPORT depends on PAGE_SIZE_16KB select APPLE_PMP_REPORT - select DRM_SCHED + select RUST_DRM_SCHED select RUST_DRM_GEM_SHMEM_HELPER select RUST_DRM_GPUVM select RUST_APPLE_RTKIT From 173c1abf0a4d7f32498f1691374fd14ee3e76bb4 Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Fri, 20 Nov 2026 01:09:30 +1100 Subject: [PATCH 7/9] tools/aurora-sep: drop the login screen refresh unit 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 a06251263367 (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 --- tools/aurora-sep/README.md | 18 +++++++++--------- .../aurora-sep/aurora-sep-greeter-fingerprint | 13 ------------- .../aurora-sep-greeter-fingerprint.service | 10 +++++----- .../aurora-sep-greeter-refresh.service | 14 -------------- .../packaging/arch/aurora-sep/PKGBUILD | 6 ------ .../packaging/fedora/aurora-sep.spec | 10 +++------- 6 files changed, 17 insertions(+), 54 deletions(-) delete mode 100644 tools/aurora-sep/aurora-sep-greeter-refresh.service diff --git a/tools/aurora-sep/README.md b/tools/aurora-sep/README.md index 715a91171503d..03b8d45e8c138 100644 --- a/tools/aurora-sep/README.md +++ b/tools/aurora-sep/README.md @@ -355,18 +355,18 @@ and serves the copy to the login screen's shell alone through a GResource overlay. When the check is not exactly as expected, for example after a GNOME update, it changes nothing. The enable key above still applies. -The login screen asks fprintd for the reader once, as it comes up, and the -enclave can take most of a minute after boot. The login screen does not wait -for it: `aurora-sep-greeter-refresh.service` runs once both are up, and when -Touch ID came up later and nobody has logged in, it shows the login screen -again so it offers fingerprint. With automatic login, or once someone has -logged in, it changes nothing. Both are one switch, off by default. It needs -`gresource` from glib2-devel. With the packages, or after installing it by -hand, turn it on with `systemctl enable`: +The login screen does not wait for Touch ID, which can take most of a minute +after boot. The login screen right after boot takes the password anyway: as on +macOS, where Touch ID is offered only after one password login since the +restart, `require_password_after_boot = yes` holds the reader until then. +Later login screens (after a log out) and the lock screen find the reader once +it is up. It is one switch, off by default. It needs `gresource` from +glib2-devel. With the packages, or after installing it by hand, turn it on +with `systemctl enable`: ```sh install -Dm755 aurora-sep-greeter-fingerprint /usr/local/sbin/aurora-sep-greeter-fingerprint -install -Dm644 aurora-sep-greeter-fingerprint.service aurora-sep-greeter-refresh.service /etc/systemd/system/ +install -Dm644 aurora-sep-greeter-fingerprint.service /etc/systemd/system/ systemctl daemon-reload systemctl enable aurora-sep-greeter-fingerprint.service ``` diff --git a/tools/aurora-sep/aurora-sep-greeter-fingerprint b/tools/aurora-sep/aurora-sep-greeter-fingerprint index 5793a2c93f88f..7f04a19d24d20 100644 --- a/tools/aurora-sep/aurora-sep-greeter-fingerprint +++ b/tools/aurora-sep/aurora-sep-greeter-fingerprint @@ -25,19 +25,6 @@ log() { echo "aurora-sep-greeter-fingerprint: $*" >&2 } -if [ "${1:-}" = refresh ]; then - # Touch ID came up after the login screen asked fprintd for the reader, - # so the login screen has no fingerprint option. Show it again, but only - # while nobody is logged in: restarting gdm ends graphical sessions. - systemctl -q is-active gdm.service || exit 0 - for s in $(loginctl list-sessions --no-legend | awk '{print $1}'); do - [ "$(loginctl show-session "$s" -p Class --value)" != user ] || exit 0 - done - [ -f "$out/authServicesLegacy.js" ] || exit 0 - log "Touch ID is ready; showing the login screen again so it offers fingerprint" - exec systemctl restart gdm.service -fi - rm -rf "$out" "$dropin" [ "${1:-}" != stop ] || exit 0 diff --git a/tools/aurora-sep/aurora-sep-greeter-fingerprint.service b/tools/aurora-sep/aurora-sep-greeter-fingerprint.service index 562133eb9fa81..e4c820784ee15 100644 --- a/tools/aurora-sep/aurora-sep-greeter-fingerprint.service +++ b/tools/aurora-sep/aurora-sep-greeter-fingerprint.service @@ -1,10 +1,11 @@ [Unit] Description=Offer fingerprint at the GNOME login screen Documentation=file:///usr/share/doc/aurora-sep/README.md -# Only prepares the login screen's shell, so it never waits for Touch ID: the -# enclave can take most of a minute, and the login screen must not. When -# Touch ID comes up after the login screen has asked for the reader, -# aurora-sep-greeter-refresh.service shows the login screen again. +# Only prepares the login screen's shell, so it does not wait for Touch ID. +# The login screen right after boot takes the password anyway: as on macOS, +# where Touch ID is offered only after one password login since the restart, +# aurora-sep keeps require_password_after_boot = yes. Later login screens +# (after a log out) and the lock screen find the reader once it is up. Before=gdm.service [Service] @@ -15,4 +16,3 @@ ExecStop=/usr/local/sbin/aurora-sep-greeter-fingerprint stop [Install] WantedBy=gdm.service -Also=aurora-sep-greeter-refresh.service diff --git a/tools/aurora-sep/aurora-sep-greeter-refresh.service b/tools/aurora-sep/aurora-sep-greeter-refresh.service deleted file mode 100644 index eeb672843fac7..0000000000000 --- a/tools/aurora-sep/aurora-sep-greeter-refresh.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Offer fingerprint on a login screen that came up before Touch ID -Documentation=file:///usr/share/doc/aurora-sep/README.md -# Runs once both are up. Requisite: when Touch ID did not come up, there is -# nothing to offer and the login screen stays as it is. -After=aurora-sep-ready.service gdm.service -Requisite=aurora-sep-ready.service - -[Service] -Type=oneshot -ExecStart=/usr/local/sbin/aurora-sep-greeter-fingerprint refresh - -[Install] -WantedBy=gdm.service diff --git a/tools/aurora-sep/packaging/arch/aurora-sep/PKGBUILD b/tools/aurora-sep/packaging/arch/aurora-sep/PKGBUILD index d0c4a58795d7d..a80e64c542871 100644 --- a/tools/aurora-sep/packaging/arch/aurora-sep/PKGBUILD +++ b/tools/aurora-sep/packaging/arch/aurora-sep/PKGBUILD @@ -31,7 +31,6 @@ source=(load-driver logind-aurora-sep.conf aurora-sep-greeter-fingerprint aurora-sep-greeter-fingerprint.service - aurora-sep-greeter-refresh.service aurora-sep-policy-change README.md XART-SAFETY.md @@ -68,7 +67,6 @@ sha256sums=('SKIP' 'SKIP' 'SKIP' 'SKIP' - 'SKIP' 'SKIP') # A unit and the helper it runs ($1, installed as $3), pointed at the @@ -89,11 +87,7 @@ package() { _unit aurora-sep-ready aurora-sep-ready.service aurora-sep-ready _unit aurora-sep-greeter-fingerprint aurora-sep-greeter-fingerprint.service \ aurora-sep-greeter-fingerprint - install -Dm644 aurora-sep-greeter-refresh.service \ - "$pkgdir/usr/lib/systemd/system/aurora-sep-greeter-refresh.service" install -Dm755 aurora-sep-policy-change "$pkgdir/usr/bin/aurora-sep-policy-change" - sed -i "s|^\(Exec[A-Za-z]*=\)/usr/local/sbin/|\1/usr/lib/aurora-sep/|" \ - "$pkgdir/usr/lib/systemd/system/aurora-sep-greeter-refresh.service" install -Dm644 fprintd-aurora.conf \ "$pkgdir/usr/lib/systemd/system/fprintd.service.d/aurora-sep.conf" diff --git a/tools/aurora-sep/packaging/fedora/aurora-sep.spec b/tools/aurora-sep/packaging/fedora/aurora-sep.spec index 399b8dc4b0b3e..75d85ae25350d 100644 --- a/tools/aurora-sep/packaging/fedora/aurora-sep.spec +++ b/tools/aurora-sep/packaging/fedora/aurora-sep.spec @@ -24,7 +24,6 @@ Source7: fprintd-no-timeout.conf.in Source8: logind-aurora-sep.conf Source9: aurora-sep-greeter-fingerprint Source10: aurora-sep-greeter-fingerprint.service -Source14: aurora-sep-greeter-refresh.service Source15: aurora-sep-policy-change Source11: aurora_sep.te Source12: aurora_sep.fc @@ -99,9 +98,7 @@ unit() { unit %{SOURCE0} %{SOURCE1} aurora-sep-load unit %{SOURCE5} %{SOURCE6} aurora-sep-ready unit %{SOURCE9} %{SOURCE10} aurora-sep-greeter-fingerprint -install -Dpm 0644 %{SOURCE14} %{buildroot}%{_unitdir}/aurora-sep-greeter-refresh.service install -Dpm 0755 %{SOURCE15} %{buildroot}%{_sbindir}/aurora-sep-policy-change -sed -i "s|^\(Exec[A-Za-z]*=\)/usr/local/sbin/aurora-sep-greeter-fingerprint|\1%{_libexecdir}/aurora-sep-greeter-fingerprint|" %{buildroot}%{_unitdir}/aurora-sep-greeter-refresh.service install -Dpm 0644 %{SOURCE2} \ %{buildroot}%{_unitdir}/fprintd.service.d/aurora-sep.conf grep -qx 'ExecStart=%{_libexecdir}/fprintd' %{_unitdir}/fprintd.service @@ -136,14 +133,14 @@ install -Dpm 0644 %{modulename}.pp.bz2 \ %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2 %post -%systemd_post aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service aurora-sep-greeter-refresh.service +%systemd_post aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service %preun -%systemd_preun aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service aurora-sep-greeter-refresh.service +%systemd_preun aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service %postun # Never restart them: the driver attaches to the enclave once per boot. -%systemd_postun aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service aurora-sep-greeter-refresh.service +%systemd_postun aurora-sep.timer aurora-sep.service aurora-sep-ready.service aurora-touchid-setup.service aurora-sep-greeter-fingerprint.service %pre selinux %selinux_relabel_pre -s %{selinuxtype} @@ -185,7 +182,6 @@ fi %{_unitdir}/aurora-sep.service %{_unitdir}/aurora-sep-ready.service %{_unitdir}/aurora-sep-greeter-fingerprint.service -%{_unitdir}/aurora-sep-greeter-refresh.service %dir %{_unitdir}/fprintd.service.d %{_unitdir}/fprintd.service.d/aurora-sep.conf %{_unitdir}/fprintd.service.d/50-aurora-sep-no-timeout.conf From a0c940e197bd287625f493ed9500b9ec9efe3f86 Mon Sep 17 00:00:00 2001 From: Ryan <81541646+RyanTheTide@users.noreply.github.com> Date: Fri, 20 Nov 2026 07:19:39 +1100 Subject: [PATCH 8/9] drm/apple: drop the kill switches for features that are now the default 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, 231d448e4bf59), takeover_adopt (adopt the loader's panel mode, 14f5a01fd1ec5), j613_25g83_swap_timestamps and j613_25g83_flip_timestamp (J613 v26 swap timestamps, aa504d6de3dbe) and typec_follow_crtc (follow direct Type-C routes on modeset, 6ebfaaa722f0f). 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 --- drivers/gpu/drm/apple/dcp-fabric.c | 7 +--- drivers/gpu/drm/apple/dcp-peer-probe-v27.inc | 9 +---- .../gpu/drm/apple/dcp-peer-runtime-v27.inc | 17 +++------- .../gpu/drm/apple/dcp-peer-swap-probe-v27.inc | 4 +-- drivers/gpu/drm/apple/dcp-peer-v27.inc | 8 +---- .../drm/apple/dcp-peer-video-probe-v27.inc | 4 +-- drivers/gpu/drm/apple/iomfb.c | 7 +--- drivers/gpu/drm/apple/iomfb_v26_6.c | 34 ++++++------------- 8 files changed, 22 insertions(+), 68 deletions(-) diff --git a/drivers/gpu/drm/apple/dcp-fabric.c b/drivers/gpu/drm/apple/dcp-fabric.c index 150cd163924f1..9429abeecad39 100644 --- a/drivers/gpu/drm/apple/dcp-fabric.c +++ b/drivers/gpu/drm/apple/dcp-fabric.c @@ -39,9 +39,6 @@ module_param(tiled_split, bool, 0644); MODULE_PARM_DESC(tiled_split, "Drive both halves of a tiled Thunderbolt display (LG UltraFine 5K) on one pipeline, through its two DPTX ports (default: on)"); -static bool typec_follow_crtc = true; -module_param(typec_follow_crtc, bool, 0444); - /* * The hybrid pipeline (dcpext0: fixed HDMI PHY + Type-C routes) normally * comes last for a Type-C port, kept for an HDMI display. On the J616s it @@ -88,8 +85,6 @@ static bool dcp_typec_hybrid_first(void) return policy < 0 ? READ_ONCE(typec_hybrid_first_dt) : policy > 0; } -MODULE_PARM_DESC(typec_follow_crtc, - "Let direct DP-alt routes follow their selected CRTC (default: on)"); /* J714s: how long a tunnel's last pipeline is held for its return, in running time */ #define DCP_TB_STICKY_MS 20000 @@ -359,7 +354,7 @@ bool dcp_typec_ordered_dual_stream(void) */ bool dcp_typec_follows_crtc(struct apple_dcp *dcp) { - return typec_follow_crtc && dcp->nr_typec_routes && + return dcp->nr_typec_routes && !dcp->external && !dcp->external_native && (dcp->fw_compat == DCP_FIRMWARE_V_12_3 || dcp->fw_compat == DCP_FIRMWARE_V_13_5); diff --git a/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc b/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc index 33def11c752ea..7003050594f75 100644 --- a/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc @@ -35,7 +35,7 @@ static ssize_t peer_setup_test_store(struct device *dev, if (kstrtobool(buf, &value) || !value) return -EINVAL; - if (!peer_allocation_probe || !dcp) + if (!dcp) return -EOPNOTSUPP; wait = kzalloc(sizeof(*wait), GFP_KERNEL); if (!wait) @@ -82,15 +82,8 @@ static struct attribute *dcp_peer_probe_attrs[] = { NULL, }; -static umode_t dcp_peer_probe_visible(struct kobject *kobj, - struct attribute *attr, int n) -{ - return peer_allocation_probe ? attr->mode : 0; -} - static const struct attribute_group dcp_peer_probe_group = { .attrs = dcp_peer_probe_attrs, - .is_visible = dcp_peer_probe_visible, }; static const struct attribute_group *dcp_peer_probe_groups[] = { &dcp_peer_probe_group, diff --git a/drivers/gpu/drm/apple/dcp-peer-runtime-v27.inc b/drivers/gpu/drm/apple/dcp-peer-runtime-v27.inc index cd8340105b37b..6d76edf9a7d0a 100644 --- a/drivers/gpu/drm/apple/dcp-peer-runtime-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-runtime-v27.inc @@ -1,8 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ /* Paired DRM scanout of a mode one firmware-27 pipe cannot drive alone. */ -static bool peer_scanout = true; -module_param(peer_scanout, bool, 0444); -MODULE_PARM_DESC(peer_scanout, "Firmware27 paired DRM scanout (default: on)"); static bool dcp_peer_transport_idle(struct apple_dcp *dcp) { @@ -115,8 +112,7 @@ int dcp_peer_modeset_v27(struct apple_dcp *dcp, u32 timing, u32 color, u32 min_v bool limited, prepared; int ret = -EOPNOTSUPP; - if (!peer_scanout || !peer_allocation_probe || - dcp->fw_compat != DCP_FIRMWARE_V_27_0) + if (dcp->fw_compat != DCP_FIRMWARE_V_27_0) return ret; if (timing > U32_MAX - 10000 || color > U32_MAX - 10000) return -EINVAL; @@ -213,8 +209,6 @@ int dcp_peer_check_v27(struct apple_dcp *dcp, struct drm_atomic_commit *commit, pair ? "needs the pair" : "one engine"); if (!pair) return 0; - if (!peer_scanout || !peer_allocation_probe) - return -EINVAL; scoped_guard(mutex, &dcp_peer_lock) { struct apple_dcp *peer = dcp->peer_reserved; unsigned int displays, engines; @@ -249,7 +243,7 @@ int dcp_peer_stop_v27(struct apple_dcp *dcp) struct apple_dcp *peer; int ret = 0; - if (!peer_scanout || !READ_ONCE(dcp->peer_frames.active)) + if (!READ_ONCE(dcp->peer_frames.active)) return 0; if (!device_trylock(dcp->dev)) return -EBUSY; @@ -299,7 +293,7 @@ struct apple_dcp *dcp_peer_scanout_v27(struct apple_dcp *dcp) { struct apple_dcp *peer; - if (!peer_scanout || !READ_ONCE(dcp->peer_frames.active)) + if (!READ_ONCE(dcp->peer_frames.active)) return NULL; guard(mutex)(&dcp_peer_lock); if (!dcp->peer_frames.active) @@ -332,12 +326,11 @@ bool dcp_peer_swap_complete_v27(struct apple_dcp *dcp, u32 id, ktime_t now, u32 watermark; /* Independent CRTCs must not serialize through the pair's mutex. */ - if (!peer_scanout || (!READ_ONCE(dcp->peer_frames.active) && - !READ_ONCE(dcp->peer_owner))) + if (!READ_ONCE(dcp->peer_frames.active) && !READ_ONCE(dcp->peer_owner)) return false; guard(mutex)(&dcp_peer_lock); owner = dcp->peer_owner ?: dcp; - if (!peer_scanout || !owner->peer_frames.active) + if (!owner->peer_frames.active) return false; if (dcp_peer_frame_complete_v27(&owner->peer_frames, dcp != owner, id, &watermark)) /* Queue the combined watermark to the primary IOMFB owner. */ diff --git a/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc b/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc index ed73f355eda7e..65c367f80dd0f 100644 --- a/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc @@ -331,7 +331,7 @@ static ssize_t peer_swap_test_store(struct device *dev, if (kstrtobool(buf, &enabled) || !enabled) return -EINVAL; - if (!peer_allocation_probe || !device_trylock(dev)) + if (!device_trylock(dev)) return -EBUSY; dcp = dev_get_drvdata(dev); { @@ -375,7 +375,7 @@ static ssize_t peer_stop_test_store(struct device *dev, if (kstrtobool(buf, &enabled) || !enabled) return -EINVAL; - if (!peer_allocation_probe || !device_trylock(dev)) + if (!device_trylock(dev)) return -EBUSY; dcp = dev_get_drvdata(dev); { diff --git a/drivers/gpu/drm/apple/dcp-peer-v27.inc b/drivers/gpu/drm/apple/dcp-peer-v27.inc index a824ab7e99265..0236b215565e7 100644 --- a/drivers/gpu/drm/apple/dcp-peer-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-v27.inc @@ -3,10 +3,6 @@ /* Logical peer allocation for a merged mode. This only reserves an otherwise * unrouted DCP; it never replaces a physical route. */ -static bool peer_allocation_probe = true; -module_param(peer_allocation_probe, bool, 0444); -MODULE_PARM_DESC(peer_allocation_probe, "Firmware27 logical peer allocation for merged modes (default: on)"); - /* * The platform limit on merged modes (dcp_fabric_merged_fits()) holds on the * board it has run on, for the J714s's T6050 external display processors. @@ -112,7 +108,7 @@ bool dcp_peer_tiling_state_v27(struct apple_dcp *dcp, bool write, struct apple_dcp *peer; guard(mutex)(&dcp_peer_lock); - if (!peer_allocation_probe || dcp->peer_unbinding || dcp->crashed) + if (dcp->peer_unbinding || dcp->crashed) return false; peer = dcp->peer_reserved ?: dcp->peer_owner; if (!peer || peer->peer_unbinding || peer->crashed) @@ -182,8 +178,6 @@ int dcp_peer_hints_v27(struct apple_dcp *dcp, struct dptx_port *port, * status has a field of its own, leaving the request hints unchanged. */ r->status = 0; - if (!peer_allocation_probe) - return 0; if (!of_device_is_compatible(dcp->dev->of_node, "apple,t6050-dcpext") || port->unit || !dcp->crtc) return 0; diff --git a/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc b/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc index 3560cfc447a99..195128da34a5c 100644 --- a/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc @@ -187,8 +187,6 @@ static ssize_t peer_video_test_store(struct device *dev, if (sscanf(buf, "%u %u %u %c", &timing, &color, &install, &extra) != 3 || install > 3 || timing > U32_MAX - 10000 || color > U32_MAX - 10000) return -EINVAL; - if (!peer_allocation_probe) - return -EOPNOTSUPP; /* Trylocks avoid the sysfs-removal/device-lock inversion. Hold both * devices across RPC waits so neither devm-backed DCP can be unbound. */ @@ -236,7 +234,7 @@ static ssize_t peer_link_test_store(struct device *dev, if (kstrtobool(buf, &enabled)) return -EINVAL; - if (!peer_allocation_probe || !device_trylock(dev)) + if (!device_trylock(dev)) return -EBUSY; dcp = dev_get_drvdata(dev); if (!dcp || !dcp->active || dcp->crashed || !dcp->fixed_phy || diff --git a/drivers/gpu/drm/apple/iomfb.c b/drivers/gpu/drm/apple/iomfb.c index 1f3e97e6c5e9f..a8a195456512d 100644 --- a/drivers/gpu/drm/apple/iomfb.c +++ b/drivers/gpu/drm/apple/iomfb.c @@ -3011,11 +3011,6 @@ static int dcp_desktop_modeset(struct apple_dcp *dcp, return iomfb_modeset_v26_6_desktop(dcp, crtc_state); } -static bool takeover_adopt = true; -module_param(takeover_adopt, bool, 0444); -MODULE_PARM_DESC(takeover_adopt, - "Desktop 26.x panel takeover: present on the loader's live mode instead of setting it again (default: on)"); - /* * The loader leaves the panel running, and the firmware keeps that pipe when * it restarts. Setting the same mode again blanks the panel for ~200 ms, so @@ -3125,7 +3120,7 @@ int dcp_takeover_trial(struct platform_device *pdev, const char **reason) goto out; } - for (k = 0; takeover_adopt && k < n; k++) { + for (k = 0; k < n; k++) { if (!dcp_takeover_adopt(dcp, &cand[k])) { win = k; break; diff --git a/drivers/gpu/drm/apple/iomfb_v26_6.c b/drivers/gpu/drm/apple/iomfb_v26_6.c index 1f456dc17776a..0d8f0721f674b 100644 --- a/drivers/gpu/drm/apple/iomfb_v26_6.c +++ b/drivers/gpu/drm/apple/iomfb_v26_6.c @@ -272,21 +272,11 @@ struct apple_dcp_v26 { /* One DCP session per boot: RTKit is never started twice. */ static bool dcp_v26_session; -static bool j613_25g83_swap_timestamps = true; -module_param(j613_25g83_swap_timestamps, bool, 0644); -MODULE_PARM_DESC(j613_25g83_swap_timestamps, - "J613/25G83: time-stamp swaps on a 120 Hz variable-refresh panel so they are shown at 120 Hz, not 60 Hz (default: on)"); - static unsigned int j613_25g83_refresh = 120; module_param(j613_25g83_refresh, uint, 0444); MODULE_PARM_DESC(j613_25g83_refresh, "J613/25G83: preferred refresh of the built-in display: 120 (variable refresh, ProMotion) or 60 (locked); both modes stay available (default: 120)"); -static bool j613_25g83_flip_timestamp = true; -module_param(j613_25g83_flip_timestamp, bool, 0644); -MODULE_PARM_DESC(j613_25g83_flip_timestamp, - "J613/25G83: stamp page-flip events with the arrival of the firmware's swap-complete message; off: when the flush ends, less 1 ms (default: on)"); - static int dcp_v26_callback(void *cookie, u32 tag, const void *input, u32 in_size, void *output, u32 out_size); static void dcp_v26_backlight_register(struct work_struct *work); @@ -1282,9 +1272,9 @@ static int dcp_v26_present_show(struct seq_file *m, void *unused) snap->vrr = v26->vrr; mutex_unlock(&v26->lock); - seq_printf(m, "vrr %d\nrefresh %u\ntimed %d\ntimestamps %d\nflip_timestamp %d\nswaps %llu\n", + /* timestamps and flip_timestamp are always on; the lines stay for readers. */ + seq_printf(m, "vrr %d\nrefresh %u\ntimed %d\ntimestamps 1\nflip_timestamp 1\nswaps %llu\n", snap->vrr, READ_ONCE(v26->refresh), READ_ONCE(v26->timed), - READ_ONCE(j613_25g83_swap_timestamps), READ_ONCE(j613_25g83_flip_timestamp), snap->history_count); seq_puts(m, "# id surface timed start_ns submitted_ns replied_ns completed_ns\n"); first = snap->history_count > DCP_V26_HISTORY ? snap->history_count - DCP_V26_HISTORY : 0; @@ -1602,7 +1592,7 @@ static int dcp_v26_swap(struct apple_dcp_v26 *v26, const u8 *surface, u64 iova, dcp_v26_encode_swap(swap, id, DCP_V26_BLACK, surface, iova, width, height, dst_y, DCP_V26_LAYER); /* A target long past: show it at the next refresh, as on M1/M2. */ - if (surface && READ_ONCE(v26->timed) && READ_ONCE(j613_25g83_swap_timestamps)) { + if (surface && READ_ONCE(v26->timed)) { dcp_v26_swap_set_timing(swap, 120); rec.timed = 1; } @@ -1776,17 +1766,13 @@ void iomfb_v26_6_flush(struct apple_dcp *dcp, struct drm_crtc *crtc, dcp_v26_cancel_event(dcp); return; } - if (READ_ONCE(j613_25g83_flip_timestamp)) { - /* - * The flip completed when the firmware's swap-complete message - * came in, not when this worker got to run: stamp the event with - * that time as it is (no swap_start correction). - */ - dcp->swap_start = KTIME_MIN; - dcp_drm_crtc_page_flip(dcp, presented); - } else { - dcp_drm_crtc_page_flip(dcp, ktime_get()); - } + /* + * The flip completed when the firmware's swap-complete message + * came in, not when this worker got to run: stamp the event with + * that time as it is (no swap_start correction). + */ + dcp->swap_start = KTIME_MIN; + dcp_drm_crtc_page_flip(dcp, presented); } /* From 69df13f78aa3da9b944b04f799de33e882eb3ebd Mon Sep 17 00:00:00 2001 From: Ryan Murray Date: Sun, 29 Nov 2026 03:15:13 +1100 Subject: [PATCH 9/9] soc: apple, tools/aurora-sep: keep the old refresh unit and sleep config 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 --- drivers/soc/apple/Kconfig | 8 ++++++++ tools/aurora-sep/README.md | 11 +++++++++++ tools/aurora-sep/aurora-sep-greeter-fingerprint | 8 ++++++++ 3 files changed, 27 insertions(+) diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index 1339fe6c8fb04..978833308016d 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -148,6 +148,7 @@ config APPLE_CLUSTER_PWRGATE config APPLE_SOC_SLEEP bool "Apple SoC system sleep at EL2" + default APPLE_T8140_SLEEP depends on ARM64 && (ARCH_APPLE || COMPILE_TEST) depends on HOTPLUG_CPU && SUSPEND select APPLE_TUNABLE @@ -585,3 +586,10 @@ config APPLE_AURORA_BOOT_SECURITY_LOCKDOWN endmenu endif + +# Kept: configs that still set APPLE_T8140_SLEEP=y keep APPLE_SOC_SLEEP after olddefconfig. +config APPLE_T8140_SLEEP + bool + transitional + help + Transitional config for APPLE_T8140_SLEEP to APPLE_SOC_SLEEP migration. diff --git a/tools/aurora-sep/README.md b/tools/aurora-sep/README.md index 00eddf62e80bc..de941b6f9d62c 100644 --- a/tools/aurora-sep/README.md +++ b/tools/aurora-sep/README.md @@ -383,6 +383,17 @@ install -Dm644 aurora-sep-greeter-fingerprint.service /etc/systemd/system/ systemctl daemon-reload systemctl enable aurora-sep-greeter-fingerprint.service ``` +Upgrading an install from before 11-29 (manual or packaged): the old +`aurora-sep-greeter-refresh.service` is gone, and `refresh` is now a no-op that +only logs. Remove what is left of it once: + +``` +sudo systemctl disable aurora-sep-greeter-refresh.service 2>/dev/null +sudo rm -f /etc/systemd/system/aurora-sep-greeter-refresh.service \ + /etc/systemd/system/gdm.service.wants/aurora-sep-greeter-refresh.service +sudo systemctl daemon-reload +``` + Disabling it and rebooting returns the login screen to GNOME's behaviour. diff --git a/tools/aurora-sep/aurora-sep-greeter-fingerprint b/tools/aurora-sep/aurora-sep-greeter-fingerprint index 7f04a19d24d20..0b8fcfd0a3fff 100644 --- a/tools/aurora-sep/aurora-sep-greeter-fingerprint +++ b/tools/aurora-sep/aurora-sep-greeter-fingerprint @@ -25,6 +25,14 @@ log() { echo "aurora-sep-greeter-fingerprint: $*" >&2 } +if [ "${1:-}" = refresh ]; then + # aurora-sep-greeter-refresh.service, which passed "refresh", is gone. A manual + # install from before may still have it enabled. Do nothing, so that it never + # removes and rebuilds the overlay of a login screen that is already running. + log "'refresh' is no longer used; disable and remove aurora-sep-greeter-refresh.service (see README)" + exit 0 +fi + rm -rf "$out" "$dropin" [ "${1:-}" != stop ] || exit 0