[igt-dev] [PATCH i-g-t v2 4/4] tests/xe/xe_guc_pc: Remove rc6 tests

Riana Tauro riana.tauro at intel.com
Fri Jun 30 07:04:39 UTC 2023


Remove these tests as sysfs paths have been changed and
a generic naming used.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/441
Signed-off-by: Riana Tauro <riana.tauro at intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
 tests/xe/xe_guc_pc.c | 44 --------------------------------------------
 1 file changed, 44 deletions(-)

diff --git a/tests/xe/xe_guc_pc.c b/tests/xe/xe_guc_pc.c
index 827693eb4..fb3747f46 100644
--- a/tests/xe/xe_guc_pc.c
+++ b/tests/xe/xe_guc_pc.c
@@ -348,27 +348,6 @@ static void test_reset(int fd, int sysfs, int gt_id, int cycles)
 	}
 }
 
-
-/**
- * SUBTEST: rc6_on_idle
- * Description: check if GPU is in RC6 on idle
- * Run type: BAT
- *
- * SUBTEST: rc0_on_exec
- * Description: check if GPU is in RC0 on when doing some work
- * Run type: BAT
- */
-
-static bool in_rc6(int sysfs, int gt_id)
-{
-	char path[32];
-	char rc[8];
-	sprintf(path, "device/gt%d/rc_status", gt_id);
-	if (igt_sysfs_scanf(sysfs, path, "%s", rc) < 0)
-		return false;
-	return strcmp(rc, "rc6") == 0;
-}
-
 igt_main
 {
 	struct drm_xe_engine_class_instance *hwe;
@@ -459,29 +438,6 @@ igt_main
 		}
 	}
 
-	igt_subtest("rc6_on_idle") {
-		igt_require(!IS_PONTEVECCHIO(xe_dev_id(fd)));
-		xe_for_each_gt(fd, gt) {
-			assert(igt_wait(in_rc6(sysfs, gt), 1000, 1));
-		}
-	}
-
-	igt_subtest("rc0_on_exec") {
-		igt_require(!IS_PONTEVECCHIO(xe_dev_id(fd)));
-		xe_for_each_gt(fd, gt) {
-			assert(igt_wait(in_rc6(sysfs, gt), 1000, 1));
-			xe_for_each_hw_engine(fd, hwe)
-				igt_fork(child, ncpus) {
-					igt_debug("Execution Started\n");
-					exec_basic(fd, hwe, MAX_N_ENGINES, 16);
-					igt_debug("Execution Finished\n");
-				}
-			/* While exec in threads above, let's check rc_status */
-			assert(igt_wait(!in_rc6(sysfs, gt), 1000, 1));
-			igt_waitchildren();
-		}
-	}
-
 	igt_fixture {
 		xe_for_each_gt(fd, gt) {
 			set_freq(sysfs, gt, "min", stash_min);
-- 
2.40.0



More information about the igt-dev mailing list