From 4664acc0f58da508f87756cecc009235d38a783d Mon Sep 17 00:00:00 2001 From: David Hunt Date: Wed, 12 May 2021 17:32:53 +0100 Subject: [PATCH] test/power: fix low frequency test when turbo enabled [ upstream commit 0745214e9239784a62dba28c6ad6bbb211cde949 ] With the intel_pstate driver and turbo enabled, indexing is slightly different to normal, so to get the test to work properly, enable turbo at the start. Fixes: ed7c51a6a680 ("app/test: vm power management") Signed-off-by: David Hunt --- app/test/test_power_cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_power_cpufreq.c b/app/test/test_power_cpufreq.c index 24ecfceaaf..9c2aee5bec 100644 --- a/app/test/test_power_cpufreq.c +++ b/app/test/test_power_cpufreq.c @@ -249,6 +249,8 @@ check_power_freq_down(void) { int ret; + rte_power_freq_enable_turbo(TEST_POWER_LCORE_ID); + /* test with an invalid lcore id */ ret = rte_power_freq_down(TEST_POWER_LCORE_INVALID); if (ret >= 0) {