Repository navigation
selftests: apple: build the afkv2 and T6030 PMP host tests on current main - #4868
Conversation
… 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>
|
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 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.
satchlj
left a comment
There was a problem hiding this comment.
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.
Problem
On current main the host-tests job fails for every linux PR.
apple-afkv2-gccandapple-afkv2-clangfail with an implicit declaration ofafk_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-testsandt6030-pmp-supplier-tests(plain and--mutations) fail because a92992f addedfast_die_wide,updateanddvfs_first/dvfs_countto the T6030 offsets table. The harnesses' copies ofstruct apple_pmp_report_offsetsdon't have those members.Change
extract-send.py/extract-ring.py: takeafk_ring_advance()andafk_ring_tx_has_space()verbatim fromafk.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.pyon main f3da7bd with this change: afkv2 2/2 and t6030-pmp 5/5, mutations included.