[PATCH] eal/x86: fix LZCNT CPU feature bit

David Marchand david.marchand at redhat.com
Mon Aug 31 09:51:38 CEST 2026


On Fri, 28 Aug 2026 at 22:33, Yonghao Li <cruselee1 at live.cn> wrote:
>
> 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")
> Cc: stable at dpdk.org
> Signed-off-by: Yonghao Li <cruselee1 at live.cn>

This looks correct to me.
Acked-by: David Marchand <david.marchand at redhat.com>

Bruce, can I use a second pair of eyes?


-- 
David Marchand



More information about the dev mailing list