Repository navigation
iommu/apple-dart: mirror the firmware's display mappings on T6040 (M4 Pro) - #386
Merged
RyanTheTide merged 1 commit intoOct 23, 2026
Conversation
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
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.
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_mirrorforapple,t6041-dart. It is one line.Naming:
apple,t6041-dart(with theapple,t8110-dartfallback) 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-dartbinding.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 --strictclean.🤖 Generated with Claude Code