Skip to content

J616s: enable the internal display after the m1n1 T6041 handoff - #452

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
ryan/j616s-panel-activate
Oct 25, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
ryan/j616s-panel-activate

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

The kernel half of the J616s internal panel. With aurora-silicon/m1n1#51 (merged), m1n1 describes the DCP that iBoot leaves running and leaves the display nodes disabled. This PR lets Linux take it from there.

Two commits:

  1. arm64: dts: apple: t6040: describe the T6041 display handoff. This adds what the handoff checks and fills. The two display DARTs get apple,dma-range for their DVA window (ADT vm-base 0x100_0000_0000, vm-size 0x10_0000_0000), dcp gets two address and size cells for the piodma memory regions, and the J616s gets a disp0-piodma alias. The display nodes stay disabled.
  2. soc: apple: enable the J616s display after a T6041 handoff. This is a small built-in gate, along the lines of the T6030 one, that runs before devices are created. It enables the DARTs, the DCP mailbox, the display subsystem, the DCP and the panel. That only happens on a J616s, only when apple,t6041-handoff is on dcp, display and piodma with the 26.6.2 apple,firmware-compat, with the three DART streams where they should be (23, 0, 16), every node still disabled and the DCP CPU running. Otherwise, or with nomodeset, nothing changes and the boot framebuffer stays. It has to be built in, because appledrm is only loaded once the nodes exist. CONFIG_APPLE_T6041_DISPLAY_GATE defaults to y on Apple platforms.

Gates

On integration/aurora 3b77f0f with #394:

  • Universal recipe (Fedora asahi base, asahi.config, LLVM=1, CONFIG_DRM_WERROR=y): Image, modules and DTBs build with no warnings, all 131 asahi.config settings survive, and the gate comes out =y.
  • apple-dcp host selftests 63/63.
  • dt_binding_check for apple,dcp.yaml and apple,dart.yaml is clean. CHECK_DTBS for t6040-j616s gives the same 4 existing Wi-Fi/PCIe warnings as the base and nothing new.
  • checkpatch --strict is clean apart from the new-file MAINTAINERS note.

Hardware

MacBook Pro 16" M4 Pro (J616s) on the 26.6.2 boot firmware, m1n1 aurora-wip d4b8288c with chosen.asahi,t6041-dcp=1, and the device tree from this branch with nothing local on top:

apple-t6041-display: display handoff accepted
apple-dcp 402e00000.dcp: takeover trial mode "3456x2160": 60 ... accepted
apple-drm display-subsystem: [drm] fb0: appledrmfb frame buffer device

eDP-1 is connected, the apple-panel-bl backlight works, and the login screen comes up on the panel. Our regression suite matches the earlier boots, with the display, backlight and deferred-probe checks passing and nothing else changed. Without the config line m1n1 publishes nothing, the gate does nothing, and the Mac stays on the boot framebuffer as before.

Required boot configuration

The handoff is off unless the m1n1 Stage 2 config carries this line, the boot.bin config form of a /chosen property:

chosen.asahi,t6041-dcp=1

The Stage 2 m1n1 must be aurora-wip d4b8288c or later (m1n1#51). Without the line, the J616s boots on the framebuffer exactly as today.

The m1n1 T6041 display handoff describes the running internal DCP in
the dcp, display and piodma nodes. It needs the DVA window of the two
display DARTs (ADT vm-base 0x100_0000_0000, vm-size 0x10_0000_0000) as
apple,dma-range, two address and size cells on dcp for the piodma
memory regions, and a disp0-piodma alias to find the piodma node.

The nodes stay disabled; Linux enables them only when the handoff has
been published.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
m1n1 hands the internal T6041 DCP of the J616s over by describing it in
the device tree (apple,t6041-handoff on dcp, display and piodma, their
firmware regions and the 26.6.2 apple,firmware-compat) and leaves the
display nodes disabled, so that a kernel that cannot adopt a running DCP
keeps the boot framebuffer.

Enable them before devices are created, as the T6030 gate does, but
only on a J616s, only with the complete handoff and the 26.6.2
firmware, with the DCP, display and piodma DARTs on their expected
streams, every node still disabled and the DCP CPU running. Otherwise,
or with nomodeset, nothing changes. It is built in (default on Apple
platforms), because appledrm is only loaded once the nodes exist.

Assisted-by: LLM
Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide merged commit 85c1ce7 into integration/aurora Oct 25, 2026
@RyanTheTide
RyanTheTide deleted the ryan/j616s-panel-activate branch October 25, 2026 18:49
RyanTheTide added a commit that referenced this pull request Oct 25, 2026
Include the J616s display handoff gate from #452 on top of the required 3b77f0f consolidation and the host/KUnit fixture repairs. Qualify this final tree before publication.

Signed-off-by: Ryan Murray <[email protected]>

Assisted-by: LLM
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