From 524176c33ee2b79f78d454fa621e0d32e7e72488 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Mon, 10 Sep 2018 11:03:30 +0300 Subject: kmstest: give an error if master permissions could not be set Signed-off-by: Tomi Valkeinen --- utils/kmstest.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils') 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"); -- cgit v1.2.3