RTX 3060 Mobile Linux driver

I have MSI laptop with GeForce RTX 3060 on-board.
On MS Windows 10 driver recognizes videocard and everything works well. Driver version is 461.
But on Linux 460.56 version driver says “No such device” and I have only Intel videocard operationable.

Please post the output of

sudo lspci -nn -d 10de:*
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:228e] (rev a1)

The driver 460.56 should support your gpu, must be someting else. Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

modprobe -vv nvidia
modprobe: INFO: custom logging function 0x55f72ebf62c0 registered
insmod /lib/modules/5.11.1-arch1-1/extramodules/nvidia.ko.xz 
modprobe: INFO: Failed to insert module '/lib/modules/5.11.1-arch1-1/extramodules/nvidia.ko.xz': No such device
modprobe: ERROR: could not insert 'nvidia': No such device
modprobe: INFO: context 0x55f72fccd4d0 released

kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 235
kernel: NVRM: request_mem_region failed for 0M @ 0x0. This can
                                   NVRM: occur when a driver such as rivatv is loaded and claims
                                   NVRM: ownership of the device's registers.
kernel: nvidia: probe of 0000:01:00.0 failed with error -1
kernel: NVRM: The NVIDIA probe routine failed for 1 device(s).
kernel: NVRM: None of the NVIDIA devices were initialized.
kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 235

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

The problem is:

[    0.390582] pci 0000:01:00.0: BAR 0: no space for [mem size 0x01000000]
[    0.390584] pci 0000:01:00.0: BAR 0: failed to assign [mem size 0x01000000]

This is a low level bios/kernel problem, should never happen on a notebook. Please try:

  • check for bios update
  • add kernel parameter pci=realloc
1 Like

BIOS update didn’t change anything.
Kernel parameter addition made it.
Time to setup bumblebee and to enjoy AAA games like Metro Exodus.
Thanks a lot!

You don’t need bumblebee, just use prime render offload:
https://download.nvidia.com/XFree86/Linux-x86_64/460.39/README/primerenderoffload.html

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor

Very interesting.
https://wiki.archlinux.org/index.php/PRIME
I may just run app on nvidia card by prime-run like primusrun but without bumblebee.

By the way Metro: Exodus is going very smoothly with extreme graphic setting at 1920x1080@144Hz on Linux.
On the contrary on MS Windows I saw small lags during combat.
Both Steam version. Vulkan technology used. On Linux Proton used because of absence of native version.

I’m also have similar issue with RTX 3060. This is a new HP Omen 15-en1016nt AMD Ryzen-5 5600h RTX3060 laptop. And here is a my outputs:

sudo lspci -nn -d 10de:*

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2520] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:228e] (rev a1)

modprobe -vv nvidia

modprobe: INFO: ../libkmod/libkmod.c:365 kmod_set_log_fn() custom logging function 0x5564218aab90 registered
modprobe: INFO: ../libkmod/libkmod.c:332 kmod_unref() context 0x5564226015b0 released

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

Im having the same issue with an MSI laptop. Was gaming fine until one day i tried to open a game and it was running on 3 fps. Ubuntu says im using Mesa Intel UHD Graphics. if anyone can take a look would appreciate it.

sudo lspci -nn -d 10de:*

01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1)
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:228e] (rev a1)

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