Skip to content

Fix chamelium port allocation during igt_fixture

Mohammed Bilal igt-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest3 patches 8 repliesIn review
  2. v62 patches 1 replySuperseded
  3. v52 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v42 patches1 replySuperseded
v32 patches3 repliesSuperseded
v12 patches0 repliesSuperseded

Changes in v7 from the cover letter

-Remove the old connector_subtest implementation (Kunal) -Rename connector_test back to connector_subtest (Kunal) -Update all call sites to use the renamed connector_subtest (Kunal)

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/chamelium/kms_chamelium: Add connector_test() macrotests/chamelium/kms_chamelium_helper.h+33 -02 replies
2/3tests/chamelium/kms_chamelium: use helper function for connector lookup in DP/HDMI/VGA teststests/chamelium/kms_chamelium_audio.c tests/chamelium/kms_chamelium_edid.c tests/chamelium/kms_chamelium_frames.c +1 more+216 -3592 replies
3/3tests/chamelium: Rename connector_test to connector_subtesttests/chamelium/kms_chamelium_audio.c tests/chamelium/kms_chamelium_edid.c tests/chamelium/kms_chamelium_frames.c +2 more+114 -1163 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKunal JoshiSebastian Brzezinka
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH i-g-t v7 0/3] Fix chamelium port allocation during igt_fixture

The current fixture implementation executes even for unrelated subtests, causing false failures when expected inputs were not present. Refactor the DP/HDMI/VGA hotplug tests to use a common connector lookup pattern so that each test skips cleanly.

v3:
- Introduce a unified connector test macro (Sebastien)
- Remove unused variable (Sebastien)
- Drop per-connector fixture usage (Sebastien)
- Refactor DP/HDMI/VGA hotplug tests (Sebastien)

v4:
- Rename helper to igt_chamelium_get_port (Jeevan)
- Add documentation for helper and macro (Jeevan)
- Use lowercase name for test macro (Sebastien)

v5:
-Iterate and test all matching connected ports (Kunal)

v6:
- Fix macro structure to ensure safe expansion and proper scoping (Kunal)
- Make the macro independent of assumptions in the calling test (Kunal)
- Move connector_test macro to kms_chamelium_helper
for correct layering (Kunal)
- Use suffixed local variables to avoid name collisions (Kunal)
- Add igt_info logging to show which port is being
exercised by each subtest (Kunal)

v7:
-Remove the old connector_subtest implementation (Kunal) -Rename connector_test back to connector_subtest (Kunal) -Update all call sites to use the renamed connector_subtest (Kunal)

Mohammed Bilal (3):
tests/chamelium/kms_chamelium: Add connector_test() macro tests/chamelium/kms_chamelium: use helper function for connector
lookup in DP/HDMI/VGA tests
tests/chamelium: Rename connector_test to connector_subtest

 tests/chamelium/kms_chamelium_audio.c  |  42 ++---
 tests/chamelium/kms_chamelium_edid.c   | 187 ++++++++-----------
 tests/chamelium/kms_chamelium_frames.c | 111 ++++--------
 tests/chamelium/kms_chamelium_helper.h |  36 +++-
 tests/chamelium/kms_chamelium_hpd.c    | 240 ++++++++++---------------
 5 files changed, 252 insertions(+), 364 deletions(-)
Signature · 1 line
2.48.1