Skip to content

DRAFT: T8142 Bringup - #26

Draft
ADevWithAnIdea wants to merge 13 commits into
mainfrom
PR_t8142_bringup
Draft

ADevWithAnIdea wants to merge 13 commits into
mainfrom
PR_t8142_bringup

Conversation

@ADevWithAnIdea

@ADevWithAnIdea ADevWithAnIdea commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

WIP, rn it's unreviewed llm output. Not going to merge until 27.3 final releases.

Recognize mBoot 20457.41.3 and 20457.60.65.0.1 so consumers receive numeric
firmware versions and select the current protocol layout.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Select the asynchronous request interface through cluster initialization data.
Preserve older cluster initialization paths and omit legacy features absent from
the M5 ADT.

Hardware evidence: E/P boot states P5/P6; 510 directed clock transitions
measured with seven repetitions each.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Select cache control at compatible dispatch and use the handoff ADT readiness
predicate instead of assuming the older way-counter layout. Preserve the ADT
carveout fallback.

Hardware checked on T8142: one AMCC, four planes, eight channels. iBoot already
enables the cache; an OFF-to-ON transition is not claimed.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
The operation field mask is not an MMIO register offset. Poll BUSY at the same
command register used to submit the invalidation.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Preserve the device-visible address prefix from the inherited DART aperture,
negotiate AFK ring spacing, and transport compact EPIC commands with bounded
fragment assembly. Acknowledge OSLog notifications so AP quiesce can finish, and
enable normal display configuration.

Protocol references: existing Asahi Python AFK client and Gravity Linux
drm/apple AFK implementation at fa683b563261b8dde4f374553ea27f0d6cd9a9df, based
on Sven Peter's AFK driver. No Apple executable contents were inspected.

Hardware checked on J813 with 27.3 beta firmware: 2560x1664 at 60 Hz, two panel
power cycles, quiesce, reinitialization and another quiesce.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Read the configured T8110 root depth when exporting resident firmware mappings.
Keep extended roots read-only and reject operations that require the ordinary
two-table layout. Preserve the device-visible prefix described by
apple,dma-range in FDT mappings.

The table walk follows the existing Gravity/Asahi DART8110 Python
implementation. Verified primary and second-host AOP translations against that
walker on T8142.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Select the known firmware heap boundary from a layout table, retain the ADT DMA
aperture, and derive the allocation start from every resident segment. Leave
firmware-owned power domains alone when no legacy heap probe is needed.

Name firmware and heap memory regions so Linux can consume their physical and
IOMMU resources without a private firmware-address property. Replace optional
named placeholders in place. Report the 27.2-compatible ISP interface for the
installed 27.3 beta.

Verified heap initialization and generated reserved-memory mappings on T8142;
native Linux consumer testing is tracked separately.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Reserve resident RAM segments using the consumer DART mappings and the ADT DRAM
base. Validate every page and skip descriptors no longer mapped by firmware.
Keep VRAM separate from resident firmware.

Where the board supplies a scanout-pool alias, split the active framebuffer from
the remaining VRAM and describe both through existing reserved-memory bindings.
Preserve actual DCP/DISP DMA prefixes and expose the 27.2-compatible firmware
interface for 27.3 beta.

Verified generated mappings against the live inherited page tables. Boot-display
initialization, panel off/on, quiesce and reinitialization were verified
separately.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Use declared AOP aliases and the shared mapped-ASC helper to export the primary
__EDATA/__SHARED and second-host __EDATA_S allocations. The mappings are
selected by each consumer DART rather than chip-specific address constants.

Verified canonical IOVAs and physical resources in the generated device tree
against live AOP tables.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Discover Centauri through ADT when the older WLAN node is absent. Reuse
antenna-SKU copying and generate the documented host platform identity from
chosen board/chip metadata for the wifi-control alias.

Only pass static board metadata. Linux retains ownership of PCI reset, firmware
loading, DMA and radio state. Verified the generated host identity and antenna
SKU against the current board ADT.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Keep the same physical-register passthrough semantics as the Python fallback for
UPMCR0 and the architectural MTE status/control registers. Avoid a USB proxy
round trip for every guest interrupt-status read and tag-control update.

Register encodings follow the existing sysreg definitions. Verified with a
ten-CPU Linux guest reaching userspace through the USB VUART; no Apple
executable contents were inspected.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Describe the residual scanout pool in both DCP and display memory-region lists,
with their actual inherited IOMMU translations. The active framebuffer remains a
separate non-overlapping reservation.

Firmware may still use boot-time surfaces while the Linux display interface
starts. Preserve those mappings while assigning the physical pool to Linux
scanout.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
Native AP transport and Linux startup confirm changed IOMFB method numbers in
27.3 beta. Stop advertising it as compatible with the 27.2 DCP interface. Leave
the separately verified ISP compatibility handoff unchanged.

Assisted-By: LLM
Signed-off-by: Cody Ho <codyho@stanford.edu>
@ADevWithAnIdea
ADevWithAnIdea marked this pull request as draft November 16, 2026 21:12
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