Skip to content

iommu/apple-dart: mirror the firmware's display mappings on T6040 (M4 Pro) - #386

Merged
RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/apple-dart-t6040
Oct 23, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:integration/aurorafrom
jgoyvaerts:m4pro/apple-dart-t6040

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

As on the T8140 and T8142, iBoot locks the T6040 (M4 Pro) display DARTs, and the bootloader re-exports the display firmware's live translations as reserved IOVA regions. Without fw_mirror, the locked root's firmware slots reject the identical Linux mappings. Attaching the DCP's default domain then fails with -EBUSY, both display DARTs fail to probe, and the display driver never binds.

This PR enables fw_mirror for apple,t6041-dart. It is one line.

Naming: apple,t6041-dart (with the apple,t8110-dart fallback) is the compatible from the t604x binding PR #372. The SoC blocks are named after the T6041 (M4 Max) die the M4 Pro is cut from, as Apple's device tree names it (arm-io,t6041).

Hardware tested on: Apple MacBook Pro (16-inch, M4 Pro, 2024), J616s / T6040, macOS 26.x firmware, booted by our own loader with our private T6040 device tree. It has run Linux 7.3.0-m4.3 daily since 2026-10-22.

How tested: on the J616s, both display DARTs (DCP and DISP0) probe and our display driver binds and drives the internal panel at every boot.

Not tested / limits: the display path was only exercised with our own DCP code for the J616s panel. Aurora's DCP has no J616s support yet.

Relation to #366 and #367: this merges cleanly with #366 and with #367 stacked on it, which reworks the same probe path.

Dependencies: #372 for the apple,t6041-dart binding.

Left out on purpose: our "Use v2 exception registers only where mapped". That patch assumed the T6040 USB and PCIe DARTs have a 0x4000-byte register window. Apple's device tree gives every T6040 DART at least 0xc000, and 0x20000 on PCIe and DCP. With the full window the existing v2 path is correct. With a short window, the fallback to the legacy handler left faults unacknowledged and caused an IRQ storm. So the T6040 device tree must map the full windows.

Base: integration/aurora (51cda52). Built and checked there: m4_defconfig, W=1 on apple-dart.o (no warnings, same as the base), checkpatch --strict clean.

🤖 Generated with Claude Code

As on the T8140 and T8142, iBoot locks the T6040 (M4 Pro) display DARTs
and the bootloader re-exports the display firmware's live translations
as reserved IOVA regions. Without fw_mirror the locked root's firmware
slots reject the identical Linux mappings: attaching the DCP's default
domain fails with -EBUSY, both display DARTs fail to probe and the
display driver never binds.

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
RyanTheTide pushed a commit that referenced this pull request Oct 23, 2026
Add the DCP, its mailbox and DARTs, the display subsystem node and the
display's PMGR window, and the J616s panel (345 x 223 mm). All stay
disabled: the boot loader enables them when it hands the display over,
and also adds the firmware version and the DCP mapping pools.

Binding: apple,t6041-dcp from the first patch of this series. The
display handoff also needs #386 ("iommu/apple-dart: mirror the
firmware's display mappings on T6040").

Signed-off-by: Jonathan Goyvaerts <[email protected]>
Assisted-by: LLM
@RyanTheTide
RyanTheTide merged commit 49273fd into aurora-silicon:integration/aurora Oct 23, 2026
@jgoyvaerts
jgoyvaerts deleted the m4pro/apple-dart-t6040 branch October 24, 2026 16:14
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.

2 participants