Skip to content

tools/asahi: extract the AVD AV1 reference timestamp helper - #751

Closed
RyanTheTide wants to merge 1 commit into
aurora-wipfrom
fix/avd-av1-tail-tests-ref-ts
Closed

RyanTheTide wants to merge 1 commit into
aurora-wipfrom
fix/avd-av1-tail-tests-ref-ts

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

aurora-wip at 5cf4c5e fails 10 of 158 host tests: every avd-av1-tail-tests case. #725's 89e658c moved the AV1 reference timestamp lookup into a new u64 helper, avd_av1_ref_ts(). The test's extractor only matches int/void functions and did not list the helper, so the generated controls.c stops compiling (implicit declaration of function 'avd_av1_ref_ts').

This is a fixture-only change:

  • the extractor now also matches u64 return types;
  • avd_av1_ref_ts() is extracted ahead of avd_av1_set_prob();
  • the fixture prefix gains u64 and U64_MAX.

No driver code changes.

Testing (buildbox, on aurora-wip 5cf4c5e plus this commit):

  • python3 -I -B tools/asahi/avd-av1-tail-tests.py: 1804 production controls PASS.
  • All six mutations (round-up, cpu-unaligned, seg-cpu-unaligned, seg-any-size, ref-index-upper, frame-width-unchecked) still fail on their own assertion (rc 250), so none has become a no-op.
  • The full tools/asahi/run-host-tests.py result is in the comments below.

Found while building the fleet14 kernel; the host tests are a merge gate for it.

🤖 Generated with Claude Code

Commit 89e658c ("media: apple: avd: bound AV1 reference indices
before using them") moved the reference timestamp lookup in
avd_av1_set_prob() into a new u64 helper, avd_av1_ref_ts(). The AV1
tail host test only extracts int and void functions and did not list
the helper, so the generated controls.c no longer compiled and all ten
avd-av1-tail-tests cases failed in run-host-tests.py (148/158).

Teach the extractor u64 return types, extract avd_av1_ref_ts() ahead of
avd_av1_set_prob(), and give the fixture the u64 and U64_MAX it needs.
The base run passes again and each of the six mutations still fails on
its own assertion.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Full tools/asahi/run-host-tests.py --jobs 8 on aurora-wip 5cf4c5e plus this commit: 158/158 passed (115 s). Without it the tip gives 148/158, all 10 failures avd-av1-tail-tests.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Superseded by #754 (the same fixture fix, merged into aurora-wip at 5067ca4).

@RyanTheTide
RyanTheTide deleted the fix/avd-av1-tail-tests-ref-ts branch October 31, 2026 23:59
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