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 diff --git a/drivers/gpu/drm/apple/Kconfig b/drivers/gpu/drm/apple/Kconfig index 689171db4ebe0..a6af86624b093 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 diff --git a/drivers/gpu/drm/apple/dcp-fabric.c b/drivers/gpu/drm/apple/dcp-fabric.c index 22148f031868f..b5e99e8e4cef7 100644 --- a/drivers/gpu/drm/apple/dcp-fabric.c +++ b/drivers/gpu/drm/apple/dcp-fabric.c @@ -42,9 +42,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 @@ -91,8 +88,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 @@ -368,7 +363,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 a1c017c98e085..88baf319035ec 100644 --- a/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-probe-v27.inc @@ -33,7 +33,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) @@ -85,15 +85,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 6b45166543e81..b328f1e241b7a 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, vrr_only; 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; @@ -265,8 +261,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; @@ -301,7 +295,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; @@ -351,7 +345,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) @@ -385,12 +379,11 @@ bool dcp_peer_swap_complete_v27(struct apple_dcp *dcp, u32 id, ktime_t now, bool bool both_shown; /* 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, shown, &watermark, &both_shown)) 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 343fa1872bada..fb9c249b8ce30 100644 --- a/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-swap-probe-v27.inc @@ -339,7 +339,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); { @@ -385,7 +385,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 34ee3e472d3ef..5a925ff744005 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 for the * external display processors whose node says so (apple,merged-mode-limit). @@ -113,7 +109,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) @@ -183,8 +179,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 86b0f20b5823d..0fdbc851181a3 100644 --- a/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc +++ b/drivers/gpu/drm/apple/dcp-peer-video-probe-v27.inc @@ -190,8 +190,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. */ @@ -239,7 +237,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 cfb3f4f984724..b62d7c1ed6c29 100644 --- a/drivers/gpu/drm/apple/iomfb.c +++ b/drivers/gpu/drm/apple/iomfb.c @@ -3072,11 +3072,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 @@ -3192,7 +3187,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 2f0b1ffa1ae08..6ddffb8b82b55 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); @@ -1300,9 +1290,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; @@ -1620,7 +1610,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; } @@ -1797,17 +1787,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); } /* diff --git a/drivers/gpu/drm/asahi/Kconfig b/drivers/gpu/drm/asahi/Kconfig index 7666284ed9736..bd31ee19edbb5 100644 --- a/drivers/gpu/drm/asahi/Kconfig +++ b/drivers/gpu/drm/asahi/Kconfig @@ -1,13 +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 RUST_DRM_GPUVM - bool - select DRM_GPUVM - config DRM_ASAHI tristate "Aurora (DRM support for Apple AGX GPUs)" depends on RUST diff --git a/drivers/soc/apple/Kconfig b/drivers/soc/apple/Kconfig index 00c137d065030..978833308016d 100644 --- a/drivers/soc/apple/Kconfig +++ b/drivers/soc/apple/Kconfig @@ -587,6 +587,7 @@ endmenu endif +# Kept: configs that still set APPLE_T8140_SLEEP=y keep APPLE_SOC_SLEEP after olddefconfig. config APPLE_T8140_SLEEP bool transitional 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. diff --git a/tools/aurora-sep/README.md b/tools/aurora-sep/README.md index d91bddcd6f8a9..de941b6f9d62c 100644 --- a/tools/aurora-sep/README.md +++ b/tools/aurora-sep/README.md @@ -368,21 +368,32 @@ 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 ``` +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 5793a2c93f88f..0b8fcfd0a3fff 100644 --- a/tools/aurora-sep/aurora-sep-greeter-fingerprint +++ b/tools/aurora-sep/aurora-sep-greeter-fingerprint @@ -26,16 +26,11 @@ log() { } 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 + # 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" 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 d9bc8e61c3530..3a5e4c4b29b9a 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 38f0aedd1ae57..90e180f9c3ecc 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