Skip to content

selftests: asahi: restore G17 output-fence host coverage - #3648

Merged
RyanTheTide merged 1 commit into
mainfrom
fix/g17-output-fence-host-extract
Nov 29, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
fix/g17-output-fence-host-extract

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: Restore the host-only fence fixture after the work-lifetime split. Include the production ChunkWork struct and implementation in the extracts and select Submission::member_done by its full signature. The test still checks the same modeled fence behavior from #3311.

Tested: The complete normal g17-output-fence-tests.py fixture passed in an isolated CPU-only network namespace against exact main a03face573bcd09f32b8292ec1c30c562a369733 with this patch. The commit changes only the Python fixture, and git diff --check passed.

Risk: two-way door · host-test fixture only. A plain revert restores the previous fixture.

Not yet: Hosted host-tests and independent review.

Extract ChunkWork with the fence member types and select the Submission method by its full signature. This restores the existing host test after the work-lifetime split.

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

Copy link
Copy Markdown

Merge readiness at 08051669: not ready yet

Check Detail
CI at head running running: host-tests, pr-text / pr-text
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 08051669, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · host-test fixture only. A plain revert restores the previous fixture.

Areas: area:gpu

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

@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 08051669fa98

Blockers: None (host-test fixture only; wait for queued hosted host-tests / pr-text / readiness CI checks to finish green before merging).

Checked:

  • Verified tools/asahi/g17-output-fence-tests.py against drivers/gpu/drm/asahi/g17/fence.rs at 08051669fa98:
    • pub(crate) struct ChunkWork { (1 match) and impl ChunkWork { (1 match) are extracted alongside Submission.
    • Arc::pin_init( (2 matches) and pin_init!(Self { (2 matches) match count=2, and work <- new_mutex!( (1 match) pairs with state <- new_mutex!(.
    • fn member_done(&self, fence: &UserFence<ExportFence>, result: Result) (1 match) uniquely selects Submission::member_done and retains all locked-helper source assertions (finish_exported, no direct .set_error( / .signal(, AcqRel completion swap).
  • Verified zero kernel source files modified and DCO sign-off present.
Evidence
  • Pattern counts verified directly in drivers/gpu/drm/asahi/g17/fence.rs at 08051669fa98: ChunkWork struct/impl (1/1), Arc::pin_init( (2), pin_init!(Self { (2), state <- new_mutex!( (1), work <- new_mutex!( (1), full Submission::member_done signature (1).
  • Diff touches only tools/asahi/g17-output-fence-tests.py (+6/-3).

@RyanTheTide

Copy link
Copy Markdown
Contributor

code-owner ping <@422957901716652033>: merge train at 08051669. App approved; host-test fixture only, so no hardware row applies. Merges 1 h from now once CI is green.

@RyanTheTide

Copy link
Copy Markdown
Contributor

Merging at 08051669 (main is red in host-tests; ORCH5 put this first, after #3627 merged as eba08b4). The review App approved this head. Hosted host-tests is still queued, so I ran the affected test on the buildbox. On main eba08b4, g17-output-fence-tests.py fails (AssertionError: ' fn member_done(': 2 matches); with this PR merged it passes, and all three --mutation variants are killed. Test-only, so no hardware row applies; the author is Dj. Revert: git revert -m 1 <merge>.

@RyanTheTide
RyanTheTide merged commit 4b5f373 into main Nov 29, 2026
3 of 5 checks passed
@RyanTheTide
RyanTheTide deleted the fix/g17-output-fence-host-extract branch November 29, 2026 19:06
RyanTheTide added a commit that referenced this pull request Nov 30, 2026
Main (#3330, granular work-state retire) added a multi-command path
that splits an ioctl into chunked work-state leases and publishes them
with Outputs::publish_with_status(), next to the single-command
Outputs::publish(). This branch makes publish() take a lease created
by the caller, so the interruptible order-window wait happens before
any output is published.

Kept both: the multi-command path is main's unchanged (its first
WorkStateLease::deferred() now waits interruptibly too, before
publication); the single-command path creates its lease before
publish() as this branch does. note_render() runs just before either
publication, after any wait. Outputs keeps main's publish_source()
split with this branch's publish_with(Option<lease>) on top.

tools/asahi/g17-output-fence-tests.py (main, #3311/#3648) extracts
impl Submission and expected one Arc::new() there, the one in
Submission::new(), which this branch removes; it now expects none.

Signed-off-by: Ryan Murray <[email protected]>
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) 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.

2 participants