All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/intel/xe_pm_residency: skip cpg-gt-toggle if GT not in C6
@ 2026-05-04 20:28 Sk Anirban
  2026-05-04 21:29 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Sk Anirban @ 2026-05-04 20:28 UTC (permalink / raw)
  To: igt-dev
  Cc: anshuman.gupta, badal.nilawar, riana.tauro, karthik.poosa,
	raag.jadav, soham.purkait, mallesh.koujalagi, Sk Anirban

The test assumes GTs are idle before forcewake is acquired and power-gate
status is validated. If a prior subtest leaves a GT in C0 (GT stays active
for any reason), the final power-gate checks can fail for the wrong reason.
Add an skip so that inability to enter C6 is treated as a missing
prerequisite.

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

diff --git a/tests/intel/xe_pm_residency.c b/tests/intel/xe_pm_residency.c
index 1eeabd509..bfae1f844 100644
--- a/tests/intel/xe_pm_residency.c
+++ b/tests/intel/xe_pm_residency.c
@@ -392,8 +392,8 @@ static void cpg_gt_toggle(int fd)
 	int gt;
 
 	xe_for_each_gt(fd, gt)
-		igt_assert_f(igt_wait(xe_gt_is_in_c6(fd, gt), 1000, 10),
-			     "GT %d should be in C6\n", gt);
+		igt_skip_on_f(!igt_wait(xe_gt_is_in_c6(fd, gt), 1000, 10),
+			      "GT %d is not in C6\n", gt);
 
 	fw_handle = igt_debugfs_open(fd, "forcewake_all", O_RDONLY);
 	igt_assert_lte(0, fw_handle);
-- 
2.43.0


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

end of thread, other threads:[~2026-05-15  4:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 20:28 [PATCH] tests/intel/xe_pm_residency: skip cpg-gt-toggle if GT not in C6 Sk Anirban
2026-05-04 21:29 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-05-04 21:40 ` ✓ i915.CI.BAT: " Patchwork
2026-05-05  3:19 ` ✓ Xe.CI.FULL: " Patchwork
2026-05-05  4:09 ` ✗ i915.CI.Full: failure " Patchwork
2026-05-15  4:02 ` Poosa, Karthik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.