Add delays to allow frequency stabilization before power measurement to fix sporadic power conservation issues in live_rps_power test. Signed-off-by: Sk Anirban <sk.anirban@xxxxxxxxx> --- drivers/gpu/drm/i915/gt/selftest_rps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/selftest_rps.c b/drivers/gpu/drm/i915/gt/selftest_rps.c index dcef8d498919..3f26c5a079c7 100644 --- a/drivers/gpu/drm/i915/gt/selftest_rps.c +++ b/drivers/gpu/drm/i915/gt/selftest_rps.c @@ -1191,9 +1191,11 @@ int live_rps_power(void *arg) } max.freq = rps->max_freq; + msleep(100); max.power = measure_power_at(rps, &max.freq); min.freq = rps->min_freq; + msleep(100); min.power = measure_power_at(rps, &min.freq); igt_spinner_end(&spin); -- 2.34.1