Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/xe_gt_freq: Check for RPe freq updates
@ 2024-04-25 19:56 Vinay Belgaumkar
  2024-04-25 20:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Vinay Belgaumkar @ 2024-04-25 19:56 UTC (permalink / raw)
  To: intel-gfx, igt-dev; +Cc: Vinay Belgaumkar

Pcode can dynamically update RPe frequency. Use the latest value
in tests that check it.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@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 c12f6c52c..5c6373016 100644
--- a/tests/intel/xe_gt_freq.c
+++ b/tests/intel/xe_gt_freq.c
@@ -186,6 +186,9 @@ static void test_freq_fixed(int fd, int gt_id, bool gt_idle)
 		igt_assert(get_freq(fd, gt_id, "act") == rpn);
 	}
 
+	/* Refresh value of rpe, pcode could have adjusted it */
+	rpe = get_freq(fd, gt_id, "rpe");
+
 	igt_assert(set_freq(fd, gt_id, "min", rpe) > 0);
 	igt_assert(set_freq(fd, gt_id, "max", rpe) > 0);
 	usleep(ACT_FREQ_LATENCY_US);
@@ -268,6 +271,10 @@ static void test_freq_low_max(int fd, int gt_id)
 	igt_assert(set_freq(fd, gt_id, "min", rpe) > 0);
 	igt_assert(set_freq(fd, gt_id, "max", rpn) > 0);
 	usleep(ACT_FREQ_LATENCY_US);
+
+	/* Refresh value of rpe, pcode could have adjusted it */
+	rpe = get_freq(fd, gt_id, "rpe");
+
 	igt_assert(get_freq(fd, gt_id, "cur") == rpe);
 
 	if (!xe_is_gt_in_c6(fd, gt_id))
-- 
2.38.1


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

end of thread, other threads:[~2024-05-03  0:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 19:56 [PATCH i-g-t] tests/intel/xe_gt_freq: Check for RPe freq updates Vinay Belgaumkar
2024-04-25 20:40 ` ✗ Fi.CI.BAT: failure for " Patchwork
2024-04-26  9:56   ` Kamil Konieczny
2024-05-03  0:43   ` Belgaumkar, Vinay
2024-04-25 20:54 ` ✓ CI.xeBAT: success " Patchwork
2024-04-29 12:44 ` [PATCH i-g-t] " Rodrigo Vivi

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