Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/xe_pmu: Fix frequency stashing issue
@ 2025-04-25 18:06 sk.anirban
  2025-04-25 19:28 ` ✓ Xe.CI.BAT: success for " Patchwork
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: sk.anirban @ 2025-04-25 18:06 UTC (permalink / raw)
  To: igt-dev
  Cc: vinay.belgaumkar, anshuman.gupta, riana.tauro, badal.nilawar,
	Sk Anirban

From: Sk Anirban <sk.anirban@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@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


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

end of thread, other threads:[~2025-04-28 15:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-25 18:06 [PATCH] tests/xe_pmu: Fix frequency stashing issue sk.anirban
2025-04-25 19:28 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-04-25 19:34 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-04-28 15:18   ` Anirban, Sk
2025-04-25 19:53 ` ✓ i915.CI.BAT: success " Patchwork
2025-04-26  5:39 ` ✓ i915.CI.Full: " Patchwork
2025-04-26  9:05 ` ✗ Xe.CI.Full: failure " Patchwork
2025-04-28  5:36 ` [PATCH] " Anirban, Sk
2025-04-28  5:42   ` Koppuravuri, Ravi Kishore
2025-04-28  8:58   ` Koppuravuri, Ravi Kishore

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