From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: dibin.moolakadan.subrahmanian@intel.com,
mohammed.thasleem@intel.com, Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t 2/4] tests/intel/kms_pm_dc: Enable DC3CO test for PSR2/PR modes
Date: Tue, 3 Mar 2026 15:09:26 +0530 [thread overview]
Message-ID: <20260303093928.569925-3-jeevan.b@intel.com> (raw)
In-Reply-To: <20260303093928.569925-1-jeevan.b@intel.com>
Enable DC3CO with PSR2/PR mode on TGL and for platforms with
display version greater than 35.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_pm_dc.c | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 507b6168d..10450474a 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -315,19 +315,19 @@ static void check_dc3co_with_videoplayback_like_load(data_t *data)
check_dc_counter(data, IGT_INTEL_CHECK_DC3CO, dc3co_prev_cnt);
}
-static void setup_dc3co(data_t *data)
+static void setup_dc3co(data_t *data, enum psr_mode mode)
{
- data->op_psr_mode = PSR_MODE_2;
+ data->op_psr_mode = mode;
psr_enable(data->drm_fd, data->debugfs_fd, data->op_psr_mode, NULL);
igt_require_f(psr_wait_entry(data->debugfs_fd, data->op_psr_mode, NULL),
- "PSR2 is not enabled\n");
+ "PSR2/PR is not enabled\n");
}
-static void test_dc3co_vpb_simulation(data_t *data)
+static void test_dc3co_vpb_simulation(data_t *data, enum psr_mode mode)
{
igt_require_dc_counter(data->debugfs_fd, IGT_INTEL_CHECK_DC3CO);
setup_output(data);
- setup_dc3co(data);
+ setup_dc3co(data, mode);
setup_videoplayback(data);
check_dc3co_with_videoplayback_like_load(data);
cleanup_dc3co_fbs(data);
@@ -638,10 +638,26 @@ int igt_main()
igt_describe("In this test we make sure that system enters DC3CO "
"when PSR2 is active and system is in SLEEP state");
- igt_subtest("dc3co-vpb-simulation") {
- igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd,
- PSR_MODE_2, NULL));
- test_dc3co_vpb_simulation(&data);
+ igt_subtest_with_dynamic("dc3co-vpb-simulation") {
+ int modes[] = {PSR_MODE_2, PR_MODE};
+ const char *append_subtest_name[2] = {
+ "psr2-",
+ "pr-",
+ };
+
+ for (int i = 0; i < ARRAY_SIZE(modes); i++) {
+ igt_dynamic_f("%s-dc3co-basic", append_subtest_name[i]) {
+ igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd,
+ modes[i], NULL));
+
+ if (modes[i] == PSR_MODE_2)
+ igt_require(IS_TIGERLAKE(data.devid) ||
+ intel_display_ver(data.devid) >= 35);
+ else if (modes[i] == PR_MODE)
+ igt_require(intel_display_ver(data.devid) >= 35);
+ test_dc3co_vpb_simulation(&data, modes[i]);
+ }
+ }
}
igt_describe("This test validates display engine entry to DC5 state "
--
2.43.0
next prev parent reply other threads:[~2026-03-03 9:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-03 9:39 [PATCH i-g-t 0/4] Enable and Add new tests for DC3CO Jeevan B
2026-03-03 9:39 ` [PATCH i-g-t 1/4] tests/intel/kms_pm_dc: Replace require with proper assertion Jeevan B
2026-03-03 9:39 ` Jeevan B [this message]
2026-03-03 9:39 ` [PATCH i-g-t 3/4] tests/kms_vrr: Add new test for DC3CO validation with LOBF Jeevan B
2026-03-03 9:39 ` [PATCH i-g-t 4/4] tests/intel/kms_pm_dc: Add new test for dc3co framedrop validation Jeevan B
-- strict thread matches above, loose matches on Subject: below --
2026-03-04 4:38 [PATCH i-g-t 0/4] Enable and Add new tests for DC3CO Jeevan B
2026-03-04 4:38 ` [PATCH i-g-t 2/4] tests/intel/kms_pm_dc: Enable DC3CO test for PSR2/PR modes Jeevan B
2026-04-09 6:06 ` Thasleem, Mohammed
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=20260303093928.569925-3-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=dibin.moolakadan.subrahmanian@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=mohammed.thasleem@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 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.