From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/2] tests/intel/kms_psr2_sf: Add FBC support to PSR2 tests
Date: Tue, 21 Nov 2023 11:53:19 +0530 [thread overview]
Message-ID: <20231121062320.1860993-2-jeevan.b@intel.com> (raw)
In-Reply-To: <20231121062320.1860993-1-jeevan.b@intel.com>
For intel_display_ver 20, FBC can be enabled along with PSR/PSR2,
thereby adding FBC checks to validate this scenario.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_psr2_sf.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/tests/intel/kms_psr2_sf.c b/tests/intel/kms_psr2_sf.c
index a597c8701..f49c6dfbf 100644
--- a/tests/intel/kms_psr2_sf.c
+++ b/tests/intel/kms_psr2_sf.c
@@ -26,6 +26,7 @@
#include "igt_sysfs.h"
#include "igt_psr.h"
#include "kms_dsc_helper.h"
+#include "i915/intel_fbc.h"
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
@@ -160,6 +161,7 @@ typedef struct {
int test_plane_id;
igt_plane_t *test_plane;
bool big_fb_test;
+ bool fbc_flag;
cairo_t *cr;
uint32_t screen_changes;
int cur_x, cur_y;
@@ -865,6 +867,11 @@ static void run(data_t *data)
igt_assert(psr_wait_entry(data->debugfs_fd, PSR_MODE_2, NULL));
+ if (data->fbc_flag)
+ igt_assert_f(intel_fbc_wait_until_enabled(data->drm_fd,
+ data->pipe),
+ "FBC still disabled");
+
data->screen_changes = 0;
switch (data->op) {
@@ -986,6 +993,12 @@ igt_main
display_init(&data);
+ if ((intel_display_ver(intel_get_drm_devid(data.drm_fd) == 20)) &&
+ (intel_fbc_supported_on_chipset(data.drm_fd, data.pipe))) {
+ data.fbc_flag = true;
+ intel_fbc_enable(data.drm_fd);
+ }
+
/* Test if PSR2 can be enabled */
igt_require_f(psr_enable(data.drm_fd,
data.debugfs_fd, PSR_MODE_2_SEL_FETCH),
--
2.25.1
next prev parent reply other threads:[~2023-11-21 6:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-21 6:23 [igt-dev] [PATCH i-g-t 0/2] Add FBC support to PSR/PSR2 tests Jeevan B
2023-11-21 6:23 ` Jeevan B [this message]
2023-11-21 6:23 ` [igt-dev] [PATCH i-g-t 2/2] tests/intel/kms_psr: " Jeevan B
2023-11-21 7:50 ` [igt-dev] ✗ GitLab.Pipeline: warning for " Patchwork
2023-11-21 8:28 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-11-21 8:48 ` [igt-dev] ✗ CI.xeBAT: failure " Patchwork
2023-11-21 10:54 ` [igt-dev] ✓ Fi.CI.BAT: success for Add FBC support to PSR/PSR2 tests (rev2) Patchwork
2023-11-21 10:55 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-11-21 23:00 ` [igt-dev] ✗ Fi.CI.IGT: failure for Add FBC support to PSR/PSR2 tests Patchwork
2023-11-22 4:30 ` [igt-dev] ✗ Fi.CI.IGT: failure for Add FBC support to PSR/PSR2 tests (rev2) 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=20231121062320.1860993-2-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.