Skip to content

kernel: merge hardware defaults from the pinned source - #28

Closed
RyanTheTide wants to merge 11 commits into
mainfrom
consistency/shared-kernel-config-20261026
Closed

RyanTheTide wants to merge 11 commits into
mainfrom
consistency/shared-kernel-config-20261026

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Use the pinned source shared asahi.config and retain distribution policy validation, without a per-device fragment.

In postPatch, link the matching patched Nix generator into the source-tree entry point before compiler probes. Its manifest, patches and Cargo.lock match the kernel. The locked nixpkgs kernel recipe supplies no BINDGEN make override. The Stage 2 host-test fixture uses an explicit zero gzip timestamp so comparisons are deterministic across Python versions; the installer is unchanged.

Pin combined cons3 source 26f2474183fcb287e0f7e8e180c53ed639b6a353. Public source archive SHA256 5516214432b23f39a3f0e79278454d76a846dc9c8131168f8dff22e78ad166ad.

The corrected generator is prepared at tools/aurora-bindgen/build/bin/bindgen, then Kbuild selects it automatically in-tree and with O=. No BINDGEN= make argument or export is needed. Every generated size, alignment and field-offset assertion remains mandatory. Preparation verifies pinned public sources, patches, Cargo.lock and compile fixtures; make performs no implicit download.

The common fragment also matches Fedora's FAT codepage 437 / ASCII defaults with both converters built in. Asahi's dracut pre-udev hook mounts the ESP without charset options; a modular ISO-8859-1 default can be absent from initramfs and prevent vendor-firmware extraction. Enable XZ/Zstd firmware loading for compressed distribution firmware files. No per-device fragment or new shipping parameter is added.

Retained Apple-only distro bases explicitly enable memory hotplug/hot-remove for DAX, built-in INET diagnostics and the Apple HID core selected by the built-in OF transport. They keep absent internal ACPI HID and Qualcomm QMI DSP offload disabled while retaining ordinary OF HID and USB audio. This fixes the initial hosted validation failures without ignoring mismatches or relaxing display/device admission gates.

Validation on this exact combined cons3 source:

  • Complete universal and independent Fedora-base Image/modules/dtbs builds passed with WERROR=y, all 1,331 fragment requests matched, and no BINDGEN make argument or environment override. Recorded generator commands and mandatory assertions were checked.
  • ARM64 QEMU KUnit: 358 passed, 95 skipped, no failures/crashes/errors; all nine required groups and real-MM attribution executed. Apple-dcp: 63/63 groups passed.
  • The unmodified public Asahi pre-udev hook reproduced cons2's missing ISO-8859-1 charset on a synthetic GPT/VFAT ESP. The exact cons3 Image mounted with default options and extracted the synthetic firmware correctly. Only NVMe readiness was modeled; mount, FAT/NLS and archive extraction were real guest operations.
  • Stock-generator fallback fails the mandatory layout assertions; restoring the prepared default passes the same configuration, even with the old layout opt-out set to zero. In-tree and O= selection both passed.
  • Both Apple dtbs_check runs retain the same 6,094 inherited diagnostics and identical normalized diagnostic context as the preserved baseline, with no new or removed diagnostics. This is not clean device-tree validation.
  • Native Linux distro host tests: Fedora 134, ALARM 89, NixOS 87; Fedora images 9. All three retained package policy bases also resolve with strict validators and pass rustavailable without a generator override. Source pins/checksums and Nix generator manifest/patches/Cargo.lock match.

These are kernel and host-software gates, not full package/image or device qualification. Keep the previous daily and user sessions available. Hardware smokes remain separately controller-gated; this PR stays draft and does not promote a package channel.

RyanTheTide and others added 11 commits October 26, 2026 14:40
Pin the kernel-side consistency series and remove the duplicate Neo
fragment. Validate the shared fragment together with ordered distro
requirements so built-in overrides remain deliberate and a silently
dropped shared driver still fails the build. Treat absent disabled
symbols as disabled, as olddefconfig does.

Merge the pinned source fragment before the final olddefconfig. The
retained config and stale local fragment otherwise leave the J713/G16
backends and PMP thermal/platform support disabled. Remove the local
fragment copy, retain the policy baseline and its historical provenance,
and validate the same source that is built.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Refresh the source pin and archive digest for the G15/G16 combined-build
fix in the consistency series. The shared fragment and resolved hardware
configuration are unchanged.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
Pin the combined consistency source with the test-helper cfg fix from 5135c9d4. Keep KUNIT=m and WERROR in the Fedora recipe; production driver behavior and config policy stay the same.

Assisted-by: LLM
The shared helper cleanup now also drops ENERGY_MODEL, which both supported bases already enable. Complete resolved configs are unchanged by that removal. Keep the G17 KUNIT=m WERROR source fix and the same driver set.

Assisted-by: LLM
Carry the source fix for the public Device::parent API lint expectation exposed by the built-in firmware/Asahi KUnit lane. Keep WERROR, the G17 KUNIT=m source fix and the same resolved driver set.

Assisted-by: LLM
Pin the combined cons2 source with mandatory binding layout assertions. Prepare the generator at the kernel default entry point so configuration, compilation and install phases need no BINDGEN override. Keep the existing distro policy and compiler compatibility adapter.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

Assisted-by: LLM
Use the shared 437/ASCII FAT defaults and built-in converters before dracut unpacks vendor firmware. Retain compressed XZ/Zstd firmware loading and the automatically selected corrected generator, without new make flags.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

Assisted-by: LLM
Enable DAX hotplug prerequisites, built-in INET diagnostics and the built-in Apple HID parent. Keep absent ACPI HID and Qualcomm DSP offload explicitly disabled while retaining ordinary OF HID and USB audio. Preserve strict ordered configuration validation and all runtime admission gates.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

Assisted-by: LLM
Pin mtime to zero so the installed-byte comparison remains stable across a wall-clock second on Python versions whose gzip.compress default uses the current time.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>

Assisted-by: LLM
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded: every distro now builds the kernel from the source tree's own hardware fragment, and the Neo copy is gone. Closing.

@RyanTheTide RyanTheTide closed this Nov 6, 2026
@RyanTheTide
RyanTheTide deleted the consistency/shared-kernel-config-20261026 branch November 6, 2026 03:05
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