Skip to content

selftests: asahi-m4: model publication power reports - #991

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
ctl/t-4732-fix-host-selftest-fixture-drift-on-integration-a
Nov 5, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
ctl/t-4732-fix-host-selftest-fixture-drift-on-integration-a

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

test-publication.py extracts Firmware::publish() verbatim, but its mock Firmware has no power field for the report_work() call added by the utilization governor. The fixture therefore fails with Rust E0609 before its publication and error-isolation checks run.

Add a CPU-only power-report recorder and assert live, drained, and deferred work reports in the existing cases. This changes only the fixture harness; the production driver functions remain extracted verbatim.

The apple-dcp fixture failures from the same host-gate report are already fixed by #987, which is included in this branch's integration base.

Validation at d27965e on the controller-managed build host:

  • Parent publication fixture: reproduced E0609 at self.power.report_work().
  • python3 tools/asahi/run-host-tests.py --jobs 8: 183/183 passed, including apple-dcp 85/85 and asahi-m4 23/23 with no skips.
  • Complete standalone apple-dcp run.py: 85/85 passed.
  • Python syntax parsing and git diff --check: passed.

The build source is shallow; historical revisions required by the existing controls were fetched explicitly before verification. No test expectations or production sources were changed for that setup.

The publication fixture extracts Firmware::publish() verbatim but its
Firmware mock has no power field. The utilization governor added a
power.report_work() call, so test-publication.py fails to compile with
E0609 instead of exercising publication and error isolation.

Add a CPU-only recorder at the power reporting boundary and check the
reports in the existing live, drained and deferred publication cases.
The governor and CLPC transport remain outside this fixture.

Fixes: 26fd983 ("drm/asahi: g16: Govern the published performance state by utilization")
Assisted-by: LLM
Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 5, 2026 14:05
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merge train (MTL): run-host-tests --only asahi-m4 on integration/aurora 0041b90 + this: 1/1 ok (fails on 0041b90 alone). Test-only, merging.

@RyanTheTide
RyanTheTide merged commit 908aa3e into integration/aurora Nov 5, 2026
@RyanTheTide
RyanTheTide deleted the ctl/t-4732-fix-host-selftest-fixture-drift-on-integration-a branch November 5, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant