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.
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
Reported upstream: https://github.com/graysky2/kernel_compiler_patch/issues/75
It is now fixed and closed upstream: https://github.com/graysky2/kernel_compiler_patch/commit/a8d200f422f4b2abeaa6cfcfa37136b308e6e33e