kernel_compiler_patch icon indicating copy to clipboard operation
kernel_compiler_patch copied to clipboard

kernel-6.15

Open UrbanDesimator opened this issue 9 months ago • 4 comments

Hi I have been using your patches since version 5 kernel, make a real difference on my AMD FX4130 I have even begun recompiling all key pkgs of my distro Slackware with bdver1. I realise kernel-6.15.0-rx1 has only been out a few days I'm curious if your patch will be able to work with it the Makefile has changed a lot causing patch failure on all hunks for it.

UrbanDesimator avatar Apr 13 '25 02:04 UrbanDesimator

6.15 has now a -march=native variable

We have not ported the full patch, but we added the once we compile, e.g v1,v2,v3 and Zen4: https://github.com/CachyOS/linux/commit/b7311fe1fb874fce1455f0716ae039ba037f935e

ptr1337 avatar Apr 13 '25 08:04 ptr1337

6.15 has now a -march=native variable

It's not actually in 6.15 yet, but it's baking in tip.

1Naim avatar Apr 14 '25 02:04 1Naim

Yeah, looks like a major re-write. PRs are always welcomed. In the meantime, you can follow this advice: https://github.com/graysky2/kernel_compiler_patch?tab=readme-ov-file#alternative-way-to-define-a--march-option-without-this-patch

graysky2 avatar Apr 14 '25 19:04 graysky2

Thank you so much for your quick replies and the information, I saw the advice alternative way to apply. And after first trying to manually add the patch which failed, I added the alternative way to my kernel build script instead.

export KCFLAGS=' -march=bdver1' export KCPPFLAGS=' -march=bdver1'

My resulting package name included bdver1, as the previous build was back to x86_64 without the export. Checking build log gcc was using the flags during the build. kernel-rt1-bore-generic-6.15.0_rc1-bdver1-rc1-rt1-004.txz

The config X86_NATIVE_CPU is not in 6.15-rc1 as 1Naim said but being signed should be in next rc release. I do a lot of testing for linux-rt-devel checking for performance regression and bugs. I will have a look at the 3 files and see if I can produce any patches. From my try at manual patch, It seems to be getting the cpu selection back into menuconfig. I had it partially shown in menuconfig just not listing cpu names.

UrbanDesimator avatar Apr 15 '25 21:04 UrbanDesimator

Grateful if you guys can proof read the latest commit

graysky2 avatar Jun 12 '25 16:06 graysky2