Repository navigation
kernel: configure with the kernel's aurora_defconfig - #332
RyanTheTide wants to merge 2 commits into
Conversation
kernel/config was alarm-aurora's resolved configuration from an older pin, and asahi.config was never merged, so over a newer source the NixOS kernel missed recent drivers (T6050 Wi-Fi and Bluetooth, the M5 GPU, the DWI backlight). The kernel source now carries the one configuration every Aurora build uses (aurora-silicon/linux#2292). The build now runs make aurora_defconfig and fails if the result differs from kernel/config, which stays as the evaluation-time snapshot (refreshed with each pin). nixos.config becomes a list of what NixOS needs, checked but not merged; it already holds in the shared configuration (btrfs and virtio-pci are built in). Only an owner's boot.kernelPatches settings are still merged on top. The snapshot and provenance point at the linux#2292 head; evaluation fails until the kernel pin includes it, so land this with that pin bump and refresh the snapshot from the pinned commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up before this leaves draft: the new kernel pin 078e73cc contains f5b80629ce ("drm/asahi: g17: Raise the GPU's domain before stopping it at the commit") but not its fix. On the MacBook Neo (J700), that commit makes every deep suspend lose the PMP idle echo, take the forced deep path and lose the GPU after wake. Bisected and confirmed on two Neos today. The fix is aurora-silicon/linux#2469, merged as 26294e82 on integration/aurora. Please pin at or after 26294e82 (or cherry-pick it) so NixOS on the Neo doesn't ship a broken sleep. fedora-aurora#426 and alarm-aurora#350 don't move the kernel pin, so they're unaffected. |
…op fix The snapshot pointed at 078e73cc, which carries f5b80629ce but not its fix 26294e82, so the pin bump this lands with would have shipped the Neo deep-sleep GPU loss. linux#2292 now merges integration/aurora (36faebf3, contains 26294e82). aurora_defconfig resolves to the same values there, so only the recorded commit changes. Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
|
Blockers: 3. Building from the kernel's own
( HW row: with the pin bump that includes #2292: Assisted-by: LLM (Claude:Opus 5.5) |
|
aurora-silicon/linux#2292 was closed without merging and replaced by aurora-silicon/linux#2803 (still a draft), so provenance.json's 36faebf3 is no longer a commit that will land: keep this in draft until #2803 merges, then regenerate kernel/config from the pinned commit and build it. Blockers 1 and 2 from the earlier review are still open at c3b428f: commit 560abc3 needs re-committing with a human Signed-off-by only (no Co-Authored-By trailer), and the configure-time check in pkgs/kernel.nix still compares the toolchain-detected symbols (CONFIG_CC_VERSION_TEXT, CONFIG_CLANG_VERSION, CONFIG_RUSTC_VERSION_TEXT and the rest). |
The NixOS kernel now comes from the kernel source's own
make aurora_defconfig(aurora-silicon/linux#2292), like the Fedora and Arch packages and the fleet build.Before this,
kernel/configwas alarm-aurora's resolved config from an older pin, and asahi.config was never merged. Resolved over 0abc2f385e54, it lacksAPPLE_CENTAURI*/BT_CENTAURI/BT_HCICENTAURI(T6050 Wi-Fi/BT),DRM_ASAHI_M5,DRM_ASAHI_G18,BACKLIGHT_APPLE_DWI,PCIE_APPLE_MSIandPHY_APPLE_T6050_DP.pkgs/kernel.nixconfigurePhase:make aurora_defconfig, then fail if the result differs fromkernel/config. That file stays as the evaluation-time snapshot, because NixOS reads kernel options before the build. Only an owner'sboot.kernelPatchessettings are merged on top. Validation now coversaurora-base.config+asahi.config+nixos.config.kernel/nixos.configis a requirement list that is checked, not merged. Every entry already holds in the shared configuration:BTRFS_FSandVIRTIO_PCIchanged from m to y, which is what the shared config builds, andLOCALVERSIONis empty there.kernel/config=make ARCH=arm64 LLVM=1 aurora_defconfigat the linux#2292 head (buildbox clang 22.1.6; refresh it with the toolchain the NixOS build uses, since the check compares the toolchain-detected values too), withprovenance.jsonpointing there. The requirement and policy checks pass on it.Expected failure until the pin moves:
test_vendored_files_match_their_recorded_source, and the evaluation assert that ties provenance to the pin, fail because the snapshot is from linux#2292 and not from the current pin. That is on purpose: when the first pin bump that includes #2292 lands, regeneratekernel/configfrom the pinned commit (make ARCH=arm64 LLVM=1 aurora_defconfig), updateprovenance.json, and merge the two together.test_track_sourcestest_kernel_update_refreshes_provenance_without_editing_recipesfails for the same reason: the updater replaces the pinned commit inprovenance.json, which now records the #2292 head. This PR does not change the pin. Nix was not available on the build host, sonix buildandnix flake checkhave not been run; the other tests intests/test_kernel_config.pypass.Pin floor: the snapshot now records linux#2292 at 36faebf3, which merges integration/aurora and so contains 26294e82 (the GPU stop fix for the Neo deep-sleep regression introduced by f5b80629ce). The earlier 078e73cc had the regression without the fix. Whatever pin this lands with must contain 26294e82; aurora_defconfig resolves to the same values at 36faebf3 as at 078e73cc.