<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Hi,</p>
<div class="moz-cite-prefix">On 06-05-2025 20:36,
<a class="moz-txt-link-abbreviated" href="mailto:sk.anirban@intel.com">sk.anirban@intel.com</a> wrote:<br>
</div>
<blockquote type="cite" cite="mid:20250506150617.1961348-1-sk.anirban@intel.com">
<pre wrap="" class="moz-quote-pre">From: Sk Anirban <a class="moz-txt-link-rfc2396E" href="mailto:sk.anirban@intel.com"><sk.anirban@intel.com></a>
In scenarios where the GuC adjusts the RPe, the minimum frequency may align
with the adjusted RPe frequency. The assertion has been updated to account
for this scenario.
Signed-off-by: Sk Anirban <a class="moz-txt-link-rfc2396E" href="mailto:sk.anirban@intel.com"><sk.anirban@intel.com></a>
---
tests/intel/xe_pmu.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
index 094dc0c6c..2e29a4056 100644
--- a/tests/intel/xe_pmu.c
+++ b/tests/intel/xe_pmu.c
@@ -390,6 +390,7 @@ static void test_gt_frequency(int fd, struct drm_xe_engine_class_instance *eci)
uint32_t gt = eci->gt_id;
uint32_t orig_min = xe_gt_get_freq(fd, eci->gt_id, "min");
uint32_t orig_max = xe_gt_get_freq(fd, eci->gt_id, "max");
+ uint32_t orig_rpe;
uint32_t vm;
int pmu_fd[2];
@@ -438,7 +439,9 @@ static void test_gt_frequency(int fd, struct drm_xe_engine_class_instance *eci)
* Restore min/max.
*/
igt_assert(xe_gt_set_freq(fd, gt, "min", orig_min) > 0);
- igt_assert(xe_gt_get_freq(fd, gt, "min") == orig_min);
+ orig_rpe = xe_gt_get_freq(fd, gt, "rpe");
+ igt_assert(xe_gt_get_freq(fd, gt, "min") == orig_min ||
+ xe_gt_get_freq(fd, gt, "min") == orig_rpe);
igt_info("Minimum frequency: requested %.1f, actual %.1f\n",
min[0], min[1]);</pre>
</blockquote>
<p>Looks good to me.</p>
<p><span style="color: rgb(36, 36, 36); font-family: "Cascadia Mono", Consolas, ui-monospace, Menlo, Monaco, monospace; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Reviewed-by: Ravi Kishore Koppuravuri <a class="moz-txt-link-rfc2396E" href="mailto:ravi.kishore.koppuravuri@intel.com"><ravi.kishore.koppuravuri@intel.com></a></span></p>
</body>
</html>