Skip to content

tools/asahi, selftests: fix host tests after the DRM_APPLE_HDCP merge - #3375

Closed
DjDeveloperr wants to merge 1 commit into
mainfrom
fix/host-tests-drm-apple-hdcp
Closed

DjDeveloperr wants to merge 1 commit into
mainfrom
fix/host-tests-drm-apple-hdcp

Conversation

@DjDeveloperr

Copy link
Copy Markdown
Contributor

What: Turn host-tests on main green again. The merge of #3302 (deb2df2a9e2b) broke five host tests:

  • hardware-defaults-tests wants every native Apple option requested in the shared distro fragment. arch/arm64/configs/asahi.config now requests CONFIG_DRM_APPLE_HDCP=y next to CONFIG_DRM_APPLE_CEC=y. The option is default y, so a resolved config does not change.

  • Several harnesses build production DCP functions against their own stubs, and those functions now call HDCP helpers:

    • backlight-coldboot-tests (both modes): dcp_hdcp_link_changed();
    • dcpext26-startup-tests: dcp_hdcp_match_service();
    • the apple-dcp selftests service-rebind, provider-admission, ordered-rx and stale-crtc-poweroff: dcp_hdcp_match_service(), dcp_hdcp_route() and dcp_hdcp_quiesce().

    None of these fixtures has an HDCP channel, so each harness gets the same no-op stub that dcp-hdcp-drv.h has without CONFIG_DRM_APPLE_HDCP.

Tested: no runtime change; host tests only, at 0ed4d7eb6e7e, with tools/asahi/run-host-tests.py (the host-tests workflow):

  • The five tests that fail on main (run 45964990093, 722/727) now pass: hardware-defaults-tests, backlight-coldboot-tests and its --negative-controls, dcpext26-startup-tests, and apple-dcp (all cases).
  • Full suite locally: 723/727. The 4 left are g15-pb-growth-tests and g15-stats-drain-tests (with and without --mutations).
    • They time out in this checkout's git show of older G15 revisions, a partial-clone fetch limit of the local object store.
    • They pass on main in CI, and this change touches nothing they read.
  • This host's clang 23 has -Wunused-but-set-global, which CI's clang 18 lacks. The local run added -Wno-unused-but-set-global after each clang command line to match CI.
  • checkpatch.pl --strict: 0 errors, 0 warnings, 0 checks.

Risk: two-way · host tests and the distro config fragment only; no kernel code changes.

Not yet: None. This is host tests and the config fragment only, with no runtime kernel code change.

The merge of #3302 (deb2df2) broke five host tests on main:

- hardware-defaults-tests.py wants every native Apple option requested
  in the shared distro fragment. DRM_APPLE_HDCP (bool, default y,
  depends on DRM_APPLE) is not, so request it next to DRM_APPLE_CEC.
- backlight-coldboot-tests.py (both modes), dcpext26-startup-tests.py
  and the apple-dcp selftests (service-rebind, provider-admission,
  ordered-rx, stale-crtc-poweroff) build production functions against
  their own stubs. Those functions now call dcp_hdcp_link_changed(),
  dcp_hdcp_match_service(), dcp_hdcp_route() and dcp_hdcp_quiesce(),
  and the builds stop on the implicit declarations. None of these
  fixtures has an HDCP channel, so give them the same no-op stubs
  dcp-hdcp-drv.h has without CONFIG_DRM_APPLE_HDCP.

No kernel code changes.

Fixes: 1acd474 ("drm: apple: add the HDCP 2.2 transmitter for DCP outputs")
Fixes: c2acdf7 ("drm: apple: hdcp: work on the default command line, unbind and suspend safely")
Signed-off-by: DjDeveloperr <hey@djdev.me>
@DjDeveloperr
DjDeveloperr requested review from a team as code owners November 27, 2026 10:38
@DjDeveloperr
DjDeveloperr deleted the fix/host-tests-drm-apple-hdcp branch November 27, 2026 10:41
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