Skip to contentSkip to conversation

tests/kms_atomic_allow_modeset: Add DRM_MODE_ATOMIC_ALLOW_MODESET test

PATCH New Mika Kahola 1 participant 1 message May 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 tests/kms_atomic_allow_modeset: Add DRM_MODE_ATOMIC_ALLOW_MODESET test

When doing a full atomic modeset, kernel should fail if the flag DRM_MODE_ATOMIC_ALLOW_MODESET is not set. Let's add this test as part of Intel-GPU-Tools. The test procedure is the following:

- Try to do atomic commit without DRM_MODE_ATOMIC_ALLOW_MODESET flag. Kernel should reject this request.
- Do full modeset/change active property
- Enable DRM_MODE_ATOMIC_ALLOW_MODESET and try to do atmic commit. Kernel should now allow atomic modeset.

For: VIZ-6955

v2: create own testcase (Maarten)
v3: add test for active property change (Maarten)

---
 tests/Makefile.sources           |   1 +
 tests/kms_atomic_allow_modeset.c | 229 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 230 insertions(+)
 create mode 100644 tests/kms_atomic_allow_modeset.c
tests/Makefile.sources +1 -0
index 9553e4d..220293c 100644
@@ -101,6 +101,7 @@ TESTS_progs_M = \
 	kms_addfb_basic \
 	kms_atomic \
 	kms_atomic_transition \
+	kms_atomic_allow_modeset \
 	kms_busy \
 	kms_ccs \
 	kms_chv_cursor_fail \
tests/kms_atomic_allow_modeset.c new file +229 -0

229 lines not on this page · raw message

Signature · 6 lines
2.7.4

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