Fedora 30 RmInitAdapter failed! (0x31:0xffff:919) on Beta 435.17 driver

Trying the new prime offloading feature of the latest 435.17 beta driver I’m getting

$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  151 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

my card is:

$ lspci | grep 3D
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Mobile] (rev a1)

my xorg.conf is:

$ cat /etc/X11/xorg.conf
    Section "ServerLayout"
      Identifier "layout"
      Screen 0 "iGPU"
      Option "AllowNVIDIAGPUScreens"
    EndSection

    Section "Device"
      Identifier "iGPU"
      Driver "modesetting"
      BusID "PCI:0:2:0"
    EndSection

    Section "Screen"
      Identifier "iGPU"
      Device "iGPU"
    EndSection

    Section "Device"
      Identifier "nvidia"
      Driver "nvidia"
      BusID "PCI:1:0:0"
    EndSection

digging a bit deeper and I found this with dmesg

$ dmesg | grep NVRM
[   17.202514] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  435.17  Tue Aug  6 22:50:25 CDT 2019
[   59.348679] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x31:0xffff:919)
[   59.348785] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

I did use bumblebee/primusrun successfully on fedora 27, but trouble always occurred when upgrading to new kernels and finally bumblebee didn’t work anymore, tried the recent stable drivers from rpmfusion with nvidia-xrun but still had no luck.

I thought with the new prime offloading feature I can finally enjoy some graphics but now this.
Is my gpu fried?

You need a patched xserver for now for this to work. Looks like you’re trying render offload with the standard xserver package.

Can you please run nvidia-bug-report.sh and attach the log file?

Also, do you still have bumblebee / primusrun stuff installed, such as the bbswitch kernel module? It’s possible for an error like this to occur if the GPU was powered off and then not powered back on correctly during driver initialization.

@generix I do actually run a patched server supplied by https://copr.fedorainfracloud.org/coprs/scorpionit/xorg-x11-server_nvidia_prime/ and I used the binary driver (not the supplied precompiled one)

$ cat /var/log/Xorg.0.log | grep NVIDIA
[    53.046] (II) Module nvidia: vendor="NVIDIA Corporation"
[    53.059] (II) NVIDIA dlloader X Driver  435.17  Tue Aug  6 22:56:56 CDT 2019
[    53.059] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    54.744] (==) NVIDIA(G0): Depth 24, (==) framebuffer bpp 32
[    54.744] (==) NVIDIA(G0): RGB weight 888
[    54.744] (==) NVIDIA(G0): Default visual is TrueColor
[    54.744] (==) NVIDIA(G0): Using gamma correction (1.0, 1.0, 1.0)
[    54.757] (**) Option "AllowNVIDIAGpuScreens"
[    54.757] (**) NVIDIA(G0): Enabling 2D acceleration
[    55.261] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[    55.262] (II) NVIDIA GLX Module  435.17  Tue Aug  6 22:54:03 CDT 2019
[    55.297] (II) NVIDIA: The X server supports PRIME Render Offload.
[    59.548] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0.  Please
[    59.548] (EE) NVIDIA(GPU-0):     check your system's kernel log for additional error
[    59.548] (EE) NVIDIA(GPU-0):     messages and refer to Chapter 8: Common Problems in the
[    59.548] (EE) NVIDIA(GPU-0):     README for additional information.
[    59.548] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
[    59.548] (EE) NVIDIA(G0): Failing initialization of X screen
[    59.809] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)

@aplattner I suspected as much so I reinstalled F30 and nuked everything under / (except both /home and /var)
So, here is the bug report after system reinstallation: nvidia-bug-report.log.gz

and here is the bug report from a couple of days ago before system reinstallation if you need it anyway: older-nvidia-bug-report.log.gz

Thank you both

You’re running into

[   58.497720] NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x31:0xffff:919)
[   58.497740] NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0

which doesn’t look good. Can you check if your gpu still works with a “conservative” PRIME setup with a 430 driver?

There is an updated howto for Optimus on RPM Fusion
https://rpmfusion.org/Howto/Optimus

To get the “patched” xorg server, grab it from:
dnf copr enable kwizart/xorg-x11-server_nvidia
dnf update xorg-x11-server*

Right now you need to get the “stable” driver,but from rpmfusion-nonfree-rawhide (as explained in the howto).