Skip to content

drm/apple: dcp: keep the T6030 firmware 27 panel at its boot timing - #4058

Open
DjDeveloperr wants to merge 1 commit into
mainfrom
fix/t6030-fw27-boot-rate
Open

DjDeveloperr wants to merge 1 commit into
mainfrom
fix/t6030-fw27-boot-rate

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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_modes flag in the T6030 profile. Until then a compositor or modetest can 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 in dcp_mode_settable() that keeps T6030 on 14.x unchanged is in main since #4049.

Tested: J516s on 27.2 at 7cb712d732e9 (merged onto main cff875630c61, kernel 7.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). KUnit dcp_firmware_27_t6030_boot_rate passed in CI at this head. arm64 LLVM=1 W=1 build of drivers/gpu/drm/apple/ with display.kunitconfig: no compiler warnings. Host suites: apple-dcp boot 6/6, rate 5/5, edid 4/4; dcp-ext-repower, dcpext26-startup, dcpext26-retrain, display-sleep-merge pass. checkpatch --strict clean. 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 syncrate line, so the 60 Hz case would fall back to 120 Hz, as today.

Details
Evidence

J516s, firmware 27.2, read-only (modetest -M apple -c, debugfs vrr_range, boot log), kernel without this change:

#0 3456x2234 120.00 3456 3464 3496 3536 2234 2352 2360 2456 1042130
#1 3456x2234  60.00 3456 3464 3496 3536 2234 2352 2360 2456  521065
#2 3456x2234  59.94 3456 3464 3496 3536 2234 2352 2360 2456  520544
#3 3456x2234  50.00 3456 3464 3496 3536 2234 2842 2850 2946  520853
#4 3456x2234  48.00 3456 3464 3496 3536 2234 2352 2360 2456  416852
#5 3456x2234  47.95 3456 3464 3496 3536 2234 2352 2360 2456  416435
set_digital_out_mode(color:1 timing:2) "3456x2160": 120
Already set to timingID: 2 colorID: 1. 3456x2234 link: 1

Row recipe (J516s, one reboot into a candidate with this commit and #4049's gate):

  1. modetest -M apple -c lists one mode, 3456x2234 120.00.
  2. journalctl -k -b has Already set to timingID: 2, no co-processor has crashed, no DCP has crashed; apple-panel-bl follows a brightness step.
  3. drm_info/modetest still show vrr_capable 1 and HDR_OUTPUT_METADATA.

PASS: all three, 0 failed units.

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

Copy link
Copy Markdown
Contributor Author

J516s (MacBook Pro 16" M3 Pro, Mac15,7, T6030, macOS 27.2 / 26B123 stub, headless with display manager stopped) row at 7cb712d732e9 (7.3.0-m3-s2r-gf83272d3b87f, boot_id 9205a2d6-03a8-4f2f-bbe7-f6c9b8192a68):

row-rate-lock.sh

  • Listed modes: #0 3456x2234 120.00 3456 3464 3496 3536 2234 2352 2360 2456 1042130 flags: phsync, pvsync; type: preferred, driver
  • All 9 display checks PASS: firmware 27, one rate listed, that rate is 120, boot timing kept, no DCP crash, PMP ready, vrr_capable 1, HDR_OUTPUT_METADATA present, backlight follows (25 -> 85: 85).
  • Note: 0 failed units flagged two pre-existing Arch audio units (speakersafetyd.service, speakerguardd-v2-switchtest.service), unrelated to display.

row-vrr-hdr.sh

  • vrr_range: Min: 24, Max: 120; mode kept: 3456x2160@120 clock 1042130; vrr_capable 1; 0 set_digital_out_mode / mode_set_gated lines and 0 DCP crashes during the run.
  • VRR: PASS (both VRR_ENABLED 0 and VRR_ENABLED 1):
    • VRR_ENABLED 0: 120 Hz 8.339 ms (sd 0.005), 48 Hz 20.839 ms (sd 0.128, R(4.167)=0.96, R(8.333)=0.01), 30 Hz 33.339 ms (sd 0.006), 24 Hz 41.672 ms (sd 0.008).
    • VRR_ENABLED 1: 120 Hz 8.334 ms (sd 0.007), 48 Hz 20.834 ms (sd 0.006, R(4.167)=1.00, R(8.333)=0.00), 30 Hz 33.334 ms (sd 0.006), 24 Hz 41.656 ms (sd 0.837).
  • HDR observations (backlight 60/500, output_edr flips cleanly 0 -> 1 -> 0 with no mode sets/crashes):
    • sdr 0: 7.32 W, output_edr: 0
    • sdr 1023: 6.39 W, output_edr: 0
    • pq 100: 27.38 W, output_edr: 1
    • pq 203: 27.11 W, output_edr: 1
    • pq 1600: 27.16 W, output_edr: 1
    • sdr 1023: 6.50 W, output_edr: 0
    • Note: pq 1600 rises +20.8 W over sdr 1023 and final sdr 1023 returns within 1.7%, though pq 100 and pq 203 already read ~27.1–27.4 W on this panel/meter rather than stepping gradually from sdr 1023.

@DjDeveloperr
DjDeveloperr marked this pull request as ready for review December 3, 2026 09:31
@DjDeveloperr
DjDeveloperr requested review from a team as code owners December 3, 2026 09:31
@github-actions github-actions Bot added area:display Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Merge readiness at 7cb712d7: not ready yet

Check Detail
CI at head ok 11 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok in the PR body at 7cb712d7
Conflicts ok none
PR text ok 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.

Areas: area:display

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@github-actions github-actions Bot removed the ci-failing A check failed at the PR head (bot) label Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:display Area from CODEOWNERS (bot) blast:m3 Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant