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