patch 'eal/x86: fix TSC frequency query' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Feb 20 15:55:46 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/22/26. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/721b28cc4f4bbd8c6cf558a31a74119c33e7eec9
Thanks.
Luca Boccassi
---
>From 721b28cc4f4bbd8c6cf558a31a74119c33e7eec9 Mon Sep 17 00:00:00 2001
From: Thomas Monjalon <thomas at monjalon.net>
Date: Fri, 30 Jan 2026 17:50:53 +0100
Subject: [PATCH] eal/x86: fix TSC frequency query
[ upstream commit a17499cf33a1606731d75d15a18bfd42c497b40e ]
After getting TSC information from cpuid instruction,
some values must be multiplied and divided.
We must multiply first to get the most accurate value.
Example:
before: 1000000000 * (23 / 10) = 2 GHz
after: 1000000000 * 23 / 10 = 2.3 GHz
Bugzilla ID: 1869
Fixes: ad3516bb4ae1 ("eal/x86: implement arch-specific TSC freq query")
Reported-by: Luigi Rizzo <rizzo.unipi at gmail.com>
Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Reviewed-by: Stephen Hemminger <stephen at networkplumber.org>
---
.mailmap | 1 +
lib/eal/x86/rte_cycles.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/.mailmap b/.mailmap
index dec274012a..e676eeb6cd 100644
--- a/.mailmap
+++ b/.mailmap
@@ -892,6 +892,7 @@ Louis Peens <louis.peens at corigine.com> <louis.peens at netronome.com>
Luca Boccassi <luca.boccassi at microsoft.com> <bluca at debian.org> <luca.boccassi at gmail.com> <lboccass at brocade.com> <luca.boccassi at intl.att.com>
Luca Vizzarro <luca.vizzarro at arm.com>
Luc Pelletier <lucp.at.work at gmail.com>
+Luigi Rizzo <rizzo.unipi at gmail.com>
Luka Jankovic <luka.jankovic at ericsson.com>
Lukas Sismis <sismis at cesnet.cz>
Lukasz Bartosik <lbartosik at marvell.com>
diff --git a/lib/eal/x86/rte_cycles.c b/lib/eal/x86/rte_cycles.c
index f147a5231d..e8e805e710 100644
--- a/lib/eal/x86/rte_cycles.c
+++ b/lib/eal/x86/rte_cycles.c
@@ -145,7 +145,7 @@ get_tsc_freq_arch(void)
/* EBX : TSC/Crystal ratio, ECX : Crystal Hz */
if (b && c)
- return c * (b / a);
+ return (uint64_t)c * b / a;
}
#ifdef RTE_TOOLCHAIN_MSVC
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-20 14:55:44.988633799 +0000
+++ 0044-eal-x86-fix-TSC-frequency-query.patch 2026-02-20 14:55:43.224191413 +0000
@@ -1 +1 @@
-From a17499cf33a1606731d75d15a18bfd42c497b40e Mon Sep 17 00:00:00 2001
+From 721b28cc4f4bbd8c6cf558a31a74119c33e7eec9 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a17499cf33a1606731d75d15a18bfd42c497b40e ]
+
@@ -16 +17,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index 67183b09e5..4b7e3b9eb0 100644
+index dec274012a..e676eeb6cd 100644
@@ -30,3 +31,2 @@
-@@ -932,6 +932,7 @@ Luca Boccassi <luca.boccassi at microsoft.com> <luca.boccassi at gmail.com>
- Luca Boccassi <luca.boccassi at microsoft.com> <lboccass at brocade.com>
- Luca Boccassi <luca.boccassi at microsoft.com> <luca.boccassi at intl.att.com>
+@@ -892,6 +892,7 @@ Louis Peens <louis.peens at corigine.com> <louis.peens at netronome.com>
+ Luca Boccassi <luca.boccassi at microsoft.com> <bluca at debian.org> <luca.boccassi at gmail.com> <lboccass at brocade.com> <luca.boccassi at intl.att.com>
@@ -33,0 +34 @@
+ Luc Pelletier <lucp.at.work at gmail.com>
@@ -36 +37 @@
- Lukas Sismis <sismis at dyna-nic.com> <sismis at cesnet.cz>
+ Lukas Sismis <sismis at cesnet.cz>
More information about the stable
mailing list