Skip to content

Commit d7364b8

Browse files
sanirban-999Andi Shyti
authored andcommitted
drm/i915/selftests: Correct frequency handling in RPS power measurement
Fix the frequency calculation by ensuring it uses the raw frequency only. Update live_rps_power test to use the correct frequency values for logging and comparison. Signed-off-by: Sk Anirban <sk.anirban@intel.com> Reviewed-by: Badal Nilawar <badal.nilawar@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250113095912.356147-2-sk.anirban@intel.com
1 parent 1aeb1c0 commit d7364b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gt/selftest_rps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ static u64 measure_power(struct intel_rps *rps, int *freq)
11161116
for (i = 0; i < 5; i++)
11171117
x[i] = __measure_power(5);
11181118

1119-
*freq = (*freq + intel_rps_read_actual_frequency(rps)) / 2;
1119+
*freq = (*freq + read_cagf(rps)) / 2;
11201120

11211121
/* A simple triangle filter for better result stability */
11221122
sort(x, 5, sizeof(*x), cmp_u64, NULL);

0 commit comments

Comments
 (0)