[PATCH i-g-t v3 2/2] tests/intel/xe_gt_freq: Add a wait after gt reset

Karthik Poosa karthik.poosa at intel.com
Mon Aug 19 10:01:46 UTC 2024


After reset min and max takes sometime to get set.
So add a wait of 100ms after gt reset before reading
5min and max frequencies.

Signed-off-by: Karthik Poosa <karthik.poosa at intel.com>
---
 tests/intel/xe_gt_freq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index 56cc10ade..427e12c55 100644
--- a/tests/intel/xe_gt_freq.c
+++ b/tests/intel/xe_gt_freq.c
@@ -342,6 +342,7 @@ static void test_reset(int fd, int gt_id, int cycles)
 			     "Failed after %d good cycles\n", i);
 
 		xe_force_gt_reset_async(fd, gt_id);
+		usleep(SLPC_FREQ_LATENCY_US);
 
 		igt_assert_f(get_freq(fd, gt_id, "min") == rpn,
 			     "Failed after %d good cycles\n", i);
-- 
2.25.1



More information about the igt-dev mailing list