diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-05 17:25:20 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-10-05 20:14:26 +0100 |
commit | 125e27ef21f80bcd0fdf3b7a7e4326e79b86a07d (patch) | |
tree | fd3bea16a44e9004a12c3c6b95756deb8782ee9a /tests/gem_exec_whisper.c | |
parent | 18cd796cf6fb5f18c2616a17f0510765b961de13 (diff) |
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_exec_whisper.c')
-rw-r--r-- | tests/gem_exec_whisper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |