WARNING: CPU: 1 PID: 915 at drivers/gpu/drm/ttm/ttm_bo.c:353 ttm_bo_release+0x309/0x330 [ttm] after lowering resolution (GUI settings)
Brief summary of the problem:
After lowering resolution (for example from 1920x1080 -> 1680x1050) from GUI (Displays section in GNOME Control Center or KDE systemsettings) I'm getting this ttm WARNING in dmesg
( /usr/lib/xorg/Xorg has PID 915 here )
[ 93.996019] ------------[ cut here ]------------
[ 93.996026] WARNING: CPU: 1 PID: 915 at drivers/gpu/drm/ttm/ttm_bo.c:353 ttm_bo_release+0x309/0x330 [ttm]
[ 93.996046] Modules linked in: amdgpu iommu_v2 drm_buddy gpu_sched snd_hda_codec_via snd_hda_codec_generic snd_hda_codec_hdmi ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec coretemp kvm_intel snd_hda_core snd_hwdep kvm snd_pcm radeon irqbypass snd_seq_midi sha512_ssse3 drm_ttm_helper ttm drm_display_helper snd_seq_midi_event cec input_leds snd_rawmidi rc_core joydev drm_kms_helper serio_raw snd_seq at24 i2c_algo_bit snd_seq_device syscopyarea sysfillrect snd_timer sysimgblt video snd asus_atk0110 wmi mac_hid soundcore sch_fq_codel msr binfmt_misc parport_pc ppdev lp parport ramoops reed_solomon drm pstore_blk pstore_zone efi_pstore ip_tables x_tables autofs4 hid_generic uas r8169 usbhid ahci usb_storage lpc_ich libahci hid i2c_i801 psmouse realtek i2c_smbus
[ 93.996122] CPU: 1 PID: 915 Comm: Xorg Not tainted 6.2.0-32-generic #32~22.04.1-Ubuntu
[ 93.996126] Hardware name: System manufacturer System Product Name/P5QL-CM, BIOS 0901 05/11/2010
[ 93.996128] RIP: 0010:ttm_bo_release+0x309/0x330 [ttm]
[ 93.996140] Code: 4c 89 e7 e8 79 2a 00 00 48 8b 7b 90 e9 76 fd ff ff be 03 00 00 00 e8 d6 f2 04 ed e9 06 fe ff ff e8 7c ed 3d ed e9 fc fd ff ff <0f> 0b 48 83 7b 20 00 0f 84 33 fd ff ff 0f 0b e9 2c fd ff ff 0f 0b
[ 93.996143] RSP: 0018:ffffa00a01047c70 EFLAGS: 00010202
[ 93.996146] RAX: 0000000000000000 RBX: ffff91a75a5ad5e0 RCX: 0000000000000000
[ 93.996148] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff91a75a5ad5e0
[ 93.996150] RBP: ffffa00a01047cd0 R08: ffff91a75a5ad5e0 R09: 0000000000000000
[ 93.996151] R10: 0000000000000000 R11: 0000000000000000 R12: ffff91a8138c06f0
[ 93.996153] R13: ffff91a757b1cad8 R14: ffff91a75a5ad478 R15: ffff91a757b1ca80
[ 93.996155] FS: 00007fb70c7aca80(0000) GS:ffff91a81bc80000(0000) knlGS:0000000000000000
[ 93.996158] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.996160] CR2: 00007fb6fa1d4010 CR3: 0000000001ef6000 CR4: 00000000000406e0
[ 93.996162] Call Trace:
[ 93.996165] <TASK>
[ 93.996169] ? show_regs+0x72/0x90
[ 93.996175] ? ttm_bo_release+0x309/0x330 [ttm]
[ 93.996186] ? __warn+0x8d/0x160
[ 93.996191] ? ttm_bo_release+0x309/0x330 [ttm]
[ 93.996203] ? report_bug+0x1bb/0x1d0
[ 93.996208] ? handle_bug+0x46/0x90
[ 93.996213] ? exc_invalid_op+0x19/0x80
[ 93.996217] ? asm_exc_invalid_op+0x1b/0x20
[ 93.996221] ? ttm_bo_release+0x309/0x330 [ttm]
[ 93.996232] ? __call_rcu_common.constprop.0+0xa6/0x2c0
[ 93.996237] ttm_bo_put+0x3d/0x70 [ttm]
[ 93.996249] radeon_bo_unref+0x1e/0x40 [radeon]
[ 93.996339] radeon_gem_object_free+0x34/0x60 [radeon]
[ 93.996407] drm_gem_object_free+0x1d/0x40 [drm]
[ 93.996479] drm_gem_dmabuf_release+0x47/0x70 [drm]
[ 93.996530] dma_buf_release+0x4a/0xb0
[ 93.996534] __dentry_kill+0x110/0x1b0
[ 93.996538] dput+0x1d1/0x330
[ 93.996541] __fput+0xf4/0x290
[ 93.996546] ____fput+0xe/0x20
[ 93.996549] task_work_run+0x61/0xa0
[ 93.996552] exit_to_user_mode_loop+0x111/0x140
[ 93.996555] exit_to_user_mode_prepare+0xb9/0xd0
[ 93.996558] syscall_exit_to_user_mode+0x2a/0x50
[ 93.996561] do_syscall_64+0x69/0x90
[ 93.996565] ? radeon_drm_ioctl+0x6f/0x90 [radeon]
[ 93.996618] ? exit_to_user_mode_prepare+0x3b/0xd0
[ 93.996621] ? syscall_exit_to_user_mode+0x2a/0x50
[ 93.996624] ? do_syscall_64+0x69/0x90
[ 93.996627] ? exit_to_user_mode_prepare+0x3b/0xd0
[ 93.996630] ? syscall_exit_to_user_mode+0x2a/0x50
[ 93.996633] ? do_syscall_64+0x69/0x90
[ 93.996636] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[ 93.996639] RIP: 0033:0x7fb70cb1aaff
[ 93.996641] 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 1f 48 8b 44 24 18 64 48 2b 04 25 28 00
[ 93.996644] RSP: 002b:00007fffdff69e50 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 93.996647] RAX: 0000000000000000 RBX: 00007fffdff69ef8 RCX: 00007fb70cb1aaff
[ 93.996649] RDX: 00007fffdff69ef8 RSI: 0000000040086409 RDI: 0000000000000010
[ 93.996651] RBP: 0000000040086409 R08: 0000000000b8a58c R09: 0000000000000000
[ 93.996653] R10: 00007fb70c3e7220 R11: 0000000000000246 R12: 0000558642c667a8
[ 93.996655] R13: 0000000000000010 R14: 0000000000000384 R15: 0000558642be77b0
[ 93.996658] </TASK>
[ 93.996659] ---[ end trace 0000000000000000 ]---
It occurs in several distributions like:
- Ubuntu 22.04.3 (GNOME 42.9 @ X11), kernel 6.2.0-32-generic (64-bit)
- Manjaro (KDE Plasma 5.27.7 @ X11), kernel 6.5.0-1-MANJARO (64-bit) and 6.1.49-1-MANJARO (64-bit)
- openSUSE Leap 15.5 (KDE Plasma 5.27.4 @ X11), kernel 5.14.21-150500-55.19-default (64-bit)
Easy to reproduce but not all resolutions cause this warning.
Kernel warning occurs one time (probably because WARN_ON_ONCE() function), so to repeat the problem machine must be rebooted.
It seems that changing resolution with xrandr
(after reboot) does not cause this problem.
Hardware description:
- CPU: quad core Intel Xeon L5430 [MCP] speed (MHz): 2,66 GHz
- GPU: 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Turks PRO [Radeon HD 6570/7570/8550 / R5 230] [1002:6759]
- System Memory: 4096 MiB
- Display(s): LCD Samsung 27" 1920x1080
- Type of Display Connection: HDMI
System information:
- Distro name and Version: Ubuntu 22.04.3 (also: Manjaro 23 KDE Plasma; openSUSE Leap 15.5 KDE Plasma)
- Kernel version: 6.2.0-32-generic
- Custom kernel: N/A
- AMD official driver version: N/A
How to reproduce the issue:
Try lowering display resolution from the GUI settings.