patch 'eal/x86: fix LZCNT CPU flag' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:00:58 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.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 12/08/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/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/942ffd6201b8746923ea4a446beb9210175dd613

Thanks.

Kevin

---
>From 942ffd6201b8746923ea4a446beb9210175dd613 Mon Sep 17 00:00:00 2001
From: Yonghao Li <cruselee1 at live.cn>
Date: Fri, 28 Aug 2026 21:32:52 +0100
Subject: [PATCH] eal/x86: fix LZCNT CPU flag

[ upstream commit a0fad8854dc36c8e0734bc7bb1eab87a8caa91e2 ]

LZCNT support is enumerated by CPUID.80000001H:ECX[5]. The current
definition checks ECX bit 4, which identifies CR8 legacy mode on AMD
processors and is reserved on Intel processors. As a result,
RTE_CPUFLAG_LZCNT can be reported incorrectly.

Check ECX bit 5 instead.

Fixes: af75078fece3 ("first public release")

Signed-off-by: Yonghao Li <cruselee1 at live.cn>
Acked-by: David Marchand <david.marchand at redhat.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
 .mailmap                   | 1 +
 lib/eal/x86/rte_cpuflags.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index b046718312..0ed4d1f227 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1920,4 +1920,5 @@ Yong Wang <wang.yong19 at zte.com.cn> <yongwang at vmware.com>
 Yong Xu <yong.xu at corigine.com>
 Yong Zhang <zhang.yong25 at zte.com.cn>
+Yonghao Li <cruselee1 at live.cn>
 Yongji Xie <xieyongji at baidu.com>
 Yongjie Gu <yongjiex.gu at intel.com>
diff --git a/lib/eal/x86/rte_cpuflags.c b/lib/eal/x86/rte_cpuflags.c
index 5d1f352e04..80b71a3ce0 100644
--- a/lib/eal/x86/rte_cpuflags.c
+++ b/lib/eal/x86/rte_cpuflags.c
@@ -138,5 +138,5 @@ struct feature_entry rte_cpu_feature_table[] = {
 
 	FEAT_DEF(LAHF_SAHF, 0x80000001, 0, RTE_REG_ECX,  0)
-	FEAT_DEF(LZCNT, 0x80000001, 0, RTE_REG_ECX,  4)
+	FEAT_DEF(LZCNT, 0x80000001, 0, RTE_REG_ECX,  5)
 	FEAT_DEF(MONITORX, 0x80000001, 0, RTE_REG_ECX,  29)
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:43.050461371 +0000
+++ 0132-eal-x86-fix-LZCNT-CPU-flag.patch	2026-12-03 12:52:39.130454780 +0000
@@ -1 +1 @@
-From a0fad8854dc36c8e0734bc7bb1eab87a8caa91e2 Mon Sep 17 00:00:00 2001
+From 942ffd6201b8746923ea4a446beb9210175dd613 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit a0fad8854dc36c8e0734bc7bb1eab87a8caa91e2 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index b04bc3c1d9..57f7a9f87a 100644
+index b046718312..0ed4d1f227 100644
@@ -28 +29,2 @@
-@@ -1949,4 +1949,5 @@ Yong Xu <yong.xu at corigine.com>
+@@ -1920,4 +1920,5 @@ Yong Wang <wang.yong19 at zte.com.cn> <yongwang at vmware.com>
+ Yong Xu <yong.xu at corigine.com>
@@ -30 +31,0 @@
- Yongfeng Wang <mannywang at tencent.com>



More information about the stable mailing list