Hi, some progress.

running:
# uname -a
Linux T430-i7 6.2.0-24-generic #24-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 16 
12:03:50 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

to investigate why Xorg stopped working (hanging screen/keyboard)
In short, same libnvidia-tls issue and workarond as posted before.

solution:
```
/etc/ld.so.conf.d# cat nvidia.conf
# 2023/05/01 ArjanF https://bbs.archlinux.org/viewtopic.php?id=283327&p=2
/usr/lib/x86_64-linux-gnu/tls/
```
and perform ldconfig, reboot into 6.2.0-24 (as 6.2.0-25 has vbios copy error 
issue)

Then Xorg starts with nvidia support.

some details on the libnvidia-tls on my system
```
$ file $(find /usr/lib/x86_64-linux-gnu/  -name "libnvidia-tls*")
/usr/lib/x86_64-linux-gnu/libnvidia-tls.so.390.157:     ELF 64-bit LSB shared 
object, x86-64, version 1 (SYSV), dynamically linked, for GNU/Linux 2.2.5, 
stripped
/usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.390.157: ELF 64-bit LSB shared 
object, x86-64, version 1 (SYSV), dynamically linked, for GNU/Linux 2.3.99, 
stripped
$ apt-file search libnvidia-tls.so.390.157
libnvidia-gl-390: /usr/lib/x86_64-linux-gnu/libnvidia-tls.so.390.157
libnvidia-gl-390: /usr/lib/x86_64-linux-gnu/tls/libnvidia-tls.so.390.157
```

Having it started testing out the external multi-monitor setup it didn't
see external monitors straight away, so i undocked -> docked to trigger
display detection and that worked, but also  triggered a kernel crash
and frozen screen/keyboard.

captured crash info:
```
40781.413803] general protection fault, probably for non-canonical address 
0x93f96c1db8514a60: 0000 [#1] PREEMPT SMP NOPTI
[40781.413811] CPU: 6 PID: 1554 Comm: nvidia-modeset Tainted: P           O     
  6.2.0-24-generic #24-Ubuntu
[40781.413814] Hardware name: LENOVO 2349G7G/2349G7G, BIOS G1ETC2WW (2.82 ) 
08/07/2019
[40781.413815] RIP: 0010:_raw_spin_lock+0x13/0x60
[40781.413821] Code: 31 db c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 
90 90 90 90 0f 1f 44 00 00 65 ff 05 2c 9e 35 52 31 c0 ba 01 00 00 00 <f0> 0f b1 
17 75 1b 31 c0 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9
[40781.413823] RSP: 0018:ffffb766c0aabe78 EFLAGS: 00010246
[40781.413825] RAX: 0000000000000000 RBX: ffff9ce4d9931b80 RCX: 0000000000000000
[40781.413827] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 93f96c1db8514a60
[40781.413828] RBP: ffffb766c0aabeb0 R08: 0000000000000000 R09: 0000000000000000
[40781.413829] R10: 0000000000000000 R11: 0000000000000000 R12: 93f96c1db8514a38
[40781.413831] R13: ffffffffc26009f8 R14: ffff9ce4e6441940 R15: 93f96c1db8514a38
[40781.413832] FS:  0000000000000000(0000) GS:ffff9ce7ee380000(0000) 
knlGS:0000000000000000
[40781.413834] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[40781.413835] CR2: 00007fe70927aff8 CR3: 0000000389410001 CR4: 00000000001706e0
[40781.413837] Call Trace:
[40781.413839]  <TASK>
[40781.413842]  ? nv_drm_gem_prime_fence_event+0x29/0x110 [nvidia_drm]
[40781.413852]  nvkms_kthread_q_callback+0x7d/0xe0 [nvidia_modeset]
[40781.413873]  _main_loop+0x7f/0x140 [nvidia]
[40781.414172]  ? __pfx__main_loop+0x10/0x10 [nvidia]
[40781.414580]  kthread+0xe6/0x110
[40781.414589]  ? __pfx_kthread+0x10/0x10
[40781.414595]  ret_from_fork+0x29/0x50
[40781.414602]  </TASK>
[40781.414604] Modules linked in: snd_seq_dummy snd_hrtimer 
nf_conntrack_netlink xfrm_user xfrm_algo xt_CHECKSUM ccm algif_aead des_generic 
libdes md4 wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 
poly1305_x86_64 libcurve25519_generic libchacha ip6_udp_tunnel udp_tunnel 
nft_masq rfcomm cmac algif_hash algif_skcipher af_alg overlay bnep lz4 
lz4_compress zram ip6t_REJECT nf_reject_ipv6 xt_hl ip6t_rt ipt_REJECT 
nf_reject_ipv4 xt_LOG nf_log_syslog xt_multiport nft_limit xt_limit xt_addrtype 
xt_tcpudp nft_chain_nat xt_MASQUERADE nf_nat xt_comment xt_conntrack 
nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat binfmt_misc nf_tables 
nfnetlink nls_iso8859_1 nvidia_uvm(PO) intel_rapl_msr snd_ctl_led 
snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi 
intel_rapl_common uvcvideo x86_pkg_temp_thermal btusb videobuf2_vmalloc 
snd_hda_intel videobuf2_memops btrtl videobuf2_v4l2 snd_intel_dspcfg btbcm 
intel_powerclamp videodev snd_intel_sdw_acpi snd_hda_codec btintel
[40781.414704]  kvm_intel videobuf2_common btmtk snd_hda_core mc snd_hwdep 
bluetooth kvm nvidia_drm(PO) snd_pcm ecdh_generic ecc thinkpad_acpi irqbypass 
nvram nvidia_modeset(PO) iwlmvm snd_seq_midi snd_seq_midi_event rapl nvidia(PO) 
snd_rawmidi mac80211 libarc4 intel_cstate snd_seq iwlwifi snd_seq_device 
snd_timer ipmi_devintf cfg80211 ipmi_msghandler snd think_lmi ledtrig_audio 
platform_profile soundcore firmware_attributes_class wmi_bmof at24 joydev 
input_leds mac_hid serio_raw iptable_filter ip6table_filter ip6_tables 
br_netfilter bridge stp llc arp_tables pkcs8_key_parser cuse coretemp msr 
parport_pc ppdev lp parport bfq efi_pstore dmi_sysfs ip_tables x_tables autofs4 
btrfs blake2b_generic dm_crypt raid10 raid456 async_raid6_recov async_memcpy 
async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear 
dm_mirror dm_region_hash dm_log i915 drm_buddy i2c_algo_bit ttm cdc_ether 
hid_generic usbnet drm_display_helper crct10dif_pclmul r8152 cec crc32_pclmul 
mii usbh
 id hid
[40781.414944]  rc_core polyval_clmulni polyval_generic drm_kms_helper 
ghash_clmulni_intel sha512_ssse3 syscopyarea sysfillrect aesni_intel sysimgblt 
crypto_simd cryptd psmouse sdhci_pci drm cqhci lpc_ich ahci i2c_i801 e1000e 
sdhci video libahci i2c_smbus xhci_pci xhci_pci_renesas wmi
[40781.415011] ---[ end trace 0000000000000000 ]---
[40782.299023] pstore: backend (efi_pstore) writing error (-5)
[40782.299032] RIP: 0010:_raw_spin_lock+0x13/0x60
[40782.299042] Code: 31 db c3 cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 
90 90 90 90 0f 1f 44 00 00 65 ff 05 2c 9e 35 52 31 c0 ba 01 00 00 00 <f0> 0f b1 
17 75 1b 31 c0 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9
[40782.299044] RSP: 0018:ffffb766c0aabe78 EFLAGS: 00010246
[40782.299047] RAX: 0000000000000000 RBX: ffff9ce4d9931b80 RCX: 0000000000000000
[40782.299049] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 93f96c1db8514a60
[40782.299050] RBP: ffffb766c0aabeb0 R08: 0000000000000000 R09: 0000000000000000
[40782.299051] R10: 0000000000000000 R11: 0000000000000000 R12: 93f96c1db8514a38
[40782.299053] R13: ffffffffc26009f8 R14: ffff9ce4e6441940 R15: 93f96c1db8514a38
[40782.299054] FS:  0000000000000000(0000) GS:ffff9ce7ee380000(0000) 
knlGS:0000000000000000
[40782.299056] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[40782.299058] CR2: 00007fe70927aff8 CR3: 00000001d0842006 CR4: 00000000001706e0
[40782.299060] note: nvidia-modeset[1554] exited with preempt_count 1
[40814.054046] usb 4-3: USB disconnect, device number 3
[40814.186450] thinkpad_acpi: undocked from hotplug port replicator

```

Have not performed any long-term testing with 6.2.0-24 and ld.conf
nvidia hack.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/2016459

Title:
  NVRM: RmInitAdapter failed! , failed to copy vbios to system memory

Status in nvidia-graphics-drivers-390 package in Ubuntu:
  Confirmed

Bug description:
  Hi, just performed a do-release_upgrade -d to try 23.10 on my lenovo T430 
laptop with Nvidia chipset (NVIDIA NVS 5200M).
  Upgrade went smooth, but noticed my external displays where not seen. a 
checkup shows nvidia-settings doesn't show full as usual, and noticed messages 
in recarding NVRM which i had never before.

  ```
  [35057.710742] NVRM: RmInitAdapter failed! (0x30:0xffff:663)
  [35057.710792] NVRM: rm_init_adapter failed for device bearing minor number 0
  [35060.706390] NVRM: failed to copy vbios to system memory.
  [35060.706501] NVRM: RmInitAdapter failed! (0x30:0xffff:663)
  [35060.706562] NVRM: rm_init_adapter failed for device bearing minor number 0
  [35063.708929] NVRM: failed to copy vbios to system memory.
  [35063.709041] NVRM: RmInitAdapter failed! (0x30:0xffff:663)
  [35063.709087] NVRM: rm_init_adapter failed for device bearing minor number 0

  ```

  searching for nvidia
  ```
  2023-04-16T22:15:49.402742+02:00 T430-i7 kernel: [   14.428429] nvidia: 
loading out-of-tree module taints kernel.
  2023-04-16T22:15:49.402743+02:00 T430-i7 kernel: [   14.428443] nvidia: 
module license 'NVIDIA' taints kernel.
  2023-04-16T22:15:49.402757+02:00 T430-i7 kernel: [   14.528477] 
nvidia-nvlink: Nvlink Core is being initialized, major device number 234
  2023-04-16T22:15:49.402845+02:00 T430-i7 kernel: [   14.529212] nvidia 
0000:01:00.0: enabling device (0000 -> 0003)
  2023-04-16T22:15:49.402847+02:00 T430-i7 kernel: [   14.529674] nvidia 
0000:01:00.0: vgaarb: changed VGA decodes: 
olddecodes=io+mem,decodes=none:owns=none
  2023-04-16T22:15:49.402857+02:00 T430-i7 kernel: [   14.589081] 
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  
390.157  Wed Oct 12 09:15:25 UTC 2022
  2023-04-16T22:15:49.402870+02:00 T430-i7 kernel: [   14.619491] [drm] 
[nvidia-drm] [GPU ID 0x00000100] Loading driver
  2023-04-16T22:15:49.402901+02:00 T430-i7 kernel: [   14.657436] 
[drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed 
to allocate NvKmsKapiDevice
  2023-04-16T22:15:49.402903+02:00 T430-i7 kernel: [   14.659661] 
[drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 
0x00000100] Failed to register device
  2023-04-16T22:15:49.402988+02:00 T430-i7 kernel: [   15.433547] nvidia-uvm: 
Loaded the UVM driver in 8 mode, major device number 511
  2023-04-16T22:15:49.402993+02:00 T430-i7 kernel: [   15.536785] audit: 
type=1400 audit(1681676145.574:3): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="nvidia_modprobe" pid=2406 comm="apparmor_parser"
  2023-04-16T22:15:49.403000+02:00 T430-i7 kernel: [   15.536790] audit: 
type=1400 audit(1681676145.574:4): apparmor="STATUS" operation="profile_load" 
profile="unconfined" name="nvidia_modprobe//kmod" pid=2406 
comm="apparmor_parser"
  2023-04-16T22:15:49.403188+02:00 T430-i7 kernel: [   18.933794] nvidia-uvm: 
Unloaded the UVM driver in 8 mode
  2023-04-16T22:15:49.403194+02:00 T430-i7 kernel: [   18.987254] 
nvidia-modeset: Unloading
  2023-04-16T22:15:49.403195+02:00 T430-i7 kernel: [   19.023265] 
nvidia-nvlink: Unregistered the Nvlink Core, major device number 234
  2023-04-16T22:15:49.403218+02:00 T430-i7 kernel: [   19.328850] 
nvidia-nvlink: Nvlink Core is being initialized, major device number 234
  2023-04-16T22:15:49.654976+02:00 T430-i7 kernel: [   19.608711] nvidia 
0000:01:00.0: enabling device (0000 -> 0003)
  2023-04-16T22:15:49.654996+02:00 T430-i7 kernel: [   19.608847] nvidia 
0000:01:00.0: vgaarb: changed VGA decodes: 
olddecodes=none,decodes=none:owns=none
  2023-04-16T22:15:49.720716+02:00 T430-i7 systemd[1]: Starting 
nvidia-persistenced.service - NVIDIA Persistence Daemon...
  2023-04-16T22:15:49.723994+02:00 T430-i7 nvidia-persistenced: Verbose syslog 
connection opened
  2023-04-16T22:15:49.724337+02:00 T430-i7 nvidia-persistenced: Now running 
with user ID 139 and group ID 155
  2023-04-16T22:15:49.724508+02:00 T430-i7 systemd[1]: Started 
nvidia-persistenced.service - NVIDIA Persistence Daemon.
  2023-04-16T22:15:49.724577+02:00 T430-i7 nvidia-persistenced: Started (3602)
  2023-04-16T22:15:49.724717+02:00 T430-i7 nvidia-persistenced: Received signal 
15
  2023-04-16T22:15:49.724786+02:00 T430-i7 nvidia-persistenced: PID file 
unlocked.
  2023-04-16T22:15:49.724848+02:00 T430-i7 nvidia-persistenced: PID file closed.
  2023-04-16T22:15:49.724908+02:00 T430-i7 systemd[1]: Stopping 
nvidia-persistenced.service - NVIDIA Persistence Daemon...
  2023-04-16T22:15:49.724979+02:00 T430-i7 nvidia-persistenced: The daemon no 
longer has permission to remove its runtime data directory 
/var/run/nvidia-persistenced
  2023-04-16T22:15:49.725032+02:00 T430-i7 nvidia-persistenced: Shutdown (3602)
  2023-04-16T22:15:49.729555+02:00 T430-i7 systemd[1]: 
nvidia-persistenced.service: Deactivated successfully.
  2023-04-16T22:15:49.729889+02:00 T430-i7 systemd[1]: Stopped 
nvidia-persistenced.service - NVIDIA Persistence Daemon.
  2023-04-16T22:15:49.730974+02:00 T430-i7 kernel: [   19.685259] 
nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  
390.157  Wed Oct 12 09:15:25 UTC 2022
  2023-04-16T22:15:49.751140+02:00 T430-i7 kernel: [   19.700617] [drm] 
[nvidia-drm] [GPU ID 0x00000100] Loading driver
  2023-04-16T22:15:49.778997+02:00 T430-i7 kernel: [   19.733083] 
[drm:nv_drm_load [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed 
to allocate NvKmsKapiDevice
  2023-04-16T22:15:49.778998+02:00 T430-i7 kernel: [   19.733404] 
[drm:nv_drm_probe_devices [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 
0x00000100] Failed to register device
  2023-04-16T22:15:49.913788+02:00 T430-i7 kernel: [   19.865100] nvidia-uvm: 
Loaded the UVM driver in 8 mode, major device number 511
  2023-04-16T22:15:49.919685+02:00 T430-i7 systemd-udevd[1030]: nvidia_uvm: 
Process '/sbin/create-uvm-dev-node' failed with exit code 1.
  2023-04-16T22:15:49.920218+02:00 T430-i7 systemd-udevd[1010]: nvidia: Process 
'/usr/bin/nvidia-smi' failed with exit code 6.
  2023-04-16T22:15:49.921522+02:00 T430-i7 systemd-udevd[1010]: nvidia: Process 
'/bin/mknod -m 666 /dev/nvidiactl c 195 255' failed with exit code 1.
  2023-04-16T22:15:49.923784+02:00 T430-i7 systemd-udevd[1010]: nvidia: Process 
'/bin/mknod -m 666 /dev/nvidia0   c 195 0' failed with exit code 1.
  2023-04-16T22:16:12.059920+02:00 T430-i7 systemd[7403]: Starting 
app-nvidia\x2dsettings\x2dautostart@autostart.service - NVIDIA X Server 
Settings...
  2023-04-16T22:16:12.221263+02:00 T430-i7 systemd[7403]: Started 
app-nvidia\x2dsettings\x2dautostart@autostart.service - NVIDIA X Server 
Settings.

  ```

  ProblemType: Bug
  DistroRelease: Ubuntu 23.04
  Package: linux-image-generic 6.2.0.20.20
  ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
  Uname: Linux 6.2.0-20-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.26.1-0ubuntu2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC2:  arjan      7423 F.... wireplumber
   /dev/snd/controlC0:  arjan      7423 F.... wireplumber
   /dev/snd/controlC1:  arjan      7423 F.... wireplumber
   /dev/snd/seq:        arjan      7411 F.... pipewire
  CasperMD5CheckResult: unknown
  CurrentDesktop: KDE
  Date: Mon Apr 17 07:57:11 2023
  HibernationDevice:
   #RESUME=UUID=f520f776-6e07-49a7-9160-d7a23e936dd9
   #RESUME=/dev/mapper/ubuntu--vg-swap_1
   RESUME=/dev/mapper/ubuntu--vg-swap_encrypted
  InstallationDate: Installed on 2019-01-25 (1542 days ago)
  InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 
(20180725)
  MachineType: LENOVO 2349G7G
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.2.0-20-generic 
root=/dev/mapper/ubuntu--vg-root ro 
resume=/dev/mapper/ubuntu--vg-swap_encrypted quiet splash scsi_mod.use_blk_mq=1 
intel_iommu=on mitigations=off crashkernel=512M-:192M vt.handoff=7
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-6.2.0-20-generic N/A
   linux-backports-modules-6.2.0-20-generic  N/A
   linux-firmware                            20230323.gitbcdcfbcf-0ubuntu1
  SourcePackage: linux
  UpgradeStatus: Upgraded to lunar on 2023-04-16 (0 days ago)
  dmi.bios.date: 08/07/2019
  dmi.bios.release: 2.82
  dmi.bios.vendor: LENOVO
  dmi.bios.version: G1ETC2WW (2.82 )
  dmi.board.asset.tag: Not Available
  dmi.board.name: 2349G7G
  dmi.board.vendor: LENOVO
  dmi.board.version: Not Defined
  dmi.chassis.asset.tag: No Asset Information
  dmi.chassis.type: 10
  dmi.chassis.vendor: LENOVO
  dmi.chassis.version: Not Available
  dmi.ec.firmware.release: 1.14
  dmi.modalias: 
dmi:bvnLENOVO:bvrG1ETC2WW(2.82):bd08/07/2019:br2.82:efr1.14:svnLENOVO:pn2349G7G:pvrThinkPadT430:rvnLENOVO:rn2349G7G:rvrNotDefined:cvnLENOVO:ct10:cvrNotAvailable:skuLENOVO_MT_2349:
  dmi.product.family: ThinkPad T430
  dmi.product.name: 2349G7G
  dmi.product.sku: LENOVO_MT_2349
  dmi.product.version: ThinkPad T430
  dmi.sys.vendor: LENOVO

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/2016459/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to