Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ mapping_cpu.c:127 #748

Open
1 of 2 tasks
thesword53 opened this issue Dec 5, 2024 · 1 comment
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@thesword53
Copy link

NVIDIA Open GPU Kernel Modules Version

565.57.01 and 565.77

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Arch Linux

Kernel Release

6.12.1-arch1-1

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

GeForce RTX 2080 SUPER

Describe the bug

565.57.01 and 565.77 drivers state Added support for mmap of exported DMA-BUF objects. , but it's not working with my RTX 2080 SUPER and AMD CPU. It's working with my laptop GTX 1060 and Intel CPU.

To Reproduce

  • Use the RTX 2080 SUPER (desktop) (and probably an AMD CPU)
  • Install virglrenderer >= 1.0.0. Package virglrenderer on Arch Linux and Ubuntu
  • Install Virtio Vulkan ICD (Venus) >= 24.2.0. Package vulkan-virtio on Arch Linux, mesa-vulkan-drivers on Ubuntu
  • Install Vulkan tools. Package vulkan-tools on Arch Linux and Ubuntu
  • Run virgl_test_server --venus in a terminal
  • Run vulkaninfo in another terminal. A GPU device named “Virtio-GPU Venus (NVIDIA …)” should be listed in addition of Nvidia GPU.
  • Run VN_DEBUG=all vkcube --gpu_number

https://docs.mesa3d.org/drivers/venus.html#vtest

Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

[  200.851473] NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ mapping_cpu.c:127
[  200.851483] NVRM: nvAssertOkFailedNoLog: Assertion failed: Call not supported [NV_ERR_NOT_SUPPORTED] (0x00000056) returned from rmapiGetEffectiveAddrSpace(pGpu, memdescGetMemDescFromGpu(pMemDesc, pGpu), pMapParams->flags, &effectiveAddrSpace) @ mapping_cpu.c:306
[  200.851499] [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002d00] Failed to map NvKmsKapiMemory 0x000000009f85a7dd
[  200.881475] NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ mapping_cpu.c:127
[  200.881484] NVRM: nvAssertOkFailedNoLog: Assertion failed: Call not supported [NV_ERR_NOT_SUPPORTED] (0x00000056) returned from rmapiGetEffectiveAddrSpace(pGpu, memdescGetMemDescFromGpu(pMemDesc, pGpu), pMapParams->flags, &effectiveAddrSpace) @ mapping_cpu.c:306
[  200.881496] [drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00002d00] Failed to map NvKmsKapiMemory 0x0000000099894326
[  201.052417] NVRM: nvAssertFailedNoLog: Assertion failed: 0 @ mapping_cpu.c:127
[  201.052426] NVRM: nvAssertOkFailedNoLog: Assertion failed: Call not supported [NV_ERR_NOT_SUPPORTED] (0x00000056) returned from rmapiGetEffectiveAddrSpace(pGpu, memdescGetMemDescFromGpu(pMemDesc, pGpu), pMapParams->flags, &effectiveAddrSpace) @ mapping_cpu.c:306
@thesword53 thesword53 added the bug Something isn't working label Dec 5, 2024
@thesword53
Copy link
Author

thesword53 commented Dec 7, 2024

I tried to comment out this line

(memdescGetGpuCacheAttrib(pMemDesc) != NV_MEMORY_CACHED) &&
and mapping is not failing anymore but I get other errors:

[   85.320542] ------------[ cut here ]------------
[   85.320546] ioremap on RAM at 0x0000000182b47000 - 0x0000000182b47fff
[   85.320549] WARNING: CPU: 2 PID: 1842 at arch/x86/mm/ioremap.c:217 __ioremap_caller+0x2cd/0x340
[   85.320556] Modules linked in: rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace nfs_localio sunrpc netfs rfcomm snd_seq_dummy snd_hrtimer snd_seq nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib nft_reject_inet nf_reject_ipv4 nf_reject_ipv6 nft_reject nft_ct nft_chain_nat ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_raw iptable_security nf_tables libcrc32c ip6table_filter ip6_tables iptable_filter uhid cmac algif_hash algif_skcipher af_alg bnep 8021q garp mrp stp llc vfat ntfs3 fat uvcvideo uvc amd_atl intel_rapl_msr intel_rapl_common kvm_amd snd_hda_codec_realtek iwlmvm ccp snd_hda_codec_generic snd_hda_scodec_component snd_hda_codec_hdmi kvm snd_hda_intel mac80211 gspca_vc032x btusb crct10dif_pclmul snd_intel_dspcfg gspca_main videobuf2_vmalloc crc32_pclmul btrtl snd_intel_sdw_acpi videobuf2_memops polyval_clmulni libarc4 snd_usb_audio videobuf2_v4l2 btintel polyval_generic snd_hda_codec videobuf2_common
[   85.320641]  snd_usbmidi_lib btbcm ghash_clmulni_intel btmtk snd_ump sha512_ssse3 videodev iwlwifi snd_hda_core snd_rawmidi sha256_ssse3 bluetooth snd_seq_device ucsi_ccg snd_hwdep sha1_ssse3 joydev mousedev mc jc42 typec_ucsi aesni_intel igb snd_pcm ee1004 gf128mul cfg80211 typec crypto_simd ptp snd_timer sp5100_tco roles cryptd pps_core snd i2c_algo_bit i2c_piix4 rapl pcspkr wmi_bmof i2c_smbus zenpower(OE) soundcore i2c_nvidia_gpu dca rfkill mac_hid nvidia_uvm(OE) i2c_dev crypto_user dm_mod loop nfnetlink ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 nvme crc32c_intel nvme_core nvme_auth nvidia_drm(OE) nvidia_modeset(OE) nvidia(OE) drm_ttm_helper hid_generic ttm video usbhid wmi
[   85.320725] CPU: 2 UID: 1000 PID: 1842 Comm: qemu-system-x86 Tainted: G           OE      6.12.1-arch1-1 #1 33f4a68ee85c59cb5d6edb747af0349869779b24
[   85.320730] Tainted: [O]=OOT_MODULE, [E]=UNSIGNED_MODULE
[   85.320731] Hardware name: Micro-Star International Co., Ltd. MS-7B93/MPG X570 GAMING PRO CARBON WIFI (MS-7B93), BIOS 1.N0 07/19/2024
[   85.320733] RIP: 0010:__ioremap_caller+0x2cd/0x340
[   85.320737] Code: 1f fe ff ff 80 3d ef 52 1a 02 00 75 9d 48 8d 54 24 28 48 8d 74 24 18 48 c7 c7 cc 4c c6 98 c6 05 d5 52 1a 02 01 e8 53 dc 01 00 <0f> 0b e9 79 ff ff ff 83 fd 04 75 35 bf 04 00 00 00 e8 9d a0 ff ff
[   85.320739] RSP: 0018:ffffa82a8659f9b0 EFLAGS: 00010286
[   85.320742] RAX: 0000000000000000 RBX: ffff8d80834b7400 RCX: 0000000000000027
[   85.320744] RDX: ffff8d8edeb218c8 RSI: 0000000000000001 RDI: ffff8d8edeb218c0
[   85.320745] RBP: 0000000000000001 R08: 0000000000000000 R09: ffffa82a8659f830
[   85.320747] R10: ffffffff994b54a8 R11: 0000000000000003 R12: 0000000000001000
[   85.320749] R13: ffff8d8006125d48 R14: 0000000000000000 R15: 0000000182b47000
[   85.320750] FS:  00007f6b8bc8f3c0(0000) GS:ffff8d8edeb00000(0000) knlGS:0000000000000000
[   85.320753] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   85.320755] CR2: 00007c1d94000020 CR3: 0000000133ff2000 CR4: 0000000000350ef0
[   85.320757] Call Trace:
[   85.320758]  <TASK>
[   85.320760]  ? __ioremap_caller+0x2cd/0x340
[   85.320763]  ? __warn.cold+0x93/0xf6
[   85.320766]  ? __ioremap_caller+0x2cd/0x340
[   85.320770]  ? report_bug+0xff/0x140
[   85.320774]  ? handle_bug+0x58/0x90
[   85.320777]  ? exc_invalid_op+0x17/0x70
[   85.320780]  ? asm_exc_invalid_op+0x1a/0x20
[   85.320785]  ? __ioremap_caller+0x2cd/0x340
[   85.320789]  ? __nv_drm_gem_nvkms_map+0x7d/0xd0 [nvidia_drm 08d4f5c87c489ee7cc25c441ee097062b18fa4d7]
[   85.320798]  __nv_drm_gem_nvkms_map+0x7d/0xd0 [nvidia_drm 08d4f5c87c489ee7cc25c441ee097062b18fa4d7]
[   85.320804]  __nv_drm_gem_nvkms_mmap+0x16/0x40 [nvidia_drm 08d4f5c87c489ee7cc25c441ee097062b18fa4d7]
[   85.320809]  nv_drm_mmap+0xdd/0x160 [nvidia_drm 08d4f5c87c489ee7cc25c441ee097062b18fa4d7]
[   85.320815]  drm_gem_prime_mmap+0x13a/0x1c0
[   85.320820]  __mmap_region+0x748/0xb10
[   85.320834]  mmap_region+0x78/0xa0
[   85.320836]  do_mmap+0x468/0x650
[   85.320841]  vm_mmap_pgoff+0xec/0x1c0
[   85.320845]  ? put_timespec64+0x3e/0x70
[   85.320849]  ksys_mmap_pgoff+0x144/0x1e0
[   85.320853]  do_syscall_64+0x82/0x190
[   85.320856]  ? srso_return_thunk+0x5/0x5f
[   85.320858]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   85.320862]  ? srso_return_thunk+0x5/0x5f
[   85.320864]  ? do_syscall_64+0x8e/0x190
[   85.320866]  ? srso_return_thunk+0x5/0x5f
[   85.320868]  ? do_syscall_64+0x8e/0x190
[   85.320871]  ? srso_return_thunk+0x5/0x5f
[   85.320873]  ? arch_exit_to_user_mode_prepare.isra.0+0x79/0x90
[   85.320877]  ? srso_return_thunk+0x5/0x5f
[   85.320879]  ? syscall_exit_to_user_mode+0x37/0x1c0
[   85.320882]  ? srso_return_thunk+0x5/0x5f
[   85.320884]  ? do_syscall_64+0x8e/0x190
[   85.320887]  ? srso_return_thunk+0x5/0x5f
[   85.320889]  ? do_syscall_64+0x8e/0x190
[   85.320891]  ? srso_return_thunk+0x5/0x5f
[   85.320893]  ? do_syscall_64+0x8e/0x190
[   85.320895]  ? srso_return_thunk+0x5/0x5f
[   85.320898]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   85.320900] RIP: 0033:0x7f6b8c3d824c
[   85.320919] Code: 1e fa 41 f7 c1 ff 0f 00 00 75 33 55 48 89 e5 41 54 41 89 cc 53 48 89 fb 48 85 ff 74 41 45 89 e2 48 89 df b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 7c 5b 41 5c 5d c3 0f 1f 80 00 00 00 00 48 8b
[   85.320921] RSP: 002b:00007ffdc729bf70 EFLAGS: 00200246 ORIG_RAX: 0000000000000009
[   85.320924] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6b8c3d824c
[   85.320926] RDX: 0000000000000003 RSI: 0000000000001000 RDI: 0000000000000000
[   85.320927] RBP: 00007ffdc729bf80 R08: 00000000000000a5 R09: 0000000000000000
[   85.320929] R10: 0000000000000001 R11: 0000000000200246 R12: 0000000000000001
[   85.320931] R13: 00007ffdc729c0c0 R14: 00007ffdc729c090 R15: 0000593e455550d0
[   85.320936]  </TASK>
[   85.320937] ---[ end trace 0000000000000000 ]---
[   85.320939] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x0000000011c407dc
[   85.478771] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x00000000409a33e5
[   85.482501] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x00000000d68ee82d
[   85.485268] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x0000000093a3e7bc
[   85.487162] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x0000000053db6cfa
[   85.490451] [drm] [nvidia-drm] [GPU ID 0x00002d00] Failed to ioremap_wc NvKmsKapiMemory 0x000000008096a7a1
[   85.503346] NVRM: GPU at PCI:0000:2d:00: GPU-85142072-d857-6520-e4b7-8d06bf8e4a0d
[   85.503352] NVRM: Xid (PCI:0000:2d:00): 69, pid='<unknown>', name=<unknown>, Class Error: ChId 003f, Class 0000c597, Offset 00000274, Data 00000024, ErrorCode 0000009c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant