From 1b6eb414f36f3728f5c0393d8f4eefee74abdce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Tue, 9 Dec 2014 15:27:59 +0200 Subject: [PATCH] lib/igt_debugfs: Throw away the two first CRCs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On CHV we sometimes see not just one but two bad CRCs. No real idea what would cause that, but let's just throw away the second CRC as well to gain some stability for the tests. Signed-off-by: Ville Syrjälä --- lib/igt_debugfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c index 0b098eed..b44333e8 100644 --- a/lib/igt_debugfs.c +++ b/lib/igt_debugfs.c @@ -425,8 +425,11 @@ void igt_pipe_crc_start(igt_pipe_crc_t *pipe_crc) /* * For some no yet identified reason, the first CRC is bonkers. So * let's just wait for the next vblank and read out the buggy result. + * + * On CHV sometimes the second CRC is bonkers as well, so don't trust + * that one either. */ - igt_pipe_crc_get_crcs(pipe_crc, 1, &crcs); + igt_pipe_crc_get_crcs(pipe_crc, 2, &crcs); free(crcs); }