patch 'eal/x86: fix TSC frequency query' has been queued to stable release 23.11.7
Shani Peretz
shperetz at nvidia.com
Tue Mar 31 08:24:09 CEST 2026
Hi,
FYI, your patch has been queued to stable release 23.11.7
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 04/05/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/shanipr/dpdk-stable
This queued commit can be viewed at:
https://github.com/shanipr/dpdk-stable/commit/64f6d1c64d4fdcaf3ba9edf62f6cfcd0bd2b2d79
Thanks.
Shani
---
>From 64f6d1c64d4fdcaf3ba9edf62f6cfcd0bd2b2d79 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 eb6a3afa44..5b2874e0ec 100644
--- a/.mailmap
+++ b/.mailmap
@@ -851,6 +851,7 @@ Louis Luo <llouis at vmware.com>
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>
Luc Pelletier <lucp.at.work at gmail.com>
+Luigi Rizzo <rizzo.unipi at gmail.com>
Lukasz Bartosik <lbartosik at marvell.com>
Lukasz Czapnik <lukasz.czapnik at intel.com>
Lukasz Gosiewski <lukaszx.gosiewski at intel.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.43.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-03-31 00:32:33.611743584 +0300
+++ 0050-eal-x86-fix-TSC-frequency-query.patch 2026-03-31 00:32:29.030270000 +0300
@@ -1 +1 @@
-From a17499cf33a1606731d75d15a18bfd42c497b40e Mon Sep 17 00:00:00 2001
+From 64f6d1c64d4fdcaf3ba9edf62f6cfcd0bd2b2d79 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 eb6a3afa44..5b2874e0ec 100644
@@ -30,4 +31,4 @@
-@@ -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>
- Luca Vizzarro <luca.vizzarro at arm.com>
+@@ -851,6 +851,7 @@ Louis Luo <llouis at vmware.com>
+ 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>
+ Luc Pelletier <lucp.at.work at gmail.com>
@@ -35,2 +35,0 @@
- Luka Jankovic <luka.jankovic at ericsson.com>
- Lukas Sismis <sismis at dyna-nic.com> <sismis at cesnet.cz>
@@ -37,0 +37,2 @@
+ Lukasz Czapnik <lukasz.czapnik at intel.com>
+ Lukasz Gosiewski <lukaszx.gosiewski at intel.com>
More information about the stable
mailing list