divide error in driver CalculateVMAndRowBytes
Brief summary of the problem:
The screen suddenly freezes when running some Vulkan workload. dmesg
prints out some stack trace, indicating a "divide error".
Hardware description:
- CPU: Ryzen 7 4800H
- GPU: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c6)
- System Memory: 29Gi
- Display(s): laptop internal
- Type of Diplay Connection: eDP
System infomration:
- Distro name and Version: Arch
- Kernel version: 5.9.3
- Custom kernel: N/A
- AMD package version: mesa 20.2.1
How to reproduce the issue:
- Download and compile the
piglit
test suite - Run
MESA_LOADER_DRIVER_OVERRIDE=zink ./piglit run quick_gl results/quick_gl
Attached files:
dmesg
[ 921.053492] kotori kernel: copyteximage[18549]: segfault at 55c0e005d388 ip 00007f9cb566736f sp 00007fff69a179a0 error 4 cpu 14 in libvulkan_radeon.so[7f9cb5629000+2ed000]
[ 921.053503] kotori kernel: Code: 41 89 c0 31 c0 83 bc 24 b4 00 00 00 01 48 8b 54 24 30 0f 95 c0 44 89 84 24 c0 00 00 00 4a 8d 84 40 e0 00 00 00 4c 89 44 24 10 <48> 8b 74 c5 00 89 bc 24 80 02 00 00 89 8c 24 84 02 00 00 48 8b 84
[ 921.168639] kotori kernel: copyteximage[18567]: segfault at 5651a208a318 ip 00007f2f753c536f sp 00007ffebc5b6990 error 4 cpu 1 in libvulkan_radeon.so[7f2f75387000+2ed000]
[ 921.168650] kotori kernel: Code: 41 89 c0 31 c0 83 bc 24 b4 00 00 00 01 48 8b 54 24 30 0f 95 c0 44 89 84 24 c0 00 00 00 4a 8d 84 40 e0 00 00 00 4c 89 44 24 10 <48> 8b 74 c5 00 89 bc 24 80 02 00 00 89 8c 24 84 02 00 00 48 8b 84
[ 922.032467] kotori kernel: glx-visuals-dep[18079]: segfault at 8 ip 00007f0f79c71baa sp 00007ffe75646970 error 4 cpu 9 in zink_dri.so[7f0f792bc000+e58000]
[ 922.032481] kotori kernel: Code: 00 00 1c 00 00 00 4c 8b 64 24 38 c7 84 24 20 02 00 00 01 00 00 00 49 8b 44 24 30 48 89 84 24 78 02 00 00 48 8b 83 50 18 00 00 <48> 8b 40 08 48 89 84 24 80 02 00 00 48 8d 84 24 d0 00 00 00 48 89
[ 923.372175] kotori kernel: divide error: 0000 [#1] PREEMPT SMP NOPTI
[ 923.372180] kotori kernel: CPU: 6 PID: 1102 Comm: Xorg Kdump: loaded Not tainted 5.9.3-zen1-1-zen #1
[ 923.372182] kotori kernel: Hardware name: MECHREVO Code 01 Series PF5NU1G/PF5NU1G, BIOS N.1.06MRO03 08/04/2020
[ 923.372265] kotori kernel: RIP: 0010:CalculateVMAndRowBytes.constprop.0+0x457/0xb60 [amdgpu]
[ 923.372265] kotori kernel: Code: 84 24 c8 00 00 00 c7 00 00 00 00 00 84 d2 0f 84 19 03 00 00 41 89 f6 b9 00 01 00 00 45 31 ed 41 b8 00 01 00 00 44 89 c0 31 d2 <f7> f3 31 d2 41 f7 f6 48 8b 94 24 c0 00 00 00 89 02 40 84 ed 0f 84
[ 923.372265] kotori kernel: RSP: 0018:ffff9adcc1197518 EFLAGS: 00010246
[ 923.372265] kotori kernel: RAX: 0000000000010000 RBX: 0000000000000000 RCX: 0000000000010000
[ 923.372265] kotori kernel: RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8d4df7ae2090
[ 923.372265] kotori kernel: RBP: 0000000000000001 R08: 0000000000010000 R09: 0000000000000000
[ 923.372265] kotori kernel: R10: 0000000000000000 R11: ffff8d4df7aea098 R12: 0000000000000001
[ 923.372265] kotori kernel: R13: 0000000000000400 R14: 0000000000000080 R15: 0000000000000019
[ 923.372265] kotori kernel: FS: 00007ff596d79540(0000) GS:ffff8d518ff80000(0000) knlGS:0000000000000000
[ 923.372265] kotori kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 923.372265] kotori kernel: CR2: 00007f57340100b8 CR3: 0000000792ece000 CR4: 0000000000350ee0
[ 923.372265] kotori kernel: Call Trace:
[ 923.372265] kotori kernel: dml21_ModeSupportAndSystemConfigurationFull+0x47d6/0x8d50 [amdgpu]
[ 923.372265] kotori kernel: ? __alloc_pages_nodemask+0x193/0x1610
[ 923.372265] kotori kernel: ? __schedule+0x433/0xc10
[ 923.372265] kotori kernel: ? dml_get_voltage_level+0x11ab/0x1310 [amdgpu]
[ 923.372265] kotori kernel: dml_get_voltage_level+0x11ab/0x1310 [amdgpu]
[ 923.372265] kotori kernel: dcn20_fast_validate_bw+0x42a/0xbe0 [amdgpu]
[ 923.372265] kotori kernel: dcn21_validate_bandwidth+0xd3/0x2b0 [amdgpu]
[ 923.372265] kotori kernel: dc_validate_global_state+0x3c3/0x4c0 [amdgpu]
[ 923.372265] kotori kernel: amdgpu_dm_atomic_check+0x1101/0x12b0 [amdgpu]
[ 923.372265] kotori kernel: drm_atomic_check_only+0x57f/0x7e0 [drm]
[ 923.372265] kotori kernel: ? drm_mode_object_put+0x26/0x60 [drm]
[ 923.372265] kotori kernel: ? drm_atomic_set_property+0x8e/0xb50 [drm]
[ 923.372265] kotori kernel: drm_atomic_commit+0x13/0x50 [drm]
[ 923.372265] kotori kernel: drm_mode_obj_set_property_ioctl+0x156/0x3d0 [drm]
[ 923.372265] kotori kernel: ? __check_object_size+0x56/0x147
[ 923.372265] kotori kernel: ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
[ 923.372265] kotori kernel: drm_ioctl_kernel+0xb8/0x140 [drm]
[ 923.372265] kotori kernel: drm_ioctl+0x221/0x3b0 [drm]
[ 923.372265] kotori kernel: ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
[ 923.372265] kotori kernel: amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[ 923.372265] kotori kernel: __x64_sys_ioctl+0x83/0xb0
[ 923.372265] kotori kernel: do_syscall_64+0x33/0x40
[ 923.372265] kotori kernel: entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 923.372265] kotori kernel: RIP: 0033:0x7ff59773cf6b
[ 923.372265] kotori kernel: Code: 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b5 e8 1c ff ff ff 85 c0 78 ba 4c 89 e0 5b 5d 41 5c c3 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d5 ae 0c 00 f7 d8 64 89 01 48
[ 923.372265] kotori kernel: RSP: 002b:00007ffc67c87098 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 923.372265] kotori kernel: RAX: ffffffffffffffda RBX: 00007ffc67c870d0 RCX: 00007ff59773cf6b
[ 923.372265] kotori kernel: RDX: 00007ffc67c870d0 RSI: 00000000c01864ba RDI: 000000000000000d
[ 923.372265] kotori kernel: RBP: 00000000c01864ba R08: 0000000000000066 R09: 00000000cccccccc
[ 923.372265] kotori kernel: R10: 0000000000000fff R11: 0000000000000246 R12: 000055ecc1b035f0
[ 923.372265] kotori kernel: R13: 000000000000000d R14: 0000000000000000 R15: 0000000000000003
[ 923.372265] kotori kernel: Modules linked in: uinput uhid rfcomm snd_seq_dummy snd_hrtimer snd_seq snd_seq_device fuse cmac algif_hash algif_skcipher af_alg bnep rtsx_usb_ms memstick btusb btrtl btbcm btintel bluetooth ecdh_generic ecc crc16 uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc 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 nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set tun nf_tables nfnetlink snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio iwlmvm snd_hda_intel mac80211 snd_intel_dspcfg snd_hda_codec libarc4 snd_hda_core iwlwifi snd_hwdep edac_mce_amd snd_pcm r8169 realtek asus_wmi mdio_devres snd_timer kvm_amd joydev snd input_leds cfg80211 sparse_keymap mousedev of_mdio kvm soundcore snd_rn_pci_acp3x irqbypass fixed_phy rapl evdev acpi_cpufreq mac_hid rfkill snd_pci_acp3x libphy wmi_bmof tpm_crb sp5100_tco tpm_tis tpm_tis_core ac
[ 923.372265] kotori kernel: i2c_piix4 k10temp lzo_rle nls_iso8859_1 nls_cp437 vfat fat sch_fq tcp_bbr msr ip_tables x_tables xxhash_generic btrfs blake2b_generic xor raid6_pq libcrc32c crc32c_generic dm_crypt cbc encrypted_keys trusted tpm rtsx_usb_sdmmc mmc_core rtsx_usb amdgpu hid_multitouch hid_generic gpu_sched i2c_algo_bit serio_raw ttm atkbd libps2 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cec rc_core crct10dif_pclmul crc32_pclmul crc32c_intel drm ghash_clmulni_intel aesni_intel xhci_pci xhci_pci_renesas crypto_simd xhci_hcd cryptd ccp glue_helper rng_core agpgart wmi battery i8042 i2c_hid serio hid pinctrl_amd dm_mirror dm_region_hash dm_log dm_mod crypto_user
[ 923.373142] kotori kernel: ---[ end trace 26ffb55aa4ad499c ]---
[ 923.373209] kotori kernel: RIP: 0010:CalculateVMAndRowBytes.constprop.0+0x457/0xb60 [amdgpu]
[ 923.373214] kotori kernel: Code: 84 24 c8 00 00 00 c7 00 00 00 00 00 84 d2 0f 84 19 03 00 00 41 89 f6 b9 00 01 00 00 45 31 ed 41 b8 00 01 00 00 44 89 c0 31 d2 <f7> f3 31 d2 41 f7 f6 48 8b 94 24 c0 00 00 00 89 02 40 84 ed 0f 84
[ 923.373215] kotori kernel: RSP: 0018:ffff9adcc1197518 EFLAGS: 00010246
[ 923.373217] kotori kernel: RAX: 0000000000010000 RBX: 0000000000000000 RCX: 0000000000010000
[ 923.373218] kotori kernel: RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8d4df7ae2090
[ 923.373219] kotori kernel: RBP: 0000000000000001 R08: 0000000000010000 R09: 0000000000000000
[ 923.373220] kotori kernel: R10: 0000000000000000 R11: ffff8d4df7aea098 R12: 0000000000000001
[ 923.373221] kotori kernel: R13: 0000000000000400 R14: 0000000000000080 R15: 0000000000000019
[ 923.373223] kotori kernel: FS: 00007ff596d79540(0000) GS:ffff8d518ff80000(0000) knlGS:0000000000000000
[ 923.373224] kotori kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 923.373226] kotori kernel: CR2: 00007f57340100b8 CR3: 0000000792ece000 CR4: 0000000000350ee0