summaryrefslogtreecommitdiff
path: root/lib/igt_kms.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-08-02 11:57:32 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-09-12 14:35:08 +0200
commitbbc0b3cd92d9ba8bc9053e4546fbc5152a200d34 (patch)
treedb5d2c0a2f180f7974e1b5405c4dcc2c9b2cf8a2 /lib/igt_kms.c
parent1c6e20deb30e4fc059183f1cf3f832b500b89464 (diff)
tests: Add kms_atomic_interruptible test, v4.
This tests the various parts of atomic that I want to make interruptible. Running with --debug shows the stats from __igt_sigiter_continue, which can be used to make sure that we don't fall over. The default igt kms helpers use drmIoctl, which is not intercepted by igt_while_interruptible. Only igt_ioctl is. This means we have to call the ioctls manually here. Changes since v1: - Implement interruptible DPMS checking too. - Use igt_ioctl + igt_while_interruptible, instead of the signal helper shotgun. Changes since v2: - Bump whitespace to get rid of the weird double } at same indent. - Use more newlines in the call to the atomic ioctl. Changes since v3: - Fix copyright on year. (Adrinael) - Use do_ioctl instead of do_or_die(igt_ioctl) (ickle). - Add test description. (Adrinael) Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Cc: Daniel Stone <daniels@collabora.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> #v1 Reviewed-by: Petri Latvala <petri.latvala@intel.com> [mlankhorst: Document sleep values (Adrinael)]
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r--lib/igt_kms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 72fde792..7bcafc07 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -186,7 +186,8 @@ const char *igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = {
const char *igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
"scaling mode",
- "CRTC_ID"
+ "CRTC_ID",
+ "DPMS"
};
/*