Skip to content

drm/asahi: g17: m5: drop removed fields from the layout fast-path test - #4382

Merged
DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
jgoyvaerts:m4pro/g17-m5-layout-test-fields
Dec 5, 2026
Merged

DjDeveloperr merged 1 commit into
aurora-silicon:mainfrom
jgoyvaerts:m4pro/g17-m5-layout-test-fields

Conversation

@jgoyvaerts

Copy link
Copy Markdown
Contributor

What: The asahi KUnit build on main fails with E0559 in g17/queue/render/m5_render_submission.rs. #4346 merged two commits that cross: fb0d404 removed the attachments and timestamps fields from Validated::Render, and a665a66 added the test layout_fast_path_matches_layout_and_window, which still sets both fields. This drops the two fields from the test, and the two zeroed values that only filled them. Test code only.
Tested: KUnit, arm64 qemu, asahi kunitconfig, at 3fdf0c4: 1110 run, 1109 pass, 1 skip, including layout_fast_path_matches_layout_and_window. On main f02bd68 the same build stops at the two E0559 errors. No Mac needed: the change touches only a KUnit test.
Risk: two-way door · no Mac affected (KUnit test only, no driver code)
Not yet: nothing.

Details
  • fb0d404 ("drm/asahi: g17: shrink Validated and eliminate submit-path stack copies") removed attachments and timestamps from Validated::Render.
  • a665a66 ("drm/asahi: g17: trim per-submit program parsing, template match, and WC prep") added layout_fast_path_matches_layout_and_window, which builds a Validated::Render with both fields.
  • Both came in with drm/asahi: g17: shrink Validated and eliminate submit-path stack copies #4346 (merge 1c99a50). Main's KUnit runs after it were cancelled, so CI has not reported the break yet. Every PR merged with current main fails its KUnit job until this lands.
Evidence

Build error on main f02bd68 (asahi kunitconfig):

error[E0559]: variant `g17::command::Validated::Render` has no field named `attachments`
   --> drivers/gpu/drm/asahi/g17/queue/render/m5_render_submission.rs:464:17
error[E0559]: variant `g17::command::Validated::Render` has no field named `timestamps`
   --> drivers/gpu/drm/asahi/g17/queue/render/m5_render_submission.rs:465:17

At 3fdf0c4: Testing complete. Ran 1110 tests: passed: 1109, skipped: 1, with [PASSED] layout_fast_path_matches_layout_and_window.

Commit fb0d404 ("drm/asahi: g17: shrink Validated and eliminate
submit-path stack copies") removed the attachments and timestamps fields
from Validated::Render. Commit a665a66 ("drm/asahi: g17: trim
per-submit program parsing, template match, and WC prep"), which merged
with it in aurora-silicon#4346, added layout_fast_path_matches_layout_and_window, and
that test still sets both fields. The asahi KUnit build now fails with
E0559 at m5_render_submission.rs.

Drop the two fields from the test, and drop the two zeroed values that
only filled them.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>

@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 3fdf0c4
Checked: Only the KUnit fixture changes. Its Render initializer drops the two removed fields and their unused zeroed inputs, retaining the fast-path layout and window assertions. The exact-head arm64 KUnit run reported by the author passed 1,109 with one skip, including the changed test.

@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.

Verdict: MERGE at 3fdf0c4
Checked: Only the KUnit fixture changes. Its Render initializer drops the two removed fields and their unused zeroed inputs, retaining the fast-path layout and window assertions. The exact-head arm64 KUnit run reported by the author passed 1,109 with one skip, including the changed test.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Merge readiness at 3fdf0c47: not ready yet

Check Detail
CI at head no failing: host-tests
Review ok approved by RyanTheTide
Requested changes ok none
Hardware row at head no no line with the head SHA 3fdf0c47, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · no Mac affected (KUnit test only, no driver code)

Areas: area:gpu

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

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Verified the clean merge of 3fdf0c473b30 into ef8a1bf8ce45. Tree b86083d522471ed4b7c131526c19a88e7aec6a1d changes only the KUnit fixture against main, and the fixture blob matches the exact head.

The earlier Host Tests run failed in the legacy sleep and T6030 PMP graph fixtures repaired by #4385. On the current merge tree, git diff --check, python3 -I tools/asahi/sleep-legacy-fw-tests.py and python3 -I tools/asahi/t6030-pmp-graph-tests.py --output pmp --mutations passed on Mini, including all 27 graph cases and the mutation checks. The Asahi KUnit job is queued.

@DjDeveloperr

Copy link
Copy Markdown
Contributor

Ryan approved 3fdf0c473b30. The author's local arm64 Asahi KUnit run on that head passed 1,109 tests with one skip, including layout_fast_path_matches_layout_and_window. Apple Build and PR text passed at the same head. The complete G17 render-queue directory has the same blobs at the PR head and on landing tree b86083d52247. The landing diff changes only the KUnit fixture.

Mini's landing-tree Host checks passed as recorded above, including the two tests repaired on main by #4385. The additional landing-tree CI run is still queued. Landing on the exact-head KUnit receipt and the current-tree Host results.

@DjDeveloperr
DjDeveloperr merged commit 0679d3d into aurora-silicon:main Dec 5, 2026
11 of 12 checks passed
jgoyvaerts added a commit to jgoyvaerts/linux that referenced this pull request Dec 5, 2026
Main at d0684a0 (includes aurora-silicon#4382). Conflicts resolved keeping both sides:
- runtime.rs: main's 9583ee4 made ComputeShared an identity with no memory behind it
  (nothing of the device-wide compute pool is mapped into client VMs any more). This branch
  keeps building it in the SUBMIT (provision_shared) and only installing it at publication
  (shared_compute); the SUBMIT now calls main's ComputeShared::new() without an allocator.
- g17-compute-constructor-tests.py: this branch's fixture with main's ComputeShared::new();
  the publication-builds mutation follows, and swallow-refusal swallows both the aperture's
  and the scheduler's refusal, as the refusal case needs both.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
jgoyvaerts added a commit to jgoyvaerts/linux that referenced this pull request Dec 5, 2026
Brings aurora-silicon#3704's merge of main at d0684a0 (includes aurora-silicon#4382). No conflicts.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
jgoyvaerts added a commit to jgoyvaerts/linux that referenced this pull request Dec 5, 2026
Brings aurora-silicon#4348 and aurora-silicon#3704 up to main at d0684a0 (includes aurora-silicon#4382). No conflicts.

Signed-off-by: Jonathan Goyvaerts <jonathan.goyvaerts@gmail.com>
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) needs-hw-row No hardware row at the PR head (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants