Skip to content

lib/igt_kms: Rewrite property handling to better match atomic.

Maarten Lankhorst igt-dev intel-gfx 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 16 repliesIn review
  2. v112 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Small fixes to chamelium compilation. Patchwork messed up so resending all.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14lib/igt_kms: Rework connector properties to be more atomic, v2.lib/igt_kms.c lib/igt_kms.h tests/kms_atomic_interruptible.c +1 more+45 -400 replies
2/14lib/igt_kms: Rework plane properties to be more atomic, v5.lib/igt_kms.c lib/igt_kms.h tests/kms_atomic_interruptible.c +1 more+165 -2093 replies
3/14lib/igt_kms: Rework pipe properties to be more atomic, v7.lib/igt_kms.c lib/igt_kms.h tests/kms_atomic_interruptible.c +2 more+159 -1614 replies
4/14lib/igt_kms: Allow setting any plane property through the universal pathlib/igt_kms.c+33 -61 reply
5/14lib/igt_kms: Allow setting any output property through the !atomic pathslib/igt_kms.c+37 -161 reply
6/14lib/igt_kms: Export property blob functions for output/pipe/plane, v2.lib/igt_kms.c lib/igt_kms.h tests/chamelium.c +1 more+110 -441 reply
7/14lib/igt_kms: Unexport broadcast rgb API.lib/igt_kms.c lib/igt_kms.h tests/chamelium.c+9 -451 reply
8/14lib/igt_kms: Add igt_$obj_has_prop functionslib/igt_kms.c lib/igt_kms.h tests/kms_crtc_background_color.c +1 more+62 -122 replies
9/14lib/igt_kms: Add igt_$obj_get_prop functionslib/igt_kms.c lib/igt_kms.h+105 -01 reply
10/14lib/igt_kms: Remove igt_pipe_get_propertylib/igt_kms.c lib/igt_kms.h+0 -131 reply
11/14lib/igt_kms: Remove igt_crtc_set_background()lib/igt_kms.c lib/igt_kms.h tests/kms_crtc_background_color.c+9 -311 reply
12/14tests/kms_color: Rework tests slightly to work better with new atomic apilib/igt_kms.c lib/igt_kms.h tests/kms_color.c+83 -1421 reply
13/14tests/chamelium: Remove reliance on output->config.pipetests/chamelium.c+14 -31 reply
14/14tests/kms_atomic: Convert/rewrite tests to use igt_kms frameworktests/kms_atomic.c+510 -11585 replies

Reviews trailers per patch

13 of 14 patches have a Reviewed-by or Acked-by.

PatchMika Kahola
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
14/14

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

Read the v2 thread

Cover letter [PATCH i-g-t v2 00/14] lib/igt_kms: Rewrite property handling to better match atomic.

The future is atomic!

Currently when we add new properties, each one requires new API to be added, even though the core wouldn't have to know anything about it. This can easily be fixed by making everything a property, and having the core functions handle some properties like fb and position separately.

Even with this in place it still makes sense to allow direct control of properties, so add some new API to allow this manipulation. How powerful it is can be seen in kms_atomic, which can finally be rewritten to use the new api.

We also extend the legacy paths to handle custom properties, so any tests aren't required to use the atomic api.

Changes since v1:
- Small fixes to chamelium compilation. Patchwork messed up so resending all.

Maarten Lankhorst (14):
lib/igt_kms: Rework connector properties to be more atomic, v2. lib/igt_kms: Rework plane properties to be more atomic, v5. lib/igt_kms: Rework pipe properties to be more atomic, v7. lib/igt_kms: Allow setting any plane property through the universal
path
lib/igt_kms: Allow setting any output property through the !atomic
paths
lib/igt_kms: Export property blob functions for output/pipe/plane, v2. lib/igt_kms: Unexport broadcast rgb API.
lib/igt_kms: Add igt_$obj_has_prop functions
lib/igt_kms: Add igt_$obj_get_prop functions
lib/igt_kms: Remove igt_pipe_get_property
lib/igt_kms: Remove igt_crtc_set_background() tests/kms_color: Rework tests slightly to work better with new atomic
api
tests/chamelium: Remove reliance on output->config.pipe tests/kms_atomic: Convert/rewrite tests to use igt_kms framework

 lib/igt_kms.c                     |  897 +++++++++++---------
 lib/igt_kms.h                     |  267 +++---
 tests/chamelium.c                 |   26 +-
 tests/kms_atomic.c                | 1668 ++++++++++++-------------------------
 tests/kms_atomic_interruptible.c  |   24 +-
 tests/kms_atomic_transition.c     |    2 +-
 tests/kms_color.c                 |  229 ++---
 tests/kms_crtc_background_color.c |   20 +-
 tests/kms_panel_fitting.c         |    2 +-
 tests/kms_rotation_crc.c          |   10 +-
 10 files changed, 1303 insertions(+), 1842 deletions(-)
Signature · 6 lines
2.14.1

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