projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8e5313
)
lib: set a timeout when reading crc values
author
Thomas Wood
<thomas.wood@intel.com>
Mon, 12 May 2014 09:20:55 +0000
(10:20 +0100)
committer
Thomas Wood
<thomas.wood@intel.com>
Wed, 14 May 2014 11:33:02 +0000
(12:33 +0100)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Acked-by: Damien Lespiau <damien.lespiau@intel.com>
lib/igt_debugfs.c
patch
|
blob
|
history
diff --git
a/lib/igt_debugfs.c
b/lib/igt_debugfs.c
index
4fd2e5a
..
0912f5b
100644
(file)
--- a/
lib/igt_debugfs.c
+++ b/
lib/igt_debugfs.c
@@
-459,7
+459,10
@@
static bool read_one_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out)
ssize_t bytes_read;
char buf[pipe_crc->buffer_len];
+ igt_set_timeout(5);
bytes_read = read(pipe_crc->crc_fd, &buf, pipe_crc->line_len);
+ igt_set_timeout(0);
+
igt_assert_cmpint(bytes_read, ==, pipe_crc->line_len);
buf[bytes_read] = '\0';