Repository navigation
selftests: apple-dcp: extract the DPTX withdrawal in the disconnect fixture - #4019
Merged
Merged
Conversation
…ixture Commit 2a8d808 ("drm/apple: dcp: rearm Type-C IOMFB HPD completion on deep-sleep DPTX release") moved the HPD-low and display-release calls of dcp_external_stop_locked() into a helper, dcp_external_withdraw_dptx_locked(), and made the stop rearm typec_iomfb_hpd_ready. The disconnect fixture extracts dcp_external_stop_locked() from dcp.c but knows neither, so physical-disconnect, fast-replug-bounce and dropped-swap-teardown no longer compile. Extract the helper when dcp.c has it, and model the completion as the other fixtures of this file do. No test is added or relaxed. Fixes: 2a8d808 ("drm/apple: dcp: rearm Type-C IOMFB HPD completion on deep-sleep DPTX release") Signed-off-by: DjDeveloperr <hey@djdev.me>
RyanTheTide
approved these changes
Dec 3, 2026
RyanTheTide
left a comment
Contributor
There was a problem hiding this comment.
Reviewed ce31dd3. The fixture extracts the production withdrawal helper when present and models the new completion reset. Existing assertions and production code are unchanged. The reported before/after run isolates the three repaired tests, which also pass with the older source.
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.
What: Fix the three apple-dcp selftests that #4013 broke on main:
physical-disconnect,fast-replug-bounceanddropped-swap-teardown. Their fixture copiesdcp_external_stop_locked()out ofdcp.c, and that function now calls the newdcp_external_withdraw_dptx_locked()and rearmstypec_iomfb_hpd_ready. The fixture knows neither, so it does not compile. It now extracts the helper whendcp.chas it and models the completion. No test is added or relaxed.Tested: In the Ubuntu 24.04 host-tests image (clang 18.1.3), on main
37a630623169:tools/testing/selftests/drivers/gpu/apple-dcp/run.shis 98/101, failing exactly those three;dcp.cfrom before drm/apple: dcp: rearm Type-C IOMFB HPD completion on deep-sleep DPTX release #4013, so an older--sourcetree still works.checkpatch.pl --strict: 0 errors, 0 checks; its only two warnings are that a tree without git history can't look up2a8d8087827f, which is on main.Risk: two-way · host selftest fixture only; nothing that runs on a Mac changes, so no hardware row applies.
Not yet: nothing.