sirlucjan / copr-linux-cachyos

Kernel cachyos-bore port for Fedora operating system
https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos/
GNU General Public License v3.0
35 stars 8 forks source link

Add prebuilt nvidia-open kernel modules for CachyOS kernels. #15

Closed 1Naim closed 4 months ago

1Naim commented 4 months ago

The motivation behind this PR is that nvidia's open gpu kernel modules fail to build correctly on clang LTO built kernels. I have taken inspiration from upstream CachyOS's PKGBUILD and ported over to the spec file.

I have tested this locally and can confirm that the open kernel modules work and communicates correctly with the userspace drivers.

One major issue right now is that there are two versions of nvidia userspace drivers provided by Fedora, one by RPMFusion and one by Negativo17. The driver package scheme and naming differs between these two and I am unsure on how to resolve the package dependencies. At the moment, I have set RPMFusion's nvidia userspace driver as a dependency so Negativo17 drivers unfortunately can't use it at the moment (See L178). I hope that this gets resolved in this PR so all users can happily use the LTO built kernels and nvidia's open kernel modules.