Repository navigation
drm/apple: dcp: keep T8122's firmware 27 stop off older firmware - #4038
Merged
Merged
Conversation
T8122's s2r_ext and s2r_layout are in its static hw data, so they also apply on firmware 14.7 and 26.6: - The external DCP on 26.6 runs as H17P, which dcp_s2r_ext_capable() accepts without looking at the method table. A dry-run deep sleep then stops that firmware through dcp_s2r_ext_suspend() in place of its own retained path. - On 14.7 and 26.6 s2r_ext turns on the external DCP's OSLOG echo, which apple,sync-syslog-ack keeps off there. - The internal DCP's 26.6 sleep turns the display DART off from D572 with dcp_s2r_layout(), now dcp_s2r_t8122, which has no streams. The streams it finds itself (dcp_v26_find_darts()) are no longer used there. Set s2r_ext where the firmware 27 external DCP is set up, and drop the v27_early_stop layout on any other firmware. Firmware 27 is unchanged. Fixes: 70ce55f ("drm/apple, arm64: dts: apple: support T8122 firmware 27.2 DCP/DCPext S2R") Signed-off-by: DjDeveloperr <hey@djdev.me>
T8122 no longer takes coprocessor SLP_DDR votes, and apple_pmp_report_check_t6030_ack() now covers it. Signed-off-by: DjDeveloperr <hey@djdev.me>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
RyanTheTide
approved these changes
Dec 3, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Reviewed 73eddd3 against #4037. The external-stop flag now follows firmware selection, and older internal firmware goes back to its existing DART stream lookup. The firmware-27 path still gets the same settings before their first use. This fixes the older-firmware regression in the parent. Hardware rows are pending.
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: #4037 puts the M3's (T8122) display sleep settings in its static hw data, so part of them also applies on firmware 14.7 and 26.6. This limits them to firmware 27. Stacked on #4037, lands right after it.
Tested: builds and host tests at
73eddd32ebd7: W=1 ofdrivers/gpu/drm/apple/,pmp-report.oandsleep.o, 0 new warnings; host tests withdcpin the name 102/103 (the one failure is a control that needs history this shallow checkout lacks), includingapple-dcp. No hardware run.Risk: two-way · T8122 on firmware 14.7 and 26.6 goes back to its display paths from before #4037; on 27.2 the same values are set, a few lines later in probe. T6030 on other firmware drops a layout it doesn't read there. No other SoC sets
v27_early_stop.Not yet: a 14.7 M3 Air with an external display and a 25G83 J613 deep sleep. The new DART routing from #4037 still applies to the 26.6 sleep.
Details
What #4037 changes on older firmware, and what this restores:
dcp_s2r_ext_capable()accepts H17P without looking at the method table. A dry-run deep sleep then stops that firmware throughdcp_s2r_ext_suspend()in place of its own retained path.s2r_extturns on the OSLOG echo, whichapple,sync-syslog-ackkeeps off there. This needs no option on the command line.dcp_s2r_layout(), nowdcp_s2r_t8122, which has no streams. The streamsdcp_v26_find_darts()finds are used again.s2r_extmoves to the block indcp_platform_probe_pipe()that already sets up the T8122 external DCP for firmware 27. The other T8122 ext fields are only read with it.The second commit updates two comments that #4037 left behind.