From 125e27ef21f80bcd0fdf3b7a7e4326e79b86a07d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 5 Oct 2016 17:25:20 +0100 Subject: igt/gem_exec_whisper: Tweaking the global seqno is not multiuser safe If we want to advance the seqno, we need to coordinate with all possible users. The kernel doesn't want to do that for a lowlevel debug feature, so it's up to userspace not to shoot itself in the foot. Signed-off-by: Chris Wilson --- tests/gem_exec_whisper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/gem_exec_whisper.c b/tests/gem_exec_whisper.c index e1be9199..d0117821 100644 --- a/tests/gem_exec_whisper.c +++ b/tests/gem_exec_whisper.c @@ -336,7 +336,7 @@ static void whisper(int fd, unsigned engine, unsigned flags) for (pass = 0; pass < 1024; pass++) { uint64_t offset; - if (child == 0) + if (!(flags & FORKED)) write_seqno(pass); if (flags & HANG) -- cgit v1.2.3