Repository navigation
drm/apple: keep the refresh rate iBoot left the T6050 panel at - #3427
Conversation
After macOS left a K114s (T6050) panel at 60 Hz, every Linux boot crashed
the internal DCP about two seconds in and left the panel dark: iBoot hands
the panel over at 60 Hz, the driver offers only the 120 Hz timing
(only_120hz_modes), and the mode set from 60 to 120 Hz takes the link down
and crashes the firmware, as 120 to 60 Hz already did on the M5 Max. The
state survives warm reboots.
The firmware names the rate it found at start, "IOMFB update_rr_index
syncrate 60", before any mode set of ours. Keep the first such rate and
offer only modes at it on these panels, 120 Hz when none was reported.
The mode set then finds the timing already set ("Already set to timingID:
3") and the panel lights.
Signed-off-by: Ryan Murray <[email protected]>
|
K114s row (M5 Pro, T6050, firmware 27), batched boot. Kernel 7.3.0-k114srow = main
Still to run: a 120 Hz handover on this head (after a cold boot) and the J616s row for #3423 (desktop 26.x, HDR must stay offered). |
|
J616s (desktop 26.x): booted the same batched kernel (7.3.0-j6row = main + this + #3423), panel and modes unchanged, 0 DCP crashes: |
|
Non-author merge-train review at @DjDeveloperr code-owner ping (interim rule, point 6): this fixes Ryan's dark K114s panel. I'll merge after 07:49 AEDT if CI is green, the App approves, and you have no objection. Revert: |
…unit dcp_rtk_syslog_is_debug() now hands each record to dcp_rtk_syslog_boot_rate(). Extract it with a minimal apple_dcp as the RTKit cookie, and check that the first 'update_rr_index syncrate' rate is kept, later and out-of-range rates and other panels are ignored, and the record keeps its info level. Signed-off-by: Ryan Murray <[email protected]>
|
host-tests: |
There was a problem hiding this comment.
Verdict: MERGE at cdb7a3f4fff2, once the KUnit jobs still queued finish green (build, kunit and host-tests already are).
Blockers: none.
Checked: read the whole diff; checked in three K114s boot logs (good, bad, row) that the latched line arrives before anything the driver does with modes; checked that cdb7a3f4 is test-only over the rowed f4c4b038; looked for a way the latch could pick the wrong rate or touch other DCPs; checked that it works on the default command line; no attribution.
Evidence
- Ordering is structural, not timing: in
traces/display/20261128-k114s-dcp-handoff-crash/private/(good 01:18, bad 04:12, row 05:4x),update_rr_index syncrate Nis logged during the DCP firmware's own start, before the driver logs "DCP booted", before the firstdcp_hotplug(), and before[drm] Initialized apple. Sodcp_mode_valid()/dcp_mode_settable()can't run beforeboot_rateis set. In the row it is 1.218 s, against 1.342 s for the firstset_digital_out_mode(timing:3), thenAlready set to timingID: 3. - Scope:
dcp_rtk_syslog_boot_rate()returns at once unlesshw.only_120hz_modes(T6050 internal DCP only). The value is latched once, bounded to 24–240, and the record keeps its log level. External DCPs and every other SoC are untouched (J616s row: inert). - Fallback: no line, or a reworded line, gives
boot_rate0, so 120 Hz only, exactly today's rule. - Default command line: the row kernel had no extra arguments; the RTKit syslog callback runs for every record regardless.
- Test-only head:
git diff f4c4b038 cdb7a3f4touches onlytools/testing/selftests/drivers/gpu/apple-dcp/boot.py, so the K114s row (driver atf4c4b038) applies. - Merges clean with main
aa3351bc+.
Not blocking, already under Not yet: (1) no M5 Max log of this line exists on the store. If a Max's firmware ever reports a non-120 rate first, that Max now runs at that rate instead of trying 120; a fixed rate, not a crash. A Max row should confirm it reports 120. (2) A K114s handed over at 60 Hz stays at 60 Hz for that boot (ProMotion returns after a 120 Hz handover). That is the right trade against a dark panel, but worth a line in the release notes. (3) As MERGETRAIN6 noted, a structured firmware property would be sturdier than the syslog string.
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
|
Merging under the 6-point rule (Ryan 09:29, permanent), at
Revert: |
|
Follow-up row (merged change), K114s on Ryan's default bridge v4 (7.3.0-k114sstack, includes this change), 11-28 15:40: the panel is handed over at 120 Hz again ( |
What
After macOS (here an HV guest) left the K114s (T6050) internal panel at 60 Hz, every Linux boot crashed the internal DCP about two seconds in and left the panel dark: no backlight device, eDP disconnected. The state survives warm and VDM reboots.
iBoot hands the panel over at 60 Hz (the firmware logs
update_rr_index syncrate 60). The driver offers only the 120 Hz timing on this DCP (only_120hz_modes), so its first mode set asks for timing 2. The firmware then really switches modes (hard_power_state 0,shutdown_link,mode_set_gated 3024x1986@120), hits a DPTX FIFO error and crashes. On a healthy boot it is handed over at 120 Hz and answersAlready set to timingID: 2. A 120 → 60 Hz mode set already crashed the M5 Max, which is why the guard exists.The firmware names the rate it found at start before any mode set of ours. Keep the first such rate and offer only modes at it on these panels, or 120 Hz when none was reported (unchanged). The mode set then finds the timing already set and the panel lights. This follows the existing link report, which already reads the firmware's mode-set log line.
Tested
Tested: K114s (T6050) at cdb7a3f (driver files as f4c4b03): panel handed over at 60 Hz lights (Already set to timingID: 3), 0 DCP crashes, 0 failed units; J616s inert; KUnit 372/373 + apple-dcp host tests 96/96.
edr.kunitconfig, arm64 QEMU): 373 tests, 372 passed, 1 skipped.parser_internal_v27_only_120hzgains the reported-60-Hz case.Already set to timingID: 3, no DCP crash, backlight present, eDP connected, GNOME greeter up. Logs: our tracetraces/display/20261128-k114s-dcp-handoff-crash. A row at this head follows.Risk: one-way · T6050 internal DCP (K114s/M5 Max) when iBoot hands the panel over at a rate other than 120 Hz: the panel lights at that rate instead of the DCP crashing; 120 Hz handovers unchanged
Not yet
Rows: K114s 60 Hz handover (batched with #3423) and J616s (inert there) are posted below.