Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

additional-cpu-opts missing in 4.20.11 gentoo-sources???

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

additional-cpu-opts missing in 4.20.11 gentoo-sources???

  • Quote

Post by wrc1944 » Wed Feb 20, 2019 6:29 pm

The Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch is missing in today's gentoo-sources update to 4.20.11. 8O

Is this just an oversight, or has it actually been dropped after years of really making these opts convenient in gentoo-sources?

This is a must have patch! :roll: Lots of us have come to rely on this just being there.

https://github.com/graysky2/kernel_gcc_ ... 07e707234e (This is wrong link, see below)

https://dev.gentoo.org/~mpagano/genpatc ... 20-10.html

Or, does it no longer correctly apply in 4.20.11? Worked fine in 4.20.10, as usual.

Code: Select all

 Emerging (1 of 1) sys-kernel/gentoo-sources-4.20.11::gentoo
 * linux-4.20.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                          [ ok ]
 * genpatches-4.20-11.base.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                             [ ok ]
 * genpatches-4.20-11.extras.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                           [ ok ]
 * genpatches-4.20-11.experimental.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                     [ ok ]
>>> Preparing to unpack ...
>>> Unpacking source...
>>> Unpacking linux-4.20.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work
>>> Unpacking genpatches-4.20-11.base.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work/patches
>>> Unpacking genpatches-4.20-11.extras.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work/patches
>>> Unpacking genpatches-4.20-11.experimental.tar.xz to /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work/patches
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ...                                                                                            [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ...                                                                                        [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ...                                                                                            [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ...                                                                                        [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc.patch ...                                                                                            [ ok ]
 * Excluding Patch #5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch ...                                                                                        [ ok ]
 * Applying 1000_linux-4.20.1.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1001_linux-4.20.2.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1002_linux-4.20.3.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1003_linux-4.20.4.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1004_linux-4.20.5.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1005_linux-4.20.6.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1006_linux-4.20.7.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1007_linux-4.20.8.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1008_linux-4.20.9.patch (-p1) ...                                                                                                                             [ ok ]
 * Applying 1009_linux-4.20.10.patch (-p1) ...                                                                                                                            [ ok ]
 * Applying 1010_linux-4.20.11.patch (-p1) ...                                                                                                                            [ ok ]
 * Applying 1500_XATTR_USER_PREFIX.patch (-p1) ...                                                                                                                        [ ok ]
 * Applying 1510_fs-enable-link-security-restrictions-by-default.patch (-p1) ...                                                                                          [ ok ]
 * Applying 2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch (-p1) ...                                                                                        [ ok ]
 * Applying 2600_enable-key-swapping-for-apple-mac.patch (-p1) ...                                                                                                        [ ok ]
 * Applying 4400_alpha-sysctl-uac.patch (-p1) ...                                                                                                                         [ ok ]
 * Applying 4567_distro-Gentoo-Kconfig.patch (-p1) ...                                                                                                                    [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work
>>> Preparing source in /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work/linux-4.20.11-gentoo ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/gentoo-sources-4.20.11/work/linux-4
Last edited by wrc1944 on Wed Feb 20, 2019 8:41 pm, edited 1 time in total.
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
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

  • Quote

Post by wrc1944 » Wed Feb 20, 2019 8:36 pm

I downloaded the correct patch from graysky, and applied it myself, and it worked, as usual. :) Compiling kernel now. I'm assuming leaving it out was just an oversight.

I expect all to be well, but will post back if not. BTW, the correct link is: https://github.com/graysky2/kernel_gcc_ ... 3%2B.patch
The other link above was an old version.

Code: Select all

gentoo-main ~ # cd /usr/src/linux-4.20.11-gentoo
gentoo-main /usr/src/linux-4.20.11-gentoo # patch -p1 < enable_additional_cpu_optimizations_for_gcc_v4.9+_kernel_v4.13+.patch
patching file arch/x86/include/asm/module.h
patching file arch/x86/Kconfig.cpu
Hunk #10 succeeded at 499 (offset -13 lines).
Hunk #11 succeeded at 538 (offset -13 lines).
patching file arch/x86/Makefile
Hunk #1 succeeded at 118 (offset -6 lines).
patching file arch/x86/Makefile_32.cpu
gentoo-main /usr/src/linux-4.20.11-gentoo #
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
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Wed Feb 20, 2019 9:48 pm

wrc1944 wrote:... BTW, the correct link is: https://github.com/graysky2/kernel_gcc_ ... 3%2B.patch
The other link above was an old version...
S**t! Got to do it allover again! :cry:
Thks 4 ur attention, interest & support.
Top
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

  • Quote

Post by wrc1944 » Wed Feb 20, 2019 10:24 pm

:oops: Sorry I had the old link posted first.
Hopefully, Mike Pagano (the genpatches dev) will add the gcc opts 5010 patch. IIRC, this happened once before about 2 years ago. No big deal, as one can always DIY.

Here's where I got the final link to the newest 5010 patch. https://dev.gentoo.org/~mpagano/genpatc ... 20-10.html (at bottom of page.
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
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
mpagano
Developer
Developer
User avatar
Posts: 200
Joined: Tue Apr 27, 2004 4:23 pm
Location: USA

  • Quote

Post by mpagano » Fri Feb 22, 2019 1:00 am

So here's the mess...

The 5010 patch is still there, but won't apply if you are using gcc v8.

This change was made because I had committed the cpu optimization patch for >= gcc v8 and both
can't be applied at the same time. (Obviously)

Then...
I found out that the gcc v8 patch does not apply to 4.20.11 as I was releasing it.

Fun times.

I'll probably end up just seeing if I can fix the problems with the gcc v8 patch tomorrow and then commit for 4.20.12 or 4.20.11-r1. There might even be pull requests upstream to fix it. I have to check.

Sorry about the mess.

Either way, this will be fixed at least over this weekend.
Top
mpagano
Developer
Developer
User avatar
Posts: 200
Joined: Tue Apr 27, 2004 4:23 pm
Location: USA

  • Quote

Post by mpagano » Fri Feb 22, 2019 3:21 pm

Test results from anyone interested welcome:

https://gitweb.gentoo.org/proj/linux-pa ... tch?h=4.20
Top
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

  • Quote

Post by wrc1944 » Fri Feb 22, 2019 10:58 pm

Mike,
Thanks very much! The 5011 patch looks great. I assume this will be in the next 4.20.12 gentoo-sources and beyond the upcoming 5.0.0, but NOT for when gcc-9.x.x is available. Is this correct?

I'm also curious about the 5010 patch and why I was able to use it successfully on 3 Gentoo installs with kernel 4.20.11 and gcc-8.2.
I guess what confuses me is:
mpagano wrote:
This change was made because I had committed the cpu optimization patch for >= gcc v8 and both
can't be applied at the same time. (Obviously)

Then...
I found out that the gcc v8 patch does not apply to 4.20.11 as I was releasing it.
What am I missing here? :?
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
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
mpagano
Developer
Developer
User avatar
Posts: 200
Joined: Tue Apr 27, 2004 4:23 pm
Location: USA

  • Quote

Post by mpagano » Sun Feb 24, 2019 8:17 pm

wrc1944 wrote:Mike,
Thanks very much! The 5011 patch looks great. I assume this will be in the next 4.20.12 gentoo-sources and beyond the upcoming 5.0.0, but NOT for when gcc-9.x.x is available. Is this correct?

I'm also curious about the 5010 patch and why I was able to use it successfully on 3 Gentoo installs with kernel 4.20.11 and gcc-8.2.
I guess what confuses me is:
mpagano wrote:
This change was made because I had committed the cpu optimization patch for >= gcc v8 and both
can't be applied at the same time. (Obviously)

Then...
I found out that the gcc v8 patch does not apply to 4.20.11 as I was releasing it.
What am I missing here? :?
Looking back, I think I was applying both at the same time. Either way, these are now applied according to upstream.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic