Skip to content

wip: prepare aurora edge packages for neo support - #1101

Merged
maralcbr merged 23 commits into
omacom:masterfrom
aurora-silicon:feat/aurora-edge
Oct 18, 2026
Merged

maralcbr merged 23 commits into
omacom:masterfrom
aurora-silicon:feat/aurora-edge

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Add Neo support and pin the Aurora stack while retaining the existing shared kernel config, Mesa epoch and legacy boot paths. Keep audio replacements isolated from stock-name upgrades.

The kernel uses omacom/linux-aurora integration/aurora at 5d570a78a4ab29ac383ec8988be2356dfc6c8a75, packaged as 7.1.12.aurora7-2. The original shared config is byte-identical to the PR base. Common and Neo fragments add the required capabilities, including built-in TRUSTED_KEYS and APPLE_SEP; validation checks the requested fragment values after olddefconfig. The extra general built-in-preservation guard and preliminary normalization pass have been removed. This PR does not claim a raw-config loss audit.

The Neo bootloader packages use aurora-silicon/aura at c4331a90ef324eab33d34d1515d7e42748a293ab and aurora-silicon/u-boot at 0cb6fed6a10512d1013a4a80b6d83c3d56140f2f. Their installed boot paths remain compatible. omarchy-mac-boot stays on unpatched upstream d8100ec9442a7612e5a686939cc6bbb1bd4fc2bd (20261010-1); the downstream encryption root-mount gate was removed, together with its companion requirement in installer PR #57. The installer retains embedded Btrfs validation and the upstream encryption activation link.

Native-CI build fixes: Aura, audio profiles and firmware now declare runtime-only dependencies in package(), retaining every runtime dependency in the finished packages. The kernel recipe installs and explicitly selects the pinned toolchain's rustfmt; omitting it reproduced bindgen's self-test failure. Aura candidate packages validate source identity and retain their honest hardware_tested: false record; the standalone qualification validator remains strict by default for release review. No source pins or kernel config inputs changed.

Validation: 15 recipe review tests and 10 metadata/checksum tests passed, as did Python compilation, shell syntax and whitespace checks. The exact pinned private bindgen rebuilt and passed all five C/Rust fixture groups. Native CI passed audio and firmware package builds, and their artifacts retain all expected runtime dependencies; both Aura stages compiled. The full native kernel package build also passed for 7.1.12-7-2-ARCH: https://github.com/omacom/omarchy-pkgs/actions/runs/39111694614/job/117629092454 . The follow-up Aura candidate package build also passed: https://github.com/omacom/omarchy-pkgs/actions/runs/39112605003 . The final run reused the successful kernel, audio and firmware artifacts by their exact package tree hashes. No new hardware test is claimed.

Earlier validation of this kernel/configuration included a complete isolated AArch64 cross-build of Image, modules and DTBs for 7.1.12-7-2-ARCH. Linked vmlinux and modules.builtin confirmed built-in SEP; all 1,871 packaged module hashes matched the retained manifest. Local package SHA256: c22c40e921e5ddad25a68e239623da04e7413eb08bae25d9ad8246e115d54fd6. The owner reports the review's exact-pin qualification item complete. Earlier source CI passed self-tests and build isolation: https://github.com/omacom/omarchy-pkgs/actions/runs/39087484475 . Current-head source CI passed self-tests and build isolation: https://github.com/omacom/omarchy-pkgs/actions/runs/39112604991 . Current-head native build result passed, reusing the exact unchanged kernel/audio/firmware artifacts and building Aura: https://github.com/omacom/omarchy-pkgs/actions/runs/39112605003 .

Aura qualification and the existing regulatory, peripheral-admission and speaker-safety policies remain maintainer-controlled. This PR does not create a release or tag.

@erykwieliczko

Copy link
Copy Markdown
Contributor

Pushed four commits on top of yours. The commit messages have the details.

  • linux-aurora
    • Pinned to 5f6c917, which includes Update tobi-try to 1.10.1 #301. 790d5a81 doesn't boot the Neo.
    • Builds with ALARM's clang18, llvm18 and lld18. They install only under /usr/lib/llvm18/bin, so clang-18 doesn't exist and LLVM now defaults to that prefix.
    • The m1n1 floor is back to 1.6.1, so M1 and M2 users on m1n1-aurora aren't blocked.
  • No replaces= on stock names. It would have swapped Mesa on every aarch64 machine on [omarchy], and m1n1, U-Boot, bless and audio on every M1 and M2. Only the Neo draft names are still replaced. Every recipe carries omarchy-platform-apple-silicon, and the tests in tests/aurora-edge cover both.
  • omarchy-aurora-firmware: the initcpio hook adds the MT7932 policies only if they exist, because no package ships them. It also ships a watcher that sets the world domain whenever the country has no policy, which leaves Wi-Fi blocked otherwise (PL, for example).
  • mesa-aurora
    • Links neither LLVM nor SPIRV-Tools. A first build makes the shader compilers, and the drivers build with -Dllvm=disabled -Dspirv-tools=disabled. ALARM is already on LLVM 23.
    • Builds for the first time. It's tested in an Omarchy edge chroot on ALARM.
    • It didn't build before because arch-meson clashes with -Dbuildtype and makes every auto feature mandatory, including VA.
    • Mesa's tests are off: src/asahi/vulkan/tests/test-hk-sampler-bias.c has #undef NDEBUG and calls nir_validate_shader, so it only links in debug builds. Worth fixing in the Mesa tree.

Not built here: linux-aurora (only the pin and toolchain changed) and aura.

Related, for the Neo image. In the edge repo, plain omarchy is the stable 4.0.4 release, so an image that installs omarchy switches to 4.0.4 on its first update. 4.0.4 predates the Qt 6.12 Color fix (omacom/omarchy#14845), and the shell loses all its colours. Images should install omarchy-dev and omarchy-settings-dev. Doing that turned up a file conflict: omarchy-settings-dev and omarchy-mac's tmpfiles both claim /etc/mpv/mpv.conf.

🤖 Generated with Claude Code

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 87701e6. Requesting changes on linux-aurora and the aura publication gate; the other recipes are close. Reviewed against kernel 5f6c917. Repinning alone doesn't resolve these recipe and qualification issues; please recheck them at the new pin.

Must fix

  1. linux-aurora builds every Mac's kernel with the Neo config. prepare() merges j700-radio.config, j700.config and j700-device-parity.config unconditionally. The checked-in config (qualified on M1/M2, plus the M3 USB-PD change in 5edd81d) is no longer read. Against that config, M1/M2/M3 users already on edge would:

    • lose CONFIG_USB4 (was m, so USB4/Thunderbolt), CONFIG_DEBUG_INFO_BTF (was y), CONFIG_IIO_AOP_SENSOR_LAS (was m), CONFIG_KEXEC_FILE (was y) and CONFIG_RELR (was y)
    • gain CONFIG_ARM64_USER4K_EXPERIMENTAL, PM_ADVANCED_DEBUG and ENABLE_DEFAULT_TRACERS
    • get Btrfs, HID/dockchannel, DWC3/type-C/ATC, zram and rfkill moved from modules to built-in, which changes probe timing and how module options and blacklists apply.

    Either preserve existing-machine behaviour (keep a qualified shared config with Neo support added, or build the J700 config only for the Neo), or get the shared changes explicitly approved and boot/initramfs-qualified on M1/M2/M3.

  2. The split build fails. _package-headers (PKGBUILD:163) installs $O/tools/bpf/resolve_btfids/resolve_btfids unconditionally. The kernel builds it only with DEBUG_INFO_BTF (Makefile:1541-1545), and neither the fragments nor defconfig set that.

  3. The bindgen wrapper is never used. Kernel Makefile:548 assigns BINDGEN = bindgen, which overrides the exported environment variable. rust-bindgen was dropped from makedepends and isn't in the core/extra dependency closure. So a clean build has no bindgen and Rust support can configure off silently, dropping the Rust drivers including the Asahi GPU driver; a build host that does have bindgen bypasses the wrapper. Pass BINDGEN=... on the make command line and assert CONFIG_RUST=y after configuring. (LLVM from the environment works.)

  4. aura's own publication gate isn't met. build-qualification.json records hardware_tested: false and a gate of "native build, matched Stage1/Stage2 Neo boot, repair and upgrade qualification". Please attach that evidence before this publishes, even to edge. Separately, the JSON is read from $startdir rather than source=().

Should fix

  • config is now orphaned, and the PKGBUILD cites docs/aurora-edge.md, which doesn't exist.
  • tests/aurora-edge/metadata.py isn't wired into .github/workflows/test.yml, so the replaces/provides guarantees aren't enforced.
  • omarchy-aurora-firmware:
    • /etc/mkinitcpio.conf.d/95-aurora-vendor-order.conf has no backup=.
    • Early admission works only with a systemd initramfs, while aop is blacklisted on every Apple Mac. With a busybox initramfs, this hook provides no early admission; non-Neo AOP can load after root, through the vendor-firmware service's ExecStartPost, if that service succeeds. That becomes a must-fix if busybox initramfs is supported.
  • aurora-regdom-fallback can't loop on its own 00, but it can oscillate with repeated external country hints. Worth rate-limiting.
  • mesa-aurora builds no Vulkan layers and doesn't depend on vulkan-mesa-implicit-layers, unlike ALARM's mesa.

Policy (maintainer opt-in)

  • The shared-kernel config changes in must-fix 1, including experimental USER4K, the added debug options and the built-in changes.
  • A systemd-initramfs requirement for early peripheral loading.
  • Global world-domain regulatory fallback.
  • Feed-forward speakerguardd replacing speakersafetyd on J700.
  • Reduced Mesa functionality (no layers, Mesa tests off).
  • Publishing aura before its qualification gate.

Checked, no problems found

  • No automatic stock-package replacements. Only the Neo draft names are in replaces=. Provider selection is still possible, and the platform group is a label, not a hardware restriction.
  • The supplied udev rule automatically activates speakerguardd only for AppleJ700. The same rule does set ACP_IGNORE on the speaker-sense PCM of every AppleJ* device.
  • The mt7932-fullmac udev match is correct (mt7932.c:1401).
  • Version ordering permits preview upgrades (mesa epoch, aurora5). This was checked by metadata only; no pacman transaction or boot was tested.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Addressed the recipe issues:

  • Restored the checked-in shared kernel configuration and added a narrow Neo fragment, preserving the existing USB4, BTF, AOP sensor, kexec, RELR, and module settings.
  • Pass the bindgen wrapper on every make command line and require CONFIG_RUST=y.
  • Install resolve_btfids conditionally, requiring the executable when BTF is enabled.
  • The full build exposed a missing DWC3 export. Backported existing aurora-wip commit e87b71da with Ryan Murray’s original authorship and trailers, retaining the existing kernel pin.
  • Added the firmware configuration to backup=, explicitly enforce the systemd-initramfs requirement, and rate-limit regulatory fallback while rechecking delayed country hints.
  • Added the Mesa implicit-layers dependency, wired the package checks into CI, and removed the nonexistent documentation reference.

Aura qualification metadata now comes through source=(), and packaging refuses publication until the exact source pin has passing boot, repair, and upgrade evidence. That evidence remains pending; the gate has not been marked satisfied.

The complete AArch64 kernel Image modules dtbs cross-build passes, including 1,870 modules and 113 Apple DTBs. Package CI also passes. These are build/test results, not hardware or native package-install qualification.

Remaining maintainer policy decisions are still open.

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed at f363bbf against my 87701e6 review. The four previous must-fixes are addressed; thanks. Two code issues are new, and the rest is qualification evidence.

Must fix

  1. The Neo loses audio. CONFIG_SND_SOC_APPLE_T8140_AOP_AUDIO (asahi.config:46; sound/soc/apple/Kconfig:14-25 at 5f6c917) is in neither config nor neo.config, so olddefconfig leaves it off. That's the T8140 card for the mics and the AOP back ends for the headphone jack and internal speaker. Add it to neo.config. While there, compare both asahi.config and j700.config at the pin against the generated config. Currently absent or off: DRM_ACCEL_ANE, THERMAL_DEFAULT_GOV_POWER_ALLOCATOR, SERIAL_APPLE_DOCKCHANNEL, SYSFB_SIMPLEFB, DMABUF_HEAPS/UDMABUF, THERMAL_NETLINK and NVME_HWMON. Decide each one deliberately for the Neo or for everyone.
  2. The regulatory watcher starts too late. aurora-regdom-fallback:33-38 now runs iw reg reload, set-wireless-regdom and the first fall_back before subscribing to iw event. A country hint that lands in that gap is never seen, and the radio can stay blocked. Subscribe first, as before, and keep the new rate limit.

Verified fixed

  • Shared config. It's preserved in the input config: prepare() starts from the checked-in config plus a 6-line neo.config, and tests/aurora-edge/review.py checks the fragment overrides no shared setting. That test reads the text, not the Kconfig result, so please also compare the generated .config against the previous build for M1/M2/M3.
  • Bindgen. _make passes BINDGEN=/LLVM= on every make call (configure, prepare, build, modules_install, vdso_install), and prepare() fails unless CONFIG_RUST=y.
  • Headers. resolve_btfids is required only when BTF is on, and BTF is on again.
  • aura. The qualification JSON comes through source=(), and packaging now requires qualification attestations for the exact pin (native build, Stage1/Stage2 boot, repair, upgrade). It checks that passing reports are declared, not what they contain.
  • Smaller fixes.
    • The DWC3 backport is applied by the existing *.patch loop.
    • backup= was added and the dead doc reference removed.
    • The tests/aurora-edge checks run in CI.
    • mesa-aurora (not vulkan-aurora) now depends on the implicit layers.

Before this publishes

  • Neo boot evidence. None has been supplied for this kernel config. Beyond must-fix 1, the Neo now gets these differences from the J700 config it was tested with:

    • built-in vs module for HID/dockchannel, type-C, DWC3/ATC, Btrfs and zram
    • USB4=m, IIO_AOP_SENSOR_LAS=m and RELR=y
    • no USER4K
    • KEXEC_FILE=y, where j700-radio.config disables kexec because active radio firmware can't cross kexec. A cold boot doesn't settle that one: either disable kexec for the Neo or show that a kexec is safe.

    Please attach a Neo cold boot with Wi-Fi/BT, audio, suspend and LUKS unlock on this exact build.

  • M1/M2/M3 qualification. M1/M2/M3 move from 2439016 to 5f6c917. Please attach M1/M2 cold-boot evidence on this build, or say explicitly that edge takes it unqualified.

  • Native build. No native package-build evidence has been supplied. This PR's build matrix job is still skipped pending approval (.github/workflows/build-pr.yml:178-180), and the linked green run is the self-tests. A maintainer should approve the build so linux-aurora and mesa-aurora build natively on aarch64 before merge.

Policy (maintainer opt-in)

  • aurora-vendor-order.install now fails any initramfs build whose effective HOOKS aren't systemd, including Macs with customised or legacy busybox hooks (omarchy-settings deliberately keeps legacy Mac hooks working). Choose explicitly: support only systemd initramfs on Aurora Macs, or explicitly support a degraded path: skip the hook with a warning and defer AOP admission until after root, which then depends on the vendor-firmware service succeeding and the required firmware being present.
  • Global world-domain regulatory fallback.
  • Feed-forward speakerguardd replacing speakersafetyd on J700.
  • Reduced Mesa testing (Mesa's own tests off).
  • Kexec left enabled on the Neo despite the radio note.

DjDeveloperr and others added 12 commits October 17, 2026 02:29
Pin the Aurora stack, retain Mesa epoch and legacy boot paths, and isolate audio replacements from stock-name upgrades. Keep source tracking disabled for the review candidates.

Signed-off-by: DjDeveloperr <hey@djdev.me>

Assisted-by: LLM
…hing

5f6c917 merges omacom#301, which leaves the firmware-owned J700 DISP_CPU domain alone; 790d5a81 does not boot the Neo. ALARM's clang18, llvm18 and lld18 install only under /usr/lib/llvm18/bin, so LLVM defaults to that prefix and they are makedepends. The m1n1 floor goes back to 1.6.1, which M1 and M2 users' m1n1-aurora meets, and replaces=linux-asahi goes: it would swap the kernel of every Mac on [omarchy] at its next update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
replaces= on a stock name swaps that package on every machine using [omarchy] at its next update: Mesa on every aarch64 machine, and m1n1, U-Boot, bless and the audio stack of every M1 and M2; on Qualcomm the platform guard would then refuse the whole upgrade. The recipes keep conflicts and provides, so the Neo image installs them explicitly, and replace only the Neo-only draft names. Every recipe carries the apple-silicon platform group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No package ships the MT7932 policy files, so the initcpio hook adds them only when present instead of failing the build. Only US and world-XZ exist, and the radio stays blocked for any other country, such as one set from the timezone at setup; a watcher on regulatory changes switches such a country to the world domain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A first build makes the CL shader compilers Asahi needs; the packaged drivers use them with -Dllvm=disabled and -Dspirv-tools=disabled, so an Arch Linux ARM LLVM or SPIRV-Tools bump no longer leaves the Neo without a GPU until a rebuild. llvmpipe goes with LLVM; softpipe stays. check() refuses a staged library that needs either, and libdisplay-info triggers rebuilds.

The recipe did not build before: arch-meson's --buildtype clashed with -Dbuildtype=release, and its --auto-features enabled demands the VA front end this driver set cannot have. meson setup now takes arch-meson's flags without auto-features, with b_ndebug like Arch's Mesa, and pins the optional features the dependencies follow. makedepends names rust-bindgen, Arch's bindgen package. Mesa's tests stay off: hk_sampler_bias_test undefines NDEBUG and calls nir_validate_shader, so it links only in debug builds.

Built in an Omarchy edge chroot on Arch Linux ARM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…atabase

The radio loads in the initramfs, so cfg80211 does too, and it reads regulatory.db only once. Without it the country set from the timezone reached the driver, which blocks without a policy for it, but not the global domain, so the world-domain fallback never saw it and Wi-Fi stayed down everywhere but the US. The hook now adds the database and its signature, and the fallback reloads it and sets the country again for an initramfs built before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ates

Use the existing shared config with additive Neo drivers. Pass the private bindgen wrapper on each make command, require Rust, and package the BTF resolver only when its configuration requires it.

Keep Aura unqualified until the exact source pin has boot, repair and upgrade evidence. Track its qualification record and validator as source inputs. Wire edge metadata and regression fixtures into CI, including draft upgrade ordering and firmware admission. Preserve modified mkinitcpio configuration, reject unsupported busybox hook sets, defer rate-limited country fallback with a fresh readback, and restore Mesa's implicit-layer dependency.

Signed-off-by: DjDeveloperr <hey@djdev.me>
Assisted-by: LLM
Use a disposable writable BUILDDIR when makepkg reads recipes from the read-only CI checkout.

Signed-off-by: DjDeveloperr <hey@djdev.me>
Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>
Assisted-by: LLM
Carry aurora-wip commit e87b71da6428f91b547d7405a82a038aac2e982d with Ryan Murray’s original authorship and trailers. Keep the existing kernel source pin and shared configuration while allowing the Apple DWC3 glue to resolve its core helper.

The preserved-config cross-build exposed the missing symbol and now passes modpost with the backport. Focused package checks pass. Bump the kernel package release for the additional source patch.

Signed-off-by: DjDeveloperr <hey@djdev.me>
Assisted-by: LLM
Preserve the shared kernel baseline while enabling the Neo userland interfaces and reject dropped config requests. Keep Honeykrisp tests consistent with release NIR libraries and run the full Mesa test build. Subscribe before initial regulatory setup and retain bounded readback recovery.

Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>
Use linux aurora-wip-rebase at 0bbaaa063195 with its matching Mesa DRM UAPI. Keep the kernel release suffix deterministic, retain the installed kernel epoch, and use Mesa versions that upgrade both existing image and review packages. The DWC3 export is already in the pinned kernel, so drop its backport.

Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-reviewed at 12bd60b against my f363bbf review. (The tree is identical to f661b7a, the earlier merge of master.) Both must-fixes are fixed, and the rebase onto master keeps master's QEMU PCI_HOST_GENERIC/PL011 config change with the updated checksum. The rebase repin adds one new must-fix and several questions, mostly for M1/M2/M3.

Must fix

Keep the -ARCH release suffix. prepare() now sets LOCALVERSION to -aurora (scripts/config --set-str LOCALVERSION "$_kernelname") instead of the shared config's -ARCH, so the release string and /usr/lib/modules/<ver> change for every Mac. Boot-bundle rebuilds find device trees by that suffix: omarchy-mac-boot selects /lib/modules/*-ARCH (lib/dtb-overlays.sh:61,165 at the pinned d8100ec and at main), and the update-m1n1 default DTBS uses the same glob. After the upgrade removes the old -ARCH modules directory, the next update-m1n1 can't find the new kernel's DTBs, so it either fails or rebuilds boot.bin with stale or no trees. Keep -ARCH, or ship a compatible selector migration in omarchy-mac-boot and asahi-scripts first.

Verified fixed

  • Neo audio. SND_SOC_APPLE_T8140_AOP_AUDIO=m is in neo.config. The new validate-config.py fails prepare() if Kconfig drops any fragment-requested symbol (it validates neo.config, not the whole baseline).
  • Regulatory watcher. iw event now starts as a coproc before iw reg reload/set-wireless-regdom/fall_back. A dead event stream exits non-zero, so Restart=on-failure brings it back. Reconciliation uses an idle timeout (read -t 5), though, so a steady stream of unrelated events can postpone it indefinitely. Use an elapsed-time deadline for bounded recovery.
  • Mesa tests are back on. The NDEBUG test fix is a small, upstreamable patch.
  • Initramfs. A non-systemd initramfs now gets a warning and the degraded root-time path instead of a failed build. The recipe chooses degraded root-time admission, which maintainers still need to accept.
  • Kexec. The new pin has a kexec_block() interlock (kernel/kexec_core.c:55-90), so keeping KEXEC_FILE=y is reasonable. Please name the caller, apple_piodma_lock_transition() (pcie-apple-piodma-diag.c:140-150), in the PKGBUILD comment.

Before merge

  1. neo.config now changes every Mac's kernel, not just the Neo's. Its header says it adds "missing common capabilities", and it now enables, for M1/M2/M3 too, settings the shared config had off:

    • SERIAL_APPLE_DOCKCHANNEL(_EARLYCON)=y
    • SYSFB_SIMPLEFB=y
    • DMABUF_HEAPS(_SYSTEM)=y and UDMABUF=y
    • THERMAL_NETLINK=y, NVME_HWMON=y, TRUSTED_KEYS=m

    None is a demonstrated regression (the DT framebuffer path disables sysfb, drivers/of/platform.c:581-595), but they're shared behaviour changes made from a Neo fragment. tests/aurora-edge/review.py doesn't catch this either: it rejects only NAME= overrides, not flips of # NAME is not set. Either split these into a deliberate shared change and review them, or include them in the M1/M2/M3 qualification.

  2. M1/M2/M3 move to a new kernel line. The pin goes 2439016 → 0bbaaa0 on aurora-wip-rebase, and the asahi DRM UAPI grows: a new GEM_MADVISE ioctl, new params fields, an end-appended queue_create.render_scs_layout, render and compute command extensions, and the old pad now a HAL200 flags. Legacy render/compute records are zero-extended (queue/mod.rs:853,878, util.rs:111-126), so older Mesa should keep working. J613's HAL200 runtime requires explicit VM acknowledgement, while G17P doesn't (file.rs:526-534). Mesa is "matched to the DRM UAPI in linux aurora-wip-rebase", but M1/M2/M3 don't install mesa-aurora; they run the distro Mesa. Please show GPU acceleration on an M1/M2 with the stock Mesa on this kernel, plus the cold boot the recipe header asks for.

  3. epoch=1 on linux-aurora is permanent. The commit says it keeps "the installed kernel epoch", but the Neo version fixture in tests/aurora-edge/metadata.py:101 (7.1.12.aurora4-…) has no epoch. The archive the installer's build6-m123-neo.sh:39,56 selects has none in its .PKGINFO either, and aurora6-1 already sorts above master's aurora2-12. Show a deployed 1: package; otherwise drop the epoch, since it can never be removed once published.

Still needed before publication (unchanged)

  • A Neo cold boot with Wi-Fi/BT, audio, suspend and LUKS unlock on this exact build.
  • M1/M2/M3 cold-boot evidence on this build.
  • A native package build: this PR's build job is still skipped pending maintainer approval.

Policy (maintainer opt-in)

  • Item 1's shared config additions, if they stay shared.
  • Global world-domain regulatory fallback.
  • The degraded root-time AOP/Wi-Fi admission on non-systemd initramfs.
  • Feed-forward speakerguardd replacing speakersafetyd on J700.
  • The permanent kernel epoch.
  • Kexec/kdump, hibernation and deep suspend blocked while the Neo radio holds retained memory (s2idle is allowed once the radio is ready and admitted; pcie-apple-piodma-diag.c:163-206,717-727).

Preserve CONFIG_LOCALVERSION from the shared config so omarchy-mac-boot and update-m1n1 keep finding /lib/modules/*-ARCH/dtbs. Leave boot-image filenames unchanged and increment pkgrel for the corrected package.

Validation: package review regressions and metadata checks pass; Bash syntax passes. Kernel rebuild and hardware upgrade qualification remain pending.

Assisted-by: LLM

Signed-off-by: DjDeveloperr <hey@djdev.me>
Use an elapsed-time deadline instead of an idle read timeout. Keep the existing fallback rate limit and restart a dead watcher. A stream of scan events cannot hide a country change that arrived before subscription became ready.

Validation: new busy-stream regression fails on the old watcher and passes with the fix; all 11 review tests and 9 package metadata tests pass. No live regulatory changes were performed.

Assisted-by: LLM

Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

Pushed two follow-ups to the current review:

  • 12c25778: preserve the checked-in CONFIG_LOCALVERSION="-ARCH" rather than replacing it with -aurora, and bump the kernel pkgrel. The existing omarchy-mac-boot/update-m1n1 DTB selector contract stays unchanged. Package review and metadata checks pass; a rebuilt kernel and hardware upgrade are still pending.
  • 739199b2: make regulatory readback use an elapsed-time deadline. Unrelated iw event traffic cannot reset the five-second reconciliation interval. The existing fallback rate limit and dead-watcher restart behavior are retained. A new continuous-scan-event fixture reproduces starvation on the old code and passes on the corrected watcher; all 11 review tests and 9 metadata tests pass. No live regulatory changes were used for these tests.

The branch is still linear (14 topic commits, no merge commits). This does not claim the shared-config/epoch questions, stock-Mesa compatibility, native package builds or hardware qualification are complete. Actual package builds still await upstream approval.

Assisted-by: LLM

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked 12c2577 and 739199b.

  • -ARCH suffix: resolved. prepare() leaves the shared config's CONFIG_LOCALVERSION="-ARCH" alone, LOCALVERSION_AUTO stays off, and the pin has no localversion* files of its own. With the recipe's localversion.10-pkgrel (-6-2, PKGBUILD:68), the generated release is 7.1.12-6-2-ARCH, so the *-ARCH DTB selector in omarchy-mac-boot/update-m1n1 still matches. Could you add a regression check to tests/aurora-edge/review.py asserting the generated release ends in -ARCH? omarchy-mac-boot depends on that string, and nothing currently guards it.
  • Regulatory readback: resolved. next_reconcile is now an elapsed-time deadline that unrelated events can't push back, and test_busy_unrelated_events_cannot_starve_country_readback covers it.

These items from my previous review are still open:

  • neo.config's shared additions for M1/M2/M3.
  • An M1/M2 GPU check with stock Mesa on the rebased kernel.
  • The permanent epoch=1.
  • Neo and M1/M2 cold boots on this build.
  • A native CI build.

Separate deliberate platform-wide capabilities from Neo-only drivers and validate both fragments. Check the generated kernel release retains the DTB selector suffix and cover positive/negative releases. Drop the unpublished kernel epoch; existing public preview versions already upgrade without it.

Assisted-by: LLM

Signed-off-by: DjDeveloperr <hey@djdev.me>

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked 829376e. Three of the open items are now resolved:

  • Epoch: resolved. epoch=1 is dropped before publication, and metadata.py now asserts linux-aurora has none. 7.1.12.aurora6-2 already sorts above master's aurora2-12.
  • Shared capabilities: resolved. They're now explicit in common.config, separate from the Neo drivers, and checked by validate-config.py like neo.config. review.py now also rejects a Neo fragment that flips a shared # … is not set.
  • Release suffix: resolved. _check_kernelrelease fails prepare() unless the generated release ends in -ARCH, with positive and negative test cases.

Small fixes in this commit:

  • TRUSTED_KEYS=m downgrades the SEP driver. The "SEP-backed keys" comment is right: the pin registers an applesep trust source (drivers/soc/apple/trusted_shim.c:77-106, from sep.rs:2385-2386). At this pin APPLE_SEP also depends on TRUSTED_KEYS (drivers/soc/apple/Kconfig:125). So TRUSTED_KEYS=m is what keeps the SEP driver at all, but it caps the shared config's CONFIG_APPLE_SEP=y (config:7214) at m on every Mac. If built-in SEP matters (early availability, initramfs contents), use TRUSTED_KEYS=y; either way, please state the choice and qualify SEP-backed trusted keys at runtime. validate-config.py checks only the requested symbols, so it doesn't catch baseline downgrades like this one. Consider also failing on any y→m/off change against config.
  • Garbled kexec comment. The prepare() comment now reads "at this pin Neo radio admission acquires the / apple_piodma_lock_transition() … acquires the kernel kexec blocker". Please fix the sentence.

Still needed before publication:

  • An M1/M2 GPU check with stock Mesa on the rebased kernel.
  • Neo and M1/M2 cold boots on this build.
  • A native CI build (still skipped pending approval).

Pin omacom/linux-aurora integration/aurora at 5d570a78a4ab29ac383ec8988be2356dfc6c8a75 after aurora-wip-rebase merged. Update the source URL and Mesa's matching DRM reference, and advance the kernel package revision to 7.1.12.aurora7-1.

Validation: 13 package review tests, 9 metadata tests and recipe Bash syntax passed. The updated kernel build and Neo installation testing remain in progress.

Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>
Apply a checksum-pinned patch to the existing boot source and bump pkgrel. sysroot.mount now requires successful encryption, rather than proceeding after a failed service on ordering alone. Preserve that dependency through the conversion's runtime mapper override.

Validation: complete boot package suite and native package build passed. The actual faulty initrd was booted under QEMU: Btrfs failed on the leaked host wrapper and the new gate kept sysroot unmounted. The unchanged encryption script's mounted-filesystem refusal remains intact.

Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>
The enabled Asahi Vulkan tests link libvulkan; the isolated package build failed at src/asahi/vulkan/meson.build:309 because that library was absent. Add vulkan-icd-loader to makedepends so the test link dependency is available during configuration.

Validation: Mesa recipe regression, generated package metadata and Bash syntax passed. GPU source and runtime package versions are unchanged; a full isolated Mesa rebuild is not claimed.

Assisted-by: LLM
Signed-off-by: DjDeveloperr <hey@djdev.me>
Build trusted keys and SEP into the kernel, and compare fragment output against a baseline normalized with the same source and toolchain. Reject silent built-in downgrades, fix the radio kexec explanation and bump the package release.

Assisted-by: LLM
Signed-off-by: Dj <hey@djdev.me>

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checked 829376e..de78215.

Resolved

  • SEP stays built in. common.config now sets TRUSTED_KEYS=y and APPLE_SEP=y, validate-config.py checks both, and --preserve-builtins fails on any shared y that the fragments downgrade.
  • Kexec comment is fixed.
  • Mesa test build. vulkan-icd-loader in makedepends fixes the missing build dependency for the enabled Vulkan tests; a full Mesa rebuild isn't claimed.
  • Kernel source. The pin moves to omacom/linux-aurora integration/aurora at 5d570a7. The repin introduces no asahi DRM UAPI header changes (byte-identical to 0bbaaa0). Runtime compatibility still needs qualification: the kernel requires a HAL200 VM acknowledgement on non-G17 HAL200 hardware (file.rs:526-534), while pinned Mesa leaves that field zero (agx_device.c:1106-1118).

Before merge

  1. The omarchy-mac-boot change belongs in its own PR, made upstream first.
    • e2d8406 patches omacom/omarchy-mac-pkgs from inside omarchy-pkgs (encryption-root-gate.patch).
    • It changes boot behaviour for every Mac using the rebuilt systemd initramfs hook, including declined and plaintext installs, not just the Neo: sysroot.mount now Requires=omarchy-mac-encrypt.service (encryption-root-gate.patch:9-10,23-24).
    • That service has no Condition…=, so it always runs, under set -euo pipefail. Its normal paths for healthy, declined and already-LUKS Macs return 0, and finished/rekeyed Macs tolerate missing or revoked keys (omarchy-mac-encrypt:755-775). Any failed activation now blocks the root mount, though. Example: a malformed install.conf fails at :154-168 even when the encrypted root is valid. Previously that failure didn't gate sysroot.mount itself, and an independently valid sd-encrypt setup could still boot.
    • Failing closed when a conversion fails mid-way is reasonable. Making every encrypted Mac's boot depend on that script succeeding is a maintainer decision.
    • Please land it in omarchy-mac-pkgs and pin the new commit here, in a separate omarchy-pkgs PR. Attach boot evidence on an already-encrypted M1/M2, a declined Mac and a pre-Omarchy LUKS Mac; the added test checks the dependency graph (patch:48-53), not those boots.
  2. The built-in check misses pin-caused losses. --preserve-builtins compares against baseline-resolved.config, which is the checked-in config after olddefconfig at the new pin. A built-in that the pin itself turns off (exactly what APPLE_SEP would have done without TRUSTED_KEYS) is already gone from the baseline. Also audit losses against the checked-in config: list any y that resolves to m/off, allowing reviewed renames and compiler-probe differences.
  3. Another new kernel line for M1/M2/M3. 5d570a7 is 626 commits ahead of and 560 behind 0bbaaa0. That's ancestry, not a measure of functional change, but it is a different line from the one reviewed before. The open qualification items now apply to this pin:
    • an M1/M2 GPU check with stock Mesa
    • Neo and M1/M2 cold boots
    • a native CI build (still skipped pending approval)

Use the pinned upstream boot package without changing its root-mount dependencies. Keep the existing upstream encryption activation contract and leave bootloader selections unchanged.

Validation: 15 Aurora recipe tests, 9 package metadata tests, bash syntax and git diff checks passed.

Assisted-by: LLM

Signed-off-by: Diljit Singh <hey@djdev.me>
@maralcbr maralcbr added the build-approved Maintainer approved this PR to build on the self-hosted pool label Oct 18, 2026
@maralcbr

Copy link
Copy Markdown
Member

Thanks: a6b52f8 resolves the omarchy-mac-boot point. The recipe is identical to master again.

I've added build-approved so the native aarch64 builds run, and we'll do the M1/M2 cold boot and the stock-Mesa GPU check on those packages. Remaining asks:

  1. Freeze the pin. Please keep linux-aurora at 5d570a7, and the kernel config as it is, while we qualify. Any move restarts the M1/M2 tests.
  2. Built-in audit. Also check the generated config against the checked-in config (not just baseline-resolved.config), listing any y that resolves to m/off.
  3. Neo evidence. A Neo cold boot on these exact CI-built packages, with Wi-Fi/BT, audio, suspend and LUKS unlock.

Keep the original shared config and the common/Neo fragments. Remove the preliminary baseline normalization and the general built-in comparison; retain checks for explicitly requested fragment values, including built-in SEP.

Validation: 14 recipe review tests, 9 metadata/checksum tests, Python compilation, shell syntax and whitespace checks passed. The shared config matches the PR base byte for byte; source pins and config inputs are unchanged.

Assisted-by: LLM

Signed-off-by: Diljit Singh <hey@djdev.me>
Keep runtime-only dependencies in package metadata without installing them into the Aura, audio-profile and firmware build environments. Install rustfmt for the pinned bindgen toolchain and select it explicitly during private-tool validation and kernel make phases.

Validation: 14 recipe tests and 10 metadata/checksum tests passed. Native audio and firmware makepkg builds completed with all runtime dependencies retained. The exact pinned private bindgen rebuilt and passed all five C/Rust fixture groups; omitting rustfmt reproduced the CI failure.

Assisted-by: LLM

Signed-off-by: Diljit Singh <hey@djdev.me>
Allow PR packages to retain an honestly unqualified hardware record while validating source identity and disabled automatic Stage 1 enrollment. Keep the standalone validator strict by default and require complete evidence for any record claiming hardware qualification.

Validation: 15 recipe tests, 10 metadata/checksum tests and CLI checks passed. Native CI compiled both Aura stages before the previous package-time qualification rejection.

Assisted-by: LLM

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

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving at 533635f. The earlier blockers are resolved, every package has a passing native build, and DJ reports the hardware testing as covered. This goes to edge only; rc promotion stays parked. Follow-ups, non-blocking: set hardware_tested: true with report links in aura/build-qualification.json, and we'll boot an M1/M2 on the edge kernel.

@maralcbr
maralcbr merged commit 62045fb into omacom:master Oct 18, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Publish succeeded → live

Packages: alsa-ucm-conf-aurora (x86_64, PR artifact); aura (aarch64, PR artifact); aurora-audio (x86_64, PR artifact); aurora-bless (aarch64, PR artifact); linux-aurora (aarch64, PR artifact); mesa-aurora (aarch64, PR artifact); omarchy-aurora-firmware (aarch64, PR artifact); speakerguardd (aarch64, PR artifact); uboot-aurora (aarch64, PR artifact)

  • edge/x86_64: alsa-ucm-conf-aurora-10.aurora2-1-any, aurora-audio-4.1.aurora2-1-any
  • edge/aarch64: alsa-ucm-conf-aurora-10.aurora2-1-any, aura-0.1.0.r20261014-2-aarch64, aurora-audio-4.1.aurora2-1-any, aurora-bless-0.4.4.aurora2-1-aarch64, linux-aurora-7.1.12.aurora7-2-aarch64, linux-aurora-headers-7.1.12.aurora7-2-aarch64, mesa-aurora-1:26.3.0_devel.20261017.af3d9c6fc84-1-aarch64, vulkan-aurora-1:26.3.0_devel.20261017.af3d9c6fc84-1-aarch64, omarchy-aurora-firmware-20261014-4-aarch64, speakerguardd-0.1.0.aurora2-1-aarch64, uboot-aurora-2026.07.aurora2-1-aarch64

Some planned slots did not run because an earlier slot failed.

Commit 62045fb · run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-approved Maintainer approved this PR to build on the self-hosted pool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants