Skip to content

Conversation

@LFRon
Copy link

@LFRon LFRon commented Dec 3, 2025

1: I meet compiling error while compiling Nvidia OpenGPU driver 580.105.08, and I also found Nvidia OpenGPU version has upgraded to 580.105.08, so open this PR to fix the problem.
2: I found if enable Clang ThinLTO, which might use "CONFIG_LTO_CLANG_THIN" not "LTO_CLANG_THIN"
3: I also found CachyOS kernel team has created a option called "CONFIG_LTO_CLANG_THIN_DIST", so I enable it on the second commit
4: I can make sure that these changes could work because I have succeeded on my COPR REPO with CachyOS v2,v3,v4 kernel even with Clang Full-LTO enabled: https://copr.fedorainfracloud.org/coprs/mozixun and my full modify repo is at: https://github.com/LFRon/Fedora-CachyOS-Patch-Kernel
Could developer merge them with modify so Fedora users could enjoy the CachyOS kernel with best performance and experience? Thanks🌹

@sirlucjan
Copy link
Member

scripts/config works correctly with both CONFIG_SOMETHING and SOMETHING. We have always used the latter option and have never had any problems.

THIN_DIST is an experimental option and we cannot make it the default.

@ptr1337
Copy link
Member

ptr1337 commented Dec 3, 2025

I think thin-dist will not provide a real benefit

@LFRon
Copy link
Author

LFRon commented Dec 3, 2025

I think thin-dist will not provide a real benefit

Actually I just found thin-dist appear in the CachyOS kernel patch so I open it )

@LFRon
Copy link
Author

LFRon commented Dec 3, 2025

scripts/config works correctly with both CONFIG_SOMETHING and SOMETHING. We have always used the latter option and have never had any problems.

THIN_DIST is an experimental option and we cannot make it the default.

Oh I got it, thanks for your guide! Should I reopen the PR and remove unnessary commit info?

@sirlucjan
Copy link
Member

Just force-push your branch.

@sirlucjan
Copy link
Member

But to be honest: simply adding autofdo/propeller without adding profiles will cause regression. Fedora cannot use profiles from CachyOS because of incompatibility between environments/libraries. Therefore, it is pointless unless appropriate profiles are created specifically for Fedora.

LFRon added 5 commits December 3, 2025 22:06
…E and PROPELLER"

This reverts commit 1ecac6d.

revert: not enable Clang PROPELLER and AutoFDO
This reverts commit aec19d4.

revert: not use Clang ThinLTO_DIST
… version for Fedora 43, also fix the compilation on Nvidia OpenGPU and Clang Thin-LTO"

This reverts commit c8f24e8.

revert: will delete unnecessary code
@LFRon
Copy link
Author

LFRon commented Dec 3, 2025

But to be honest: simply adding autofdo/propeller without adding profiles will cause regression. Fedora cannot use profiles from CachyOS because of incompatibility between environments/libraries. Therefore, it is pointless unless appropriate profiles are created specifically for Fedora.
So though I compile the kernel in COPR with Fedora chroot, I still cannot get the profile for AutoFDO,etc right?

@LFRon
Copy link
Author

LFRon commented Dec 3, 2025

OK, I have reset my patch and add the necessary patches only, but I have a problem that I don't test which Nvidia OpenGPU 580.95.05 driver could apply these patches, I only test on 580.105.08 and which works )

@LFRon LFRon changed the title 6.18: Fix compilation error and upgrade Nvidia OpenGPU version on Fedora 43, and enable ThinLTO_DIST 6.18: Fix compilation error and upgrade Nvidia OpenGPU version on Fedora 43 Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants