Skip to content

drm/apple: iomfb_v14_7: log the RTKit handshake retries - #3556

Merged
RyanTheTide merged 3 commits into
mainfrom
fix/v14-rtkit-retry-log
Nov 29, 2026
Merged

RyanTheTide merged 3 commits into
mainfrom
fix/v14-rtkit-retry-log

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

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.o builds 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_warn when 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 appledrm still 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 says gave up with -ETIME.

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]>

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 both dcpext_boot() and iomfb_v14_7_bind(), and traced timeout count (ret == -ETIME ? n + 1 : n) across all 5 outcomes (immediate success, immediate non--ETIME failure, retry success, retry non--ETIME failure, and all-timeout exhaustion logging 5 timeouts).
  • PR metadata (Tested: cites 35473b60, W=1 clean, 96/96 apple-dcp host selftests, checkpatch --strict clean; Risk: two-way T6030/T6031 only; MERGEABLE on main).
Evidence
  • Head: 35473b60 (MERGEABLE on main, +25/-8, 1 file).
  • CI at review time: 21 checks QUEUED.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

code-owner ping <@422957901716652033> / @DjDeveloperr: merge train at 35473b60. App approved (NEON-PR-REVIEW2). Merges 1 h from now under the 6-point rule once hosted CI is green, unless you object.

@github-actions github-actions Bot added 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-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Merge readiness at f1679c10: not ready yet

Check Detail
CI at head no failing: KUnit ane-boot, KUnit dcp-topology
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA f1679c10, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · M3 Pro/Max (T6030/T6031) only. The only behaviour change is a new devwarn when a handshake timeout happens.

Areas: area:display

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

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule (Ryan 09:29, permanent), at 35473b60. (1) The review App approved at this head. (2) Full CI is green. (3/4) Rows: logging-only;host-selftests. (5) There's no blocking review. (6) Dj was pinged here 535 min ago with no objection. Revert: git revert -m 1 <merge>.

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]>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Forward-merged main at d2d58a71 (normal push). main had open-coded the same -ETIME retry with its own log line at both RTKit wake sites (from another PR). The resolution keeps this PR's dcp_v14_rtkit_start() helper at both sites, with the same loop and bound and a more informative log. No other change. Needs CI and App re-approval at d2d58a71.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@RyanTheTide

RyanTheTide commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Regression boot row: J713 (M4 Air, T8132, firmware-27 DCP) PASS at 35473b60

The row was a GRUB one-shot into a kernel built from 35473b60 (fleet89 config), on the saved Stage 2 and default cmdline. Smoke VERDICT PASS:

  • Enforcing, running, 0 failed units.
  • The internal panel is lit at 2560x1664 on apple-drm.
  • All three DCPs are bound to apple-dcp.

Then it returned to the saved fleet85 and the test kernel was removed.

The kernel log has the two external DCP lines external display processor unusable (probe failed: -110). That is the known J713 main regression from the missing 27.2 dcpext handoff (#2673, being finished now). The saved fleet85 carries that handoff. The regression is not from this PR: iomfb_v14_7.c does not run on the J713.

The head d2d58a71 only merges main into 35473b60; the iomfb_v14_7.c diff is the same. As the PR body says, this row only shows that the module set still loads.

CI: the host-tests failure is g17-compute-owed-stamp-tests, which is broken on main (fix in #3594). This PR does not touch it. The KUnit jobs are still queued.

@DjDeveloperr, when your J516s is free: one boot plus one s2idle wake on this head, then journalctl -k | grep 'RTKit handshake'. Zero lines is a valid result; it is the first data point for #2461.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Nov 29, 2026
Picks up #3594 (host-test stub fix for g17-compute-owed-stamp-tests).
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging under the 6-point rule at f1679c10. (1) The review App approved at this head. (2) CI: the only red entries are KUnit ane-boot and dcp-topology in run 46236853212, which failed in apt-get update (mirror connection failed, exit 100) before any test ran. The same two suites passed at this exact head in run 46236849532. (3/4) Logging-only change (the RTKit retry helper), so no hardware row applies. (5) No blocking review. (6) Dj was pinged long ago with no objection. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 2b4dfe7 into main Nov 29, 2026
28 of 42 checks passed
@RyanTheTide
RyanTheTide deleted the fix/v14-rtkit-retry-log branch November 29, 2026 20:32
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) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (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