Bug 6802

Summary: Can´t build when using 390.157-5-for-6.6.2-201
Product: Fedora Reporter: isantolin <ignacio.santolin>
Component: nvidia-390xx-kmodAssignee: Henrik Nordström <henrik>
Status: RESOLVED FIXED    
Severity: major CC: bugs, ignacio.santolin, leigh123linux, nicolas.vieville, piotr, qwnsknight, ulatekh
Priority: P1    
Version: f39   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Attachments: Log file from error
Patch to fix kernel 6.6 build

Description isantolin 2023-11-26 17:54:35 CET
Created attachment 2531 [details]
Log file from error

I Trying to build using:
- xorg-x11-drv-nvidia-390xx: 390.157-3.fc39
- akmod-nvidia-390xx: 390.157-5.fc39
- Kernel: 6.6.2-201.fc39.x86_64

But an Building and installing nvidia-390xx-kmod [FAILED] error appears. Logs attached
Comment 1 Steve 2023-11-30 02:19:41 CET
Created attachment 2532 [details]
Patch to fix kernel 6.6 build

Enclosed is a patch that fixes the build for kernel 6.6.
Someone that knows more about making driver builds compatible across kernel versions can probably come up with a better patch.
But this gets it working for me.
Inspired by https://github.com/DisplayLink/evdi/pull/436 .
Comment 2 leigh scott 2023-11-30 14:42:15 CET
*** Bug 6805 has been marked as a duplicate of this bug. ***
Comment 3 NVieville 2023-12-01 19:27:35 CET
Hello,

Here is 2 URLs to patches that address the compile fail for kernel 6.6, with 2 different approaches (don't know which is the best fix):

https://sources.debian.org/src/nvidia-graphics-drivers-legacy-390xx/390.157-6/debian/module/debian/patches/0032-backport-drm_gem_prime_handle_to_fd-changes-from-470.patch/

https://aur.archlinux.org/cgit/aur.git/tree/kernel-6.6.patch?h=nvidia-390xx-utils

Maybe this will be helpful.

Cordially,


-- 
NVieville
Comment 4 leigh scott 2023-12-02 09:36:26 CET
The maintainer has been MIA for nearly a year.

https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-390xx-kmod.git/

Someone will need to take over ownership otherwise the package will be removed from the repo.
Comment 5 Nicolas Chauvet 2023-12-02 10:49:46 CET
@NVieville

Feel free to take-over if you have the needed hardware or care enough to still maintain the 390xx branch.
Comment 6 NVieville 2023-12-02 18:41:40 CET
Hello Nicolas, hello Leigh Scott,

Leigh Scott had already given me commit rights for the nvidia-390xx-kmod package on April 11, 2023, on bug 6611 regarding the kmod not building on kernel 6.2.

For this bug report, I think I've got a fix for the kernel 6.6. 

It would be great if I could take over on this package. My organization stills use some old workstations with the needed hardware on Fedora 39, that's why I report sometimes this sort of issue. But my availability is not so great that I can invest time to understand and maintain all the packages involved in the nvidia-390xx module. It's also worth knowing that I can only test new packages at work. No Nvidia on Fedora at home. If I have a fix for this issue today, I can only test it on Monday.
This could be done quickly (today), if some of the watchers of this bug report can test the new package once it get build by koji, but for my part it would only be a shot in the dark.

As I can commit on this package already, I can push some fixes when needed, but I think it's best to leave the current maintainer ownership of this package, as I can't guarantee that I will have sufficient availability to do this job properly.

Feel free to make any comment about these subjects.

Cordially,


-- 
NVieville
Comment 7 NVieville 2023-12-03 11:05:06 CET
Hello,

The new package with nvidia-390xx kernel module patched for kernel 6.6 has been build and is available for testing here:

https://koji.rpmfusion.org/koji/buildinfo?buildID=27418

Tests and feedback are welcome.

Cordially,


-- 
NVieville
Comment 8 Steve 2023-12-03 20:54:46 CET
@NVieville: I looked over your akmods RPM; it seems fine to me. installed it and let it build the 6.6 driver; it's working fine. Thanks for doing this!
Comment 9 isantolin 2023-12-03 22:02:15 CET
(In reply to NVieville from comment #7)
> Hello,
> 
> The new package with nvidia-390xx kernel module patched for kernel 6.6 has
> been build and is available for testing here:
> 
> https://koji.rpmfusion.org/koji/buildinfo?buildID=27418
> 
> Tests and feedback are welcome.
> 
> Cordially,
> 
> 
> -- 
> NVieville

@NVieville: Kernel module working fine
Comment 10 Henrik Nordström 2023-12-14 15:13:16 CET
thanks for confirming
Comment 11 Henrik Nordström 2023-12-14 15:15:25 CET
*** Bug 6812 has been marked as a duplicate of this bug. ***
Comment 12 qwnsknight 2023-12-15 23:26:34 CET
This solved my issue on fc38. Thank you !!
Comment 13 Piotrek Żygieło 2023-12-16 12:17:47 CET
Thank you for the fix and new version.