Skip to content

tests/kms_pipe_crc_basic: add mst suspend-resume test

Kunal Joshi igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests/intel/kms_mst_helper: Add helper to check for MST outputstests/intel/kms_mst_helper.c tests/intel/kms_mst_helper.h+20 -00 replies
2/6lib/igt_cleanup: Add general resource cleanup infrastructurelib/igt.h lib/igt_cleanup.c lib/igt_cleanup.h +1 more+557 -00 replies
3/6tests/kms_pipe_crc_basic: Use cleanup framework for framebufferstests/kms_pipe_crc_basic.c+6 -40 replies
4/6tests/kms_pipe_crc_basic: Use cleanup framework for pipe CRCtests/kms_pipe_crc_basic.c+2 -20 replies
5/6tests/kms_pipe_crc_basic: Use cleanup framework for drm_fdtests/kms_pipe_crc_basic.c+1 -10 replies
6/6tests/kms_pipe_crc_basic: Add MST suspend-resume testtests/kms_pipe_crc_basic.c tests/meson.build+249 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH i-g-t 0/6] tests/kms_pipe_crc_basic: add mst suspend-resume test

This patch series introduces MST suspend-resume test to kms_pipe_crc_basic.

While at it add framework for general resource cleanup infrastructure. The cleanup framework addresses the problem of leaked resources (framebuffers, pipe CRCs, file descriptors) when tests exit early via igt_require(), igt_skip(), or igt_assert() failures. By registering resources with the cleanup framework, tests can ensure proper cleanup on all exit paths without manual handling.

The MST test validates that CRC values remain stable across suspend/resume cycles for all possible subsets of MST outputs connected to a single MST hub.

Kunal Joshi (6):
tests/intel/kms_mst_helper: Add helper to check for MST outputs lib/igt_cleanup: Add general resource cleanup infrastructure tests/kms_pipe_crc_basic: Use cleanup framework for framebuffers tests/kms_pipe_crc_basic: Use cleanup framework for pipe CRC tests/kms_pipe_crc_basic: Use cleanup framework for drm_fd tests/kms_pipe_crc_basic: Add MST suspend-resume test

 lib/igt.h                    |   1 +
 lib/igt_cleanup.c            | 492 +++++++++++++++++++++++++++++++++++
 lib/igt_cleanup.h            |  63 +++++
 lib/meson.build              |   1 +
 tests/intel/kms_mst_helper.c |  19 ++
 tests/intel/kms_mst_helper.h |   1 +
 tests/kms_pipe_crc_basic.c   | 262 ++++++++++++++++++-
 tests/meson.build            |   3 +
 8 files changed, 835 insertions(+), 7 deletions(-)
 create mode 100644 lib/igt_cleanup.c
 create mode 100644 lib/igt_cleanup.h
Signature · 1 line
2.43.0