Coder Social home page Coder Social logo

nvidia-340xx-dkms's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nvidia-340xx-dkms's Issues

Package is usable with kernels up to 5.16 (confirmed here).

Prerequisite: Patches up to 5.15 from AUR (https://aur.archlinux.org/packages/nvidia-340xx-dkms/).
These have to be included in the PKGBUILD the usual way, by amending the source() and bsums() arrays as well as the patch section.
The patch for kernel 5.15 from AUR, unfortunately, has DOS instead of Unix line breaks which causes patch to spit out a warning

(Stripping trailing CRs from patch; use --binary to disable.)
patching file kernel/nv-drm.c
patch unexpectedly ends in middle of line

It appears to be merely cosmetically but can be removed by converting the line breaks

echo "$(tr -d '\r' < 0007-kernel-5.15.patch)" > 0007-kernel-5.15.patch

For kernel 5.16, it looks like there is not a lot to be done in addition:

--- a/kernel/nv.h	2022-01-03 17:06:46.101301755 +0100
+++ b/kernel/nv.h	2022-01-03 17:06:57.357726949 +0100
@@ -13,7 +13,7 @@
 #define _NV_H_
 
 #include <nvtypes.h>
-#include <stdarg.h>
+#include <linux/stdarg.h>
 
 #if !defined(NV_MIN)
 #define NV_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))
--- a/kernel/os-interface.h	2022-01-03 17:04:38.890696020 +0100
+++ b/os-interface.h	2022-01-03 17:04:54.263699866 +0100
@@ -24,7 +24,7 @@
 *                                                                           *
 \***************************************************************************/
 
-#include <stdarg.h>
+#include <linux/stdarg.h>
 
 /*
  * Define away Microsoft compiler extensions when possible

Finally, we need the usual ABI check workaround:

Section "ServerFlags"
	Option "IgnoreABI" "true"
EndSection

And that's already all I had to do to get that driver working with kernel 5.16 :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.