"RmInitAdapter failed" with 378.13

I am running Arch Linux on kernel 4.10 on my Dell XPS 15 9560, with a GTX 1050 GPU. I just installed the latest NVIDIA drivers (378.13) together with Bumblebee, and I get the following in my dmesg:

[   26.625268] NVRM: RmInitAdapter failed! (0x26:0xffff:1097)
[   26.625307] NVRM: rm_init_adapter failed for device bearing minor number 0

The nvidia modules are loaded. After boot, only the nvidia module is loaded, as the rest seem to be blacklisted by bumblebee.conf. Modprobe-ing the nvidia-drm module produces the same NVRM error message in my dmesg.

❯ lsmod | grep nvidia
nvidia_drm             49152  0
nvidia_modeset        794624  1 nvidia_drm
nvidia              12197888  1 nvidia_modeset
drm_kms_helper        126976  2 i915,nvidia_drm
drm                   303104  8 i915,nvidia_drm,drm_kms_helper

Module info:

❯ modinfo nvidia
filename:       /lib/modules/4.10.6-1-ARCH/extramodules/nvidia.ko.gz
alias:          char-major-195-*
version:        378.13
supported:      external
license:        NVIDIA
srcversion:     02F3D5B824B011D27D9541C
alias:          pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias:          pci:v000010DEd*sv*sd*bc03sc02i00*
alias:          pci:v000010DEd*sv*sd*bc03sc00i00*
depends:        
vermagic:       4.10.4-1-ARCH SMP preempt mod_unload modversions 
parm:           NVreg_Mobile:int
parm:           NVreg_ResmanDebugLevel:int
parm:           NVreg_RmLogonRC:int
parm:           NVreg_ModifyDeviceFiles:int
parm:           NVreg_DeviceFileUID:int
parm:           NVreg_DeviceFileGID:int
parm:           NVreg_DeviceFileMode:int
parm:           NVreg_UpdateMemoryTypes:int
parm:           NVreg_InitializeSystemMemoryAllocations:int
parm:           NVreg_UsePageAttributeTable:int
parm:           NVreg_MapRegistersEarly:int
parm:           NVreg_RegisterForACPIEvents:int
parm:           NVreg_CheckPCIConfigSpace:int
parm:           NVreg_EnablePCIeGen3:int
parm:           NVreg_EnableMSI:int
parm:           NVreg_TCEBypassMode:int
parm:           NVreg_UseThreadedInterrupts:int
parm:           NVreg_MemoryPoolSize:int
parm:           NVreg_RegistryDwords:charp
parm:           NVreg_RegistryDwordsPerDevice:charp
parm:           NVreg_RmMsg:charp
parm:           NVreg_AssignGpus:charp

System:

❯ uname -a
Linux antergos 4.10.6-1-ARCH #1 SMP PREEMPT Mon Mar 27 08:28:22 CEST 2017 x86_64 GNU/Linux

Device info:

❯ cat /proc/driver/nvidia/gpus/0000:01:00.0/information 
Model: 		 GeForce GTX 1050
IRQ:   		 138
GPU UUID: 	 GPU-????????-????-????-????-????????????
Video BIOS: 	 ??.??.??.??.??
Bus Type: 	 PCIe
DMA Size: 	 47 bits
DMA Mask: 	 0x7fffffffffff
Bus Location: 	 0000:01:00.0
Device Minor: 	 0

The nouveau driver is blacklisted and unloaded:

❯ cat /usr/lib/modprobe.d/nvidia.conf 
blacklist nouveau

The only thing that looks strange to me is vermagic, which is different than my kernel version:

vermagic:       4.10.4-1-ARCH SMP preempt mod_unload modversions

However, I looked it up, and I should have got a specific NVRM message in case of client-kernel version mismatch, which I do not get.

This problem looks identical to this bug: https://devtalk.nvidia.com/default/topic/959156/linux/-quot-rminitadapter-failed-quot-with-370-23-but-367-35-works-fine/1

EDIT:

I’ve included a bug report log as well:
https://drive.google.com/open?id=0BzF4WeBHbjvAa05PUlVkaGE0bVU

Same issue on Fedora 25 with a Dell XPS 9560 using the 378.13 drivers from http://negativo17.org/nvidia-driver/.

It looks like it’s a known issue: [url]Dell XPS 15 9560 (Early 2017) / Laptop Issues / Arch Linux Forums

The only solution for now seems to be to downgrade your kernel to <4.10 if necessary, and install the 375.26 Nvidia drivers, but I don’t like downgrading my kernel.

Is there any NVIDIA rep that can acknowledge this problem and provide an ETA on a fix ?

Thanks.

Same here! I have a ROG-GL753VD witn an optimus GTX 1050 notebook with kernel 4.10 on fedora 25.
We appreciate a comment from an engineer here.

It looks like Optimus works with the 381.09 beta drivers, but I’m getting really bad performance with my GTX 1050.

Running

glxgears64

and

optirun glxgears64

results in ~270 FPS and ~340 FPS respectively, which isn’t that much of difference.

Heroes of the Storm under Wine performs much worse with optirun than without (constant stuttering, even in the main menu), so I’m not really sure what’s going on with the drivers.

All in all, it seems that it will take a while for Nvidia to release proper drivers for kernel >=4.10

FWIW, I downgraded to 4.8.6-300.fc25.x86_64. Still seeing the same issues with 378.13.

$ cat /proc/driver/nvidia/gpus/0000\:01\:00.0/information 
Model: 		 GeForce GTX 1050
IRQ:   		 141
GPU UUID: 	 GPU-????????-????-????-????-????????????
Video BIOS: 	 ??.??.??.??.??
Bus Type: 	 PCIe
DMA Size: 	 47 bits
DMA Mask: 	 0x7fffffffffff
Bus Location: 	 0000:01:00.0
Device Minor: 	 0

Hi all!
Got same issue on Fedora 25 kernel version 4.10.9:

$ cat /proc/driver/nvidia/gpus/0000\:04\:00.0/information 
Model: 		 GeForce GT 750M
IRQ:   		 49
GPU UUID: 	 GPU-????????-????-????-????-????????????
Video BIOS: 	 ??.??.??.??.??
Bus Type: 	 PCIe
DMA Size: 	 40 bits
DMA Mask: 	 0xffffffffff
Bus Location: 	 0000:04:00.0
Device Minor: 	 0

dmesg output:

[  394.691911] NVRM: failed to copy vbios to system memory.
[  394.692215] NVRM: RmInitAdapter failed! (0x30:0xffff:654)
[  394.692258] NVRM: rm_init_adapter failed for device bearing minor number 0

BUT it works on 4.9.9-pf kernel.

I have the same problem. Ubuntu 17.10, kernel 4.13.0-16… root@bart-linux:/etc/modprobe.d# cat /proc/driver/nvidia/gpus/0000:19:00.0/information
Model: GeForce GTX 970
IRQ: 147
GPU UUID: GPU-???-???-???-???-???
Video BIOS: ??.??.??.??.??
Bus Type: PCIe
DMA Size: 40 bits
DMA Mask: 0xffffffffff
Bus Location: 0000:19:00.0
Device Minor: 0

I’be been running linux for many years. Not a newbie. Please help!
Proper blacklists are in place.