Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Mohammed Thasleem <mohammed.thasleem@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH v3 2/2] tests/intel/kms_pm_dc: Add LNL platform for dc9-dpms validation
Date: Fri,  1 Dec 2023 15:37:25 +0530	[thread overview]
Message-ID: <20231201100725.8646-3-mohammed.thasleem@intel.com> (raw)
In-Reply-To: <20231201100725.8646-1-mohammed.thasleem@intel.com>

DC5 counter on disp ver >=14 is not expected to get reset in DC9 state.
Add LNL patform to use runtime_suspended_time value to validate DC9
dpms test.

v2: Update subject and commit message. (Swati)
v3: Move lib/intel_chipset.h changes in separate patch. (Kamil)

Cc: Swati Sharma <swati2.sharma@intel.com>
Signed-off-by: Mohammed Thasleem <mohammed.thasleem@intel.com>
---
 tests/intel/kms_pm_dc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/kms_pm_dc.c b/tests/intel/kms_pm_dc.c
index 8006e54de..0d5824e67 100644
--- a/tests/intel/kms_pm_dc.c
+++ b/tests/intel/kms_pm_dc.c
@@ -88,7 +88,7 @@
 #define KMS_HELPER "/sys/module/drm_kms_helper/parameters/"
 #define PACKAGE_CSTATE_PATH  "pmc_core/package_cstate_show"
 #define KMS_POLL_DISABLE 0
-#define DC9_RESETS_DC_COUNTERS(devid) (!(IS_DG1(devid) || IS_DG2(devid) || IS_METEORLAKE(devid)))
+#define DC9_RESETS_DC_COUNTERS(devid) (!(IS_DG1(devid) || IS_DG2(devid) || AT_LEAST_DISPLAY(devid, 14)))
 
 IGT_TEST_DESCRIPTION("Tests to validate display power DC states.");
 
@@ -505,7 +505,7 @@ static bool dc9_wait_entry(data_t *data, int dc_target, int prev_dc, int prev_rp
 	 * Runtime suspended residency should increment once DC9 is achieved;
 	 * this condition is valid for all platforms.
 	 * However, resetting of dc5/dc6 counter to check if display engine was in DC9;
-	 * this condition at present can be skipped for dg1, dg2 and MTL platforms.
+	 * this condition at present can be skipped for dg1, dg2 and MTL+ platforms.
 	 */
 	return igt_wait((read_runtime_suspended_time(data->drm_fd) > prev_rpm) &&
 			(!DC9_RESETS_DC_COUNTERS(data->devid) ||
-- 
2.25.1

  parent reply	other threads:[~2023-12-01 10:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-01 10:07 [igt-dev] [PATCH v3 0/2] LNL_DC9 Mohammed Thasleem
2023-12-01 10:07 ` [igt-dev] [PATCH v3 1/2] lib/intel_chipset: Add AT_LEAST_DISPLAY for display version compare Mohammed Thasleem
2023-12-01 10:45   ` Kamil Konieczny
2023-12-01 10:07 ` Mohammed Thasleem [this message]
2023-12-01 10:46   ` [igt-dev] [PATCH v3 2/2] tests/intel/kms_pm_dc: Add LNL platform for dc9-dpms validation Kamil Konieczny
2023-12-01 10:49   ` Sharma, Swati2
2023-12-01 12:04 ` [igt-dev] ✗ Fi.CI.BAT: failure for LNL_DC9 Patchwork
2023-12-01 12:08 ` [igt-dev] ✓ CI.xeBAT: success " Patchwork
2023-12-05 10:28 ` [igt-dev] ✓ Fi.CI.BAT: " Patchwork
2023-12-05 16:41 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20231201100725.8646-3-mohammed.thasleem@intel.com \
    --to=mohammed.thasleem@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox