Package Details: opencl-nvidia-390xx 390.157-13

Git Clone URL: https://aur.archlinux.org/nvidia-390xx-utils.git (read-only, click to copy)
Package Base: nvidia-390xx-utils
Description: OpenCL implemention for NVIDIA
Upstream URL: https://www.nvidia.com/
Licenses: custom
Conflicts: opencl-nvidia
Provides: opencl-driver, opencl-nvidia
Submitter: svenstaro
Maintainer: jonathon (vnctdj)
Last Packager: vnctdj
Votes: 61
Popularity: 3.25
First Submitted: 2020-03-11 17:29 (UTC)
Last Updated: 2024-11-25 23:34 (UTC)

Dependencies (2)

Required by (66)

Sources (16)

Pinned Comments

jonathon commented on 2022-05-26 09:46 (UTC)

Please don't flag this package out-of-date unless a new version has been released by NVIDIA.

jonathon commented on 2021-12-26 22:44 (UTC) (edited on 2021-12-26 22:44 (UTC) by jonathon)

The DKMS package guidelines are explicit that linux-headers should not be a dependency of any DKMS package.

As a concrete example of why including that as a hard dependency is a bad idea, what happens when linux is not an installed kernel?

jonathon commented on 2020-10-19 12:41 (UTC) (edited on 2021-05-11 14:18 (UTC) by jonathon)

PACKAGE NEEDS LONG TERM MAINTAINER

I have adopted the 390xx packages to keep them secure. I do not run any 390xx hardware so will not notice any breakages and cannot test any changes.

Until such time as someone else steps up to maintain these packages - ideally someone who actually has 390xx hardware - I have to rely on you to tell me what changes are needed.

Don't expect a response if you post only "this doesn't work", and do not email me to complain about the package not working!

Use this forum thread for discussion: https://bbs.archlinux.org/viewtopic.php?pid=1946926

A binary package is also available in my kernel-lts unofficial user repository.

Latest Comments

« First ‹ Previous 1 .. 8 9 10 11 12 13 14 15 16 17 18 .. 27 Next › Last »

drankinatty commented on 2023-07-03 21:10 (UTC) (edited on 2023-07-03 21:12 (UTC) by drankinatty)

And thanks to @duht as well. The omission in thanking you wasn't intentional. Locating the 470 patch and posting here is greatly appreciated. I'll make a note to provide proper attribution to all next time, e.g.

(additions to PKGBUILD prepare())

    # From Ike Devolder
    patch -Np1 -i ../../kernel-6.3.patch

    # From duht as modified by rdahlgren at AUR nvidia-390xx-utils page
    patch -Np1 -i ../../kernel-6.4.patch

:)

... despite the "lazy" ... comment which I take was dry humor ...

duht commented on 2023-07-03 11:13 (UTC)

@rdahlgren as I said: patch is very simple and needs some minor modyfications to work with 390xx. You did it right and now all the rest of the lazy ones just waiting for the finished product are thanking only you;)

quivenda commented on 2023-07-03 09:47 (UTC) (edited on 2023-07-04 08:05 (UTC) by quivenda)

Yes, thanks @rdahlgren, for the patch!

Edit: Also thanks for @duht.

drankinatty commented on 2023-07-03 05:51 (UTC)

Yes, double Thank You @rdahlgren. Patch worked perfectly. Incremented pkgrel in PKGBUILD, added the kernel-6.4.patch and b2sum to the list of sources and b2sums, added the patch to prepare below the kernel-6.3.patch, e.g.

    # From Ike Devolder
    patch -Np1 -i ../../kernel-6.3.patch

    # From rdahlgren at AUR nvidia-390xx-utils page
    patch -Np1 -i ../../kernel-6.4.patch

Built and then upgraded the -dkms, -utils and opencl-nvidia (optional) packages, did the system upgrade and pulled in the 6.4 kernel and drivers rebuilt seamlessly.

Let's hope @rdahlgren is here for the 6.5 upgrade :)

friday13 commented on 2023-07-03 01:33 (UTC)

ty @rdahlgren

rdahlgren commented on 2023-07-02 19:57 (UTC) (edited on 2023-07-02 20:35 (UTC) by rdahlgren)

I followed @duht's clue but had some trouble installing the patch as-is. To get it working, I updated the patch to be simply

*** a/nvidia-drm/nvidia-drm-drv.c   2023-07-02 16:08:37.702462187 -0400
 20         "https://us.download.nvidia.com/XFree86/Linux-x86_64/${pkgver}/${_pkg}.run"
--- b/nvidia-drm/nvidia-drm-drv.c   2023-07-02 16:23:58.040020274 -0400
*************** static void nv_drm_update_drm_driver_fea
*** 766,772 ****
--- 766,774 ----

      nv_drm_driver.dumb_create      = nv_drm_dumb_create;
      nv_drm_driver.dumb_map_offset  = nv_drm_dumb_map_offset;
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
      nv_drm_driver.dumb_destroy     = nv_drm_dumb_destroy;
+ #endif

  #if defined(NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS)
      nv_drm_driver.gem_vm_ops       = &nv_drm_gem_vma_ops;

Then I added this file (named kernel-6.4.patch) to the list of files in teh PKGBUILD and used b2sum to generate the necessary b2sum value. From there it built and dkms was able to install without issue.

duht commented on 2023-07-02 02:00 (UTC)

6.4 require a patch. It's for NVIDIA 470.182.03 so it requires minor modyfications, but it's very simple. I tested it with linux-xanmod 6.4 and works fine.

drankinatty commented on 2023-06-27 20:46 (UTC)

Linux 6.4 is in core-testing. Anybody try the build with the kernel yet? The box I have using this driver is a server -- so it's a bit hard to swap kernels for testing, but if I get a light-load late at night, I'll give it a go.

Any feedback from anyone else welcomed.

batot commented on 2023-05-16 08:39 (UTC) (edited on 2023-05-16 09:50 (UTC) by batot)

My problem:

"==> ERROR: Missing 5.15.19-1-lts kernel headers for module nvidia/390.157." and

"lsmod | grep nvidia" no load driver resolve two things.

  1. First I was resolve problem with dmks, instruction here https://bbs.archlinux.org/viewtopic.php?pid=2099823#p2099823 And still no effect, modules nvidia no loaded
  2. Second I was reinstall package "reinstalled nvidia-390xx-utils (390.157-4)"
  3. Reboot machine.

I'm complete no understand why but "reinstalled nvidia-390xx-utils" resolve my problem.

batot commented on 2023-05-12 21:22 (UTC) (edited on 2023-05-15 08:56 (UTC) by batot)

I have NVIDIA Corporation GF119 [NVS 310] card. Past update "pacman -Syu", xorg server not working.

Packages (1) nvidia-390xx-dkms-390.157-4

Total Installed Size:  27,20 MiB
Net Upgrade Size:       0,00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                   [##############################################] 100%
(1/1) checking package integrity                                                 [##############################################] 100%
(1/1) loading package files                                                      [##############################################] 100%
(1/1) checking for file conflicts                                                [##############################################] 100%
(1/1) checking available disk space                                              [##############################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/390.157 -k 6.1.28-1-lts
:: Processing package changes...
(1/1) reinstalling nvidia-390xx-dkms                                             [##############################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/390.157 -k 6.1.28-1-lts
==> depmod 6.1.28-1-lts
==> ERROR: Missing 5.15.19-1-lts kernel headers for module nvidia/390.157.

$ dkms status
nvidia/390.157, 6.1.28-1-lts, x86_64: installed
vboxhost/7.0.8_OSE, 6.1.28-1-lts, x86_64: installed
vboxsf/6.1.0_OSE: added

My kernel lts is 6.1.28-1-lts, lts-headers 6.1.28-1. For me not working this package.

$ pacman -Ss nvidia |grep -i Installed
extra/egl-wayland 2:1.1.11-4 [installed]
extra/libvdpau 1.5-1 [installed]
extra/libxnvctrl 530.41.03-1 [installed]
extra/xf86-video-nouveau 1.0.17-2 (xorg-drivers) [installed]
multilib/lib32-libvdpau 1.5-1 [installed]

$ yay -Ss nvidia |grep Installed
aur/lib32-opencl-nvidia-340xx 340.108-1 (+7 0.00) (Installed: 340.107-3)
aur/nvidia-390xx-utils 390.157-4 (+50 1.91) (Installed)
aur/nvidia-390xx-dkms 390.157-4 (+50 1.91) (Installed)
multilib/lib32-libvdpau 1.5-1 (23.0 KiB 86.5 KiB) (Installed)
extra/xf86-video-nouveau 1.0.17-2 (90.8 KiB 222.9 KiB) [xorg-drivers] (Installed)
extra/libxnvctrl 530.41.03-1 (76.3 KiB 456.6 KiB) (Installed)
extra/libvdpau 1.5-1 (63.3 KiB 288.0 KiB) (Installed)
extra/egl-wayland 2:1.1.11-4 (31.0 KiB 89.3 KiB) (Installed)

$ pacman -Ss xorg-server
extra/xorg-server 21.1.8-1 (xorg) [installed]

$ lsmod | grep nvidia
~]$

xorg.log:

https://pastebin.com/8PwinSCM

"==> ERROR: Missing 5.15.19-1-lts kernel headers for module nvidia/390.157."

Question:

  1. This package really needed 5.15.19-1-lts kernel headers? What headers do you use that works for you?

  2. Has anyone used this with an LTS kernel and it works for them?

  3. Do you have xorg-server version 21.1.8-1 or oldest?