[PATCH 22.11] power: increase the number of UNCORE frequencies
Stephen Hemminger
stephen at networkplumber.org
Wed Jul 24 19:55:19 CEST 2024
[ upstream commit 93db1cfcc36ac1808c4a09ec50a470c6127b859e ]
The number of lcore frequencies was too low for some CPU's.
This lead to standalone test failures.
Fixes: 60b8a661a957 ("power: add Intel uncore frequency control")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test/test_power_intel_uncore.c | 2 +-
lib/power/rte_power_intel_uncore.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test/test_power_intel_uncore.c b/app/test/test_power_intel_uncore.c
index 31163af84e..38c72fb371 100644
--- a/app/test/test_power_intel_uncore.c
+++ b/app/test/test_power_intel_uncore.c
@@ -17,7 +17,7 @@ test_power_intel_uncore(void)
#include <rte_power_intel_uncore.h>
#include <power_common.h>
-#define MAX_UNCORE_FREQS 32
+#define MAX_UNCORE_FREQS 64
#define VALID_PKG 0
#define VALID_DIE 0
diff --git a/lib/power/rte_power_intel_uncore.c b/lib/power/rte_power_intel_uncore.c
index 3b8724385f..7193b86516 100644
--- a/lib/power/rte_power_intel_uncore.c
+++ b/lib/power/rte_power_intel_uncore.c
@@ -11,7 +11,7 @@
#include "rte_power_intel_uncore.h"
#include "power_common.h"
-#define MAX_UNCORE_FREQS 32
+#define MAX_UNCORE_FREQS 64
#define MAX_NUMA_DIE 8
#define BUS_FREQ 100000
#define FILTER_LENGTH 18
--
2.43.0
More information about the stable
mailing list