public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] tests/intel/xe_pm_residency: Fix suspend duration calculation
@ 2026-03-23  7:02 Sk Anirban
  2026-03-23  9:30 ` Jani Nikula
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Sk Anirban @ 2026-03-23  7:02 UTC (permalink / raw)
  To: igt-dev
  Cc: anshuman.gupta, badal.nilawar, riana.tauro, karthik.poosa,
	raag.jadav, soham.purkait, mallesh.koujalagi, vinay.belgaumkar,
	Sk Anirban

Fix the unit mismatch caused by interpreting seconds as milliseconds
during suspend duration calculations. Apply MSEC_PER_SEC multiplier
to ensure correct unit handling.

Signed-off-by: Sk Anirban <sk.anirban@intel.com>
---
 tests/intel/xe_pm_residency.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/xe_pm_residency.c b/tests/intel/xe_pm_residency.c
index 61b63ed4f..46718a444 100644
--- a/tests/intel/xe_pm_residency.c
+++ b/tests/intel/xe_pm_residency.c
@@ -223,7 +223,7 @@ static void test_idle_residency(int fd, int gt, enum test_type flag)
 		 * elapsed time during suspend is approximately equal to autoresume delay
 		 * when a full suspend cycle(SUSPEND_TEST_NONE) is used.
 		 */
-		elapsed_ms = igt_get_autoresume_delay(SUSPEND_STATE_FREEZE);
+		elapsed_ms = igt_get_autoresume_delay(SUSPEND_STATE_FREEZE) * MSEC_PER_SEC;
 		residency_start = read_idle_residency(fd, gt);
 		igt_system_suspend_autoresume(SUSPEND_STATE_FREEZE, SUSPEND_TEST_NONE);
 		residency_end = read_idle_residency(fd, gt);
-- 
2.43.0


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

end of thread, other threads:[~2026-03-23 18:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23  7:02 [PATCH] tests/intel/xe_pm_residency: Fix suspend duration calculation Sk Anirban
2026-03-23  9:30 ` Jani Nikula
2026-03-23  9:41   ` Anirban, Sk
2026-03-23  9:54     ` Jani Nikula
2026-03-23  9:58       ` Anirban, Sk
2026-03-23 14:12     ` Kamil Konieczny
2026-03-23 10:01 ` Ville Syrjälä
2026-03-23 14:36   ` Anirban, Sk
2026-03-23 15:43     ` Ville Syrjälä
2026-03-23 13:32 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-03-23 15:46 ` ✗ i915.CI.BAT: failure " Patchwork
2026-03-23 18:35 ` ✓ Xe.CI.FULL: success " Patchwork

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