From: Mohammed Thasleem <mohammed.thasleem@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Mohammed Thasleem <mohammed.thasleem@intel.com>,
Jeevan B <jeevan.b@intel.com>
Subject: [PATCH v4 2/2] tests/intel/kms_pm_dc: Add DC5 PSR suspend/resume validation test
Date: Wed, 10 Jun 2026 12:32:53 +0530 [thread overview]
Message-ID: <20260610070253.25329-3-mohammed.thasleem@intel.com> (raw)
In-Reply-To: <20260610070253.25329-1-mohammed.thasleem@intel.com>
This test validates display engine entry to DC5 state while PSR is active,
performs suspend/resume cycle, and verifies DC5 entry is restored after
resume.
v2: Update test description and psr cleanup. (Jeevan)
v3: Add igt_info log during test cycle. (Jeevan)
Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
Reviewed-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_pm_dc.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 521521196..2e7e4af92 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -83,6 +83,9 @@
*
* SUBTEST: dc5-dpms-suspend-resume
* Description: This test validates DC5 state entry before and after a suspend/resume cycle using DPMS
+ *
+ * SUBTEST: dc5-psr-suspend-resume
+ * Description: This test validates DC5 state entry while PSR is active before and after a suspend/resume cycle
*/
#define PWR_DOMAIN_INFO "i915_power_domain_info"
@@ -683,6 +686,18 @@ static void test_dc5_dpms_suspend_resume(data_t *data, int dc_flag)
test_dc_state_dpms(data, dc_flag);
}
+static void test_dc5_psr_suspend_resume(data_t *data, int dc_flag)
+{
+ igt_info("Testing DC5 state before suspend\n");
+ test_dc_state_psr(data, dc_flag);
+
+ igt_info("Starting suspend/resume cycle\n");
+ igt_system_suspend_autoresume(SUSPEND_STATE_MEM, SUSPEND_TEST_NONE);
+
+ igt_info("Testing DC5 state after resume\n");
+ test_dc_state_psr(data, dc_flag);
+}
+
static void kms_poll_state_restore(int sig)
{
int sysfs_fd;
@@ -821,6 +836,17 @@ int igt_main()
igt_subtest("dc5-dpms-suspend-resume")
test_dc5_dpms_suspend_resume(&data, IGT_INTEL_CHECK_DC5);
+ igt_describe("This test validates DC5 state entry while PSR is active "
+ "before and after a suspend/resume cycle");
+ igt_subtest("dc5-psr-suspend-resume") {
+ igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd,
+ PSR_MODE_1, NULL));
+ data.op_psr_mode = PSR_MODE_1;
+ psr_enable(data.drm_fd, data.debugfs_fd, data.op_psr_mode, NULL);
+ test_dc5_psr_suspend_resume(&data, IGT_INTEL_CHECK_DC5);
+ psr_disable(data.drm_fd, data.debugfs_fd, NULL);
+ }
+
igt_fixture() {
free(data.debugfs_dump);
close(data.debugfs_fd);
--
2.43.0
next prev parent reply other threads:[~2026-06-10 7:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-10 7:02 [PATCH v4 0/2] DC5 DPMS/PSR suspend/resume validation test Mohammed Thasleem
2026-06-10 7:02 ` [PATCH v4 1/2] tests/intel/kms_pm_dc: Add DC5 DPMS " Mohammed Thasleem
2026-06-10 7:02 ` Mohammed Thasleem [this message]
2026-06-10 21:22 ` ✓ Xe.CI.BAT: success for DC5 DPMS/PSR " Patchwork
2026-06-10 22:03 ` ✓ i915.CI.BAT: " Patchwork
2026-06-11 3:14 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-11 7:03 ` ✓ Xe.CI.BAT: success for DC5 DPMS/PSR suspend/resume validation test (rev2) Patchwork
2026-06-11 7:26 ` ✓ i915.CI.BAT: " Patchwork
2026-06-11 14:36 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-11 18:23 ` ✗ i915.CI.Full: failure for DC5 DPMS/PSR suspend/resume validation test Patchwork
2026-06-12 1:57 ` ✗ i915.CI.Full: failure for DC5 DPMS/PSR suspend/resume validation test (rev2) Patchwork
2026-06-14 8:18 ` ✓ Xe.CI.BAT: success for DC5 DPMS/PSR suspend/resume validation test (rev3) Patchwork
2026-06-14 8:42 ` ✓ i915.CI.BAT: " Patchwork
2026-06-14 9:19 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-14 10:38 ` ✗ i915.CI.Full: " 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=20260610070253.25329-3-mohammed.thasleem@intel.com \
--to=mohammed.thasleem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jeevan.b@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