Repository navigation
soc: apple: display-gate: drop the T6030 and T8122 display kill switches - #3751
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
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_okon the native (default) path, so the now-unconditional display-DART steps ingate_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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) andapple_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:
kunit.py run --arch=arm64, LLVM) at b1def93, kunitconfig as in soc: apple: display-gate: take the T6031 display wherever the boot loader hands it over #3729: 68 tests, 62 pass, 6 skip (the same T8122 dcpext cases soc: apple: display-gate: take the T6031 display wherever the boot loader hands it over #3729 skipped, which need the display driver). WithCONFIG_DRM_APPLE=yadded, the t6030, t6031 and t8122 suites pass with 0 skips, so the T8122 dcpext cases run and pass. t6041-max fails 8/14 in that config on main 3e5df4e as well, with the same 8 cases. It doesn't touch this code.make W=1(arm64, gcc) ofdrivers/soc/apple/display-gate.oanddrivers/pmdomain/apple/pmp-report.o: 0 warnings at main 3e5df4e and at b1def93.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
nomodesetor 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:
apple-t6030-displayfrom dmesg (panel andenabled dcpextNlines) at this head?drivers/gpu/drm/apple/dcpext_scanout.c,dcpext_drm.c,iomfb_v14_7_external_start()and itsdcpext_startsysfs) can't be reached any more: only the gate's manual mode setapple,t6030-scanout-verifiedand enabled a dcpext without its piodma child. Deleting it is a separate cleanup PR of about 1.4k lines.Detail
apple,t6030-handoff/apple,t8122-handoffon the DCP and display subsystem,apple,t6030-dcpext-memory-readyand theapple,t6030-dispext-handoffscanout child for each T6030 dcpext, andapple,t8122-dcpext-firmware-readyon T8122. aura arms each of them with its ownchosen.asahi,*option (see aurasrc/kboot_display_handoff.c).nomodesetkeeps the display driver away, so the PMP is never started..scanout=0refused 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.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.gate_t6030_escape,gate_t6030_t8122_escape,gate_t8122_escape,gate_t6031_t6030_optionandgate_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.drivers/soc/apple/display-gate.c,display-gate-test.c,Kconfig,drivers/pmdomain/apple/Kconfig,pmp-report.c(recovery hint). 5 files, +44/-165./srv/aurora/fast/o/B1-GATES-disp2/kunit-gate*.log.