Repository navigation
drm/apple: dcp: keep the T6030 firmware 27 panel at its boot timing - #4058
Open
DjDeveloperr wants to merge 1 commit into
Open
DjDeveloperr wants to merge 1 commit into
DjDeveloperr wants to merge 1 commit into
Conversation
The firmware 27 internal DCPs of T6050 and T6031 crash on a mode set that changes the panel's timing (120 -> 60 Hz on 3024x1986 and 3456x2234), so dcp_mode_settable() offers only the rate iBoot left the panel at there. The T6030 internal DCP also runs firmware 27.2 and still lists all six rates of its panel, so a compositor can ask for the same mode set. It has not been tried on T6030. Set only_120hz_modes in the T6030 profile too. T6030 also runs firmware 14.x, which the firmware 27 check in dcp_mode_settable() leaves alone. A J516s firmware 27.2 boot logs no "update_rr_index syncrate" line, so its rate is the 120 Hz default unless the firmware names another one. The KUnit case takes the J516s's catalogue through the T6030 profile: 120 Hz alone, 60 Hz alone when the firmware names that rate, and no limit for the external processors. Signed-off-by: DjDeveloperr <hey@djdev.me>
Contributor
Author
|
J516s (MacBook Pro 16" M3 Pro,
|
DjDeveloperr
marked this pull request as ready for review
December 3, 2026 09:31
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
This branch has not been deployed
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: Offer only the boot refresh rate on the T6030 (M3 Pro) internal panel under firmware 27, as T6050 does (#1868, #3427) and T6031 does in #4049. It sets the existing
only_120hz_modesflag in the T6030 profile. Until then a compositor ormodetestcan ask a J514s/J516s on 27.2 for a rate change the driver cannot do safely (#1868, #3427, #4049: J516c lost the internal DCP in one; on K114s a display off/on at the same timing already does). The firmware 27 check indcp_mode_settable()that keeps T6030 on 14.x unchanged is in main since #4049.Tested: J516s on 27.2 at
7cb712d732e9(merged onto maincff875630c61, kernel7.3.0-m3-s2r-gf83272d3b87f): PASS, one mode 3456x2234 120.00, 9 of 9 display checks, no DCP crash, two audio units that were already failing (row). KUnitdcp_firmware_27_t6030_boot_ratepassed in CI at this head. arm64 LLVM=1 W=1 build ofdrivers/gpu/drm/apple/withdisplay.kunitconfig: no compiler warnings. Host suites:apple-dcpboot 6/6, rate 5/5, edid 4/4;dcp-ext-repower,dcpext26-startup,dcpext26-retrain,display-sleep-mergepass.checkpatch --strictclean. Merges cleanly with main and with #3818. Read-only look at a J516s on 27.2 (kernel without this change): six modes listed, handed over at 120 Hz (Already set to timingID: 2).Risk: two-way · M3 Pro (T6030) internal panel on firmware 27: 60, 59.94, 50, 48 and 47.95 Hz are no longer listed until paced rates (#3693) or a real mode set exist. 120 Hz is unchanged. Other Macs unchanged.
Not yet: No J514s row. Nobody has tried a 120 -> 60 Hz mode set on T6030, so a crash there is expected from T6050/T6031, not measured. A panel handed over at 60 Hz on T6030: a 120 Hz boot of the J516s logs no
update_rr_index syncrateline, so the 60 Hz case would fall back to 120 Hz, as today.Details
only_120hz_modesis already the hardware profile's way to say this, and soc: apple, arm64: dts, drm/apple: enable T6031 internal display on firmware 27.2 #4049 adds the firmware 27 condition and its KUnit case.boot.pyis byte-identical to soc: apple, arm64: dts, drm/apple: enable T6031 internal display on firmware 27.2 #4049's, so the two merge in either order.dcp_firmware_27_t6030_boot_rate: takes the J516s's six timings through the T6030 match data. 120 Hz alone with no rate in the log; 60 Hz alone once the firmware names 60;apple,t6030-dcpexthas no limit.dcp_mode_settable()compares rounded rates, so a panel handed over at 60 Hz is offered both 60.00 and 59.94 Hz (and 48.00 and 47.95 at 48). Choosing the other one is a real mode set. This is the same on T6050 today.vrr_capable1,vrr_range24-120 and panel EDR headroom 16. Neither has been measured on T6030.Evidence
J516s, firmware 27.2, read-only (
modetest -M apple -c, debugfsvrr_range, boot log), kernel without this change:Row recipe (J516s, one reboot into a candidate with this commit and #4049's gate):
modetest -M apple -clists one mode,3456x2234120.00.journalctl -k -bhasAlready set to timingID: 2, noco-processor has crashed, noDCP has crashed;apple-panel-blfollows a brightness step.drm_info/modeteststill showvrr_capable1 andHDR_OUTPUT_METADATA.PASS: all three, 0 failed units.