From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4DBC96EA53 for ; Thu, 2 Apr 2020 11:07:33 +0000 (UTC) From: Mika Kahola Date: Thu, 2 Apr 2020 14:07:29 +0300 Message-Id: <20200402110729.18305-1-mika.kahola@intel.com> MIME-Version: 1.0 Subject: [igt-dev] [PATCH i-g-t] tests/kms_cursor_legacy: Wait for an extra vblank List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org List-ID: kms_cursor_legacy IGT subtest 2x-nonblocking-modeset-vs-cursor-atomic is failing due to busyness while trying to do atomic commit. In case, we are busy, let's just wait one extra vblank before continuing the test. References: https://gitlab.freedesktop.org/drm/intel/issues/1062 Signed-off-by: Mika Kahola --- tests/kms_cursor_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_cursor_legacy.c b/tests/kms_cursor_legacy.c index d5f95b8d..13aadcce 100644 --- a/tests/kms_cursor_legacy.c +++ b/tests/kms_cursor_legacy.c @@ -894,7 +894,6 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, bool arg2[1].x = arg2[1].y = 192; - igt_display_commit2(display, display->is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY); igt_fork(child, 2) { @@ -927,6 +926,7 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, bool if (ret == -EBUSY) { /* Force completion on both pipes, and generate event. */ + igt_wait_for_vblank(display->drm_fd, pipe); igt_display_commit_atomic(display, flags, NULL); while (nloops--) { -- 2.20.1 _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev