Skip to content

selftests: apple: build the afkv2 and T6030 PMP host tests on current main - #4868

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix/host-tests-afkv2-pmp-fields
Dec 6, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
fix/host-tests-afkv2-pmp-fields

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On current main the host-tests job fails for every linux PR.

  • apple-afkv2-gcc and apple-afkv2-clang fail with an implicit declaration of afk_ring_tx_has_space(). drm/apple: afk: reserve an empty TX ring slot on the legacy path #4842 (805406c) made the sender use that afk.h helper, but the extracted send and ring test programs don't have it.
  • t6030-pmp-graph-tests and t6030-pmp-supplier-tests (plain and --mutations) fail because a92992f added fast_die_wide, update and dvfs_first/dvfs_count to the T6030 offsets table. The harnesses' copies of struct apple_pmp_report_offsets don't have those members.

Change

  • afkv2 extract-send.py / extract-ring.py: take afk_ring_advance() and afk_ring_tx_has_space() verbatim from afk.h, replacing the private copy, so the tests follow the driver.
  • t6030-pmp-graph-tests.c / t6030-pmp-supplier-tests.c: add the new members to the mirrored struct.

Test-only. No driver change.

Tested: no runtime change (test-only; host tests on main f3da7bd + this change: afkv2 2/2, t6030-pmp 5/5).
Risk: two-way · none (test harness only; no kernel code).

Testing

  • tools/asahi/run-host-tests.py on main f3da7bd with this change: afkv2 2/2 and t6030-pmp 5/5, mutations included.
  • Before this change the full suite had 1429/1433 passing; the 4 failures were the t6030-pmp runs above, plus the 2 afkv2 runs.
  • The existing ring assertions, including the ENOSPC/EPROTO cases, pass unchanged against the real helper.

… main

Two merged changes left host-tests red on main for every PR:

- 805406c ("drm/apple: afk: reserve an empty TX ring slot on the legacy
  path") made the sender call afk_ring_tx_has_space() from afk.h. The
  afkv2 send and ring extractors carried a private afk_ring_advance()
  copy and no afk_ring_tx_has_space(), so both programs failed to
  compile. Take both helpers verbatim from afk.h instead of copying
  them, so the harness follows the driver.

- a92992f ("pmdomain: apple: pmp-report: add T6030 fast
  die-temperature effort and SOC-DEV-DVFS apertures") added
  fast_die_wide, update and the DVFS range to the T6030 offsets. The
  graph and supplier harnesses mirror struct apple_pmp_report_offsets
  and did not have those members, so the extracted production table
  no longer compiled. Add them.

Test-only; no driver change.

Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide requested review from a team and DjDeveloperr as code owners December 6, 2026 15:36
@github-actions github-actions Bot added area:gpu Area from CODEOWNERS (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 6, 2026
@github-actions

github-actions Bot commented Dec 6, 2026 •

Copy link
Copy Markdown

Merge readiness at 677d6560: not ready yet

Check Detail
CI at head no failing: pr-text / pr-text
Review ok approved by aurora-silicon-review, satchlj
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · none (test harness only; no kernel code).

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 on test code at 677d656.

Checked: Only host fixtures and extractors change. Both AFKv2 extractors compile the production ring-space helper, and the sender also uses the production advance helper. I ran the AFKv2 fixture with GCC and Clang using the exact changed scripts and verified all seven production input hashes against this head. The PMP stand-ins add the designated offset fields used by the production table, with matching types. The author's focused PMP runs report success.

The hosted Host run is queued and PR-text currently reports failure.

@github-actions github-actions Bot added the ci-failing A check failed at the PR head (bot) label Dec 6, 2026

@satchlj satchlj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 677d6560777a (code-only): clean test-only fix extracting afk_ring_advance() and afk_ring_tx_has_space() verbatim from afk.h instead of keeping a private copy, and syncing the mirrored struct apple_pmp_report_offsets fields in both T6030 PMP host tests. Note: pr-text looks like it failed only because the PR description does not include a Risk: line.

@github-actions github-actions Bot added blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) and removed needs-review No approving review from Core or Omarchy Mac yet (bot) needs-hw-row No hardware row at the PR head (bot) needs-template PR body lacks Tested or Risk (bot) labels Dec 6, 2026
@DjDeveloperr
DjDeveloperr merged commit 61c0858 into main Dec 6, 2026
7 of 8 checks passed
@DjDeveloperr
DjDeveloperr deleted the fix/host-tests-afkv2-pmp-fields branch December 6, 2026 15:50
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) blast:none Macs affected, from Merge risk (bot) ci-failing A check failed at the PR head (bot) door:two-way Revertible or not, from Merge risk (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants