Repository navigation
drm/apple: iomfb_v14_7: log the RTKit handshake retries - #3556
Conversation
The 14.7 client (T6030/T6031) retries an RTKit handshake timeout up to four times at both session starts, the external processor and the internal panel, and a retry that succeeds leaves no trace. Nobody knows why the retry was added or how often it fires. Move the wake-and-retry into one helper and log every timeout with the count and the outcome, so boots and wakes on these machines show whether the retry is needed and how often. The behaviour is unchanged: the same retries, the same errors. Link: #2461 Signed-off-by: Ryan Murray <[email protected]>
There was a problem hiding this comment.
Verdict: MERGE at 35473b60
Blockers: none (await the 21 queued CI checks at 35473b60 before merging)
Checked:
drivers/gpu/drm/apple/iomfb_v14_7.c(dcp_v14_rtkit_start()): verified exact equivalence of retry loop and return values for bothdcpext_boot()andiomfb_v14_7_bind(), and traced timeout count (ret == -ETIME ? n + 1 : n) across all 5 outcomes (immediate success, immediate non--ETIMEfailure, retry success, retry non--ETIMEfailure, and all-timeout exhaustion logging 5 timeouts).- PR metadata (
Tested:cites35473b60,W=1clean,96/96apple-dcp host selftests,checkpatch --strictclean;Risk:two-wayT6030/T6031 only;MERGEABLEonmain).
Evidence
- Head:
35473b60(MERGEABLEonmain,+25/-8, 1 file). - CI at review time: 21 checks
QUEUED.
|
code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at |
|
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 |
Resolve iomfb_v14_7.c: main open-coded the -ETIME retry logging at both RTKit wake sites; keep this branch's dcp_v14_rtkit_start() helper there (same retry loop, logs how the retry ended). Signed-off-by: Ryan Murray <[email protected]>
|
Forward-merged |
There was a problem hiding this comment.
Both RTKit sites still perform one wake and up to four boots on -ETIME, and return the final status via the original error paths. The warning counts the initial timeout plus any failed retries, including the fifth timeout if all attempts fail. CI for this head is pending.
|
Regression boot row: J713 (M4 Air, T8132, firmware-27 DCP) PASS at The row was a GRUB one-shot into a kernel built from
Then it returned to the saved fleet85 and the test kernel was removed. The kernel log has the two external DCP lines The head CI: the @DjDeveloperr, when your J516s is free: one boot plus one s2idle wake on this head, then |
Picks up #3594 (host-test stub fix for g17-compute-owed-stamp-tests).
|
Merging under the 6-point rule at |
What: The 14.7 DCP client (T6030/T6031) retries an RTKit handshake timeout up to four times at both session starts, and a retry that succeeds leaves no trace (#2461). This moves the wake-and-retry into one helper that logs every timeout with its count and outcome, so boots and wakes on M3 Pro/Max show whether the retry fires and how often. Same retries, same errors. Refs #2461.
Tested: host only at
35473b60.iomfb_v14_7.obuilds at W=1 with no warnings (arm64, LLVM, fleet89-based config). The apple-dcp host selftests pass 96/96, and checkpatch --strict is clean. No lab Mac runs this file's code; it is T6030/T6031 only.Risk: two-way · M3 Pro/Max (T6030/T6031) only. The only behaviour change is a new
dev_warnwhen a handshake timeout happens.Not yet: a row on a J514s/J516s (or c). The point of the change is to gather that data: about 20 cold boots and 20 wakes, then drop the loop if it never fires (#2461). On our Macs, a boot row only confirms that
appledrmstill loads.Details
The message has the form
<dcpext|DCP> RTKit handshake timed out N time(s); <gave up|the session started on a retry>: <ret>. N counts the timeouts, including the first wake. When the last attempt also timed out, the message saysgave upwith-ETIME.