Skip to content

display: skip the panel wait on a Mac with no internal panel - #21

Merged
RyanTheTide merged 1 commit into
mainfrom
perf/headless-panel-skip
Oct 31, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
perf/headless-panel-skip

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

A MacBook with its internal panel disconnected (the headless M1 Pro, J316s) gets iBoot's 640x1136 dummy framebuffer. display_init() then starts the DCP and polls it for a display for the full 2 s in every aura stage before it gives up with connected:0.

iBoot records the panel it found in the ADT:

/arm-io/disp0 dot-pitch /product raw-panel-serial-number
M1 Pro, no panel 0 absent
M2 (J413), panel 224 present

When both say there is no panel, Stage 1 and Stage 2 leave the display as iBoot set it up and skip the modeset. Everything else keeps the old path: a nonzero, missing or malformed dot-pitch, a panel serial, no /product node, or an external display node. T8140, T8132 and T8152 return before the check as before. No new options.

Numbers

M1 Pro Stage 2 log, aura 1.0.0b1: rtkit(dcp): booting at 19.302 s, waited 2000 ms for display status at 21.213 s, then connected:0. That is 1.91 s per aura stage. The M1 Pro's Stage 1 is still m1n1 v1.5.2, so today this saves the Stage 2 wait. An aura Stage 1 there saves its own wait too.

Tests

  • New tests/python/test_display_panel_absent.py compiles display_init() with an ADT stub. It covers the panel-less M1 Pro, the M2, each half-sign, missing data, an external node and a real firmware framebuffer.
  • test_display_inherited_only.py now compiles the new helper.
  • Full host suite: 465 passed, 47 skipped (main: 463 passed, 47 skipped). make format-check is clean. Stage 1 and Stage 2 build.

Not yet booted on hardware. Test order: J616s, then M2 (both should be unchanged), then the M1 Pro (should print display: no internal panel ..., skipping display setup and save about 1.9 s).

🤖 Generated with Claude Code

A MacBook with its panel disconnected (the headless M1 Pro, J316s) gets
iBoot's 640x1136 dummy framebuffer, so display_init() starts the DCP and
polls it for a display for the full 2 s, in Stage 1 and again in Stage 2,
before giving up with connected:0.

iBoot records the panel it found in the ADT. On the panel-less M1 Pro
/arm-io/disp0 has dot-pitch 0 and /product has no raw-panel-serial-number.
The M2 (J413) with its panel has dot-pitch 224 and a panel serial. When
both say there is no panel, leave the display as iBoot set it up and skip
the modeset. Anything else keeps the old path: a nonzero or missing
dot-pitch, a panel serial, no /product node, or an external display node.
The T8140, T8132 and T8152 paths return before this check as before.

Measured on the M1 Pro Stage 2 log (aura 1.0.0b1): "rtkit(dcp): booting"
at 19.302 s, "waited 2000 ms for display status" at 21.213 s, then
"connected:0". That is 1.91 s of Stage 2 and the same again in each aura
Stage 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide
RyanTheTide merged commit 29df1f3 into main Oct 31, 2026
9 checks passed
@RyanTheTide
RyanTheTide deleted the perf/headless-panel-skip branch October 31, 2026 12:02
@RyanTheTide RyanTheTide mentioned this pull request Nov 1, 2026
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