From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05626CD37BE for ; Mon, 11 May 2026 17:20:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A3AF10E1DF; Mon, 11 May 2026 17:20:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="byslKGVJ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 823D110E837 for ; Mon, 11 May 2026 17:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778520021; x=1810056021; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3OLuTkAdPILxp1hoEZkJqAkXVXolxqWETeOj07cM95g=; b=byslKGVJY7eTxFjDVunG1h374mG3BZfZTHSbLk/yijuB8gV9KTbCHBJY vxYVbevCMqUJcMdngZD7M6D2jfEY8O/PEJfbUKA4iysGJO73WOergevK+ cjUPCiO0wZ6xWPHONxOxgU5M+0DtP9xCF2+mVRiuv/O41n9dZaQAtWJUo IvUVB6JpmfoxvRvdChugQ4VIXy8oX/WW69tXdDMss6UbxYo+6/CyJ/VOz 942QLUwZX/y7if+tkc+vjOv0xZ/eW6HExhf13qFIH2MAD4aa691falHQx rucDhheeR17+7/hoSGEYSDxgonVFTIg0jf16LJvU6DwInDPdZPjgu3+Bj A==; X-CSE-ConnectionGUID: SiCq5dHLQ7OxE3zpJI2eRQ== X-CSE-MsgGUID: jWiqPLmrTMibMbo41a0+XQ== X-IronPort-AV: E=McAfee;i="6800,10657,11783"; a="81979865" X-IronPort-AV: E=Sophos;i="6.23,229,1770624000"; d="scan'208";a="81979865" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2026 10:20:21 -0700 X-CSE-ConnectionGUID: zM2mTU8JQ4+BXmumkaUqzA== X-CSE-MsgGUID: 43XiwOb7ThCS+MWhS1PLvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,229,1770624000"; d="scan'208";a="233192583" Received: from jeevan-x299-aorus-gaming-3-pro.iind.intel.com ([10.227.90.91]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2026 10:20:19 -0700 From: Jeevan B 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 Subject: [PATCH i-g-t v4 6/7] tests/intel/kms_pm_dc: Add new test for DC3CO recovery after DC6 Date: Mon, 11 May 2026 22:48:19 +0530 Message-ID: <20260511171820.461666-7-jeevan.b@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260511171820.461666-1-jeevan.b@intel.com> References: <20260511171820.461666-1-jeevan.b@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Adds a test to verify DC3CO continues to function properly after a DC6 power cycle. Signed-off-by: Jeevan B --- tests/intel/kms_pm_dc.c | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c index 22ae51b51..6d2bd0ee1 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 @@ -629,6 +634,42 @@ static int has_panels_without_dc_support(igt_display_t *display) return external_panel; } +static void test_dc3co_after_dc6(data_t *data, enum psr_mode mode) +{ + uint32_t dc6_prev_cnt; + + 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 */ + 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), + "%s is not enabled\n", + mode == PSR_MODE_2 ? "PSR2" : "Panel Replay"); + + /* Trigger a DC6 cycle */ + dc6_prev_cnt = igt_read_dc_counter(data->debugfs_fd, IGT_INTEL_CHECK_DC6); + setup_dc_dpms(data); + dpms_off(data); + assert_dc_counter(data, IGT_INTEL_CHECK_DC6, dc6_prev_cnt); + dpms_on(data); + cleanup_dc_dpms(data); + + /* Re-enable PSR2/PR after DC6 exit */ + 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), + "%s not re-enabled after DC6 exit\n", + mode == PSR_MODE_2 ? "PSR2" : "Panel Replay"); + + /* 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; @@ -799,6 +840,30 @@ 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") { + igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd, + PSR_MODE_2, 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, PSR_MODE_2); + } + igt_dynamic("pr") { + igt_require(psr_sink_support(data.drm_fd, data.debugfs_fd, + PR_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, PR_MODE); + } + } + igt_describe("This test validates display engine entry to DC5 state " "while PSR is active"); igt_subtest("dc5-psr") { -- 2.43.0