Bug 4868

Summary: Is this package discontinued for F28?
Product: Fedora Reporter: Hedayat Vatankhah <hedayatv>
Component: nvidia-340xx-kmodAssignee: Nobody is listening <orphaned>
Status: RESOLVED FIXED    
Severity: enhancement CC: eliasen, hans, kwizart, negativo17, powderlinux, pprzemal, ufa
Priority: P1    
Version: f28   
Hardware: x86_64   
OS: GNU/Linux   
namespace:

Description Hedayat Vatankhah 2018-04-17 13:41:12 CEST
I don't see this driver in F28 repos now. Is it discontinued or it will appear in the repos soon?

Thanks
Comment 1 Nicolas Chauvet 2018-04-17 13:47:04 CEST
It's removed because fedora plans to update to xorg-server- 1.20 after GA.
It's unknown when nvidia will release an updated driver for 340xx, and we won't hold xorg-server 1.20 for such legacy release.

So plan is to re-introduce this 340xx driver once the xorg-server 1.20 support lands for f28+

Please grab the driver from f27 as a workaround.
Comment 2 leigh scott 2018-04-17 14:13:37 CEST
(In reply to Nicolas Chauvet from comment #1)
> So plan is to re-introduce this 340xx driver once the xorg-server 1.20
> support lands for f28+ 

340xx has no active maintainer.
Comment 3 ufa 2018-05-24 20:40:59 CEST
(In reply to Nicolas Chauvet from comment #1)
> It's removed because fedora plans to update to xorg-server- 1.20 after GA.
> It's unknown when nvidia will release an updated driver for 340xx, and we
> won't hold xorg-server 1.20 for such legacy release.
> 
> So plan is to re-introduce this 340xx driver once the xorg-server 1.20
> support lands for f28+
> 
> Please grab the driver from f27 as a workaround.

Do you mind explaining how to do that?
Comment 4 p0wder 2018-05-27 05:30:54 CEST
(In reply to ufa from comment #3)
> (In reply to Nicolas Chauvet from comment #1)
> > Please grab the driver from f27 as a workaround.
> 
> Do you mind explaining how to do that?


Hey ufa,

To install the nvidia340 drivers from fedora 27 on fedora 28 you need to download the RPM packages from https://fedora.pkgs.org and install them manually.

I made an install guide for anyone that needs help doing this:
http://pc.cd/LtrctalK

I also uploaded the RPMs (64-bit only) to my pCloud to make it easier for anyone else that needs to use this workaround. Download link:
http://pc.cd/73gctalK

Hope that helps!

-p0wder
Comment 5 ufa 2018-05-28 03:02:42 CEST
(In reply to p0wder from comment #4)
> (In reply to ufa from comment #3)
> > (In reply to Nicolas Chauvet from comment #1)
> > > Please grab the driver from f27 as a workaround.
> > 
> > Do you mind explaining how to do that?
> 
> 
> Hey ufa,
> 
> To install the nvidia340 drivers from fedora 27 on fedora 28 you need to
> download the RPM packages from https://fedora.pkgs.org and install them
> manually.
> 
> I made an install guide for anyone that needs help doing this:
> http://pc.cd/LtrctalK
> 
> I also uploaded the RPMs (64-bit only) to my pCloud to make it easier for
> anyone else that needs to use this workaround. Download link:
> http://pc.cd/73gctalK
> 
> Hope that helps!
> 
> -p0wder

Thank you p0wnder, but it didn't work.
I was greeted with the sad computer face, that happened when I booted fedora 28 the first time after the update from 27.
But thanks anyway
Comment 6 Steve 2018-05-28 05:48:25 CEST
> Thank you p0wnder, but it didn't work.
> I was greeted with the sad computer face, that happened when I booted fedora
> 28 the first time after the update from 27.
> But thanks anyway

Did you disable SELinux?
Comment 7 Nicolas Chauvet 2018-05-28 08:05:10 CEST
In order to install the 340xx serie on f28 with rpmfusion one can do:
dnf install xorg-x11-drv-nvidia-340xx kmod-nvidia-340xx --releasever=27 --nogpgcheck

(Use nogpgcheck if you haven't already imported the f27 rpmfusion-nonfree gpg key).

This is documented at 
https://rpmfusion.org/Howto/NVIDIA#Latest.2FBeta_driver
Comment 8 Nicolas Chauvet 2018-05-28 08:07:11 CEST
Please keep in mind this is not supported yet because the xorg-server might be updated to xorg-server 1.20 in f28, breaking this driver.

When nvidia will release an updated driver for xorg-server 1.20 we will re-introduce the driver in f28.
Comment 9 ufa 2018-05-28 17:12:27 CEST
(In reply to Nicolas Chauvet from comment #8)
> Please keep in mind this is not supported yet because the xorg-server might
> be updated to xorg-server 1.20 in f28, breaking this driver.
> 
> When nvidia will release an updated driver for xorg-server 1.20 we will
> re-introduce the driver in f28.

Hi Nicolas,
thank you for your reply. I am still unable to use the NVidia driver on Fedora 28. 
I think it may have something to do with the 4.16 kernels. On my dmesg:

[seg mai 28 11:58:49 2018] ------------[ cut here ]------------
[seg mai 28 11:58:49 2018] Bad or missing usercopy whitelist? Kernel memory exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864, size 3)!
[seg mai 28 11:58:49 2018] WARNING: CPU: 1 PID: 997 at mm/usercopy.c:81 usercopy_warn+0x7d/0xa0

...

I would stick with nouveau, if it didn't random freeze my system from time to time. 

Best wishes.
Comment 10 Nicolas Chauvet 2018-05-28 17:24:17 CEST
(In reply to ufa from comment #9)
> (In reply to Nicolas Chauvet from comment #8)


> [seg mai 28 11:58:49 2018] ------------[ cut here ]------------
> [seg mai 28 11:58:49 2018] Bad or missing usercopy whitelist? Kernel memory
> exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864,
> size 3)!
> [seg mai 28 11:58:49 2018] WARNING: CPU: 1 PID: 997 at mm/usercopy.c:81
> usercopy_warn+0x7d/0xa0
Maybe you could have a look at patches produced for 340xx serie of nvidia drivers, or even any others series.

This is likely that the nvidia-340xx driver will already need patches for 4.16 kernel on f27, so one would need to update the package.
Comment 11 ufa 2018-05-29 01:09:53 CEST
(In reply to Nicolas Chauvet from comment #10)
> (In reply to ufa from comment #9)
> > (In reply to Nicolas Chauvet from comment #8)
> 
> 
> > [seg mai 28 11:58:49 2018] ------------[ cut here ]------------
> > [seg mai 28 11:58:49 2018] Bad or missing usercopy whitelist? Kernel memory
> > exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864,
> > size 3)!
> > [seg mai 28 11:58:49 2018] WARNING: CPU: 1 PID: 997 at mm/usercopy.c:81
> > usercopy_warn+0x7d/0xa0
> Maybe you could have a look at patches produced for 340xx serie of nvidia
> drivers, or even any others series.
> 
> This is likely that the nvidia-340xx driver will already need patches for
> 4.16 kernel on f27, so one would need to update the package.

(In reply to Nicolas Chauvet from comment #8)
> Please keep in mind this is not supported yet because the xorg-server might
> be updated to xorg-server 1.20 in f28, breaking this driver.
> 
> When nvidia will release an updated driver for xorg-server 1.20 we will
> re-introduce the driver in f28.

Is this the driver we are waiting for?

https://devtalk.nvidia.com/default/topic/1032986/b/t/post/5255724/#5255724

"Added support for X.Org xserver ABI 24 (xorg-server 1.20)."
Comment 12 ufa 2018-05-29 01:19:02 CEST
(In reply to ufa from comment #11)
> (In reply to Nicolas Chauvet from comment #10)
> > (In reply to ufa from comment #9)
> > > (In reply to Nicolas Chauvet from comment #8)
> > 
> > 
> > > [seg mai 28 11:58:49 2018] ------------[ cut here ]------------
> > > [seg mai 28 11:58:49 2018] Bad or missing usercopy whitelist? Kernel memory
> > > exposure attempt detected from SLUB object 'nvidia_stack_t' (offset 11864,
> > > size 3)!
> > > [seg mai 28 11:58:49 2018] WARNING: CPU: 1 PID: 997 at mm/usercopy.c:81
> > > usercopy_warn+0x7d/0xa0
> > Maybe you could have a look at patches produced for 340xx serie of nvidia
> > drivers, or even any others series.
> > 
> > This is likely that the nvidia-340xx driver will already need patches for
> > 4.16 kernel on f27, so one would need to update the package.
> 
> (In reply to Nicolas Chauvet from comment #8)
> > Please keep in mind this is not supported yet because the xorg-server might
> > be updated to xorg-server 1.20 in f28, breaking this driver.
> > 
> > When nvidia will release an updated driver for xorg-server 1.20 we will
> > re-introduce the driver in f28.
> 
> Is this the driver we are waiting for?
> 
> https://devtalk.nvidia.com/default/topic/1032986/b/t/post/5255724/#5255724
> 
> "Added support for X.Org xserver ABI 24 (xorg-server 1.20)."

Never mind, it's a different version from 340.xxx
Comment 13 eliasen 2018-06-10 07:22:47 CEST
NVidia has now released a version of the 340.xx drivers with the following fixes:

"Updated nvidia-installer in the 340.xx legacy driver series to default to installing the driver without the NVIDIA Unified Memory kernel module if this module fails to build at installation time. The 340.xx legacy Unified Memory kernel module is incompatible with recent Linux kernels, and the GPU hardware generations that the 340.xx legacy driver series is intended to support do not support Unified Memory.

Added support for X.Org xserver ABI 24 (xorg-server 1.20)."

This may allow the 340.xx drivers to be built.

http://www.nvidia.com/Download/driverResults.aspx/135161/en-us
Comment 14 eliasen 2018-06-10 07:25:01 CEST
(In reply to eliasen from comment #13)
> NVidia has now released a version of the 340.xx drivers with the following
> fixes:
...
> http://www.nvidia.com/Download/driverResults.aspx/135161/en-us

Oops, that was a link to the ARM driver.  Here's the link to the x86 driver.

http://www.nvidia.com/Download/driverResults.aspx/135160/en-us
Comment 15 Hedayat Vatankhah 2018-06-10 23:34:05 CEST
Apparently we need someone to maintain this package... even if it is a minimal one excluding stuff like cuda.
Comment 16 Nicolas Chauvet 2018-06-11 07:30:31 CEST
We always need volunteers to maintain packages.
If you want to take-over (specially for kernel patches management and testing).
Please consider joining:
https://rpmfusion.org/Contributors

The 340xx update will be pushed in a few:
http://koji.rpmfusion.org/koji/buildinfo?buildID=7662
Comment 17 eliasen 2018-06-14 10:30:13 CEST
I might be doing something wrong, but I don't see the kmod-nvidia-340xx package on koji nor for Fedora 28.  Just the xorg-x11-drv-nvidia-340xx package.

I don't think that anything will work without the kmod-nvidia-340xx package?  Is this built and available somewhere?
Comment 18 ufa 2018-06-14 20:08:01 CEST
(In reply to eliasen from comment #17)
> I might be doing something wrong, but I don't see the kmod-nvidia-340xx
> package on koji nor for Fedora 28.  Just the xorg-x11-drv-nvidia-340xx
> package.
> 
> I don't think that anything will work without the kmod-nvidia-340xx package?
> Is this built and available somewhere?

I'm also having problems downloading and installing the driver. I think it is not ready yet.
Comment 19 ufa 2018-06-18 14:12:43 CEST
(In reply to eliasen from comment #17)
> I might be doing something wrong, but I don't see the kmod-nvidia-340xx
> package on koji nor for Fedora 28.  Just the xorg-x11-drv-nvidia-340xx
> package.
> 
> I don't think that anything will work without the kmod-nvidia-340xx package?
> Is this built and available somewhere?

Is it this?
http://koji.rpmfusion.org/koji/buildinfo?buildID=7667
Comment 20 Nicolas Chauvet 2018-06-18 16:01:36 CEST
There is an infra issue that prevented theses packages to appear
This is now fixed on the primary mirror and will be fixed on local mirrors in the next few hours.
Comment 21 ufa 2018-06-18 22:54:50 CEST
(In reply to Nicolas Chauvet from comment #20)
> There is an infra issue that prevented theses packages to appear
> This is now fixed on the primary mirror and will be fixed on local mirrors
> in the next few hours.

It worked, thank you so much!
Comment 22 eliasen 2018-06-20 08:44:43 CEST
Confirmed that akmod-nvidia-340xx also works now under Fedora 28, including after multiple kernel updates and rebuilds.

Thank you so much!  

This prevents my not-really-old laptop from panic shutting itself down every 10 minutes (even when relatively idle) to prevent overheating and damage from the nouveau drivers.  These "legacy" drivers mean a lot to people who have perfectly usable but not-the-latest hardware.  Thank you.    Please keep these as a priority when new Fedora releases are made.