[PATCH i-g-t v2 2/5] tests/intel/xe_pmu: Move descriptions of tests to the top of file

Umesh Nerlige Ramappa umesh.nerlige.ramappa at intel.com
Thu May 8 22:44:39 UTC 2025


On Thu, May 08, 2025 at 11:20:03AM +0530, Riana Tauro wrote:
>Move descriptions to the top of the file so they are in
>a single place
>
>Signed-off-by: Riana Tauro <riana.tauro at intel.com>

LGTM,

Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>


>---
> tests/intel/xe_pmu.c | 58 +++++++++++++++++++-------------------------
> 1 file changed, 25 insertions(+), 33 deletions(-)
>
>diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
>index 03a966708..1ad927822 100644
>--- a/tests/intel/xe_pmu.c
>+++ b/tests/intel/xe_pmu.c
>@@ -10,6 +10,31 @@
>  * Mega feature: Performance Monitoring Unit
>  * Sub-category: Telemetry
>  * Test category: Functional tests
>+ *
>+ * SUBTEST: gt-c6-idle
>+ * Description: Basic residency test to validate idle residency
>+ *		measured over a time interval is within the tolerance
>+ *
>+ * SUBTEST: engine-activity-idle
>+ * Description: Test to validate engine activity shows no load when idle
>+ *
>+ * SUBTEST: engine-activity-load-idle
>+ * Description: Test to validate engine activity with full load and trailing idle
>+ *
>+ * SUBTEST: engine-activity-load
>+ * Description: Test to validate engine activity stats by running a workload
>+ *
>+ * SUBTEST: all-fn-engine-activity-load
>+ * Description: Test to validate engine activity by running load on all functions simultaneously
>+ *
>+ * SUBTEST: fn-engine-activity-load
>+ * Description: Test to validate engine activity by running load on a function
>+ *
>+ * SUBTEST: fn-engine-activity-sched-if-idle
>+ * Description: Test to validate engine activity by running load on a function
>+ *
>+ * SUBTEST: gt-frequency
>+ * Description: Validate we can collect accurate frequency PMU stats while running a workload.
>  */
>
> #include "igt.h"
>@@ -140,18 +165,6 @@ static void check_and_end_cork(int fd, struct xe_cork *cork)
> 		xe_cork_sync_end(fd, cork);
> }
>
>-/**
>- * SUBTEST: engine-activity-idle
>- * Description: Test to validate engine activity shows no load when idle
>- *
>- * SUBTEST: engine-activity-load-idle
>- * Description: Test to validate engine activity with full load followed by
>- *		trailing idle
>- *
>- * SUBTEST: engine-activity-load
>- * Description: Test to validate engine activity stats by running a workload and
>- *              reading engine active ticks and engine total ticks PMU counters
>- */
> static void engine_activity(int fd, struct drm_xe_engine_class_instance *eci, unsigned int flags)
> {
> 	uint64_t config, engine_active_ticks, engine_total_ticks, before[2], after[2];
>@@ -203,10 +216,6 @@ static void engine_activity(int fd, struct drm_xe_engine_class_instance *eci, un
> 		igt_assert(!engine_active_ticks);
> }
>
>-/**
>- * SUBTEST: all-fn-engine-activity-load
>- * Description: Test to validate engine activity by running load on all functions simultaneously
>- */
> static void engine_activity_all_fn(int fd, struct drm_xe_engine_class_instance *eci, int num_fns)
> {
> 	uint64_t config, engine_active_ticks, engine_total_ticks;
>@@ -274,13 +283,6 @@ static void engine_activity_all_fn(int fd, struct drm_xe_engine_class_instance *
> 	}
> }
>
>-/**
>- * SUBTEST: fn-engine-activity-load
>- * Description: Test to validate engine activity by running load on a function
>- *
>- * SUBTEST: fn-engine-activity-sched-if-idle
>- * Description: Test to validate engine activity by running load on a function
>- */
> static void engine_activity_fn(int fd, struct drm_xe_engine_class_instance *eci, int function)
> {
> 	uint64_t config, engine_active_ticks, engine_total_ticks, before[2], after[2];
>@@ -344,11 +346,6 @@ static void engine_activity_fn(int fd, struct drm_xe_engine_class_instance *eci,
> 		assert_within_epsilon(busy_percent, exec_quantum_ratio, tolerance);
> }
>
>-/**
>- * SUBTEST: gt-c6-idle
>- * Description: Basic residency test to validate idle residency
>- *		measured over a time interval is within the tolerance
>- */
> static void test_gt_c6_idle(int xe, unsigned int gt)
> {
> 	int pmu_fd;
>@@ -382,11 +379,6 @@ static void test_gt_c6_idle(int xe, unsigned int gt)
> 	close(pmu_fd);
> }
>
>-/**
>- * SUBTEST: gt-frequency
>- * Description: Validate we can collect accurate frequency PMU stats
>- *		while running a workload.
>- */
> static void test_gt_frequency(int fd, struct drm_xe_engine_class_instance *eci)
> {
> 	struct xe_cork *cork = NULL;
>-- 
>2.47.1
>


More information about the igt-dev mailing list