From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jouni.hogander@intel.com, kamil.konieczny@intel.com,
Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport
Date: Mon, 24 Jun 2024 23:45:33 +0530 [thread overview]
Message-ID: <20240624181533.1600552-3-jeevan.b@intel.com> (raw)
In-Reply-To: <20240624181533.1600552-1-jeevan.b@intel.com>
Add checks weather early transport if supported then
we check if early trasport is working.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_psr2_sf.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index 4c3e34aa0..e612b8266 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -168,6 +168,7 @@ typedef struct {
igt_plane_t *test_plane;
bool big_fb_test;
bool fbc_flag;
+ bool et_flag;
cairo_t *cr;
uint32_t screen_changes;
int cur_x, cur_y;
@@ -184,11 +185,23 @@ static bool set_sel_fetch_mode_for_output(data_t *data)
{
bool supported = false;
+ data->et_flag = false;
+
if (psr_sink_support(data->drm_fd, data->debugfs_fd,
- PR_MODE_SEL_FETCH, data->output)) {
+ PR_MODE_SEL_FETCH_ET, data->output)) {
+ supported = true;
+ data->psr_mode = PR_MODE_SEL_FETCH;
+ data->et_flag = true;
+ } else if (psr_sink_support(data->drm_fd, data->debugfs_fd,
+ PR_MODE_SEL_FETCH, data->output)) {
supported = true;
data->psr_mode = PR_MODE_SEL_FETCH;
} else if (psr_sink_support(data->drm_fd, data->debugfs_fd,
+ PSR_MODE_2_ET, data->output)) {
+ supported = true;
+ data->psr_mode = PSR_MODE_2;
+ data->et_flag = true;
+ } else if (psr_sink_support(data->drm_fd, data->debugfs_fd,
PSR_MODE_2, data->output)) {
supported = true;
data->psr_mode = PSR_MODE_2;
@@ -916,6 +929,9 @@ static void run(data_t *data)
igt_assert_f(intel_fbc_wait_until_enabled(data->drm_fd,
data->pipe),
"FBC still disabled\n");
+ if (data->et_flag)
+ igt_assert_f(early_transport_check(data->debugfs_fd),
+ "Early Trasport Disbaled\n");
data->screen_changes = 0;
--
2.25.1
next prev parent reply other threads:[~2024-06-24 18:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-24 18:15 [PATCH i-g-t 0/2] Early Transport Support Jeevan B
2024-06-24 18:15 ` [PATCH i-g-t 1/2] lib/igt_psr: Added library functions for early trasport Jeevan B
2024-06-25 8:44 ` Hogander, Jouni
2024-06-25 10:55 ` Saarinen, Jani
2024-06-24 18:15 ` Jeevan B [this message]
2024-06-25 8:44 ` [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport Hogander, Jouni
2024-06-24 18:55 ` ✓ CI.xeBAT: success for Early Transport Support (rev5) Patchwork
2024-06-24 19:04 ` ✓ Fi.CI.BAT: " Patchwork
2024-06-24 22:46 ` ✗ CI.xeFULL: failure " Patchwork
2024-06-25 9:50 ` B, Jeevan
2024-06-26 2:15 ` ✗ Fi.CI.IGT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-06-24 9:19 [PATCH i-g-t 0/2] Early Transport Support Jeevan B
2024-06-24 9:19 ` [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport Jeevan B
2024-06-20 4:33 [PATCH i-g-t 0/2] Early Transport Support Jeevan B
2024-06-20 4:33 ` [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport Jeevan B
2024-06-12 11:06 [PATCH i-g-t 0/2] Early Transport Support Jeevan B
2024-06-12 11:06 ` [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport Jeevan B
2024-06-13 10:41 ` Hogander, Jouni
2024-06-19 15:33 ` B, Jeevan
2024-05-20 9:46 [PATCH i-g-t 0/2] Early Transport Support Jeevan B
2024-05-20 9:46 ` [PATCH i-g-t 2/2] tests/intel/kms_psr2_sf: Add checks for early transport Jeevan B
2024-05-31 7:06 ` Hogander, Jouni
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=20240624181533.1600552-3-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jouni.hogander@intel.com \
--cc=kamil.konieczny@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