From: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com,
Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
Subject: [PATCH i-g-t v6 1/1] tests/kms_async_flips: Async flips suspend resume test
Date: Mon, 30 Sep 2024 17:34:10 +0530 [thread overview]
Message-ID: <20240930120410.1023320-2-santhosh.reddy.guddati@intel.com> (raw)
In-Reply-To: <20240930120410.1023320-1-santhosh.reddy.guddati@intel.com>
Test functionality of async flips with suspend and resume
v2: Re-use existing function and use s/r API (Swathi)
v6: Remove HAX patch
Signed-off-by: Santhosh Reddy Guddati <santhosh.reddy.guddati@intel.com>
---
tests/kms_async_flips.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 5b70c4033..08510e70d 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -66,6 +66,9 @@
*
* SUBTEST: invalid-async-flip
* Description: Negative case to verify if changes in fb are rejected from kernel as expected
+ *
+ * SUBTEST: async-flip-suspend-resume
+ * Description: Verify the async flip functionality with suspend and resume cycle
*/
#define CURSOR_POS 128
@@ -99,6 +102,7 @@ typedef struct {
bool flip_pending;
enum pipe pipe;
bool alternate_sync_async;
+ bool suspend_resume;
bool allow_fail;
struct buf_ops *bops;
} data_t;
@@ -260,6 +264,7 @@ static void test_async_flip(data_t *data)
int ret, frame;
long long int fps;
struct timeval start, end, diff;
+ int suspend_time = 1;
igt_display_commit2(&data->display, data->display.is_atomic ? COMMIT_ATOMIC : COMMIT_LEGACY);
@@ -312,6 +317,10 @@ static void test_async_flip(data_t *data)
data->flip_interval, data->refresh_rate, MIN_FLIPS_PER_FRAME);
}
+ if (data->suspend_resume && diff.tv_sec == suspend_time) {
+ igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+ suspend_time = 0;
+ }
frame++;
} while (diff.tv_sec < RUN_TIME);
@@ -750,6 +759,12 @@ igt_main
run_test(&data, test_crc);
}
+ igt_describe("Verify the async flip functionality after suspend and resume cycle");
+ igt_subtest_with_dynamic("async-flip-suspend-resume") {
+ data.suspend_resume = true;
+ run_test(&data, test_async_flip);
+ }
+
igt_fixture {
for (i = 0; i < NUM_FBS; i++)
igt_remove_fb(data.drm_fd, &data.bufs[i]);
--
2.34.1
next prev parent reply other threads:[~2024-09-30 12:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-30 12:04 [PATCH i-g-t v6 0/1] tests/kms_async_flips: Async flips suspend resume test Santhosh Reddy Guddati
2024-09-30 12:04 ` Santhosh Reddy Guddati [this message]
2024-10-03 4:39 ` [PATCH i-g-t v6 1/1] " Karthik B S
2024-09-30 14:01 ` ✓ Fi.CI.BAT: success for tests/kms_async_flips: Async flips suspend resume test (rev6) Patchwork
2024-09-30 14:13 ` ✓ CI.xeBAT: " Patchwork
2024-09-30 17:23 ` ✗ CI.xeFULL: failure " Patchwork
2024-09-30 20:58 ` ✗ Fi.CI.IGT: " Patchwork
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=20240930120410.1023320-2-santhosh.reddy.guddati@intel.com \
--to=santhosh.reddy.guddati@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@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