diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-15 13:27:36 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2018-02-15 14:12:27 +0100 |
commit | 8252cced6b0eaf77375f106989e36d3404ac5c5f (patch) | |
tree | 920aad2364a9e618ee64d275dfe7aadf0199e061 | |
parent | 0a700e095b2a47e99081b7bffce1e737863e0136 (diff) |
lib/igt_debugfs: Fix igt_pipe_get_crcs.
read_crc returns an error instead of 0 on timeout now, so handle
this correctly. This is a small error introduced in
commit 7d48c0252c384d18318de89c54817bdfe9c832fc
Author: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Date: Fri Feb 2 13:34:25 2018 +0100
lib/igt_debugfs: Add igt_pipe_crc_get_single and igt_pipe_crc_drain, v4.
It causes the kms_chv_cursor_fail to take 27 minutes, so fix this..
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r-- | lib/igt_debugfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index e2b15f9b..4a119985 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -794,10 +794,11 @@ igt_pipe_crc_get_crcs(igt_pipe_crc_t *pipe_crc, int n_crcs, int ret; ret = read_crc(pipe_crc, crc); + if (ret == -EAGAIN) + break; + if (ret < 0) continue; - if (ret == 0) - break; n++; } while (n < n_crcs); |