Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 796275

Summary: sys-kernel/gentoo-sources-5.12.10 - "AMD Zen 3" not available in "Processor family" in kernel config (menuconfig) with sys-devel/gcc-10.3.0
Product: Gentoo Linux Reporter: Victor Costache <victor.costache>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Victor Costache 2021-06-16 05:03:45 UTC
According to https://dev.gentoo.org/~mpagano/genpatches/trunk/5.12/5010_enable-cpu-optimizations-universal.patch, the AMD Family 19h (Zen 3) should be available for gcc-10.3.0 (†Required gcc >=10.3). However, "depends on GCC_VERSION > 100300" makes the "AMD Zen 3" option unavailable in the "Processor family" list kernel config. Shouldn't be "depends on GCC_VERSION >= 100300"?

Reproducible: Always

Steps to Reproduce:
1. Emerge sys-kernel/gentoo-sources with USE flag "experimental"
2. cd /usr/src/linux
3. make menuconfig
4. Go to "Processor type and features  ---> Processor family"

Actual Results:  
Although the GCC version is 10.3.0, AMD Zen 3 is missing from the list.

Expected Results:  
Since the GCC version is 10.3.0, "AMD Zen 3" should be available in the "Processor family" options.
Comment 1 Mike Pagano gentoo-dev 2021-06-16 12:20:02 UTC
Not per upstream CPU patch author:

depends on ( CC_IS_GCC && GCC_VERSION > 100300 ) || ( CC_IS_CLANG && CLANG_VERSION >= 120000 )


In case you want to take this question upstream:

https://github.com/graysky2/kernel_compiler_patch/blob/master/more-uarches-for-kernel-5.8%2B.patch
Comment 2 Victor Costache 2021-06-16 13:15:49 UTC
Reported upstream: https://github.com/graysky2/kernel_compiler_patch/issues/75
Comment 3 Victor Costache 2021-06-16 13:32:27 UTC
It is now fixed and closed upstream: https://github.com/graysky2/kernel_compiler_patch/commit/a8d200f422f4b2abeaa6cfcfa37136b308e6e33e