Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_gt_freq: Add a wait after gt reset
@ 2024-07-30 11:50 Karthik Poosa
  2024-07-30 14:27 ` ✓ CI.xeBAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Karthik Poosa @ 2024-07-30 11:50 UTC (permalink / raw)
  To: igt-dev
  Cc: anshuman.gupta, badal.nilawar, rodrigo.vivi, vinay.belgaumkar,
	riana.tauro, Karthik Poosa

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

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

diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c
index 93ebb5ed0..718f720c0 100644
--- a/tests/intel/xe_gt_freq.c
+++ b/tests/intel/xe_gt_freq.c
@@ -33,6 +33,12 @@
  */
 #define ACT_FREQ_LATENCY_US 100000
 
+/*
+ * After gt reset, min and max freq may take sometime to set to rpn.
+ * So adding a wait of 100ms after reset.
+ */
+#define GT_RESET_FREQ_LATENCY_US 100000
+
 static int set_freq(int fd, int gt_id, const char *freq_name, uint32_t freq)
 {
 	int ret = -EAGAIN;
@@ -318,6 +324,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(GT_RESET_FREQ_LATENCY_US);
 
 		igt_assert_f(get_freq(fd, gt_id, "min") == rpn,
 			     "Failed after %d good cycles\n", i);
-- 
2.25.1


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

end of thread, other threads:[~2024-08-02  7:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30 11:50 [PATCH i-g-t] tests/intel/xe_gt_freq: Add a wait after gt reset Karthik Poosa
2024-07-30 14:27 ` ✓ CI.xeBAT: success for " Patchwork
2024-07-30 14:40 ` ✓ Fi.CI.BAT: " Patchwork
2024-07-30 15:53 ` ✗ CI.xeFULL: failure " Patchwork
2024-07-31  1:06 ` ✗ Fi.CI.IGT: " Patchwork
2024-07-31 10:36 ` [PATCH i-g-t] " Riana Tauro
2024-08-01  6:20   ` Poosa, Karthik
2024-08-01  7:22     ` Riana Tauro
2024-08-02  7:32       ` Poosa, Karthik

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