Closed ptr1337 closed 2 years ago
As of 14718bb2a347c38a1ff896d9032c3726975460e7, even having a 5.18rc kernel installed causes nvidia-all to fail to install:
-> Applying kernel-5.18.patch for 5.18.0-rc4-256-tkg-cfs...
patching file nvidia/nv.c
Hunk #2 FAILED at 2766.
1 out of 2 hunks FAILED -- saving rejects to file nvidia/nv.c.rej
patching file nvidia/linux_nvswitch.c
Hunk #2 FAILED at 2141.
Hunk #3 FAILED at 2166.
Hunk #4 FAILED at 2195.
Hunk #5 FAILED at 2212.
Hunk #6 FAILED at 2235.
Hunk #7 FAILED at 2257.
6 out of 7 hunks FAILED -- saving rejects to file nvidia/linux_nvswitch.c.rej```
I do actually have a patch which works. But the kernel needs also patched.
Actually through there were some stuff removed from the 5.18 kernel which actually need to get patched.
The result removing this from dkms is that other kernels are failing in dkms, so just 5.18 will boot.
As of 14718bb, even having a 5.18rc kernel installed causes nvidia-all to fail to install:
-> Applying kernel-5.18.patch for 5.18.0-rc4-256-tkg-cfs... patching file nvidia/nv.c Hunk #2 FAILED at 2766. 1 out of 2 hunks FAILED -- saving rejects to file nvidia/nv.c.rej patching file nvidia/linux_nvswitch.c Hunk #2 FAILED at 2141. Hunk #3 FAILED at 2166. Hunk #4 FAILED at 2195. Hunk #5 FAILED at 2212. Hunk #6 FAILED at 2235. Hunk #7 FAILED at 2257. 6 out of 7 hunks FAILED -- saving rejects to file nvidia/linux_nvswitch.c.rej```
I’ll watch later to to adjust the patch, seems like they changed some stuff.
Hacking the PKGBUILD to bypass the patch failure, I was able to sucessfully install the DKMS on 5.18.0-rc4-256-tkg-cfs and boot into is, so 5.18 seems to be fixed as of driver version 510.68.02.
Hacking the PKGBUILD to bypass the patch failure, I was able to sucessfully install the DKMS on 5.18.0-rc4-256-tkg-cfs and boot into is, so 5.18 seems to be fixed as of driver version 510.68.02.
Wow, cool. Seems hard for nvidia to write this in their patchnotes..
I'll close this issue.
Opened a pull request with my workaround: #100
Does not solve older driver versions on 5.18, but should enable 510.68.02+ to work on kernel 5.18
As already commented in https://github.com/Frogging-Family/nvidia-all/issues/95 the issue still exists: