Driver 470.57.02 fails with "RmInitAdapter failed!" in Optimus laptop

Hello nvidia Developers and nvidia community,

I have installed the Nvidia 470.57.02 stable driver on Ubuntu 21.04. The laptop is a HP spectre X360 15-dfl550nd with an GeForce GTX 1650 Max-Q and an Intel(R) Core™ i7-9750H. I have tested both Ubuntu kernel 5.11.0-22-generic and mainline kernel 5.12.1. The log shows the following:

jul 19 21:51:38 spectre-15 kernel: 
jul 19 21:51:38 spectre-15 kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=none,decodes=none:owns=none
jul 19 21:51:38 spectre-15 kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  470.57.02  Tue Jul 13 16:14:05 UTC 2021
jul 19 21:51:38 spectre-15 kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  470.57.02  Tue Jul 13 16:06:24 UTC 2021
jul 19 21:51:38 spectre-15 kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
jul 19 21:51:38 spectre-15 kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20201113/nsarguments-61)
jul 19 21:51:38 spectre-15 kernel: NVRM: GPU 0000:01:00.0: RmInitAdapter failed! (0x26:0x56:1262)
jul 19 21:51:38 spectre-15 kernel: NVRM: GPU 0000:01:00.0: rm_init_adapter failed, device minor number 0
jul 19 21:51:38 spectre-15 kernel: [drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NvKmsKapiDevice
jul 19 21:51:38 spectre-15 kernel: [drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to register device. 

Later the log gets spammed with the “rm_init_adapter” line. Driver 465 does work, because of this I suspect it is a bug in the driver. I have attached the output of the nvidia bug report script.

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

1 Like

I too encountered this problem with the 470.57.02 driver on Pop_OS 21.04. I have a HP ZBook Studio x360 G5 with Intel® Core™ i7-8750H and a NVIDIA Quadro P1000.
nvidia-bug-report.log.gz (238.8 KB)

1 Like

Same issue on Debian Unstable with HP ZBook Studio x360 G5 (same as above).

nvidia-bug-report.log.gz (966.1 KB)

Hi, I was having the same issues with 470.57.02 on Pop_OS 21.04. Upgrading to 470.63.01 (via Pop_OS) fixed the problem.

Yeah the issue is fixed for me too.