Skip to content

linux-aurora 7.3.0.aurora1-34, aurora-sep 1-25: pin integration/aurora 2b05915f (T8140 deep sleep), mem-only suspend policy - #199

Merged
DjDeveloperr merged 9 commits into
mainfrom
feat/t8140-deep-sleep
Nov 12, 2026
Merged

DjDeveloperr merged 9 commits into
mainfrom
feat/t8140-deep-sleep

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Pins linux-aurora to linux 2b05915f, the merge of linux#1445 (T8140 suspend-to-RAM) into integration/aurora. Also ships the suspend policy in aurora-sep.

Kernel pin

  • linux-aurora 7.3.0.aurora1-34: _commit 2b05915f81bc066670cd872be3cbdd916753bf26 (was 84d091f7). The codeload tarball's sha256 is 267d4c5241687781cc582c16c8398c2c2bcd31d98575be40497f4addf24afaa0.
  • config is resolved against the pin the way prepare() does it: the pin's asahi.config is merged in, then olddefconfig runs. Its sha256 is 87635df7e0b1bd2a460969400b0623211fb52551c53b606bca14c29c078aa8d1. Replaying prepare() on it changes nothing. Changes against main:
    • Sleep: CONFIG_APPLE_SOC_SLEEP=y (new) and CONFIG_RTC_DRV_APPLE_PMU=y (was m).
    • New Apple options: CONFIG_APPLE_PIODMA=m, CONFIG_APPLE_CLUSTER_PWRGATE=y, CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO=m, CONFIG_CRYPTO_DEV_APPLE_SIO_AES=m.
    • CONFIG_PINCTRL_APPLE_GPIO stays m. The =y that 816e02d intended never took effect: the pinned asahi.config sets it to m, which wins in prepare(), so the package has always built it as a module. This file now says m to match. Building it in needs an asahi.config change in linux, as a separate follow-up.
  • The Aura (1.0.0b10, bd9f3e82) and U-Boot pins are unchanged.

Suspend policy (aurora-sep 1-25)

  • /usr/lib/systemd/sleep.conf.d/20-aurora-suspend.conf sets SuspendState=mem and leaves MemorySleepMode= empty. A suspend makes one mem request in the mode the kernel or user selected. If the kernel refuses a deep sleep, the suspend fails visibly instead of quietly retrying as s2idle. Drop-ins in /etc/systemd/sleep.conf.d/ override it.
  • systemd-suspend, systemd-hybrid-sleep and systemd-suspend-then-hibernate get After=aurora-sep.service. A sleep that starts during a SEP load waits for it, because the kernel refuses deep sleep until apple_sep binds. It never starts or retries a load.

Validation

  • linux#1445: CI 8/8 green on its head f1f89c74, which merged as 2b05915f.
  • Neo (J700) fast retest of 2573357f, whose kernel is identical to f1f89c74's. It ran with the production Stage 2 and booted from the SSD.
    • 25/25 sleeps kept DRAM, with 0 resets and every safety net at 0.
    • The ISP and ANE stop and restart tests pass.
    • Entry to commit takes 0.68 s (median); wake to backlight takes 0.87 s.
    • The earlier confirmation soak on b8f5b1e7 gave 100/100 DRAM-kept sleeps with 0 resets.
  • The Neo's Stage 2 was aura 0d10664b + aurora-boot: carry the display chain and its PMP in the initramfs #117 + aura: pin v1.0.0b4 #112; this repo's aura pin bd9f3e82 contains all of it.
  • 2b05915f adds 18 integration commits that weren't on the Neo run: J815 and M5 audio, T6050 DTs, Touch ID tools, and a pcie-apple log message.
  • This PR's CI builds the packages. They haven't been installed on hardware.

Merge order

Merge this PR first, with a merge commit (not squash). nixos#203's kernel/config is a byte copy of this PR's ece07124 and records that commit as its source, so the commit must stay in main's history. Then merge nixos#203 and fedora#242, in either order.

What merging does

Main's package build runs. When it passes, publish.yml publishes a signed testing-YYYYMMDD.N snapshot automatically (AUTO_PUBLISH_TESTING). The snapshot doesn't go live, because AUTO_DEPLOY_TESTING is off. Nothing reaches users until someone runs deploy-snapshot.yml by hand to serve it on testing. Images aren't rebuilt automatically, and nothing has been deployed to stable.

🤖 Generated with Claude Code

The T8140 deep-sleep series (aurora-silicon/linux#1208) adds
CONFIG_APPLE_T8140_SLEEP=y to asahi.config. ALARM merges that fragment at
build time, but NixOS builds from this resolved config without it and then
checks it against the fragment, where the bool with no default resolves to
n. Record it here, as earlier pins did for their new options.

The pinned d4d2678 kernel doesn't have the symbol, so olddefconfig drops it
and this build is unchanged. With the sleep series, the config resolves it
to y and passes validate-config.py.

Signed-off-by: Diljit Singh <hey@djdev.me>
Until apple_sep is bound, the T8140 sleep controller refuses a deep sleep
(EBUSY), and aurora-sep.timer only starts the load a second after boot.
It can take most of a minute, so a lid close or power-button press early
in a boot fails to sleep and leaves the Mac awake.

Order systemd-suspend after aurora-sep.service, so a sleep that starts
while the load runs waits for it. systemd-hybrid-sleep and
systemd-suspend-then-hibernate suspend the same way and get the same
drop-in. Today's kernels have no hibernation, so neither runs yet.

Only After=, no Wants=: a sleep must not start a load that's disabled, or
rerun one that failed, which can take up to the load's 180 s timeout
before every sleep. When the load has already finished, nothing waits.

Signed-off-by: Diljit Singh <hey@djdev.me>
… RTC

aurora-silicon/linux#1334 renames the deep-sleep driver for all Apple
SoCs: CONFIG_APPLE_T8140_SLEEP becomes CONFIG_APPLE_SOC_SLEEP, and
asahi.config sets the new one. #1333 makes the PMU RTC the J700's rtc0,
built in, so asahi.config sets CONFIG_RTC_DRV_APPLE_PMU=y. Record both in
the resolved config, which NixOS builds from without merging the
fragment and then checks against it.

TODO: both need the kernel pin to carry #1334 and #1333, which the
PKGBUILD's TODO says too. Under d4d2678 neither symbol changes anything:
it has no sleep driver, and olddefconfig drops the unknown one.

Signed-off-by: Diljit Singh <hey@djdev.me>
Preserve current source pins and distro changes while retaining the sleep
config requests and ordering. Refused mem requests must fail visibly;
leave the selected mem mode and explicit user opt-in authoritative.

Signed-off-by: Diljit Singh <hey@djdev.me>
Keep main's source pins and package changes and this branch's sleep
config requests, SEP sleep ordering and mem-only suspend policy.
aurora-sep takes pkgrel 25, both new files in its sources, and its
checksums recomputed from the merged files.

Signed-off-by: Diljit Singh <hey@djdev.me>
2b05915f is integration/aurora with aurora-silicon/linux#1445 merged:
suspend-to-RAM on T8140 (CONFIG_APPLE_SOC_SLEEP) with the PMU RTC wake
alarm built in (CONFIG_RTC_DRV_APPLE_PMU=y), both of which the source's
asahi.config now sets, and the integration changes since 84d091f7.

olddefconfig at the new pin keeps both sleep options at y and adds four
lines for new symbols at their defaults: CONFIG_APPLE_PIODMA=m,
CONFIG_APPLE_CLUSTER_PWRGATE=y, and CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO
and CONFIG_CRYPTO_DEV_APPLE_SIO_AES not set. The pending-pin TODO goes.

Signed-off-by: Diljit Singh <hey@djdev.me>
package() writes fprintd-no-timeout.conf from fprintd-no-timeout.conf.in
in the build directory. A copy of that output was committed next to the
template; nothing reads it.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 12, 2026 02:24
The merge kept main's adaptations text and this branch's sleep-ordering
sentence, but dropped the branch's three sentences after it: the mem-only
suspend policy and that these are distribution adaptations. Put them
back, and the provenance checksum with them.

Signed-off-by: Diljit Singh <hey@djdev.me>
The base configuration is resolved against the pin: the source's
asahi.config merged in, then olddefconfig, as prepare() does. The
previous commit ran olddefconfig without the merge, so it left the two
new asahi.config options at their Kconfig defaults. NixOS byte-copies
this file and doesn't merge asahi.config, so its validation rejected
them.

Resolved, CONFIG_SND_SOC_APPLE_T8152_AOP_AUDIO and
CONFIG_CRYPTO_DEV_APPLE_SIO_AES are m, and CONFIG_PINCTRL_APPLE_GPIO is
m. asahi.config sets the GPIO driver to m at both 84d091f7 and 2b05915f,
so prepare() already overrode this file's y and the package builds it
as m. Replaying prepare() on this file now changes nothing.

Signed-off-by: Diljit Singh <hey@djdev.me>
@DjDeveloperr DjDeveloperr changed the title Suspend: mem-only policy, explicit mode selection and SEP ordering linux-aurora 7.3.0.aurora1-34, aurora-sep 1-25: pin integration/aurora 2b05915f (T8140 deep sleep), mem-only suspend policy Nov 12, 2026
@DjDeveloperr
DjDeveloperr merged commit 26c1fe3 into main Nov 12, 2026
7 checks passed
@DjDeveloperr
DjDeveloperr deleted the feat/t8140-deep-sleep branch November 12, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant