Repository navigation
selftests: asahi: restore G17 output-fence host coverage - #3648
Conversation
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]>
|
Merge readiness at
Areas: Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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.pyagainstdrivers/gpu/drm/asahi/g17/fence.rsat08051669fa98:pub(crate) struct ChunkWork {(1 match) andimpl ChunkWork {(1 match) are extracted alongsideSubmission.Arc::pin_init((2 matches) andpin_init!(Self {(2 matches) matchcount=2, andwork <- new_mutex!((1 match) pairs withstate <- new_mutex!(.fn member_done(&self, fence: &UserFence<ExportFence>, result: Result)(1 match) uniquely selectsSubmission::member_doneand retains all locked-helper source assertions (finish_exported, no direct.set_error(/.signal(,AcqRelcompletion swap).
- Verified zero kernel source files modified and DCO sign-off present.
Evidence
- Pattern counts verified directly in
drivers/gpu/drm/asahi/g17/fence.rsat08051669fa98:ChunkWorkstruct/impl (1/1),Arc::pin_init((2),pin_init!(Self {(2),state <- new_mutex!((1),work <- new_mutex!((1), fullSubmission::member_donesignature (1). - Diff touches only
tools/asahi/g17-output-fence-tests.py(+6/-3).
|
code-owner ping <@422957901716652033>: merge train at |
|
Merging at |
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]>
What: Restore the host-only fence fixture after the work-lifetime split. Include the production
ChunkWorkstruct and implementation in the extracts and selectSubmission::member_doneby its full signature. The test still checks the same modeled fence behavior from #3311.Tested: The complete normal
g17-output-fence-tests.pyfixture passed in an isolated CPU-only network namespace against exact maina03face573bcd09f32b8292ec1c30c562a369733with this patch. The commit changes only the Python fixture, andgit diff --checkpassed.Risk: two-way door · host-test fixture only. A plain revert restores the previous fixture.
Not yet: Hosted host-tests and independent review.