Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/i915_pm_dc: Check runtime suspend for DC9 test
@ 2023-08-14  9:56 Thasleem, Mohammed
  2023-08-14 10:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Thasleem, Mohammed @ 2023-08-14  9:56 UTC (permalink / raw)
  To: igt-dev; +Cc: Thasleem

As for MTL DC5 counter is not expected to get reset in DC9 state.
Add condition to check runtime_suspended_time value for both
igfx and dgfx to track DC9 dpms entry.

Signed-off-by: Thasleem, Mohammed <mohammed.thasleem@intel.com>
---
 tests/i915/i915_pm_dc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/i915/i915_pm_dc.c b/tests/i915/i915_pm_dc.c
index 90fe847fc..13ae31583 100644
--- a/tests/i915/i915_pm_dc.c
+++ b/tests/i915/i915_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)))
+#define DC9_RESETS_DC_COUNTERS(devid) (!(IS_DG1(devid) || IS_DG2(devid) || IS_METEORLAKE(devid)))
 
 IGT_TEST_DESCRIPTION("Tests to validate display power DC states.");
 
@@ -514,7 +514,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 and dg2 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.34.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-08-25  5:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14  9:56 [igt-dev] [PATCH i-g-t] tests/i915/i915_pm_dc: Check runtime suspend for DC9 test Thasleem, Mohammed
2023-08-14 10:52 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-08-14 11:12 ` [igt-dev] ○ CI.xeBAT: info " Patchwork
2023-08-14 13:19 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-08-14 16:32 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny
2023-08-24 17:15 ` [igt-dev] ✗ GitLab.Pipeline: warning for tests/i915/i915_pm_dc: Check runtime suspend for DC9 test (rev2) Patchwork
2023-08-24 17:45 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2023-08-24 17:52 ` [igt-dev] ✓ CI.xeBAT: " Patchwork
2023-08-24 21:07 ` [igt-dev] [PATCH i-g-t] tests/i915/i915_pm_dc: Fix dc9-dpms test on MTL Thasleem, Mohammed
2023-08-24 18:05   ` Kamil Konieczny
2023-08-25  5:35 ` [igt-dev] ✓ Fi.CI.IGT: success for tests/i915/i915_pm_dc: Check runtime suspend for DC9 test (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox