Skip to content

drm/asahi: g17: name the owning process when a compute publication gives up - #3240

Merged
RyanTheTide merged 2 commits into
mainfrom
fix/g17-admission-expiry-pid
Dec 1, 2026
Merged

RyanTheTide merged 2 commits into
mainfrom
fix/g17-admission-expiry-pid

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: the G17 "compute publication of owner N gave up after … ms" warning now also prints the owning process's pid, taken from the backend's context (Context::owner_pid()). The owner id is an internal counter that matches no process, so during a multi-client run like the sync CTS (linux#3235) the warning couldn't be tied to the client that was waiting. Nothing else changes: same rate limit, same fields.

Tested: drivers/gpu/drm/asahi/ builds with the asahi profile.

Risk: two-way door. It only changes one warning's text, and nothing parses it.

Not yet: a J714s boot showing the new line. It will ride the next combined candidate that hits #3235.

…ves up

The admission-expiry warning printed only the queue owner id, which is an internal counter and matches no process, so a give-up during a multi-client test could not be tied to the client that was waiting. Print the owning process's pid from the backend's context next to it.

Signed-off-by: DjDeveloperr <[email protected]>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 26, 2026 11:16
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (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) labels Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Merge readiness at 1797cc9c: not ready yet

Check Detail
CI at head no failing: host-tests, KUnit avd, KUnit ave, KUnit isp, KUnit jpeg, KUnit prores
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head ok comment at 1797cc9c
Conflicts ok not computed yet
PR text ok Risk: two-way · . It only changes one warning's text, and nothing parses it.

Areas: area:gpu

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

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed ci-failing A check failed at the PR head (bot) labels Nov 26, 2026

@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: FINISH, then merge at 2c3203e3

Blockers:

  1. Missing hardware boot row at head (needs-hw-row).
  2. Rerun the 17 cancelled CI checks so CI is green at head.

Checked:

  • drivers/gpu/drm/asahi/g17/runtime.rs:4107-4110: clean 2-line diagnostic formatting addition printing (pid {}) from self.context.owner_pid() in report_admission_expiry(), keeping the existing rate limit and fields intact.
Evidence
  • Diff reviewed at 2c3203e3 (1 file, +5/-4 lines).
  • Code is ready; only a G17 boot row and green CI rerun remain before approval.

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

@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: HOLD at 1797cc9c

Blockers:

  • Hosted CI workflows (apple-build, host-tests, pr-text, KUnit suites) are still running at 1797cc9c.
  • Missing G17 hardware boot row at head (needs-hw-row; noted under Not yet).

Checked:

  • Forward merge 1797cc9c onto main and full 1-file diff (drivers/gpu/drm/asahi/g17/runtime.rs, +5/-4): cleanly prints (pid {}) from self.context.owner_pid() in report_admission_expiry(), keeping the existing rate limit (ADMISSION_REPORTS = 8) and all existing fields intact.
  • Verified Context::owner_pid() remains present in drivers/gpu/drm/asahi/g17/context.rs at 1797cc9c.
Evidence
  • No code defects; ready to approve once hosted CI finishes green and a G17 boot row is recorded at head.

@DjDeveloperr

Copy link
Copy Markdown
Contributor Author

J700 (MacBook Neo, A18 Pro) at 1797cc9c92fe: PASS.

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Merge-train approval (last-push review of the merge-up delta, under the merge bar). 1797cc9c merges current main on top of the reviewed code. Rows: J700-exact-head(1797cc9), G17-only. Merging once hosted CI is green.

@github-actions github-actions Bot added ci-failing A check failed at the PR head (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026

@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 1797cc9c92fe

Converts this App's earlier review at the same head to an approval under the 12-01 merge bar (better than before and doesn't break; block only on a shown failure). No code blocker was found in it. The merge gate (a row on one Mac at this head + fast CI) is tracked by pr-readiness, not held here.

Checked: - Forward merge 1797cc9c onto main and full 1-file diff (drivers/gpu/drm/asahi/g17/runtime.rs, +5/-4): cleanly prints (pid {}) from self.context.owner_pid() in report_admission_expiry(), keeping the existing rate limit (ADMISSION_REPORTS = 8) and all existing fields intact.

  • Verified Context::owner_pid() remains present in drivers/gpu/drm/asahi/g17/context.rs at 1797cc9c.

Follow-ups (not blocking): running CI; G17 boot row

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 1797cc9c92fe (B2 merge train, 12-01 merge bar). Approval at this head: RyanTheTide,aurora-silicon-review[bot]. Row: J700 exact head 1797cc9. CI: linux train L1 = main 595e754 + #3503 #3499 #3240 #3208 #3696 #731 #2634 #2110 #3325 #3441 #3650 (candidate ef98b31c): Apple driver compile (defconfig + asahi.config, LLVM=1, Rust) pass, Apple DTBs W=1 pass, planned KUnit clpc/dcp-fabric/dcp-topology/dcp-display/pmgr-pwrstate/mt7932/asahi all pass; host-tests green (or path-skipped) at this head. The rest of the hosted run is queued behind the ~19 h backlog. Revert: git revert -m 1 <merge commit>.

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

Labels

area:gpu Area from CODEOWNERS (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants