[PATCH i-g-t] tests/kms_async: On suspend/resume additional flip required
Arun R Murthy
arun.r.murthy at intel.com
Tue Jun 10 05:40:21 UTC 2025
While on sync flips, when changing to async flip. the first async flip
will be sync flip so as to update the watermarks. Hence on alternate
sync/async test an additional flip is done when changing from sync to
async flip. Similarly on suspend/resume test, on resume the first flip
will be sync so for the first async flip an additional flip will be
required here as well.
Signed-off-by: Arun R Murthy <arun.r.murthy at intel.com>
---
tests/kms_async_flips.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 97128cfad..4483ffecd 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -388,7 +388,7 @@ static void test_async_flip(data_t *data)
do {
int flags = DRM_MODE_PAGE_FLIP_ASYNC | DRM_MODE_PAGE_FLIP_EVENT;
- if (data->alternate_sync_async) {
+ if (data->alternate_sync_async || data->suspend_resume) {
flags &= ~DRM_MODE_PAGE_FLIP_ASYNC;
ret = perform_flip(data, frame, flags);
@@ -420,7 +420,7 @@ static void test_async_flip(data_t *data)
gettimeofday(&end, NULL);
timersub(&end, &start, &diff);
- if (data->alternate_sync_async) {
+ if (data->alternate_sync_async || data->suspend_resume) {
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",
@@ -434,7 +434,7 @@ static void test_async_flip(data_t *data)
frame++;
} while (diff.tv_sec < RUN_TIME);
- if (!data->alternate_sync_async) {
+ if (!(data->alternate_sync_async || data->suspend_resume)) {
fps = frame * 1000 / RUN_TIME;
igt_assert_f((fps / 1000) > (data->refresh_rate * MIN_FLIPS_PER_FRAME),
"FPS should be significantly higher than the refresh rate\n");
--
2.25.1
More information about the Intel-gfx-trybot
mailing list