Repository navigation
drm/apple, soc: apple: remove the T6030 manual external-display path (-1781) - #2432
RyanTheTide wants to merge 1 commit into
Conversation
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 <ryan@aurorasilicon.org>
|
No blockers. I checked that the default path does not change. Two small leftovers worth folding in:
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) |
|
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
Assisted-by: LLM (Claude:Opus 5.5) |
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
DjDeveloperr
left a comment
There was a problem hiding this comment.
Verdict: HOLD at 9f5ce9343f8b
Blockers:
drivers/gpu/drm/apple/ibootep.c:34-70,244-276anddrivers/gpu/drm/apple/ibootep.h:35-66: merged #1800 (842c9c424757, T8152/J873g iBoot display support) now usesstruct iboot_plane,struct iboot_layer,struct iboot_swap_layer_v13_3, andiboot_build_pattern_request()(extended forSetSurfaceandGetHPD/GetTimingModes/GetColorModes) fromiboot_command()andibootep_set_surface(), called byiomfb_iboot.candiboot_drm.c. Mergemaininto this branch, keep the shared iBoot structs, request builder, and exportedibootep_*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).drivers/gpu/drm/apple/dcp-internal.h:454-461anddrivers/gpu/drm/apple/dcpext_drm.c: PR isCONFLICTING/DIRTYagainst currentmain(d420ae2bd61a). Mergemain(no force push), keepingstruct t8152_display;andstruct dcp_iboot;indcp-internal.hwhile droppingstruct dcpext_scanout;, and keeping the deletion ofdcpext_drm.c(modified byba15aedee99e). Re-run CI on the merged head.- §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 resolvingibootep.c. AddTested:andRisk:lines to the PR body when updating.
Checked: §1–§4 and §6 pass at9f5ce9343f8b(default T6030 native path and J414/J416/J474/J475/T8122/T8132/T604x paths unaffected); §5 and mergeability againstmain(d420ae2bd61a) fail.
Evidence
- State & head: OPEN (non-draft),
9f5ce9343f8bf60e5c7373a080148aed935dedaa, based on0abc2f385e54b, targetingmain(d420ae2bd61aab165569b6d80c93cfd74573e544). - 3-way merge check against
main(d420ae2bd61a):- Conflicts in 4 of 14 touched files:
drivers/gpu/drm/apple/ibootep.c(3 hunks vs842c9c424757),drivers/gpu/drm/apple/ibootep.h(1 hunk vs842c9c424757),drivers/gpu/drm/apple/dcp-internal.h(1 hunk vs54f310756b08), and modify/delete ondrivers/gpu/drm/apple/dcpext_drm.c(vsba15aedee99e). - 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).
- Conflicts in 4 of 14 touched files:
- Regression audit:
display-gate.c:gate_dcpext()matches onlyapple,t6030-dcpext, so J414/J416/J474/J475 (T602x) and T8122/T8132/T604x are untouched.apple,t6030-scanout-verifiedis not set in any DT or in native mode;dcp->dcpext_scanoutremainedNULLon default boots, making every removed hook indcp.c,dcp-fabric.c, andiomfb_v14_7.ca no-op on native T6030 boots. Explicit-start (iomfb_v14_7_external_start/dcpext_start) is retained.- On
main,iomfb_iboot.candiboot_drm.c(T8152/J873g) callibootep_set_power,ibootep_get_hpd,ibootep_get_timing_modes,ibootep_get_color_modes,ibootep_set_mode, andibootep_set_surface, all backed byiboot_command()->iboot_build_pattern_request()andstruct 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 requiresext->scanout_ok, matching prior default native behavior). - §4: pass on commit
9f5ce9343f8b(human author/committer +Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>, clean-room), PR title, and PR body. - §5: 8 check runs on
9f5ce9343f8b(host-tests,source,rust-build,kunit, 3DWC3/ATCbuilds,readiness / readiness) passed, but the 7 build/test runs executed 2026-11-19 against pre-#1800 base0abc2f385e54b; no hardware row at head and PR body lacksTested:/Risk:. - §6: pass (uses
aura, no Honeykrisp/hkorm1n1prose in commit, PR text, or added lines).
- §1–§3: pass (removes
- Non-blocking nits:
drivers/gpu/drm/apple/dcp-fabric-core.h:55(pipeline->terminal) becomes write-never after removing the assignment indcp-fabric.c:1428, leaving unreachable branches atdcp-fabric-core.c:379,444and test assertions atdcp-fabric-test.c:249,452,1584,1588.drivers/gpu/drm/apple/dcp-internal.h:556comment still refers to the removed "manual diagnostic path (explicit start)".
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=1the gate marks the scanout node verified, and dcpext_scanout/dcpext_drm present a test pattern and register a separate DRM device.display-gate.citself 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
dcpext_manualearly_param and the manual branch. The comment block now describes the remaining outcomes, native or refused.dcpext_pageflipparameter and thedcpext_pattern,dcpext_desktop,dcpext_statusanddcpext_presentsysfs files.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, sysfsdcpext_start). A real boot can still reach it if the native check fails, so it isn't provably dead.Testing
make Image modules dtbsRC=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..modinfoof appledrm.o: onlydcpext_pageflip(parm and parmtype) disappears.dcpext_manual,dcpext_pageflipand the sysfs names: nothing in the kernel tree, fedora/alarm/nixos/aurora-platform, aura or the lab kits.Still to run