Repository navigation
Test M2 DCP, AVD and ANE firmware contracts - #2964
Merged
Merged
Conversation
Cover 13.5 firmware with legacy and explicit compatibility, required legacy IOMFB commands, and firmware-27 method selection and refusal. Test the real driver with local OF properties and a copy of the 27.2 method table. Signed-off-by: Ryan Murray <[email protected]>
The extracted recovery function now checks the variant before resetting the decoder. Model the variant and verify that the no-reset case keeps DMA parked without restarting the decoder. Fixes: 0c94baf ("media: apple: avd: don't reset the T6041 decoder in recovery") Signed-off-by: Ryan Murray <[email protected]>
Use the probe match table and a local OF node to check the T8112 open firmware, codec mask and stream setup. Register the suite in the decoder so it also builds when the driver and tests are modules. Signed-off-by: Ryan Murray <[email protected]>
Cover contiguous reverse physical placement, overlap in that direction, and overflow past the end of the second segment. Signed-off-by: Ryan Murray <[email protected]>
Add module descriptions for the pending request, HWX and preload suites so that modpost accepts the ANE firmware tests as modules. Signed-off-by: Ryan Murray <[email protected]>
DjDeveloperr
approved these changes
Nov 23, 2026
DjDeveloperr
left a comment
Contributor
There was a problem hiding this comment.
Formal §1–§6 pre-PR checklist review at d80fe820d7e23e96ecc2dc4da9989e80bbecf3e7:
- §1 No model gating: Pass. Pure KUnit / host-test additions and module metadata; zero runtime driver behavior changes. All new tests exercise existing DT match tables, firmware admission, IOMFB method tables, and ANE preload range checks.
- §2 Production-ready, no hacks: Pass. No new command-line or module parameters, no sleeps/retries, and no lab-only driver paths. KUnit inclusions are cleanly gated (
IS_ENABLED(CONFIG_DRM_APPLE_DISPLAY_KUNIT_TEST)indcp.c/iomfb_v13_3.cmatching existing suites, andIS_REACHABLE(CONFIG_VIDEO_APPLE_AVD_KUNIT_TEST)inavd-drv.cso tristate=m/=ycombinations build cleanly without built-in-to-module link errors). - §3 Safety: Pass. No hardcoded hardware limits.
recovery-test.pynow modelsAVD_QUIRK_NO_RECOVERY_RESET(BIT(5)) and verifies the safety invariant that the no-reset variant stays parked onempty_domainwith IRQ off and zero resets/boots/detaches;ane_preload_physical_order_testverifies DATA-before-TEXT overlap rejection andU64_MAXwrap-around rejection. - §4 Clean-room and attribution: Pass. All 5 commits (
a834150cfa50..d80fe820d7e2) carry human author/committer (Ryan Murray <[email protected]>) and humanSigned-off-by:only, with zero AI trailers in commits (Fixes: 0c94baf620c7verified) and PR-body disclosure present. No proprietary code, strings, offsets, or forbidden provenance comments. - §5 Evidence & CI: Pass. Both required CI workflows are green on
d80fe820d7e2:Apple DRM KUnit / kunit(138 passed, 1 unrelatedCONFIG_UCLAMP_TASKskip;apple-dcp-firmware2/2 andapple-iomfb-legacy-methods1/1 passed) andHost tests / host-tests(463/463 passed). Additional local arm64 QEMU KUnit (522 cases), AVD host tests, and arm64=mmodule link checks are reported, anddrivers/media/platform/apple/avd/tests/recovery-test.pywas independently verified locally with-Wall -Wextra -Werror -fsanitize=address,undefined(PASS). - §6 Naming & KUnit hygiene: Pass. Clean upstream/Aurora naming throughout, proper
__be32/cpu_to_be32usage, KUnit-managed allocations (kunit_kmalloc) with no stack/global DT mutation, and the threeMODULE_DESCRIPTION(...)additions resolvemodpostwarnings onane_h16_{hwx,pending,preload}_test.ko.
Approved for MERGETRAIN-LINUX4.
Assisted-by: LLM (Gemini 4 Neon)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The display and video decoder tests missed firmware and variant selection used by the M2. The AVD host recovery fixture also stopped compiling after the decoder gained a no-reset variant.
Change
Add KUnit coverage for DCP 13.5 admission and IOMFB methods, 27.x table validation, T8112 AVD variant selection, and reverse physical placement of ANE preload ranges. Update the AVD host recovery fixture and verify that the no-reset path leaves DMA parked. Add missing module descriptions to three ANE firmware test modules.
Testing
Arm64 QEMU passed 522 cases with one unrelated skip. The AVD host queue, decode-program, dispatch and recovery tests passed. The display, decoder and ANE firmware tests link as arm64 modules against fleet85 exports.
Test details
Still to run
The DCP 27.2 production boot, ANE firmware startup and DP-audio hardware sleep rows are tracked with their respective driver changes.
Assisted-by: LLM (Codex)