Problem with nvidia driver on Ubuntu: RmInitAdapter failed! (0x25:0xffff:1589)

I have been trying to make my GPU work with Ubuntu system to no avail.
I tried installing the driver through ubuntu-drivers first. Since most of them gave “RmInitAdapter failed” error and nvidia:545 could not be built on my machine. I updated to Ubuntu 22 LTS from Ubuntu 20 LTS.
Then I tried through ubuntu-drivers(same error) and then through the .run file in Nvidia website(similar errors).
My inxi -G output is:

Graphics:
  Device-1: ASPEED Graphics Family driver: ast v: kernel
  Device-2: NVIDIA GA102GL [RTX A5000] driver: nvidia v: 550.100
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,nouveau,vesa failed: nvidia gpu: ast
    resolution: 1600x900~60Hz
  OpenGL: renderer: llvmpipe (LLVM 15.0.7 256 bits)
    v: 4.5 Mesa 23.2.1-1ubuntu3.1~22.04.2

output of ```sudo dmesg | grep -i ‘gpu\|nvidia’ is:

 [    6.817069] nvidia: loading out-of-tree module taints kernel.
[    6.817077] nvidia: module license 'NVIDIA' taints kernel.
[    6.842403] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    6.875814] nvidia-nvlink: Nvlink Core is being initialized, major device number 506
[    6.883794] nvidia 0000:31:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    6.931697] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input5
[    6.935020] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  550.100  Thu Jun 27 19:04:00 UTC 2024
[    6.951002] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input6
[    6.951328] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input7
[    6.951646] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input8
[    6.955883] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  550.100  Thu Jun 27 18:13:10 UTC 2024
[    6.963812] audit: type=1400 audit(1721832493.530:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=1123 comm="apparmor_parser"
[    6.963819] audit: type=1400 audit(1721832493.530:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=1123 comm="apparmor_parser"
[    6.968213] [drm] [nvidia-drm] [GPU ID 0x00003100] Loading driver
[    6.968217] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:31:00.0 on minor 1
[    6.975457] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input9
[    6.991343] input: HDA NVidia HDMI/DP,pcm=11 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input10
[    6.995252] input: HDA NVidia HDMI/DP,pcm=12 as /devices/pci0000:30/0000:30:02.0/0000:31:00.1/sound/card1/input11
[   11.224730] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x25:0xffff:1589)
[   11.224801] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0
[   12.007139] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x23:0xffff:1540)
[   12.007204] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0
[   62.710495] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x23:0xffff:1540)
[   62.710532] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0
[   62.860230] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[   62.866961] nvidia-uvm: Loaded the UVM driver, major device number 494.
[ 3645.654003] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x23:0xffff:1540)
[ 3645.654056] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0
[ 4050.370380] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x23:0xffff:1540)
[ 4050.370438] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0
[ 5043.580014] NVRM: GPU 0000:31:00.0: RmInitAdapter failed! (0x23:0xffff:1540)
[ 5043.580085] NVRM: GPU 0000:31:00.0: rm_init_adapter failed, device minor number 0

Please help me debug and fix the issue. I have tried to use the -m kernel-open paramter, and then without neither one worked.

nvidia-bug-report.log.gz (54.0 MB)

1 Like