Repository navigation
arm64: apple: add initial M5 J813 native RAM boot support - #159
Merged
Merged
Conversation
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]>
This was referenced Oct 2, 2026
Acelogic
marked this pull request as ready for review
October 2, 2026 15:34
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This was referenced Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the J813/T8142 device tree and initial native M5 MacBook Air support to
aurora-wip. The newarch/arm64/boot/dts/apple/t8142-j813.dtsdescribes 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
aurora-wipat1af7eaa28371096cd86d4c0dd02d5bd68103cef8(Linux 7.1.12). The conflict resolution retains both M5/J813 and M6/J873g bindings and the incoming T8152 idle changes.aurora-wipbranches. 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.Validation
j813.configandW=1, using GCC 15.2.0 and binutils 2.46.7.1.12-aurora-j813-wip, one online CPU, AIC 2400/4096 IRQs, a 1 GHz architectural timer and a 2560x1600x2r10g10b10simple framebuffer. The public m1n1 handoff reserves the panel's notch area./proc/config.gzSHA-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 --checkpassed. Checkpatch reports zero errors; the combined series emits the new-file MAINTAINERS reminder and binding-separation warnings.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: