summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-10 11:03:30 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-10 11:03:35 +0300
commit524176c33ee2b79f78d454fa621e0d32e7e72488 (patch)
tree1a54f2251f7ae47f1b4d61ebd5f282b5400becbc /utils
parent4ca4852eac209cc822252c5b17b1e8f2ce8b2c6c (diff)
kmstest: give an error if master permissions could not be set
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/kmstest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp
index 06e00ba..698ad25 100644
--- a/utils/kmstest.cpp
+++ b/utils/kmstest.cpp
@@ -1101,6 +1101,9 @@ int main(int argc, char **argv)
Card card(s_device_path);
+ if (!card.is_master())
+ EXIT("Could not get DRM master permission. Card already in use?");
+
if (!card.has_atomic() && s_flip_sync)
EXIT("Synchronized flipping requires atomic modesetting");