Repository navigation
drm/apple: say when the 180 Hz probe runs out; document the T8140 refused-idle retry - #2365
Closed
RyanTheTide wants to merge 2 commits into
Closed
RyanTheTide wants to merge 2 commits into
RyanTheTide wants to merge 2 commits into
Conversation
While a 1920x1080 at 180 Hz exception mode is pending on an H17P Type-C connection but not yet proven, get_modes calls dcp_180hz_retry(), which probes the connector again up to 8 times, 300 ms apart. After the 8th probe it stopped without a word, and the mode was simply not offered. Each input of the proof already has an event that probes again (the link rate and lane facts and the firmware announcement through dcp_180hz_notify(), the AV service through its publication, a new catalog through dcp_180hz_catalog_changed()), so the re-probe is a poll. It is kept until every order of arrival is shown to be covered by one of those events, tracked in #2346. Name its bound and delay, and warn once when it runs out, with whether the current connection's link rate and lane facts are proven, so a missing 180 Hz mode can be told from a missing event. The count goes to DCP_180HZ_PROBE_RETRIES + 1 to mark the warning as given; a new connection or proof resets it as before. The host selftest checks the bound, the single warning and the reset. Signed-off-by: Ryan Murray <[email protected]>
dcp_s2r_quiesce() retries a refused RTKit idle once, after polling the mailbox and a fixed 30 ms sleep, on the assumption that the firmware still had messages queued. Nothing shows that assumption: the one recorded refusal on a J700 (-62 after 1137 ms) was refused again and went down the undo path. Say so at the retry and point at #2347, which tracks counting both outcomes and then either removing the retry or waiting on the condition the sleep stands for. No functional change. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Blockers: 1.
The rest is fine:
HW row: the combined-kernel row had no 180 Hz sink, so the new path never ran. Neo (J700) on this head with a 180 Hz DP sink over Type-C: 1920x1080@180 listed and 0 warning lines over a plug and 3 replugs. Then with a lower-rate cable or adapter: the mode not listed and 0 warning lines. 0 AVC, 0 failed units, no new kernel errors. Assisted-by: LLM (Claude:Opus 5.5) |
RyanTheTide
added a commit
that referenced
this pull request
Nov 25, 2026
…; document the T8140 refused-idle retry Folds #2365 into this PR unchanged. Signed-off-by: Ryan Murray <[email protected]>
Contributor
Author
|
Folded into #2387, which now carries this PR's commits unchanged (merge commit); review continues there. |
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.
Problem
Two bounded retries in drivers/gpu/drm/apple run on assumptions nothing has shown yet:
dcp_180hz_retry()(dcp-180hz.c, from a7a7e2f) re-probes the connector up to 8 times, 300 ms apart, while a 1920x1080 at 180 Hz exception mode is pending but not yet proven on an H17P Type-C connection. Each input of the proof already has an event that probes again, so this is a poll, and when it ran out it stopped silently: the mode was just not offered.dcp_s2r_quiesce()(dcp.c, T8140 suspend-to-RAM from d9b438c by Diljit Singh) retries a refused RTKit idle once after a mailbox poll and a fixed 30 ms sleep, assuming queued messages were the cause. The one recorded refusal on a J700 was refused again.Change
DCP_180HZ_PROBE_RETRIES,DCP_180HZ_PROBE_DELAY_MS) and warn once when the probes run out, with whether the current connection's link rate and lane facts are proven. Behaviour is otherwise unchanged. The host selftest checks the bound, the single warning and the reset on a new connection. Removing the poll is tracked in drm/apple: 180 Hz exception mode is found by a bounded re-probe poll, not by its proof events #2346.Testing
drivers/gpu/drm/apple/dcp.oanddcp-180hz.owith W=1 on the release config: 0 warnings.tools/testing/selftests/drivers/gpu/apple-dcphost suite: 88/88 ok, including the updatedbounded-retry.Still to run
Hardware rows
dmesg | grep -c "180 Hz exception mode still not offered"= 0 when 1920x1080@180 is listed inmodetest/kscreen-doctor; if the mode is missing, exactly 1 such line per connection, naming which fact is missing.dcp_180hz_init()returns early there. Boot plus external display up as a no-regression check, 0 such lines.Hardware rows (combined test kernel, 2026-11-20)
This change was booted in a combined test kernel: integration/aurora 0abc2f3 plus the open gate-sweep drafts plus this and the related drafts (7.3.0-aurora-hk2/pwr1/hk3). It ran once on each lab Mac (M1 Pro J316s, M2 J413, J616s, Neo J700) and was compared against the production kernel on the same Mac, using the same silent row script:
M1 Pro, M2 and J616s matched production on every row, apart from the new counters and lines the drafts add. The Neo row found the old-DTB display regression that #2358's follow-up commit fixes.
This PR: "180 Hz exception mode still not offered": 0 on all four Macs (no 180 Hz sink attached).