All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 1/4] tests/kms_pipe_crc_basic: Skip invalid pipe/port combos
@ 2015-10-22 20:35 ville.syrjala
  2015-10-22 20:35 ` [PATCH i-g-t 2/4] lib: Skip suspend/hibernate tests if the system doesn't support them ville.syrjala
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: ville.syrjala @ 2015-10-22 20:35 UTC (permalink / raw)
  To: intel-gfx

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Don't try to test invaliud pipe/port combos. Fixes the test on
VLV w/ DSI since the pipe<->DSI port mapping is fixed. Should also
fix other platforms with similar restrictions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
---
 tests/kms_pipe_crc_basic.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/kms_pipe_crc_basic.c b/tests/kms_pipe_crc_basic.c
index a6ebf36..a3292c2 100644
--- a/tests/kms_pipe_crc_basic.c
+++ b/tests/kms_pipe_crc_basic.c
@@ -126,6 +126,12 @@ test_read_crc_for_output(data_t *data, int pipe, igt_output_t *output,
 		char *crc_str;
 
 		igt_output_set_pipe(output, pipe);
+		igt_display_commit(display);
+
+		if (!output->valid) {
+			igt_output_set_pipe(output, PIPE_ANY);
+			return 0;
+		}
 
 		igt_debug("Clearing the fb with color (%.02lf,%.02lf,%.02lf)\n",
 			  colors[c].r, colors[c].g, colors[c].b);
-- 
2.4.9

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-28  9:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 20:35 [PATCH i-g-t 1/4] tests/kms_pipe_crc_basic: Skip invalid pipe/port combos ville.syrjala
2015-10-22 20:35 ` [PATCH i-g-t 2/4] lib: Skip suspend/hibernate tests if the system doesn't support them ville.syrjala
2015-10-22 23:05   ` Daniel Vetter
2015-10-23 19:39   ` Jesse Barnes
2015-10-27  6:58     ` David Weinehall
2015-10-27 17:02       ` Jesse Barnes
2015-10-28  9:08         ` David Weinehall
2015-10-27 17:29       ` Ville Syrjälä
2015-10-28  9:10         ` David Weinehall
2015-10-22 20:35 ` [PATCH i-g-t 3/4] tests/kms_flip: Improve the accuracy of out frame time calculation ville.syrjala
2015-10-22 20:35 ` [PATCH i-g-t 4/4] tests/kms_flip: Dump the timestamps, counters, etc. with higher debug levels ville.syrjala

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.