Skip to content

arm64: apple: add initial M5 J813 native RAM boot support - #159

Merged
Acelogic merged 5 commits into
aurora-wipfrom
codex/m5-j813-initial
Oct 2, 2026
Merged

Acelogic merged 5 commits into
aurora-wipfrom
codex/m5-j813-initial

Conversation

@Acelogic

@Acelogic Acelogic commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Adds the J813/T8142 device tree and initial native M5 MacBook Air support to aurora-wip. The new arch/arm64/boot/dts/apple/t8142-j813.dts describes the board's measured CPU affinities, AICv3 interrupt controller, DockChannel console, firmware framebuffer and memory handoff, and is registered in the Apple DTB Makefile.

The series provides the matching bindings, T8142-specific interrupt/timer handling, a J813 kernel configuration and repeatable boot documentation. On M5, guest timers are masked through their architectural EL02 controls because writes to the older Apple timer-control register trap. This is selected by the T8142 compatible in the new device tree. The implementation is adapted from the existing local J813 bring-up, with explicit T8142 CPU compatibles. The tested console uses DockChannel; the Samsung UART is described but disabled.

Scope and dependencies

  • Updated against aurora-wip at 1af7eaa28371096cd86d4c0dd02d5bd68103cef8 (Linux 7.1.12). The conflict resolution retains both M5/J813 and M6/J873g bindings and the incoming T8152 idle changes.
  • Companion bootloader support: m1n1 #10 and U-Boot #2, both targeting their public aurora-wip branches. They provide high-memory mappings, CPU pruning, framebuffer fixups and DockChannel transport through the native FDT handoff. The J813 DT requires no custom boot-mode property.
  • Initial qualification is one boot CPU, AICv3, architectural timers, DockChannel, firmware framebuffer registration and a RAM-only BusyBox shell.
  • SMP/hotplug, KVM guest timers, CPU frequency/power management, native DCP/GPU, built-in input, USB, storage, networking and audio remain outside this PR's qualification. This is not a full distribution config or an installation to internal storage.

Validation

  • Rebuilt ARM64 Image, J813 DTB and J873g DTB after conflict resolution with j813.config and W=1, using GCC 15.2.0 and binutils 2.46.
  • Targeted schema checks for both DTBs and validation of the three changed binding files passed with dtschema 2026.9. J873g runtime was not tested in this PR.
  • Live hardware: J813 / Mac17,3 / chip 0x8142, boot CPU affinity 0x10100. Linux reports 7.1.12-aurora-j813-wip, one online CPU, AIC 2400/4096 IRQs, a 1 GHz architectural timer and a 2560x1600 x2r10g10b10 simple framebuffer. The public m1n1 handoff reserves the panel's notch area.
  • KIS upload readback matched every payload hash. Live /proc/config.gz SHA-256 matched the build config. On the merged candidate, a five-second sleep advanced uptime by 5.00 seconds and the timer IRQ count by 1,251; interrupt error count was zero. The shell listed only rootfs, devtmpfs, proc, sysfs and tmpfs mounts.
  • git diff --check passed. Checkpatch reports zero errors; the combined series emits the new-file MAINTAINERS reminder and binding-separation warnings.
  • The pre-merge payload passed two separate RAM boots after VDM resets. The rebuilt merge candidate (b05a52a240d7) passed a further fresh boot and live shell/config/timer/framebuffer/RAM-mount checks. Its capture contains no kernel panic, Oops, unhandled fault or CPU warning.

The W=1 build is not warning-free: it reports warnings in unchanged syscall/CPU feature/trap tables, scheduler code and Samsung UART code. No warnings came from the changed AIC source or J813 DTB.

The repeatable build and serial qualification procedure is included in the documentation. Full local console captures, scripts, final config, patch and payload hash manifest were retained. Raw boot captures are not posted because they contain per-device identifiers and boot entropy.

Final payload SHA-256:

604e893681e588838ab532f086cb324d74b8c8eee9d3aaa5014c436dfbc54fff  Image
cf0a01aa6c3094a213e5f641e7ff2cc8cdffcbaa3f32aff33c9f47ca944f1e9e  t8142-j813.dtb
10ea8fc29ffb55ad9e089db4f57e3e96f167933c6c0785e37c933004973bcbba  initramfs.cpio.gz
514b3a2dd1c227bc0cf1eddcec46660cc9ac2157267e85014ea4d2a9cb939a13  kernel.config
07bb7052f2c9f6908824ce786eecefa45f3939d373c91f99f21ea704c89343a4  m1n1.macho
7f7ec65c80b11df0ce82d38ef56a4dd3dd40dc620865f75a675f955228d63f55  u-boot-nodtb.bin

Describe the J813 board, T8142 CPU identifiers and AICv3 compatible.
Document the Aurora minimal RAM handoff flag consumed by the J813
m1n1 bring-up stack.

Signed-off-by: Acelogic <[email protected]>
The initial J813 boot traps on writes to VM_TMR_FIQ_ENA_EL2 in
aic_init_cpu. Select a T8142 AICv3 profile which masks physical and
virtual guest timers through their EL02 control registers and uses
their control status in the FIQ handler. Keep the legacy register
path for existing SoCs.

Port the minimal timer workaround from the local J813 bring-up at
c8f85bc. Native single-CPU boot is
the qualification target; KVM guest timer behavior remains unqualified.

Signed-off-by: Acelogic <[email protected]>
Add the measured J813 CPU affinities, AICv3 windows, DockChannel
console and loader-populated framebuffer and memory. Keep the Samsung
UART disabled and omit DMA peripherals. Supply a minimal kernel
configuration and document the required m1n1/U-Boot handoff and
repeatable boot qualification.

Adapt the minimal device tree and configuration from the local J813
bring-up at c8f85bc. Use T8142 CPU
compatibles instead of firmware-inherited M3 core names. This initial
scope is a single-CPU RAM boot, not complete M5 platform support.

Signed-off-by: Acelogic <[email protected]>
@Acelogic
Acelogic marked this pull request as ready for review October 2, 2026 15:34
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Acelogic
Acelogic merged commit b3a55ee into aurora-wip Oct 2, 2026
@Acelogic
Acelogic deleted the codex/m5-j813-initial branch October 2, 2026 21:03
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