Skip to content

aurora-boot: carry the display chain and its PMP in the initramfs - #117

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/initramfs-display-chain
Nov 3, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/initramfs-display-chain

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

Problem

On the Alpha 17 J616s install (encrypted root), no external display works: only card2-eDP-1, and both dcpext nodes stay disabled.

[    0.047972] apple-t6041-display: routes enabled, waiting for the PMP
[   20.454084] apple-t6041-display: no PMP within 20000 ms: external displays stay off, internal panel only (0)
[   55.476793] apple_pmp 500700000.pmp: PMP firmware and endpoint ready

The configured HOOKS leave out kms, so apple-pmp and appledrm only reach the system from the root filesystem. That happens after the LUKS passphrase, which is past the kernel gate's 20 s PMP deadline. The dev install (unencrypted, DTB 225132f8) bound the PMP at 1.77 s and had DP-3. The Stage 2 DTB is the same (225132f8) in both cases, so the DTB and aura are not the cause.

Fix

A new aurora-display initcpio hook, run before sd-encrypt, adds apple-pmp, mux-apple-display-crossbar and appledrm. appledrm's dependencies bring in dcp-fabric-core and typec. This matches what Fedora's 91aurora-early-kms does with instmods appledrm. The pacman hook rebuilds the initramfs when the hook changes. The package release goes to 9.

Tests

  • Added tests/test_initramfs_modules.py::test_display_chain_and_pmp_come_before_the_root_is_unlocked, and the full tests/ suite passes.
  • Dry build on the J616s A17 install with mkinitcpio -D <hook dir> -c <conf> -g /run/..., leaving the installed initramfs untouched: the hook runs, and the image contains apple-pmp, appledrm, dcp-fabric-core, drm_dma_helper, mux-apple-display-crossbar and typec.
  • Hardware proof (reboot with the new initramfs, external display on DP) to follow before merge.

Assisted-by: LLM

🤖 Generated with Claude Code

On the M4 Pro the kernel's T6041 display gate enables the external display
processors only once the PMP driver binds, and falls back to the internal
panel 20 s into the boot. The ALARM initramfs had neither apple-pmp nor
appledrm: the configured HOOKS leave out kms, so both came from the root
filesystem. With an encrypted root that is only after the passphrase, and
on the Alpha 17 J616s install the gate gave up at 20.45 s, apple-pmp bound
at 55 s, and no external display or Type-C DP route came up for that boot.

A new aurora-display initcpio hook, run before sd-encrypt, adds apple-pmp,
the display crossbar and appledrm (whose dependencies bring dcp-fabric-core
and typec), as Fedora's 91aurora-early-kms does with instmods appledrm.
The pacman hook rebuilds the initramfs when it changes.

Assisted-by: LLM

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide merged commit 52a8e7c into main Nov 3, 2026
3 checks passed
@RyanTheTide
RyanTheTide deleted the fix/initramfs-display-chain branch November 3, 2026 11:39
RyanTheTide added a commit that referenced this pull request Nov 3, 2026
Keep #117's aurora-display hook next to aurora-early-kms, both before
sd-encrypt, and bump aurora-boot to 20261018-10 above main's -9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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