Ubuntu 21.04 + rtx3070 + 465 + amd ryzen + x570

Hi there, thanks for the excellent threads which helped me to at least get an almost working system after starting from 20.04 with the 460 driver and ending up at black screens.

Since the 21.04 upgrade and 465 driver, at least I have a gnome desktop, but the system is more or less useless through the ui.

Fri May 21 12:54:55 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:08:00.0  On |                  N/A |
|ERR!   44C    P0    43W / 240W |   1052MiB /  7979MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      5330      G   /usr/lib/xorg/Xorg                658MiB |
|    0   N/A  N/A      5467      G   /usr/bin/gnome-shell              300MiB |
|    0   N/A  N/A      7118      G   ...AAAAAAAAA= --shared-files        3MiB |
+-----------------------------------------------------------------------------+

the system lags severely whenever opening any application which is relying on gpu functionality it seems.

after removing and adding 465 once more i get a super laggy bootscreen and cpu panics: since driver 465.31 i get error messages like this:

kernel:[   84.409514] watchdog: BUG: soft lockup - CPU#7 stuck for 22s! [systemd-udevd:635]

and now i can only control the system through ssh, as the system is stuck booting with more error messages like

[drm:nv_drm_load  [nvidia_drm]] *ERROR* [nvidia-drm] [gpu id 0x00000800] failed to allocate NvKmsKapiDevice
[drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [gpu id 0x00000800] failed to register device

any ideas? thanks in advance!

sudo lshw -c display
  *-display
       description: VGA compatible controller
       product: GA104 [GeForce RTX 3070]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:08:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:73 memory:fb000000-fbffffff memory:d0000000-dfffffff memory:e0000000-e1ffffff ioport:e000(size=128) memory:c0000-dffff

nvidia-smi does not output anymore

here is a nvidia bug report:
nvidia-bug-report.log.gz (359.3 KB)

i guess it is related to this thread: 465.24.02 page fault - #18 by rnbzilla i am running a 5K display via display port as well, the older 465 release worked with the lag, the newer completely crashes the system and 460 disables changes to the display settings.