From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: animesh.manna@intel.com, dibin.moolakadan.subrahmanian@intel.com,
mohammed.thasleem@intel.com, ramanaidu.naladala@intel.com,
Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t v6 6/7] tests/intel/kms_pm_dc: Add new test for DC3CO recovery after DC6
Date: Fri, 15 May 2026 21:08:36 +0530 [thread overview]
Message-ID: <20260515153838.841048-7-jeevan.b@intel.com> (raw)
In-Reply-To: <20260515153838.841048-1-jeevan.b@intel.com>
Adds a test to verify DC3CO continues to function properly
after a DC6 power cycle.
v2: Use test_dc_state_dpms for the DPMS/DC6 cycle.
Drop redundant PSR re-enable after DPMS/DC6.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_pm_dc.c | 51 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 4497cffb7..0f216d9eb 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -55,6 +55,11 @@
* Description: Verify that DC3CO entry does not cause frame drops and successfully
* enters the power state
*
+ * SUBTEST: dc3co-after-dc6
+ * Description: Verify DC3CO entry is still functional after a DC6 entry and
+ * exit cycle, ensuring DC3CO is not broken by deeper power state
+ * transitions.
+ *
* SUBTEST: dc5-dpms
* Description: Validate display engine entry to DC5 state while all connectors's
* DPMS property set to OFF
@@ -628,6 +633,25 @@ static int has_panels_without_dc_support(igt_display_t *display)
return external_panel;
}
+static void test_dc3co_after_dc6(data_t *data)
+{
+ igt_require_dc_counter(data->debugfs_fd, IGT_INTEL_CHECK_DC3CO);
+ igt_require_dc_counter(data->debugfs_fd, IGT_INTEL_CHECK_DC6);
+
+ setup_output(data);
+
+ /* Enable PSR2/PR */
+ setup_dc3co(data);
+
+ /* Trigger a DC6 cycle through DPMS */
+ test_dc_state_dpms(data, IGT_INTEL_CHECK_DC6);
+
+ /* Verify DC3CO still works after DC6 */
+ setup_videoplayback(data);
+ check_dc3co_with_videoplayback_like_load(data);
+ cleanup_dc3co_fbs(data);
+}
+
static void test_deep_pkgc_state(data_t *data)
{
unsigned int pre_val = 0, cur_val = 0;
@@ -801,6 +825,33 @@ int igt_main()
}
}
+ igt_describe("Verify DC3CO entry is still functional after a DC6 entry "
+ "and exit cycle");
+ igt_subtest_with_dynamic("dc3co-after-dc6") {
+ igt_dynamic("psr2") {
+ data.op_psr_mode = PSR_MODE_2;
+ igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd,
+ data.op_psr_mode, NULL));
+ igt_require_f(IS_TIGERLAKE(data.devid) ||
+ intel_display_ver(data.devid) >= 35,
+ "Platform does not support DC3CO with PSR2\n");
+ igt_require_f(igt_pm_pc8_plus_residencies_enabled(data.msr_fd),
+ "PC8+ residencies not supported\n");
+ test_dc3co_after_dc6(&data);
+ }
+
+ igt_dynamic("pr") {
+ data.op_psr_mode = PR_MODE;
+ igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd,
+ data.op_psr_mode, NULL));
+ igt_require_f(intel_display_ver(data.devid) >= 35,
+ "Platform does not support DC3CO with Panel Replay\n");
+ igt_require_f(igt_pm_pc8_plus_residencies_enabled(data.msr_fd),
+ "PC8+ residencies not supported\n");
+ test_dc3co_after_dc6(&data);
+ }
+ }
+
igt_describe("This test validates display engine entry to DC5 state "
"while PSR is active");
igt_subtest("dc5-psr") {
--
2.43.0
next prev parent reply other threads:[~2026-05-15 15:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 15:38 [PATCH i-g-t v6 0/7] Enable and Add new tests for DC3CO Jeevan B
2026-05-15 15:38 ` [PATCH i-g-t v6 1/7] tests: s/check_dc_counter/assert_dc_counter Jeevan B
2026-05-15 15:38 ` [PATCH i-g-t v6 2/7] tests/intel/kms_pm_dc: Replace require with proper assertion Jeevan B
2026-05-15 15:38 ` [PATCH i-g-t v6 3/7] tests/intel/kms_pm_dc: Enable DC3CO test for PSR2/PR modes Jeevan B
2026-05-15 15:38 ` [PATCH i-g-t v6 4/7] tests/kms_vrr: Add new test for DC3CO validation with LOBF Jeevan B
2026-05-15 15:38 ` [PATCH i-g-t v6 5/7] tests/intel/kms_pm_dc: Add new test for dc3co framedrop validation Jeevan B
2026-05-15 15:38 ` Jeevan B [this message]
2026-05-15 15:38 ` [PATCH i-g-t v6 7/7] tests/intel/kms_pm_dc: Add dc3co-vpb-framegap subtest Jeevan B
2026-05-15 18:18 ` ✓ i915.CI.BAT: success for Enable and Add new tests for DC3CO Patchwork
2026-05-15 18:23 ` ✓ Xe.CI.BAT: " Patchwork
2026-05-16 8:19 ` ✗ i915.CI.Full: failure " Patchwork
2026-05-16 8:58 ` ✗ Xe.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=20260515153838.841048-7-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=animesh.manna@intel.com \
--cc=dibin.moolakadan.subrahmanian@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=mohammed.thasleem@intel.com \
--cc=ramanaidu.naladala@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