Skip to content

Fix mode selection for 2x tests

Bhanuprakash Modem igt-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest14 patches 8 repliesIn review
  2. v514 patches 10 repliesSuperseded
  3. v414 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v314 patches3 repliesSuperseded
v25 patches0 repliesSuperseded
v15 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14lib/igt_kms: helper to override the mode on all connectorslib/igt_kms.c lib/igt_kms.h+80 -00 replies
2/14tests/kms_frontbuffer_tracking: Fix mode selection for 2x teststests/kms_frontbuffer_tracking.c+40 -00 replies
3/14tests/kms_cursor_legacy: Fix mode selection for 2x teststests/kms_cursor_legacy.c+47 -30 replies
4/14tests/debugfs_test: Fix mode selection for 2x teststests/debugfs_test.c+21 -00 replies
5/14tests/kms_content_protection: Fix mode selection for 2x teststests/kms_content_protection.c+16 -250 replies
6/14tests/kms_plane_scaling: Fix mode selection for 2x teststests/kms_plane_scaling.c+12 -30 replies
7/14tests/kms_atomic_transition: Fix mode selection for 2x teststests/kms_atomic_transition.c+17 -11 reply
8/14tests/kms_plane: Reset the state before exiting the testtests/kms_plane.c+11 -41 reply
9/14tests/kms_plane_alpha_blend: Reset the state before exiting the testtests/kms_plane_alpha_blend.c+3 -21 reply
10/14tests/kms_cursor_edge_walk: Reset the state before exiting the testtests/kms_cursor_edge_walk.c+3 -01 reply
11/14tests/kms_plane_lowres: Reset the state before exiting the testtests/kms_plane_lowres.c+3 -61 reply
12/14tests/kms_plane_cursor: Reset the state before exiting the testtests/kms_plane_cursor.c+4 -01 reply
13/14tests/kms_flip_scaled_crc: Reset the state before exiting the testtests/kms_flip_scaled_crc.c+5 -03 replies
14/14tests/kms_vblank: Reset the state before exiting the testtests/kms_vblank.c+2 -01 reply

Reviews trailers per patch

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

PatchAnkit Nautiyal
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b R-b R-b
14/14R-b

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

Read the v6 thread

Cover letter [igt-dev] [v6 i-g-t 00/14] Fix mode selection for 2x tests

When two monitors connected through MST, the second monitor also tries to use the same mode. So two such modes may not fit into the link bandwidth.

This series will find a combination of modes that fit into the BW.

IGT core helper would override the mode on all connectors that will be modeset by the next igt_display_commit() call in the test. These are all the connectors in igt_display_t that have a pending_pipe set by the test up to the point of calling this helper.

For 1x tests, cleanup the state before exiting the test.

Follow-up:
As modeset will happen one by one, we can't apply this approach on tests/kms_flip.c & tests/kms_setmode.c

Cc Imre Deak <[email protected]>
Cc Ankit Nautiyal <[email protected]>
Cc Daniel Vetter <[email protected]>

Bhanuprakash Modem (14):
lib/igt_kms: helper to override the mode on all connectors tests/kms_frontbuffer_tracking: Fix mode selection for 2x tests tests/kms_cursor_legacy: Fix mode selection for 2x tests tests/debugfs_test: Fix mode selection for 2x tests tests/kms_content_protection: Fix mode selection for 2x tests tests/kms_plane_scaling: Fix mode selection for 2x tests tests/kms_atomic_transition: Fix mode selection for 2x tests tests/kms_plane: Reset the state before exiting the test tests/kms_plane_alpha_blend: Reset the state before exiting the test tests/kms_cursor_edge_walk: Reset the state before exiting the test tests/kms_plane_lowres: Reset the state before exiting the test tests/kms_plane_cursor: Reset the state before exiting the test tests/kms_flip_scaled_crc: Reset the state before exiting the test tests/kms_vblank: Reset the state before exiting the test

 lib/igt_kms.c                    | 79 ++++++++++++++++++++++++++++++++
 lib/igt_kms.h                    |  1 +
 tests/debugfs_test.c             | 21 +++++++++
 tests/kms_atomic_transition.c    | 18 +++++++-
 tests/kms_content_protection.c   | 41 +++++++----------
 tests/kms_cursor_edge_walk.c     |  3 ++
 tests/kms_cursor_legacy.c        | 50 ++++++++++++++++++--
 tests/kms_flip_scaled_crc.c      |  5 ++
 tests/kms_frontbuffer_tracking.c | 40 ++++++++++++++++
 tests/kms_plane.c                | 15 ++++--
 tests/kms_plane_alpha_blend.c    |  5 +-
 tests/kms_plane_cursor.c         |  4 ++
 tests/kms_plane_lowres.c         |  9 ++--
 tests/kms_plane_scaling.c        | 15 ++++--
 tests/kms_vblank.c               |  2 +
 15 files changed, 264 insertions(+), 44 deletions(-)

--
2.20.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev