Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo-sources 5012_enable-cpu-opts patch works in 5.4-rc4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
wrc1944
Advocate
Advocate


Joined: 15 Aug 2002
Posts: 3345
Location: Gainesville, Florida

PostPosted: Wed Oct 23, 2019 9:54 pm    Post subject: gentoo-sources 5012_enable-cpu-opts patch works in 5.4-rc4 Reply with quote

FWIW, the latest gentoo-sources gcc-opts patch applies OK in 5.4-rc4, and kernel compiles/boots/runs fine.
Just copy the patch enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch into linux-5.4-rc4, and then:

Code:
gentoo-main ~ # cd /usr/src/linux-5.4-rc4
gentoo-main /usr/src/linux-5.4-rc4 # patch -p1 < enable_additional_cpu_optimizations_for_gcc_v9.1+_kernel_v4.13+.patch
patching file arch/x86/include/asm/module.h
patching file arch/x86/Kconfig.cpu
patching file arch/x86/Makefile
Hunk #1 succeeded at 119 (offset 1 line).
patching file arch/x86/Makefile_32.cpu
gentoo-main /usr/src/linux-5.4-rc4 #
Then configure as usual ( I use my hardware specific refined and lean config file, and do a make xconfig if needed for new features).

It's the 5012_enable-cpu-optimizations-for-gcc91.patch at bottom of genpatches page.

https://dev.gentoo.org/~mpagano/genpatches/patches-5.3-6.html

https://github.com/graysky2/kernel_gcc_patch
_________________
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
Gentoo ~amd64 plasma, glibc-2.30-r6, gcc-9.3.0 kernel-5.5.11-gentoo USE=experimental
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum