config/x86: increase lcores for AMD EPYC in 'native' scenario

Message ID 1740774946-20418-1-git-send-email-andremue@linux.microsoft.com (mailing list archive)
State Superseded
Delegated to: Thomas Monjalon
Headers
Series config/x86: increase lcores for AMD EPYC in 'native' scenario |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/loongarch-compilation success Compilation OK
ci/loongarch-unit-testing success Unit Testing PASS
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/intel-Functional success Functional PASS
ci/github-robot: build success github build: passed
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-unit-arm64-testing success Testing PASS
ci/iol-compile-arm64-testing success Testing PASS
ci/iol-unit-amd64-testing success Testing PASS
ci/iol-compile-amd64-testing success Testing PASS
ci/iol-sample-apps-testing success Testing PASS
ci/iol-marvell-Functional success Functional Testing PASS

Commit Message

Andre Muezerie Feb. 28, 2025, 8:35 p.m. UTC
File config/meson.build has logic to move cpu_instruction_set from 'auto'
to 'native' or 'generic'.

When calling get_option('cpu_instruction_set') again from
config/x86/meson.build we get 'auto' again, instead of expected 'native'.

The fix is to not call get_option('cpu_instruction_set') again, just rely
on the work done by config/meson.build and trust that cpu_instruction_set
already has the correct value. Note that getting/processing
cpu_instruction_set is not x86-specific, so should be handled by
config/meson.build.

Fixes: fd8b058b322e ("config/x86: increase lcores for AMD EPYC cross build")
Cc: stable@dpdk.org

Signed-off-by: Andre Muezerie <andremue@linux.microsoft.com>
---
 config/x86/meson.build | 1 -
 1 file changed, 1 deletion(-)
  

Patch

diff --git a/config/x86/meson.build b/config/x86/meson.build
index 47a5b0c04a..a6d917c78c 100644
--- a/config/x86/meson.build
+++ b/config/x86/meson.build
@@ -104,7 +104,6 @@  epyc_zen_cores = {
     '__znver1__':128
     }
 
-cpu_instruction_set = get_option('cpu_instruction_set')
 if cpu_instruction_set == 'native'
     foreach m:epyc_zen_cores.keys()
         if cc.get_define(m, args: machine_args) != ''