Bug 26612

Summary: dkms-nvidia-current fails to build on old kernels
Product: Mageia Reporter: Giuseppe Ghibò <ghibomgx>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: meinsta
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: nvidia-current-430.64-10.mga7.src.rpm CVE:
Status comment:
Attachments: Completion of initial 5.6 patch for fixing building in older kernels
Completion of 5.6 patch for fixing building in older kernels
diff for current nvidia-current.spec file

Description Giuseppe Ghibò 2020-05-12 15:07:50 CEST
Description of problem:

After the Arch patch for the kernels 5.6.x, the nvidia 430.64 kernel modules fails to build in all kernel series where a function do_gettimeofday() is still existing. It's a case for instance of kernel 4.19.x, which one might have still installed or using from various sources, including upstream. I completed the patch, borrowing the code from nvidia 440 series, that fixes this problem.
Comment 1 Giuseppe Ghibò 2020-05-12 15:09:12 CEST
Created attachment 11637 [details]
Completion of initial 5.6 patch for fixing building in older kernels
Comment 2 Giuseppe Ghibò 2020-05-12 15:10:39 CEST
Created attachment 11638 [details]
Completion of 5.6 patch for fixing building in older kernels
Comment 3 Giuseppe Ghibò 2020-05-12 15:12:08 CEST
Created attachment 11639 [details]
diff for current nvidia-current.spec file
Giuseppe Ghibò 2020-05-12 15:14:29 CEST

Attachment 11637 is obsolete: 0 => 1

Giuseppe Ghibò 2020-05-12 15:15:00 CEST

Attachment 11638 description: Completion of 5.6 patch for fixing in older kernels => Completion of 5.6 patch for fixing building in older kernels

Comment 4 Lewis Smith 2020-05-12 20:16:28 CEST
Thank you for the report and your contribution.

I think this needs tmb's opinion, so assigning to the kernel/drivers group.

Assignee: bugsquad => kernel

Comment 5 Anca N. 2020-05-31 17:10:56 CEST
(In reply to Giuseppe Ghibò from comment #3)
> Created attachment 11639 [details]
> diff for current nvidia-current.spec file

Hello, 
I have a nVidia geforce gtx 950m component.
I explained my issue here https://bugs.mageia.org/show_bug.cgi?id=24436#c48
Does the patch you did help me?
If so, can you please guide me which steps I have to do?
Thank you in advance!

CC: (none) => meinsta

Comment 6 Giuseppe Ghibò 2020-05-31 18:03:52 CEST
Indeed the original bug was against kernel 4.20, that's why I though you could be hit and have the kernel modules not built correctly, but you said you were using newer kernel 5.6.8, so it shouldn't be affected by this bug.
Comment 7 Anca N. 2020-05-31 18:17:51 CEST
(In reply to Giuseppe Ghibò from comment #6)
> Indeed the original bug was against kernel 4.20, that's why I though you
> could be hit and have the kernel modules not built correctly, but you said
> you were using newer kernel 5.6.8, so it shouldn't be affected by this bug.

Ok. Thank you! 
I actually login as root, but I still cannot login as my usual user. 
I think that I should uninstall the nVidia driver from the usual user, maybe from the command line but I don't know which command uninstalls the nVidia driver. 

As root I gave those commands:
#urpme -a nvidia
#urpme --auto-orphans
#darcut -f

I reboot the computer but I still cannot login as the usual user.
Does anyone have a sugestion, an idea?
Thank you in advance!
Comment 8 sturmvogel 2022-06-12 16:09:59 CEST
As we no longer ship the Nvidia 430.xx driver series in MGA8 and we already reached kernel 5.15/.16/.17/.18 series...

Closing as FIXED.

Resolution: (none) => FIXED
Status: NEW => RESOLVED