Warning with amdgpu_bo_unref
On a Dell OptiPlex 5055 with
VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Oland [Radeon HD 8570 / R5 430 OEM / R7 240/340 / Radeon 520 OEM] [1002:6611] (rev 87)
plugging in a curved (USB-C docking station included) monitor Dell U3421WE over DisplayPort, Linux 5.15.77 shows the warning below:
[ 0.000000] Linux version 5.15.77.mx64.440 (root@theinternet.molgen.mpg.de) (gcc (GCC) 10.4.0, GNU ld (GNU Binutils) 2.37) #1 SMP Tue Nov 8 15:42:33 CET 2022
[ 0.000000] Command line: BOOT_IMAGE=/boot/bzImage-5.15.77.mx64.440 root=LABEL=root ro crashkernel=64G-:256M console=ttyS0,115200n8 console=tty0 init=/bin/systemd audit=0 random.trust_cpu=on systemd.unified_cgroup_hierarchy
[…]
[ 205.363080] ------------[ cut here ]------------
[ 205.368373] WARNING: CPU: 6 PID: 649 at drivers/gpu/drm/ttm/ttm_bo.c:409 ttm_bo_release+0x2d1/0x300 [ttm]
[ 205.379720] Modules linked in: rpcsec_gss_krb5 nfsv4 nfs input_leds 8021q garp stp mrp llc amdgpu iommu_v2 gpu_sched drm_ttm_helper ttm drm_kms_helper snd_ctl_led drm snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio led_class snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hda_core snd_pcm i2c_algo_bit fb_sys_fops syscopyarea kvm_amd sysfillrect tg3 snd_timer tpm_crb kvm snd soundcore irqbypass sysimgblt libphy tpm_tis i2c_piix4 k10temp tpm_tis_core crc32c_intel acpi_cpufreq deflate tpm rng_core wmi_bmof efi_pstore pstore wmi nfsd auth_rpcgss oid_registry nfs_acl lockd grace sunrpc efivarfs ip_tables x_tables unix ipv6 autofs4
[ 205.446195] CPU: 6 PID: 649 Comm: Xorg:gdrv0 Not tainted 5.15.77.mx64.440 #1
[ 205.454211] Hardware name: Dell Inc. OptiPlex 5055 Ryzen CPU/0P03DX, BIOS 1.5.0 01/12/2022
[ 205.463566] RIP: 0010:ttm_bo_release+0x2d1/0x300 [ttm]
[ 205.469378] Code: e8 74 e2 2c e1 e9 be fd ff ff 48 8b 7d 98 b9 30 75 00 00 31 d2 be 01 00 00 00 e8 ca 04 2d e1 48 8b 45 e8 eb a1 4c 89 e0 eb 9c <0f> 0b e9 4e fd ff ff e8 53 e0 2c e1 e9 fa fe ff ff be 03 00 00 00
[ 205.490851] RSP: 0018:ffffc900011c7d10 EFLAGS: 00010202
[ 205.496806] RAX: 0000000000000001 RBX: ffffc900011c7d50 RCX: 0000000000000000
[ 205.505064] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff88811fca7db8
[ 205.513275] RBP: ffff88811fca7db8 R08: ffff88811fca7db8 R09: 0000000000000000
[ 205.521463] R10: ffff88812da88b68 R11: ffffc900011c7d30 R12: ffff88811c165320
[ 205.529351] R13: ffff88811fca7c58 R14: ffff8881030c4840 R15: ffff8881030c4858
[ 205.537571] FS: 00007fb5a0df96c0(0000) GS:ffff88840eb80000(0000) knlGS:0000000000000000
[ 205.546852] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 205.553485] CR2: 000000000073cff8 CR3: 000000011b8a0000 CR4: 00000000003506e0
[ 205.561688] Call Trace:
[ 205.564512] <TASK>
[ 205.566940] amdgpu_bo_unref+0x1a/0x30 [amdgpu]
[ 205.572194] amdgpu_gem_object_free+0x30/0x50 [amdgpu]
[ 205.578154] drm_gem_handle_delete+0x87/0xd0 [drm]
[ 205.583657] ? drm_gem_handle_create+0x40/0x40 [drm]
[ 205.589401] drm_ioctl_kernel+0xae/0x100 [drm]
[ 205.594567] drm_ioctl+0x205/0x3b0 [drm]
[ 205.599109] ? drm_gem_handle_create+0x40/0x40 [drm]
[ 205.604794] ? __rseq_handle_notify_resume+0x2e5/0x440
[ 205.610717] amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[ 205.616092] __x64_sys_ioctl+0x8e/0xb0
[ 205.620425] do_syscall_64+0x43/0x90
[ 205.624539] entry_SYSCALL_64_after_hwframe+0x61/0xcb
[ 205.630383] RIP: 0033:0x7fb5c611a4db
[ 205.634517] Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 77 1b 48 8b 44 24 18 64 48 2b 04 25 28 00
[ 205.656040] RSP: 002b:00007fb5a0df8850 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 205.664739] RAX: ffffffffffffffda RBX: 00007fb5a0df88e8 RCX: 00007fb5c611a4db
[ 205.672982] RDX: 00007fb5a0df88e8 RSI: 0000000040086409 RDI: 000000000000000f
[ 205.681197] RBP: 0000000040086409 R08: 0000000000000007 R09: 0000000000000000
[ 205.689388] R10: 29d5f2757d476784 R11: 0000000000000246 R12: 0000000000746978
[ 205.697587] R13: 000000000000000f R14: 00000000007477f4 R15: 00007fb5a0df8938
[ 205.705796] </TASK>
[ 205.708348] ---[ end trace 867937d020dc4be4 ]---
Edited by Paul Menzel