From: Karthik B S <karthik.b.s@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: sowmyax.kaparthi@intel.com
Subject: [igt-dev] [PATCH i-g-t] tests/kms_async_flips: Modify assert to fix failure seen on few platforms
Date: Mon, 12 Oct 2020 15:10:17 +0530 [thread overview]
Message-ID: <20201012094017.18019-1-karthik.b.s@intel.com> (raw)
Failure is seen on CI on few platforms as one of the flips in between is
taking longer time. To fix this, added a check to assert for individual
flips only for the alternate-sync-async-flip subtest. In the
async-flip-with-page-flip-events subtest we anyway check the overall FPS
at the end, so we do not need a check for individual flips and this should
take care of some random flip taking more time in between.
Also, reduced the MIN_FLIPS_PER_FRAME from 8 to 5 based on the failure
seen in CI.
Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/2521
Signed-off-by: Karthik B S <karthik.b.s@intel.com>
---
tests/kms_async_flips.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 40aaef2c..dea23cf9 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -39,7 +39,7 @@
*/
#define RUN_TIME 2
-#define MIN_FLIPS_PER_FRAME 8
+#define MIN_FLIPS_PER_FRAME 5
IGT_TEST_DESCRIPTION("Test asynchronous page flips.");
@@ -205,10 +205,12 @@ static void test_async_flip(data_t *data, bool alternate_sync_async)
gettimeofday(&end, NULL);
timersub(&end, &start, &diff);
- igt_assert_f(data->flip_interval < 1000.0 / (data->refresh_rate * MIN_FLIPS_PER_FRAME),
- "Flip interval not significantly smaller than vblank interval\n"
- "Flip interval: %lfms, Refresh Rate = %dHz, Threshold = %d\n",
- data->flip_interval, data->refresh_rate, MIN_FLIPS_PER_FRAME);
+ if (alternate_sync_async) {
+ igt_assert_f(data->flip_interval < 1000.0 / (data->refresh_rate * MIN_FLIPS_PER_FRAME),
+ "Flip interval not significantly smaller than vblank interval\n"
+ "Flip interval: %lfms, Refresh Rate = %dHz, Threshold = %d\n",
+ data->flip_interval, data->refresh_rate, MIN_FLIPS_PER_FRAME);
+ }
frame++;
} while (diff.tv_sec < RUN_TIME);
--
2.22.0
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2020-10-12 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-12 9:40 Karthik B S [this message]
2020-10-12 11:13 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_async_flips: Modify assert to fix failure seen on few platforms Patchwork
2020-10-12 16:56 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
[not found] ` <26a7a2dc43824cbb88294534d80645e1@intel.com>
[not found] ` <1377dfe2e86c489abc16bcebeced7b33@intel.com>
2020-11-20 4:33 ` Kunal Joshi
[not found] ` <2c25c93b7a4048e9a82eee9fccd88c9b@intel.com>
2020-11-18 4:21 ` [igt-dev] FW: [PATCH i-g-t] " Kunal Joshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201012094017.18019-1-karthik.b.s@intel.com \
--to=karthik.b.s@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=sowmyax.kaparthi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox