[PATCH] tests/xe_pmu: Fix frequency stashing issue

sk.anirban at intel.com sk.anirban at intel.com
Fri Apr 25 18:06:58 UTC 2025


From: Sk Anirban <sk.anirban at intel.com>

Resolved the frequency stashing problem by accurately
dereferencing the pointers, ensuring the minimum and
maximum frequencies are correctly restored.

Signed-off-by: Sk Anirban <sk.anirban at intel.com>
---
 tests/intel/xe_pmu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/intel/xe_pmu.c b/tests/intel/xe_pmu.c
index 589c7cbde..094dc0c6c 100644
--- a/tests/intel/xe_pmu.c
+++ b/tests/intel/xe_pmu.c
@@ -527,8 +527,8 @@ static void stash_gt_freq(int fd, uint32_t **stash_min, uint32_t **stash_max)
 	igt_skip_on(*stash_min == NULL || *stash_max == NULL);
 
 	xe_for_each_gt(fd, gt) {
-		*stash_min[gt] = xe_gt_get_freq(fd, gt, "min");
-		*stash_max[gt] = xe_gt_get_freq(fd, gt, "max");
+		(*stash_min)[gt] = xe_gt_get_freq(fd, gt, "min");
+		(*stash_max)[gt] = xe_gt_get_freq(fd, gt, "max");
 	}
 }
 
-- 
2.34.1



More information about the igt-dev mailing list