From: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> Currently kms_flip leaks the state of the pipes from one subtest to the next. Meaning a single pipe test can actually have two or more pipes actually up and running, and similarly a two pipe test can have three pipes running. This is particularly nasty on IVB since one of the pipes still running but not actually part of the test maybe have reserved the shared FDI lanes, thus preventing one of the pipes taking part in the test from being enabled. To avoid such problems explicitly disable all pipes before each subtests. v2: Use kmstest_unset_all_crtcs() (Paulo) Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> --- tests/kms_flip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 649678c..8bba121 100644 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1425,6 +1425,8 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, for (i = 0; i < o->count; i++) kmstest_dump_mode(&o->kmode[i]); + kmstest_unset_all_crtcs(drm_fd, resources); + if (set_mode(o, o->fb_ids[0], 0, 0)) { /* We may fail to apply the mode if there are hidden * constraints, such as bandwidth on the third pipe. -- 2.4.10 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx