Skip to content

soc: apple: display-gate: drop the T6030 and T8122 display kill switches - #3751

Merged
RyanTheTide merged 1 commit into
mainfrom
gates/t6030-t8122-display-switches
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
gates/t6030-t8122-display-switches

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: The T6030 (M3 Pro) and T8122 (M3) native display had six kernel command-line switches that could only turn things off: apple_t6030_display.enable, .dcpext, .scanout, apple_t8122_display.enable, .dcpext (all default on) and apple_t6030_display.dcpext_manual (a default-off diagnostic mode for the T6030 external display processors). This removes all six, as #3729 did for T6031. The defaults are unchanged: the panel and the external processors are enabled exactly when they were on a command line without these options. With the manual mode gone, a T6030 external processor is either enabled for the DRM device (the default before) or refused.

Tested:

Risk: Two-way door (a revert brings the options back). It affects T6030 boards (J514S, J516S) and T8122 boards (J613, J615, J504). With the default command line nothing changes on them. A boot that passed one of these options now gets the default behaviour. To keep the boot framebuffer, use nomodeset or the boot loader's switches (chosen.asahi,t6030-dcp=0, asahi,t6030-dcpext, asahi,t6030-dispext, asahi,t8122-dcp=0, asahi,t8122-dcpext). Not affected: M1 Pro, M2, M4 Air, M4 Pro, A18 Pro, T6031.

Not yet:

  • No J615 (T8122) row at this head: none was run for this task. The change keeps the default path, so the expected row is the same native panel and dcpext bring-up as on main.
  • No J514S or J516S (T6030) row, because we own no M3 Pro. Could an owner boot it with the default command line and post apple-t6030-display from dmesg (panel and enabled dcpextN lines) at this head?
  • The DRM side of the old manual path (drivers/gpu/drm/apple/dcpext_scanout.c, dcpext_drm.c, iomfb_v14_7_external_start() and its dcpext_start sysfs) can't be reached any more: only the gate's manual mode set apple,t6030-scanout-verified and enabled a dcpext without its piodma child. Deleting it is a separate cleanup PR of about 1.4k lines.
Detail
  • Why the switches can go: the gate acts only on markers the boot loader sets after it has checked and locked each handover. Those are apple,t6030-handoff / apple,t8122-handoff on the DCP and display subsystem, apple,t6030-dcpext-memory-ready and the apple,t6030-dispext-handoff scanout child for each T6030 dcpext, and apple,t8122-dcpext-firmware-ready on T8122. aura arms each of them with its own chosen.asahi,* option (see aura src/kboot_display_handoff.c). nomodeset keeps the display driver away, so the PMP is never started.
  • Equivalences: .scanout=0 refused the display DART, which the default path requires, so it was the same as .dcpext=0. Both are now what a boot loader that doesn't hand over the dispext gets.
  • Manual mode: the gate no longer enables the scanout child or sets apple,t6030-scanout-verified. gate_ext_apply() always adds the piodma child and the display DART to the display subsystem, which is the default path as before.
  • KUnit: dropped gate_t6030_escape, gate_t6030_t8122_escape, gate_t8122_escape, gate_t6031_t6030_option and gate_t6031_t8122_option, which only exercised the options. The no-marker cases that cover the remaining escape stay. The T6030 test tree has no dcpext, so the T6030 dcpext path has no KUnit coverage, before or after.
  • Files: drivers/soc/apple/display-gate.c, display-gate-test.c, Kconfig, drivers/pmdomain/apple/Kconfig, pmp-report.c (recovery hint). 5 files, +44/-165.
  • Logs: buildbox /srv/aurora/fast/o/B1-GATES-disp2/kunit-gate*.log.

The T6030 and T8122 native display had command-line switches that only
turned it off: apple_t6030_display.enable, .dcpext and .scanout, and
apple_t8122_display.enable and .dcpext, all on by default, plus
apple_t6030_display.dcpext_manual, a default-off diagnostic mode that
enabled a T6030 external display processor for an explicit start with a
separately mapped scanout buffer instead of joining the DRM device.

None of them is needed to keep the boot framebuffer. The gate acts only
on what the boot loader marks after it has checked and locked the
handover (apple,t6030-handoff / apple,t8122-handoff on the DCP and the
display subsystem, the dcpext memory and display DART handoffs on
T6030, apple,t8122-dcpext-firmware-ready on T8122), and the boot loader
already has its own switches for each of them. nomodeset keeps the
display driver, and so the PMP start, away. That is what #3729 left
for T6031.

Drop the six options. Every default is unchanged: the panel and the
external processors are enabled exactly when they were without options.
With the manual mode gone, a T6030 external processor is either enabled
for the DRM device or refused, as by default before; the gate no longer
enables the scanout child or marks it apple,t6030-scanout-verified.
The PMP report's recovery hint now names the boot loader's switch.

The KUnit cases that only exercised the switches go; the no-marker
cases that remain cover the way to keep the boot framebuffer.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 1, 2026 06:28

@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 b1def93

Checked: display-gate.c and the KUnit, Kconfig and pmp-report hints.

  • All six early_params and their globals are gone, and no reference is left at head (grep: gate_requested, ->requested, dcpext_manual, the option strings).
  • dcpext: the caller already refused when !ext.scanout_ok on the native (default) path, so the now-unconditional display-DART steps in gate_ext_apply() are the old default path minus the manual branch.
  • The T8122 dcpext refusal reasons other than the switch stay.
  • The recovery hints now name chosen.asahi,t{6030,8122}-dcp=0.
    Follow-ups: the t6041-max KUnit 8/14 failure with CONFIG_DRM_APPLE=y is pre-existing on main 3e5df4e. Worth an issue.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at b1def93 under the 12-01 bar: one non-author approval + local proof (touched-object W=1 build / KUnit / host tests in the body) while PR CI is queued. Boards without a row stay in Not yet; a regression gets a same-day revert.

@RyanTheTide
RyanTheTide merged commit 07fb0d1 into main Dec 1, 2026
11 of 22 checks passed
@RyanTheTide
RyanTheTide deleted the gates/t6030-t8122-display-switches branch December 1, 2026 06:35
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