Skip to content

lib/igt_kms: Implement dynamic plane count support

Robert Foss intel-gfx 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest33 patches 3 repliesIn review
  2. v233 patches 32 repliesSuperseded
  3. v132 patches 6 repliesSuperseded

Changes in v3 from the cover letter

Rebased on upstream/master
Added "Reviewed-by: Mika Kahola <[email protected]>" to all patches

* igt_kms:
- Fixed misaligned bracket
* kms_fbc_crc:
- Harmonize variable name with the rest of series

* kms_plane:
- Fixed misaligned function argument

* kms_plane_multiple:
- Increased size of memory allocations
- Switched malloc to calloc
- test_fini() skip planes that are NULL
- test_fini() set free'd plane pointers to NULL
- test_fini() fix off-by-one in induction variable
- prepare_planes() make if-else statement more legible

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33lib/igt_kms: Add index property to kmstest_plane structlib/igt_kms.c lib/igt_kms.h tests/kms_plane_lowres.c+8 -70 replies
2/33lib/igt_kms: Avoid depencency on static plane countlib/igt_kms.c lib/igt_kms.h+32 -190 replies
3/33lib/igt_kms: Rename kmstest properties nplanes and planelib/igt_kms.c lib/igt_kms.h tests/kms_plane_lowres.c+16 -140 replies
4/33lib/igt_kms: Implement dynamic plane count supportlib/igt_kms.c lib/igt_kms.h+143 -540 replies
5/33tests/kms_atomic_transition: Add support for dynamic number of planestests/kms_atomic_transition.c+13 -140 replies
6/33tests/kms_busy: Add support for dynamic number of planestests/kms_busy.c+3 -30 replies
7/33tests/kms_chv_cursor_fail: Add support for dynamic number of planestests/kms_chv_cursor_fail.c+3 -30 replies
8/33tests/kms_crtc_background_color: Add support for dynamic number of planestests/kms_crtc_background_color.c+1 -10 replies
9/33tests/kms_cursor_crc: Add support for dynamic number of planestests/kms_cursor_crc.c+6 -60 replies
10/33tests/kms_cursor_legacy: Add support for dynamic number of planestests/kms_cursor_legacy.c+18 -140 replies
11/33tests/kms_fbc_crc: Add support for dynamic number of planestests/kms_fbc_crc.c+5 -40 replies
12/33tests/kms_fence_pin_leak: Add support for dynamic number of planestests/kms_fence_pin_leak.c+1 -10 replies
13/33tests/kms_flip_event_leak: Add support for dynamic number of planestests/kms_flip_event_leak.c+1 -10 replies
14/33tests/kms_legacy_colorkey: Add support for dynamic number of planestests/kms_legacy_colorkey.c+3 -10 replies
15/33tests/kms_mmap_write_crc: Add support for dynamic number of planestests/kms_mmap_write_crc.c+1 -10 replies
16/33tests/kms_mmio_vs_cs_flip: Add support for dynamic number of planestests/kms_mmio_vs_cs_flip.c+3 -30 replies
17/33tests/kms_panel_fitting: Add support for dynamic number of planestests/kms_panel_fitting.c+8 -80 replies
18/33tests/kms_pipe_color: Add support for dynamic number of planestests/kms_pipe_color.c+2 -20 replies
19/33tests/kms_plane: Add support for dynamic number of planestests/kms_plane.c+53 -430 replies
20/33tests/kms_plane_multiple: Add support for dynamic number of planestests/kms_plane_multiple.c+145 -870 replies
21/33tests/kms_plane_scaling: Add support for dynamic number of planestests/kms_plane_scaling.c+7 -70 replies
22/33tests/kms_properties: Add support for dynamic number of planestests/kms_properties.c+3 -30 replies
23/33tests/kms_psr_sink_crc: Add support for dynamic number of planestests/kms_psr_sink_crc.c+23 -290 replies
24/33tests/kms_pwrite_crc: Add support for dynamic number of planestests/kms_pwrite_crc.c+1 -10 replies
25/33tests/kms_rmfb: Add support for dynamic number of planestests/kms_rmfb.c+1 -10 replies
26/33tests/kms_rotation_crc: Add support for dynamic number of planestests/kms_rotation_crc.c+32 -313 replies
27/33tests/kms_sink_crc_basic: Add support for dynamic number of planestests/kms_sink_crc_basic.c+1 -10 replies
28/33tests/kms_universal_plane: Add support for dynamic number of planestests/kms_universal_plane.c+9 -90 replies
29/33tests/kms_vblank: Add support for dynamic number of planestests/kms_vblank.c+2 -20 replies
30/33tests/prime_mmap_kms: Add support for dynamic number of planestests/prime_mmap_kms.c+1 -10 replies
31/33tests/kms_ccs: Add support for dynamic number of planestests/kms_ccs.c+2 -20 replies
32/33tests/kms_plane_lowres: Add support for dynamic number of planestests/kms_plane_lowres.c+21 -60 replies
33/33lib/igt_kms: Remove code obsoleted by dyn n_planes implementationlib/igt_kms.c lib/igt_kms.h+0 -480 replies

Reviews trailers per patch

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

PatchMika Kahola
1/33R-b
2/33R-b
3/33R-b
4/33R-b
5/33R-b
6/33R-b
7/33R-b
8/33R-b
9/33R-b
10/33R-b
11/33R-b
12/33R-b
13/33R-b
14/33R-b
15/33R-b
16/33R-b
17/33R-b
18/33R-b
19/33R-b
20/33R-b
21/33R-b
22/33R-b
23/33R-b
24/33R-b
25/33R-b
26/33R-b
27/33R-b
28/33R-b
29/33R-b
30/33R-b
31/33R-b
32/33R-b
33/33R-b

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

Read the v3 thread

Cover letter [PATCH i-g-t v3 00/33] lib/igt_kms: Implement dynamic plane count support

This series implements dynamic plane count support in lib/igt_kms and modifies all of the tests that rely on a static plane count.

Currently it has has gone through incomplete testing on vc4 (many tests are intel only) and intel (on intel-ci).

This series can be found in the branch dyn_n_planes_$VERSION on:
https://git.collabora.com/cgit/user/robertfoss/intel-gpu-tools.git/

Changes since v2:
Rebased on upstream/master
Added "Reviewed-by: Mika Kahola <[email protected]>" to all patches

* igt_kms:
- Fixed misaligned bracket
* kms_fbc_crc:
- Harmonize variable name with the rest of series

* kms_plane:
- Fixed misaligned function argument

* kms_plane_multiple:
- Increased size of memory allocations
- Switched malloc to calloc
- test_fini() skip planes that are NULL
- test_fini() set free'd plane pointers to NULL
- test_fini() fix off-by-one in induction variable
- prepare_planes() make if-else statement more legible

Changes since v1:
Rebased on upstream/master

* igt_kms:
- Added back kmstest_pipe_to_index() declaration
- Fixed kmstest_plane_type_name() comment
- Split up dyn n_planes implementation into a an additive part and a subtractive part to make sure that all tests work at all times
- Fixed two igt_assert_f's that tested the wrong variable
- Added igt_assert_f to verify that plane->index never is >= n_planes during igt_display_init()

* kms_plane_multiple:
- Fix printf cast of size_t varibles

Changes since rfc:
Rebased on upstream/master

* igt_debugfs:
- Change read to read at most MAX_LINE_LEN

* igt_kms:
- Actually fix typo
- Removed unused function declaration
- Set free'd pointer to NULL after free
- Check allocations for failures
- Rework kmstest_crtc and kmstest_plane to support dyn n_planes

* kms_cursor_legacy:
- Added support for dyn n_planes

* kms_cursor_legacy:
- Switch to using for_each_pipe construct

* kms_plane_lowres:
- Added support for dyn n_planes

* kms_plane_multiple:
- Set free'd pointer to NULL after free
- Check allocations for failures

Robert Foss (33):
lib/igt_kms: Add index property to kmstest_plane struct lib/igt_kms: Avoid depencency on static plane count lib/igt_kms: Rename kmstest properties nplanes and plane lib/igt_kms: Implement dynamic plane count support tests/kms_atomic_transition: Add support for dynamic number of planes tests/kms_busy: Add support for dynamic number of planes tests/kms_chv_cursor_fail: Add support for dynamic number of planes tests/kms_crtc_background_color: Add support for dynamic number of
planes
tests/kms_cursor_crc: Add support for dynamic number of planes tests/kms_cursor_legacy: Add support for dynamic number of planes tests/kms_fbc_crc: Add support for dynamic number of planes tests/kms_fence_pin_leak: Add support for dynamic number of planes tests/kms_flip_event_leak: Add support for dynamic number of planes tests/kms_legacy_colorkey: Add support for dynamic number of planes tests/kms_mmap_write_crc: Add support for dynamic number of planes tests/kms_mmio_vs_cs_flip: Add support for dynamic number of planes tests/kms_panel_fitting: Add support for dynamic number of planes tests/kms_pipe_color: Add support for dynamic number of planes tests/kms_plane: Add support for dynamic number of planes tests/kms_plane_multiple: Add support for dynamic number of planes tests/kms_plane_scaling: Add support for dynamic number of planes tests/kms_properties: Add support for dynamic number of planes tests/kms_psr_sink_crc: Add support for dynamic number of planes tests/kms_pwrite_crc: Add support for dynamic number of planes tests/kms_rmfb: Add support for dynamic number of planes tests/kms_rotation_crc: Add support for dynamic number of planes tests/kms_sink_crc_basic: Add support for dynamic number of planes tests/kms_universal_plane: Add support for dynamic number of planes tests/kms_vblank: Add support for dynamic number of planes tests/prime_mmap_kms: Add support for dynamic number of planes tests/kms_ccs: Add support for dynamic number of planes tests/kms_plane_lowres: Add support for dynamic number of planes lib/igt_kms: Remove code obsoleted by dyn n_planes implementation

 lib/igt_kms.c                     | 215 +++++++++++++++++++++++------------
 lib/igt_kms.h                     |  40 +++----
 tests/kms_atomic_transition.c     |  27 +++--
 tests/kms_busy.c                  |   6 +-
 tests/kms_ccs.c                   |   4 +-
 tests/kms_chv_cursor_fail.c       |   6 +-
 tests/kms_crtc_background_color.c |   2 +-
 tests/kms_cursor_crc.c            |  12 +-
 tests/kms_cursor_legacy.c         |  32 +++---
 tests/kms_fbc_crc.c               |   9 +-
 tests/kms_fence_pin_leak.c        |   2 +-
 tests/kms_flip_event_leak.c       |   2 +-
 tests/kms_legacy_colorkey.c       |   4 +-
 tests/kms_mmap_write_crc.c        |   2 +-
 tests/kms_mmio_vs_cs_flip.c       |   6 +-
 tests/kms_panel_fitting.c         |  16 +--
 tests/kms_pipe_color.c            |   4 +-
 tests/kms_plane.c                 |  96 +++++++++-------
 tests/kms_plane_lowres.c          |  35 ++++--
 tests/kms_plane_multiple.c        | 232 ++++++++++++++++++++++++--------------
 tests/kms_plane_scaling.c         |  14 +--
 tests/kms_properties.c            |   6 +-
 tests/kms_psr_sink_crc.c          |  52 ++++-----
 tests/kms_pwrite_crc.c            |   2 +-
 tests/kms_rmfb.c                  |   2 +-
 tests/kms_rotation_crc.c          |  63 ++++++-----
 tests/kms_sink_crc_basic.c        |   2 +-
 tests/kms_universal_plane.c       |  18 +--
 tests/kms_vblank.c                |   4 +-
 tests/prime_mmap_kms.c            |   2 +-
 30 files changed, 529 insertions(+), 388 deletions(-)
Signature · 6 lines
2.11.0.453.g787f75f05

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx