Summary: | x11-drivers/nvidia-drivers-340.107-r1 patches for recent kernels | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Reuben Martin <reuben.m> |
Component: | Current packages | Assignee: | Jeroen Roovers (RETIRED) <jer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | benjamin.reveille, molletts, pacho |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=703876 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
4.11 Patch
5.0 Patch 5.1 Patch User Copy Patch Procfs Patch Kernel 5.3 build fix Kernel 5.4 build fix Slight revision of the 5.4 patch because it would not apply on top of the 5.1 patch without modification First patch to compile against 5.7 Second patch to compile against 5.7 Patch to compile against 5.6 |
Description
Reuben Martin
2019-09-07 21:22:13 UTC
Created attachment 589364 [details, diff]
4.11 Patch
Created attachment 589366 [details, diff]
5.0 Patch
Created attachment 589368 [details, diff]
5.1 Patch
Created attachment 589370 [details, diff]
User Copy Patch
Kernel seems to work without this, but barfs all over your dmesg
Created attachment 589372 [details, diff]
Procfs Patch
Graceful driver crash handling
You forgot to take notice of the warning the ebuild emits to NOT FILE BUG REPORTS about this. However, since we have epatch_user/eapply_user these days, I tend to leave bug reports open so that people can easily find the patches they might want to apply at their own risk. Could be my bug: https://bugs.gentoo.org/693538 related to this bug? Created attachment 590074 [details, diff] Kernel 5.3 build fix Supplementary to earlier patches, add it to your user patches for the package. Fixes the errors with smp_call_function() and on_each_cpu(). Derived from Alberto Milone's patch for the Ubuntu DKMS package fixing their 5.3 build bug: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1837890 Thank you very much! This worked perfectly! Thank you very much! This worked perfectly! Created attachment 597974 [details, diff] Kernel 5.4 build fix Another supplementary user patch, to be applied after all previous ones (including the 5.3 build fix). Once again, derived from Alberto Milone's Ubuntu patch: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340/+bug/1850824 Created attachment 598862 [details, diff]
Slight revision of the 5.4 patch because it would not apply on top of the 5.1 patch without modification
(In reply to Benjamin Réveillé from comment #12) > Slight revision of the 5.4 patch because it would not apply on top of the > 5.1 patch without modification Hm, I must have used a slightly different patch when I originally installed the driver with 5.1. My mistake. I shall sync my set of patches with these to ensure future compatibility, assuming the nice folks at Nvidia don't issue an update in the mean time (hint, hint) ;) Thanks for fixing it! 340.108 is out, if anyone wants to take a look at how much they fixed. (In reply to Shiba from comment #14) > 340.108 is out, if anyone wants to take a look at how much they fixed. it compiles ok for me without patches and kernel 5.4 (In reply to Pacho Ramos from comment #15) > (In reply to Shiba from comment #14) > > 340.108 is out, if anyone wants to take a look at how much they fixed. > > it compiles ok for me without patches and kernel 5.4 Likewize compiled and installed by just copying nvidia-drivers-340.107-r1.ebuild to nvidia-drivers-340.108.ebuild in local overlay (along with the adequate files from "files") digesting it and emerging it... Created attachment 643168 [details, diff] First patch to compile against 5.7 Here is the first of the 2 extra patches to add (on top of the previous 5.6 one) so as to compile against for 5.7. They are taken from https://forums.developer.nvidia.com/t/patches-for-340-108-and-5-6-rc-need-help-with-driver-init/111760/12 Created attachment 643170 [details, diff] Second patch to compile against 5.7 Here is the second of the 2 extra patches to add (on top of the previous 5.6 one) so as to compile against for 5.7. They are taken from https://forums.developer.nvidia.com/t/patches-for-340-108-and-5-6-rc-need-help-with-driver-init/111760/12 Created attachment 643172 [details, diff] Patch to compile against 5.6 This is the patch to compile against 5.6. Taken from https://forums.developer.nvidia.com/t/patches-for-340-108-and-5-6-rc-need-help-with-driver-init/111760/12 |