/dev/nvidia-uvm missing on 4.5.4 firmware

Printers, HDDs, USB/eSATA drives, 3rd-party programs
Post Reply
FastLaneJB
Starting out
Posts: 19
Joined: Sat Aug 14, 2021 3:03 am

/dev/nvidia-uvm missing on 4.5.4 firmware

Post by FastLaneJB »

Updated my NAS from 4.5.3 to 4.5.4 and now I cannot use my Nvidia GPU for Hardware Transcoding because /dev/nvidia-uvm is missing so CUDA doesn't work. Anyone else hit this and know of the fix?

Newish to QNAP but feel like I might need to slow down on the updates. I normally like to keep ontop for security fixes but seems they don't test stuff very well either. If I look in the Nvidia Driver update notes they are all about how they broke the drivers with a new firmware and now they've fixed it. I feel like I might be stuck waiting for a driver update...
H42Vpn
New here
Posts: 3
Joined: Wed Dec 16, 2020 2:49 am

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by H42Vpn »

I'm seeing the same missing nvidia-uvm.
Any progress on this?
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by dolbyman »

Anyone opened a ticket for this?

QNAP does not come here..so tickets need to be opened
FastLaneJB
Starting out
Posts: 19
Joined: Sat Aug 14, 2021 3:03 am

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by FastLaneJB »

Seems to be random, done a few reboots and sometimes it's there and others it's not. I'm not touching it for the moment as I've got it back working.

They really need to update the driver though also as this older driver is blocking some things from working also :(
User avatar
dolbyman
Guru
Posts: 35012
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by dolbyman »

so you opened a ticket?
H42Vpn
New here
Posts: 3
Joined: Wed Dec 16, 2020 2:49 am

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by H42Vpn »

I'm seeing the same issue on QNAP 5.0.0.1891... has there been a workaround?
H42Vpn
New here
Posts: 3
Joined: Wed Dec 16, 2020 2:49 am

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by H42Vpn »

the solution is posted here
https://www.reddit.com/r/qnap/comments/ ... nvidiauvm/

nvidia-uvm-init.sh:

Code: Select all

#!/bin/bash
## Script to initialize nvidia device nodes.
## https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#runfile-verifications

/sbin/modprobe nvidia

if [ "$?" -eq 0 ]; then
  # Count the number of NVIDIA controllers found.
  NVDEVS=`lspci | grep -i NVIDIA`
  N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l`
  NVGA=`echo "$NVDEVS" | grep "VGA compatible controller" | wc -l`

  N=`expr $N3D + $NVGA - 1`
  for i in `seq 0 $N`; do
    mknod -m 666 /dev/nvidia$i c 195 $i
  done

  mknod -m 666 /dev/nvidiactl c 195 255

else
  exit 1
fi

/sbin/modprobe nvidia-uvm

if [ "$?" -eq 0 ]; then
  # Find out the major device number used by the nvidia-uvm driver
  D=`grep nvidia-uvm /proc/devices | awk '{print $1}'`

  mknod -m 666 /dev/nvidia-uvm c $D 0
  mknod -m 666 /dev/nvidia-uvm-tools c $D 0
else
  exit 1
fi
Last edited by OneCD on Sat Jan 22, 2022 4:40 am, edited 1 time in total.
Reason: added code tags
n.hristov
New here
Posts: 3
Joined: Thu Jan 20, 2022 8:52 pm

Re: /dev/nvidia-uvm missing on 4.5.4 firmware

Post by n.hristov »

I had the same issue.
Turns out some of the programs are not executed in the right order so may be you should check this out:
viewtopic.php?f=320&t=133132
Post Reply

Return to “Hardware & Software Compatibility”