Skip to content

drm/apple, soc: apple: remove the T6030 manual external-display path (-1781) - #2432

Merged
RyanTheTide merged 3 commits into
mainfrom
deadweight/t6030-dcpext-manual
Dec 1, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
deadweight/t6030-dcpext-manual

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The T6030 (M3 Pro/Max) display gate still carries its old "manual" external-display path next to the native one that replaced it. With apple_t6030_display.dcpext_manual=1 the gate marks the scanout node verified, and dcpext_scanout/dcpext_drm present a test pattern and register a separate DRM device. display-gate.c itself calls this "the earlier diagnostic path". Nothing we ship sets the parameter, so about 1,800 lines only run on a command line nobody uses.

Change

  • display-gate.c: remove the dcpext_manual early_param and the manual branch. The comment block now describes the remaining outcomes, native or refused.
  • Remove dcpext_scanout.[ch] and dcpext_drm.[ch]: the dcpext_pageflip parameter and the dcpext_pattern, dcpext_desktop, dcpext_status and dcpext_present sysfs files.
  • Remove their hooks in dcp.c, dcp-fabric.c, iomfb_v14_7.c and ibootep.c, and the ibootep pattern helpers only they used.
  • Drop two host-test stubs for the removed functions. Those tests build with -Werror, so the stubs would break them.

Net -1,781 lines. Every removed hook keyed on dcp->dcpext_scanout, which only the manual mode could set, so the default native path does not change. The manual path was Chris Kearney's bring-up work (98d767e, 718c6a3, e6c1062).

Kept on purpose: the explicit-start path for a dcpext that isn't native-shaped (iomfb_v14_7_external_start, sysfs dcpext_start). A real boot can still reach it if the native check fails, so it isn't provably dead.

Testing

  • Combined fleet build of all eleven deadweight code branches stacked on 0abc2f3 (DEBUG_INFO off): make Image modules dtbs RC=0, 5,909 modules, modpost reports no undefined symbols, and the only warnings are ones the baseline already had in untouched files.
  • make W=1 drivers/gpu/drm/apple/ drivers/soc/apple/ with the fleet config, before and after: RC=0, same warning set.
  • .modinfo of appledrm.o: only dcpext_pageflip (parm and parmtype) disappears.
  • 34 host tests that read the touched files (dcpext26-, dcp14-, display-sleep-merge, j613-mux-order, apple-dcp/lifecycle and others): identical exit codes before and after.
  • Setter search for dcpext_manual, dcpext_pageflip and the sysfs names: nothing in the kernel tree, fedora/alarm/nixos/aurora-platform, aura or the lab kits.

Still to run

The T6030 display gate has two modes. The default, native, runs the
external display coprocessor through the 14.7 IOMFB service in the main
DRM device. The "manual" mode, which display-gate.c calls "the earlier
diagnostic path", only runs with apple_t6030_display.dcpext_manual=1:
the gate then marks the scanout node apple,t6030-scanout-verified and
dcpext_scanout/dcpext_drm present a test pattern and register a
separate DRM device. Native mode replaced it, and nothing we ship sets
the parameter (kernel configs, distro and platform packages, aura, lab
kits).

Remove the early_param and the manual branch of the gate, the
dcpext_scanout and dcpext_drm files (the dcpext_pageflip parameter and
the dcpext_pattern, dcpext_desktop, dcpext_status and dcpext_present
sysfs files), their hooks in dcp.c, dcp-fabric.c, iomfb_v14_7.c and
ibootep.c, the ibootep pattern helpers only they used, and two host
test stubs for the removed functions. Every removed hook keyed on
dcp->dcpext_scanout, which only the manual mode could set, so the
native path is unchanged.

The manual path was written by Chris Kearney (98d767e,
718c6a3, e6c1062 and later).

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

Copy link
Copy Markdown
Contributor Author

No blockers.

I checked that the default path does not change. apple,t6030-scanout-verified was only ever written by the manual branch of the gate (display-gate.c, old gate_ext_apply). No DT in the tree carries it. dcpext_scanout_register() returned -ENODEV without it, so dcp->dcpext_scanout stayed NULL. With it NULL, every removed hook (terminal, requested, invalidate, link_restored, fault) was a no-op. The gate's native case is the same as before: scanout_ok was already required, and piodma plus the display DART add run in the same order. The PR still merges cleanly onto current integration/aurora, which is 398 commits ahead of its base. In the merged tree nothing refers to dcpext_scanout, dcpext_drm, dcpext_manual, dcpext_pageflip or the four sysfs names. The removal also takes out the firmware-UUID string compare that gated dcpext_pageflip.

Two small leftovers worth folding in:

  1. drivers/gpu/drm/apple/dcp-fabric-core.h:55: pipeline->terminal is now never written. Only dcp_fabric_snapshot_port() set it, and the struct comes from devm_kzalloc, so it is always false. That leaves two dead branches, dcp-fabric-core.c:379 (the -ESHUTDOWN return) and :444, plus the cases in dcp-fabric-test.c:456 and :1585-1589 that test a state the driver can no longer reach. Either remove the field with its tests or say in the commit message why it stays.
  2. drivers/gpu/drm/apple/dcp-internal.h:574: "Clear for the manual diagnostic path (explicit start)" now names a path this patch removes. Say instead that it is clear when the dcpext is not native-shaped and uses explicit start (dcpext_start).

HW row: J514s or J516s (T6030) on this head with an external display on built-in HDMI and on USB-C. Pass if the gate logs "enabled dcpext%u ... started by the display driver on first use", the mode and picture match the pre-change kernel, 3 hotplug cycles and one s2idle cycle each work, with 0 AVC, 0 failed units and no new dcp/dcpext kernel errors. The code is safe to leave draft without this row, but the row should be posted before merge if a T6030 owner can run it.

Assisted-by: LLM (Claude:Opus 5.5)

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 22, 2026 10:11
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Re-check at 9f5ce93 against current integration/aurora and the open PRs. The default native path is still unchanged, and nothing in the tree, the distro repos or the boot loader sets apple_t6030_display.dcpext_manual, dcpext_pageflip or the four sysfs files. The two leftovers from my earlier comment (pipeline->terminal and the dcp-internal.h:556 comment) are still open. One new problem:

Assisted-by: LLM (Claude:Opus 5.5)

@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Merge readiness at b53db456: not ready yet

Check Detail
CI at head ok 25 checks passed
Review ok approved by DjDeveloperr
Requested changes ok none
Hardware row at head ok comment at b53db456
Conflicts no merge conflicts with main: merge it in (no force push)
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: area:display, area:gpu, area:platform

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: HOLD at 9f5ce9343f8b
Blockers:

  1. drivers/gpu/drm/apple/ibootep.c:34-70,244-276 and drivers/gpu/drm/apple/ibootep.h:35-66: merged #1800 (842c9c424757, T8152/J873g iBoot display support) now uses struct iboot_plane, struct iboot_layer, struct iboot_swap_layer_v13_3, and iboot_build_pattern_request() (extended for SetSurface and GetHPD/GetTimingModes/GetColorModes) from iboot_command() and ibootep_set_surface(), called by iomfb_iboot.c and iboot_drm.c. Merge main into this branch, keep the shared iBoot structs, request builder, and exported ibootep_* declarations, and remove only the unused T6030 manual pattern/frame presentation code (ibootep_present_pattern, ibootep_present_frame, ibootep_rearm_pattern, and their private helpers).
  2. drivers/gpu/drm/apple/dcp-internal.h:454-461 and drivers/gpu/drm/apple/dcpext_drm.c: PR is CONFLICTING/DIRTY against current main (d420ae2bd61a). Merge main (no force push), keeping struct t8152_display; and struct dcp_iboot; in dcp-internal.h while dropping struct dcpext_scanout;, and keeping the deletion of dcpext_drm.c (modified by ba15aedee99e). Re-run CI on the merged head.
  3. §5 hardware evidence missing at head: add an exact-head hardware row covering T6030 (J514s/J516s) native external display on HDMI and USB-C (or a stand-in row + regression request if no T6030 is in the lab) with 0 SELinux denials, 0 failed units, and 0 new kernel errors, plus a T8152 (J873g) check after resolving ibootep.c. Add Tested: and Risk: lines to the PR body when updating.
    Checked: §1–§4 and §6 pass at 9f5ce9343f8b (default T6030 native path and J414/J416/J474/J475/T8122/T8132/T604x paths unaffected); §5 and mergeability against main (d420ae2bd61a) fail.
Evidence
  • State & head: OPEN (non-draft), 9f5ce9343f8bf60e5c7373a080148aed935dedaa, based on 0abc2f385e54b, targeting main (d420ae2bd61aab165569b6d80c93cfd74573e544).
  • 3-way merge check against main (d420ae2bd61a):
    • Conflicts in 4 of 14 touched files: drivers/gpu/drm/apple/ibootep.c (3 hunks vs 842c9c424757), drivers/gpu/drm/apple/ibootep.h (1 hunk vs 842c9c424757), drivers/gpu/drm/apple/dcp-internal.h (1 hunk vs 54f310756b08), and modify/delete on drivers/gpu/drm/apple/dcpext_drm.c (vs ba15aedee99e).
    • Clean merges on the other 10 files (Makefile, dcp-fabric.c, dcp.c, dcpext_drm.h, dcpext_scanout.[ch], iomfb_v14_7.c, display-gate.c, tools/asahi/tunnel-route/fixture.c, tools/testing/selftests/drivers/gpu/apple-dcp/lifecycle.py).
  • Regression audit:
    • display-gate.c:gate_dcpext() matches only apple,t6030-dcpext, so J414/J416/J474/J475 (T602x) and T8122/T8132/T604x are untouched.
    • apple,t6030-scanout-verified is not set in any DT or in native mode; dcp->dcpext_scanout remained NULL on default boots, making every removed hook in dcp.c, dcp-fabric.c, and iomfb_v14_7.c a no-op on native T6030 boots. Explicit-start (iomfb_v14_7_external_start / dcpext_start) is retained.
    • On main, iomfb_iboot.c and iboot_drm.c (T8152/J873g) call ibootep_set_power, ibootep_get_hpd, ibootep_get_timing_modes, ibootep_get_color_modes, ibootep_set_mode, and ibootep_set_surface, all backed by iboot_command() -> iboot_build_pattern_request() and struct iboot_layer/iboot_swap_layer_v13_3, which this commit deletes.
  • Checklist:
    • §1–§3: pass (removes apple_t6030_display.dcpext_manual, dcpext_pageflip, and its firmware-UUID check; gate_ext_apply() unconditionally requires ext->scanout_ok, matching prior default native behavior).
    • §4: pass on commit 9f5ce9343f8b (human author/committer + Signed-off-by: Ryan Murray <[email protected]>, clean-room), PR title, and PR body.
    • §5: 8 check runs on 9f5ce9343f8b (host-tests, source, rust-build, kunit, 3 DWC3/ATC builds, readiness / readiness) passed, but the 7 build/test runs executed 2026-11-19 against pre-#1800 base 0abc2f385e54b; no hardware row at head and PR body lacks Tested:/Risk:.
    • §6: pass (uses aura, no Honeykrisp/hk or m1n1 prose in commit, PR text, or added lines).
  • Non-blocking nits:
    • drivers/gpu/drm/apple/dcp-fabric-core.h:55 (pipeline->terminal) becomes write-never after removing the assignment in dcp-fabric.c:1428, leaving unreachable branches at dcp-fabric-core.c:379,444 and test assertions at dcp-fabric-test.c:249,452,1584,1588.
    • drivers/gpu/drm/apple/dcp-internal.h:556 comment still refers to the removed "manual diagnostic path (explicit start)".

@github-actions github-actions Bot added changes-requested A reviewer requested changes (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 24, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at 9f5ce9343f8b

Blockers:

  1. #1800 (842c9c42, T8152/J873g iBoot display) has merged and now uses struct iboot_plane, struct iboot_layer, struct iboot_swap_layer_v13_3 and iboot_build_pattern_request() from ibootep.c/ibootep.h (through iboot_command() and ibootep_set_surface(), called by iomfb_iboot.c and iboot_drm.c). This PR removes them, so it conflicts with main, and a merge that took this side would break the T8152 build. Fix: merge main in, keep the shared iBoot structs, the request builder and the exported ibootep_* declarations, and remove only the T6030 manual pattern and frame code (ibootep_present_pattern, ibootep_present_frame, ibootep_rearm_pattern and their helpers). Then resolve dcp-internal.h:454-461 and dcpext_drm.c against main in the same merge.

Checked: no Apple material. The T6030 manual external-display path has no caller left, and removing it drops 1781 lines. The fleet build of the eleven deadweight branches has no undefined symbols, and .modinfo shows only the expected parameter going away. CI green before the conflict. This replaces my earlier review. After the merge, a build plus one T6030 or J873g display boot at the new head is the row.

Evidence

Read the diff against main's ibootep.c/ibootep.h after #1800.

@DjDeveloperr
DjDeveloperr dismissed their stale review November 24, 2026 19:45

Superseded by the review at 9f5ce93

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed merge-conflict Conflicts with the base branch (bot) labels Nov 24, 2026
Resolve the conflicts with #1800 (T8152 iBoot display), which now uses
the iBoot interface through iboot_command() and ibootep_set_surface():
keep the shared iBoot structs (iboot_plane, iboot_layer,
iboot_swap_layer_v13_3), the request builder, the mode query and the
exported ibootep_* commands; remove only the T6030 manual pattern and
frame path (ibootep_present_pattern(), ibootep_rearm_pattern(),
ibootep_present_frame() and their helpers). The mode query's 3840x2160
selection keeps its size as literals, since dcpext_scanout.h goes away.

Signed-off-by: Ryan Murray <[email protected]>
@RyanTheTide
RyanTheTide requested review from a team as code owners November 27, 2026 06:00
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged main (at f9b0d5bd, after #1800) into this branch: new head b53db456.

Blocker 1 (conflict with #1800): fixed. The shared iBoot code stays: the iboot_plane, iboot_layer and iboot_swap_layer_v13_3 structs, iboot_build_pattern_request(), the mode query, iboot_command() and all exported ibootep_* commands that iomfb_iboot.c and iboot_drm.c call (set_power, get_hpd, get_timing_modes, get_color_modes, set_mode, set_surface). Only the T6030 manual path goes: ibootep_present_pattern(), ibootep_rearm_pattern(), ibootep_present_frame() and the static helpers that served only them (iboot_pattern_params, iboot_build_pattern_layer, iboot_parse_swap_begin, iboot_log_pattern_reply, iboot_pattern_command, iboot_frame_command). dcpext_scanout.h is still removed, so the mode query's 3840x2160 selection keeps its size as two literals in ibootep.c. Diff against the merged main: 14 files, +26/-1739.

Checked at b53db456:

  • Fleet config (m2combo24) full Image + modules build: rc 0, no modpost errors or undefined symbols. drivers/gpu/drm/apple and drivers/soc/apple objects build warning-free (ibootep.o also with W=1).
  • tools/asahi/run-host-tests.py --only apple-dcp: 1/1 pass.

Still to run: the display boot at this head on a T6030 or a J873g. Our lab has neither, so I'm asking for a J873g boot (iBoot display path, #1800).

@github-actions github-actions Bot removed the merge-conflict Conflicts with the base branch (bot) label Nov 27, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: FINISH, then merge at b53db456

Blockers:

  1. Missing exact-head hardware regression boot row at b53db456 (confirming clean display bring-up with 0 new kernel errors / 0 failed units after removing the T6030 manual display path).

Checked:

  • Prior #1800 conflict blocker resolved cleanly in b53db456: shared iBoot display structs (iboot_plane, iboot_layer, iboot_swap_layer_v13_3), iboot_build_pattern_request(), iboot_command(), and exported ibootep_* helpers used by iomfb_iboot.c/iboot_drm.c are preserved, while only the unused T6030 manual diagnostic path (+26/-1739) is removed.
  • CI & policy: 26/26 CI checks green (SUCCESS), MERGEABLE on main, no Apple material, no tool attribution, no private serials.
Evidence
  • Head: b53db4567846 (base: main, mergeable: MERGEABLE, +26/-1739 across 14 files).

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Exact-head hardware row at b53db456 (reply to the review's only blocker).

Our lab has no T6030 or J873g, and the J873g boot request has had no taker, so this is the closest board we have: the J473 (M2 mini, T8112, macOS 27.2 firmware). It runs the shared code this PR keeps or touches (dcp.c, dcpext_*, ibootep.c, iomfb_v14_7.c, display-gate.c), with HDMI and USB-C monitors attached. It does not exercise the removed T6030 path itself, because that path never ran on this board. A J873g boot is still welcome if Dj can spare one.

  • Kernel: b53db456, fleet config, default fleet cmdline, guarded one-shot boot, then restored to the production kernel.
  • Boot: 0 failed units, 0 AVC denials, SELinux enforcing. The kernel error lines are a subset of the production boot before it: 0 new, 2 production-only lines gone (DCPDP13Service admission failed: -19, set_active_lane_count: unexpected lane count).
  • Display bring-up: both monitors came up under apple-drm (no simpledrm) with correct names (MSI MPG 325CQRXF on USB-C, Acer QG270 S3 on HDMI). The paired dual-output modeset flipped at 180 Hz on both. Single-output modesets returned 0: HDMI 1080p180 (179.6 Hz), USB-C 1440p240 (239.4 Hz), and HDR 60 Hz on both.
  • The probe's only failure is the USB-C EDID property reading empty right after the paired relight (sysfs EDID before and after is the full 384 bytes). The combo27 tip build shows the same failure, so it predates this PR and is tracked separately in the display lane.
Evidence and method

Row pr2432-b53db456-j473-a, trial boot 544e4bfd. Evidence on our lab store: traces/display/20261125-j473-dpms-relight/pr2432-b53db456-j473-a/ (2-trial.txt, 3-display.txt, err-fleet89-before.txt vs err-trial.txt, 9-restored.txt). Stage 2 was the signed J473 FW27 build (55dc7c57) of current aura main.

@github-actions github-actions Bot removed the needs-hw-row No hardware row at the PR head (bot) label Nov 28, 2026
DjDeveloperr
DjDeveloperr previously approved these changes Dec 1, 2026

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My blocker is fixed. Merged with current main, the shared iBoot structs and request builder are kept, and with T8152 DCP enabled iomfb_iboot.c, iboot_drm.c, ibootep.c and dcp.c all build. Nothing still references the removed declarations, and the Makefile no longer lists the deleted files.

The one thing left before merge is the M3 Pro (J514s/J516s) external-display row on HDMI and USB-C named in the body.

@github-actions github-actions Bot added ready-to-merge Meets the merge policy: merge it (bot) and removed changes-requested A reviewer requested changes (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at b53db4567846

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Prior #1800 conflict blocker resolved cleanly in b53db456: shared iBoot display structs (iboot_plane, iboot_layer, iboot_swap_layer_v13_3), iboot_build_pattern_request(), iboot_command(), and exported ibootep_* helpers used by iomfb_iboot.c/iboot_drm.c are preserved, while only the unused T6030 manual diagnostic path (+26/-1739) is removed.

  • CI & policy: 26/26 CI checks green (SUCCESS), MERGEABLE on main, no Apple material, no tool attribution, no private serials.

Follow-ups (not blocking): exact-head display regression boot row

@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) and removed ready-to-merge Meets the merge policy: merge it (bot) labels Dec 1, 2026
display-gate.c: main already removed the T6030 manual dcpext path together
with the apple_t6030_display.dcpext/.scanout switches, and the
native/manual argument of gate_ext_apply(); this branch removes the same
manual path but kept the two switches. Main's version of the file is
taken, so display-gate.c no longer differs from main and this branch's
change is now the DRM-side removal (dcpext_drm, dcpext_scanout, ibootep).
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merged main in at cba2cecfef1e (no change to this PR's own code). Conflicts in display-gate.c only: main had already removed the same T6030 manual path, plus the dcpext/scanout switches this PR kept, so main's version of that file is taken; the PR now changes only the DRM side (dcpext_drm, dcpext_scanout, ibootep) and nothing references the deleted files. Built drivers/gpu/drm/apple and drivers/soc/apple locally with the Apple config: no new warnings. The earlier row still covers this PR's files.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at cba2cecfef1e (B2 merge train, 12-01 merge bar). Approval at this head: aurora-silicon-review[bot] at b53db45 (this head only merges main in: maintainer merge-up). Row: the hardware row at b53db45 (same PR files; this head only merges main in). CI: linux train L5 = main + #3218 #3488 #2763 #3419 #3647 #2213 #2432 #3392: Apple driver compile pass, Apple DTBs W=1 pass, planned KUnit clpc/dcp-fabric/dcp-topology/dcp-display/macsmc/jpeg/asahi/sep pass, host tests apple-dcp + g14-v27-2 (25/25) pass. Hosted CI is queued behind the backlog. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 5ffe762 into main Dec 1, 2026
6 of 12 checks passed
@RyanTheTide
RyanTheTide deleted the deadweight/t6030-dcpext-manual branch December 1, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) area:gpu Area from CODEOWNERS (bot) area:platform Area from CODEOWNERS (bot) merge-conflict Conflicts with the base branch (bot) needs-template PR body lacks Tested or Risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants