From bbc0b3cd92d9ba8bc9053e4546fbc5152a200d34 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Wed, 2 Aug 2017 11:57:32 +0200 Subject: 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 Cc: Daniel Stone Acked-by: Daniel Vetter #v1 Reviewed-by: Petri Latvala [mlankhorst: Document sleep values (Adrinael)] --- lib/igt_kms.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/igt_kms.h') diff --git a/lib/igt_kms.h b/lib/igt_kms.h index e5dc329b..3d1061fa 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -114,6 +114,7 @@ extern const char *igt_crtc_prop_names[]; enum igt_atomic_connector_properties { IGT_CONNECTOR_SCALING_MODE = 0, IGT_CONNECTOR_CRTC_ID, + IGT_CONNECTOR_DPMS, IGT_NUM_CONNECTOR_PROPS }; -- cgit v1.2.3