Bug 213983 - WARNING: CPU: 3 PID: 520 at drivers/gpu/drm/ttm/ttm_bo.c:409 ttm_bo_release+0x7a/0x803 [ttm]
Summary: WARNING: CPU: 3 PID: 520 at drivers/gpu/drm/ttm/ttm_bo.c:409 ttm_bo_release+0...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
: 214621 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-08-06 09:27 UTC by Erhard F.
Modified: 2023-12-23 20:17 UTC (History)
9 users (show)

See Also:
Kernel Version: 5.14-rc4
Subsystem:
Regression: No
Bisected commit-id:


Attachments
kernel dmesg (5.14-rc4, AMD A10-7860K) (75.70 KB, text/plain)
2021-08-06 09:27 UTC, Erhard F.
Details
kernel .config (5.14-rc4, AMD A10-7860K) (108.99 KB, text/plain)
2021-08-06 09:28 UTC, Erhard F.
Details

Description Erhard F. 2021-08-06 09:27:48 UTC
Created attachment 298221 [details]
kernel dmesg (5.14-rc4, AMD A10-7860K)

System was running fine for hours but got this at reboot:

[...]
[35939.202358] ------------[ cut here ]------------
[35939.202603] WARNING: CPU: 3 PID: 520 at drivers/gpu/drm/ttm/ttm_bo.c:409 ttm_bo_release+0x7a/0x803 [ttm]
[35939.202870] Modules linked in: rfkill dm_crypt nhpoly1305_sse2 nhpoly1305 chacha_generic chacha_x86_64 libchacha adiantum libpoly1305 algif_skcipher input_leds joydev led_class dm_mod hid_generic usbhid hid raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx amdgpu md_mod evdev f2fs crc32_generic lz4hc_compress lz4_compress lz4_decompress edac_mce_amd crc32_pclmul ext4 crc16 mbcache jbd2 ohci_pci snd_hda_codec_hdmi drm_ttm_helper ttm aesni_intel snd_hda_intel mfd_core libaes crypto_simd cryptd gpu_sched snd_intel_dspcfg i2c_algo_bit k10temp snd_hda_codec fam15h_power i2c_piix4 snd_hwdep drm_kms_helper snd_hda_core ohci_hcd cfbfillrect ehci_pci xhci_pci xhci_hcd ehci_hcd syscopyarea cfbimgblt snd_pcm sysfillrect sysimgblt usbcore fb_sys_fops snd_timer cfbcopyarea usb_common snd soundcore video acpi_cpufreq processor button zram nct6775 zsmalloc hwmon_vid hwmon drm nfsd fb fuse font fbdev auth_rpcgss drm_panel_orientation_quirks backlight lockd grace configfs sunrpc
[35939.203200]  efivarfs
[35939.205121] CPU: 3 PID: 520 Comm: X Not tainted 5.14.0-rc4-bdver3 #2
[35939.212327] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./A88M-G/3.1, BIOS P1.40C 11/21/2016
[35939.219364] RIP: 0010:ttm_bo_release+0x7a/0x803 [ttm]
[35939.219387] Code: e0 2a 48 c1 ea 03 8a 14 02 48 8b 04 24 83 e0 07 83 c0 03 38 d0 7c 0d 84 d2 74 09 48 8b 3c 24 e8 99 eb 7c dd 83 7b 4c 00 74 02 <0f> 0b 48 8d 43 18 48 89 c2 48 89 44 24 10 b8 ff ff 37 00 48 c1 ea
[35939.230367] RSP: 0018:ffffc900050dfb08 EFLAGS: 00010202
[35939.230376] RAX: 0000000000000007 RBX: ffff8881716441f0 RCX: ffff8881716441f0
[35939.230381] RDX: 1ffff1102e2c8800 RSI: 0000000000000004 RDI: ffff8881716441f0
[35939.230387] RBP: ffff8881716441d8 R08: 0000000000000001 R09: ffffed102e2c883f
[35939.230391] R10: ffff8881716441f3 R11: ffffffffc0b6a201 R12: ffff888115000010
[35939.264555] R13: ffff888115005608 R14: ffff888171644058 R15: ffffffff9f5cf160
[35939.264564] FS:  00007fe7325f9980(0000) GS:ffff8883e0580000(0000) knlGS:0000000000000000
[35939.264572] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[35939.264579] CR2: 00007fe73190d0e8 CR3: 0000000141978000 CR4: 00000000000506e0
[35939.264586] Call Trace:
[35939.264591]  ? fsnotify_grab_connector+0x8c/0x93
[35939.264608]  amdgpu_bo_unref+0x30/0x57 [amdgpu]
[35939.318763]  amdgpu_gem_object_free+0x69/0x95 [amdgpu]
[35939.319132]  ? list_add+0xd1/0xd1 [amdgpu]
[35939.319478]  ? test_bit+0x1d/0x27
[35939.319489]  drm_gem_dmabuf_release+0x5b/0x67 [drm]
[35939.319551]  dma_buf_release+0x113/0x1b6
[35939.319563]  __dentry_kill+0x29e/0x302
[35939.319573]  dput+0x184/0x1c3
[35939.319582]  __fput+0x4dc/0x598
[35939.319590]  task_work_run+0xfa/0x118
[35939.319599]  do_exit+0x984/0x17ba
[35939.319609]  ? mm_update_next_owner+0x3fd/0x3fd
[35939.319619]  do_group_exit+0x229/0x229
[35939.319627]  __x64_sys_exit_group+0x39/0x39
[35939.319635]  do_syscall_64+0x75/0x88
[35939.319649]  ? do_syscall_64+0xe/0x88
[35939.319658]  entry_SYSCALL_64_after_hwframe+0x44/0xae
[35939.319668] RIP: 0033:0x7fe731edd459
[35939.319676] Code: Unable to access opcode bytes at RIP 0x7fe731edd42f.
[35939.319680] RSP: 002b:00007ffc8d3e1298 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[35939.319691] RAX: ffffffffffffffda RBX: 00007fe731fc6920 RCX: 00007fe731edd459
[35939.319698] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
[35939.319704] RBP: 00007fe731fc6920 R08: fffffffffffffd40 R09: 00005630715eb7c0
[35939.319711] R10: 00007fe710db0a14 R11: 0000000000000246 R12: 0000000000000000
[35939.319716] R13: 0000000000000000 R14: 0000000000000668 R15: 0000000000000000
[35939.319724] ---[ end trace 0f92591c8b7a0f11 ]---


 # inxi -bZ
System:    Kernel: 5.14.0-rc4-bdver3 x86_64 bits: 64 Desktop: MATE 1.24.1 Distro: Gentoo Base System release 2.7 
Machine:   Type: Desktop Mobo: ASRock model: A88M-G/3.1 serial: <superuser/root required> UEFI: American Megatrends v: P1.40C 
           date: 11/21/2016 
CPU:       Info: Quad Core AMD A10-7860K Radeon R7 12 Compute Cores 4C+8G [MCP] speed: 1560 MHz min/max: 1400/3600 MHz 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Kaveri [Radeon R7 Graphics] driver: amdgpu v: kernel 
           Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati unloaded: fbdev,modesetting resolution: 1920x1080~60Hz 
           OpenGL: renderer: AMD KAVERI (DRM 3.42.0 5.14.0-rc4-bdver3 LLVM 12.0.1) v: 4.6 Mesa 21.1.4 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
Drives:    Local Storage: total: 9.33 TiB used: 4.13 TiB (44.3%) 
Info:      Processes: 225 Uptime: 16m Memory: 13.32 GiB used: 1.38 GiB (10.3%) Shell: Bash inxi: 3.1.06 

 # lspci -s 00:01.0 -vv
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] (rev d6) (prog-if 00 [VGA controller])
	Subsystem: ASRock Incorporation Kaveri [Radeon R7 Graphics]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 64 bytes
	Interrupt: pin A routed to IRQ 62
	IOMMU group: 0
	Region 0: Memory at c0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at d0000000 (64-bit, prefetchable) [size=8M]
	Region 4: I/O ports at f000 [size=256]
	Region 5: Memory at feb00000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [58] Express (v2) Root Complex Integrated Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0
			ExtTag+ RBE+ FLReset-
		DevCtl:	CorrErr- NonFatalErr- FatalErr- UnsupReq-
			RlxdOrd+ ExtTag+ PhantFunc- AuxPwr- NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis- NROPrPrP- LTR-
			 10BitTagComp- 10BitTagReq- OBFF Not Supported, ExtFmt+ EETLPPrefix+, MaxEETLPPrefixes 1
			 EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
			 FRS-
			 AtomicOpsCap: 32bit- 64bit- 128bitCAS-
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled,
			 AtomicOpsCtl: ReqEn-
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
		Address: 00000000fee04004  Data: 002a
	Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
	Capabilities: [270 v1] Secondary PCI Express
		LnkCtl3: LnkEquIntrruptEn- PerformEqu-
		LaneErrStat: 0
	Capabilities: [2b0 v1] Address Translation Service (ATS)
		ATSCap:	Invalidate Queue Depth: 00
		ATSCtl:	Enable+, Smallest Translation Unit: 00
	Capabilities: [2c0 v1] Page Request Interface (PRI)
		PRICtl: Enable- Reset-
		PRISta: RF- UPRGI- Stopped+
		Page Request Capacity: 00000020, Page Request Allocation: 00000000
	Capabilities: [2d0 v1] Process Address Space ID (PASID)
		PASIDCap: Exec- Priv-, Max PASID Width: 10
		PASIDCtl: Enable- Exec- Priv-
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
Comment 1 Erhard F. 2021-08-06 09:28:29 UTC
Created attachment 298223 [details]
kernel .config (5.14-rc4, AMD A10-7860K)
Comment 2 Erhard F. 2021-10-20 15:15:25 UTC
*** Bug 214621 has been marked as a duplicate of this bug. ***
Comment 3 Christian König 2021-10-27 07:49:09 UTC
Well what happens here is that a buffer object is released while it is pinned and TTM now warns about doing stuff like that.

The key point is we need to figure out why the buffer is pinned in the first place.

One possibility is that it is used for scanout and containing the displayed picture, but from the backtrace my guess is that the buffer is shared with a different device and pinned because of that.

Can we get an lspci output for the system?

Thanks in advance,
Christian.
Comment 4 Erhard F. 2021-10-27 13:43:38 UTC
(In reply to Christian König from comment #3)
> Well what happens here is that a buffer object is released while it is
> pinned and TTM now warns about doing stuff like that.
> 
> The key point is we need to figure out why the buffer is pinned in the first
> place.
> 
> One possibility is that it is used for scanout and containing the displayed
> picture, but from the backtrace my guess is that the buffer is shared with a
> different device and pinned because of that.
> 
> Can we get an lspci output for the system?
No prob. Changed the CPU to an A10-8750B meanwhile but the other hardware is the same as in the original report.

 # lspci 
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) I/O Memory Management Unit
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri [Radeon R7 Graphics] (rev d7)
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kaveri HDMI/DP Audio Controller
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Kaveri P2P Bridge for GFX PCIe Port [1:0]
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:03.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Root Port
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:10.1 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 09)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 11)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 16)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] FCH PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 11)
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Hudson PCI to PCI bridge (PCIE port 0)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 30h-3fh) Processor Function 5
01:00.0 USB controller: ASMedia Technology Inc. ASM2142 USB 3.1 Host Controller
02:00.0 USB controller: ASMedia Technology Inc. ASM1143 USB 3.1 Host Controller
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 11)
05:00.0 Non-Volatile memory controller: Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD
Comment 5 François Cami 2022-03-29 21:03:17 UTC
I don't see why https://bugzilla.kernel.org/show_bug.cgi?id=214621 was resolved as it contains a lot more data than this bug.
Comment 6 Erhard F. 2022-03-29 21:15:18 UTC
While this being true this one is the older bug (2021-08-06) and the duplicate is the later one (2021-10-04) in timeline.

Also the bugs being linked you can have a look at the other bugs data easily. So I don't see a problem here.
Comment 7 Harry Coin 2023-08-05 21:33:44 UTC
Remains in 6.5-rc4

Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]:  #011Size: QSize(5760, 2160)
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]:  #011SizeMM: QSize(1520, 570)
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xrandr: XRandR::setConfig done!
Aug  5 16:22:27 ceo1homenx kernel: [   42.812119] ------------[ cut here ]------------
Aug  5 16:22:27 ceo1homenx kernel: [   42.812124] WARNING: CPU: 3 PID: 2083 at drivers/gpu/drm/ttm/ttm_bo.c:326 ttm_bo_release+0x299/0x2c0 [ttm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812140] Modules linked in: ceph fscache netfs rbd libceph xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables nfnetlink br_netfilter bridge stp llc overlay binfmt_misc intel_rapl_msr snd_usb_audio intel_rapl_common snd_hda_codec_realtek snd_usbmidi_lib edac_mce_amd snd_hda_codec_generic snd_ump snd_hda_codec_hdmi uvcvideo snd_seq_midi kvm_amd snd_hda_intel videobuf2_vmalloc snd_seq_midi_event snd_intel_dspcfg snd_intel_sdw_acpi uvc videobuf2_memops nls_iso8859_1 k10temp snd_rawmidi snd_hda_codec kvm eeepc_wmi snd_hda_core asus_wmi irqbypass ledtrig_audio snd_hwdep videobuf2_v4l2 sparse_keymap snd_seq rapl platform_profile snd_pcm wmi_bmof ccp snd_seq_device snd_timer videodev snd videobuf2_common input_leds joydev soundcore mc mac_hid sch_fq_codel msr parport_pc auth_rpcgss ppdev lp pstore_blk ramoops parport reed_solomon pstore_zone efi_pstore sunrpc ip_tables x_tables autofs4 btrfs blake2b_generic
Aug  5 16:22:27 ceo1homenx kernel: [   42.812203]  raid1 dm_raid raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor hid_generic usbhid raid6_pq libcrc32c hid amdgpu amdxcp iommu_v2 drm_buddy gpu_sched video i2c_algo_bit drm_suballoc_helper drm_ttm_helper ttm drm_display_helper uas crct10dif_pclmul crc32_pclmul polyval_clmulni cec polyval_generic usb_storage ghash_clmulni_intel rc_core sha512_ssse3 aesni_intel drm_kms_helper crypto_simd cryptd nvme drm nvme_core i2c_piix4 r8169 ahci xhci_pci realtek xhci_pci_renesas libahci nvme_common wmi gpio_amdpt
Aug  5 16:22:27 ceo1homenx kernel: [   42.812231] CPU: 3 PID: 2083 Comm: Xorg Not tainted 6.5.0-060500rc4-generic #202308041735
Aug  5 16:22:27 ceo1homenx kernel: [   42.812233] Hardware name: System manufacturer System Product Name/PRIME B450-PLUS, BIOS 4003 03/13/2023
Aug  5 16:22:27 ceo1homenx kernel: [   42.812234] RIP: 0010:ttm_bo_release+0x299/0x2c0 [ttm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812242] Code: 48 8b 7b 90 e8 f8 9b a4 c4 e9 e1 fd ff ff c7 43 2c 00 00 00 00 48 8b 7b 08 e8 a3 53 00 00 e9 5d ff ff ff 0f 0b e9 b0 fd ff ff <0f> 0b e9 9e fd ff ff be 03 00 00 00 e8 56 36 12 c4 e9 21 ff ff ff
Aug  5 16:22:27 ceo1homenx kernel: [   42.812244] RSP: 0018:ffffaf2b826c3d00 EFLAGS: 00010206
Aug  5 16:22:27 ceo1homenx kernel: [   42.812246] RAX: 0000000000000000 RBX: ffff895280bd4dc0 RCX: 0000000000000000
Aug  5 16:22:27 ceo1homenx kernel: [   42.812247] RDX: 0000000000000006 RSI: 0000000000000000 RDI: ffff895280bd4dc0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812248] RBP: ffffaf2b826c3d60 R08: 0000000000000000 R09: 0000000000000000
Aug  5 16:22:27 ceo1homenx kernel: [   42.812249] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
Aug  5 16:22:27 ceo1homenx kernel: [   42.812250] R13: ffff8952a758eed0 R14: ffff895280bd4c58 R15: ffff895291a6f300
Aug  5 16:22:27 ceo1homenx kernel: [   42.812251] FS:  00007f03dcc28a80(0000) GS:ffff89599eac0000(0000) knlGS:0000000000000000
Aug  5 16:22:27 ceo1homenx kernel: [   42.812252] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Aug  5 16:22:27 ceo1homenx kernel: [   42.812253] CR2: 00007f03d01a113a CR3: 00000001095a4000 CR4: 0000000000350ee0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812254] Call Trace:
Aug  5 16:22:27 ceo1homenx kernel: [   42.812256]  <TASK>
Aug  5 16:22:27 ceo1homenx kernel: [   42.812258]  ? show_regs+0x6d/0x80
Aug  5 16:22:27 ceo1homenx kernel: [   42.812263]  ? __warn+0x89/0x160
Aug  5 16:22:27 ceo1homenx kernel: [   42.812266]  ? ttm_bo_release+0x299/0x2c0 [ttm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812274]  ? report_bug+0x17e/0x1b0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812278]  ? handle_bug+0x51/0xa0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812280]  ? exc_invalid_op+0x18/0x80
Aug  5 16:22:27 ceo1homenx kernel: [   42.812282]  ? asm_exc_invalid_op+0x1b/0x20
Aug  5 16:22:27 ceo1homenx kernel: [   42.812285]  ? ttm_bo_release+0x299/0x2c0 [ttm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812292]  ? __call_rcu_common.constprop.0+0xa0/0x2b0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812296]  ttm_bo_put+0x3c/0x70 [ttm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812303]  amdgpu_bo_unref+0x1e/0x40 [amdgpu]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812593]  amdgpu_gem_object_free+0x34/0x60 [amdgpu]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812906]  drm_gem_object_free+0x1d/0x40 [drm]
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: RRScreenChangeNotify
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Timestamp:  20814
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Config_timestamp:  20814
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Window: 62914565
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Root: 1731
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Rotation:  "Rotate_0"
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Size ID: 65535
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Size:  11520 2160
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011SizeMM:  3040 570
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: RRNotify_CrtcChange
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Timestamp:  20814
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011CRTC:  78
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Mode:  91
Aug  5 16:22:27 ceo1homenx kernel: [   42.812946]  drm_gem_dmabuf_release+0x46/0x70 [drm]
Aug  5 16:22:27 ceo1homenx kernel: [   42.812982]  dma_buf_release+0x3e/0xa0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812986]  __dentry_kill+0x100/0x190
Aug  5 16:22:27 ceo1homenx kernel: [   42.812989]  dput+0x19d/0x320
Aug  5 16:22:27 ceo1homenx kernel: [   42.812992]  __fput+0x153/0x2c0
Aug  5 16:22:27 ceo1homenx kernel: [   42.812995]  ____fput+0xe/0x20
Aug  5 16:22:27 ceo1homenx kernel: [   42.812997]  task_work_run+0x61/0xa0
Aug  5 16:22:27 ceo1homenx kernel: [   42.813001]  exit_to_user_mode_loop+0x100/0x130
Aug  5 16:22:27 ceo1homenx kernel: [   42.813004]  exit_to_user_mode_prepare+0xa5/0xb0
Aug  5 16:22:27 ceo1homenx kernel: [   42.813006]  syscall_exit_to_user_mode+0x29/0x50
Aug  5 16:22:27 ceo1homenx kernel: [   42.813008]  do_syscall_64+0x68/0x90
Aug  5 16:22:27 ceo1homenx kernel: [   42.813011]  ? irqentry_exit+0x43/0x50
Aug  5 16:22:27 ceo1homenx kernel: [   42.813013]  ? sysvec_reschedule_ipi+0x7a/0x120
Aug  5 16:22:27 ceo1homenx kernel: [   42.813015]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Aug  5 16:22:27 ceo1homenx kernel: [   42.813018] RIP: 0033:0x7f03dcb1aaff
Aug  5 16:22:27 ceo1homenx kernel: [   42.813042] 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
Aug  5 16:22:27 ceo1homenx kernel: [   42.813044] RSP: 002b:00007fff1c798770 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Aug  5 16:22:27 ceo1homenx kernel: [   42.813045] RAX: 0000000000000000 RBX: 00007fff1c798800 RCX: 00007f03dcb1aaff
Aug  5 16:22:27 ceo1homenx kernel: [   42.813046] RDX: 00007fff1c798800 RSI: 0000000040086409 RDI: 0000000000000012
Aug  5 16:22:27 ceo1homenx kernel: [   42.813047] RBP: 0000000040086409 R08: 0000563c28c49210 R09: 0000000000000000
Aug  5 16:22:27 ceo1homenx kernel: [   42.813048] R10: 0000000000000000 R11: 0000000000000246 R12: 0000563c27b93f08
Aug  5 16:22:27 ceo1homenx kernel: [   42.813049] R13: 0000000000000012 R14: 0000563c27c19c2c R15: 00007fff1c798840
Aug  5 16:22:27 ceo1homenx kernel: [   42.813051]  </TASK>
Aug  5 16:22:27 ceo1homenx kernel: [   42.813052] ---[ end trace 0000000000000000 ]---
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Rotation:  "Rotate_0"
Aug  5 16:22:27 ceo1homenx kscreen_backend_launcher[2843]: kscreen.xcb.helper: #011Geometry:  1919 0 1920 1080
Aug  5 16
Comment 8 Cyp 2023-09-13 12:58:57 UTC
Don't know if they're useful, but there's couple more crash logs (with kernel 6.1.31, card Radeon HD 4350/4550) at https://bugs.gentoo.org/912225
Comment 9 Andimewi 2023-12-23 20:17:22 UTC
Remains in 6.5.0-14
Sometimes system freezes!

[12068.780248] WARNING: CPU: 11 PID: 2001 at drivers/gpu/drm/ttm/ttm_bo.c:326 ttm_bo_release+0x299/0x2c0 [ttm]
[12068.780285] Modules linked in: bnep bluetooth ecdh_generic ecc veth snd_seq_dummy snd_hrtimer xt_nat xt_tcpudp xt_conntrack nft_chain_nat xt_MASQUERADE nf_nat nf_conntrack_netlink nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xfrm_user xfrm_algo xt_addrtype nft_compat nf_tables nfnetlink br_netfilter bridge stp llc overlay dm_crypt cfg80211 binfmt_misc joydev input_leds intel_rapl_msr intel_rapl_common snd_hda_codec_realtek edac_mce_amd snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec snd_hda_core snd_hwdep snd_pcm snd_seq_midi nls_iso8859_1 snd_seq_midi_event snd_rawmidi kvm snd_seq snd_seq_device snd_timer irqbypass snd rapl wmi_bmof k10temp ccp soundcore i2c_piix4 gpio_amdpt mac_hid msr dm_multipath parport_pc ppdev lp parport efi_pstore dmi_sysfs ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear amdgpu amdxcp iommu_v2
[12068.780551]  drm_buddy gpu_sched hid_generic radeon video i2c_algo_bit drm_suballoc_helper drm_ttm_helper ttm drm_display_helper cec crct10dif_pclmul rc_core crc32_pclmul usbhid polyval_clmulni polyval_generic hid ghash_clmulni_intel aesni_intel drm_kms_helper crypto_simd nvme r8169 cryptd drm xhci_pci nvme_core realtek ahci xhci_pci_renesas libahci nvme_common wmi
[12068.780653] CPU: 11 PID: 2001 Comm: Xorg Not tainted 6.5.0-14-generic #14-Ubuntu
[12068.780662] Hardware name: Micro-Star International Co., Ltd. MS-7A39/B350M GAMING PRO (MS-7A39), BIOS 2.P3 07/16/2022
[12068.780667] RIP: 0010:ttm_bo_release+0x299/0x2c0 [ttm]
[12068.780695] Code: 48 8b 7b 90 e8 88 4c d0 e9 e9 e1 fd ff ff c7 43 2c 00 00 00 00 48 8b 7b 08 e8 a3 53 00 00 e9 5d ff ff ff 0f 0b e9 b0 fd ff ff <0f> 0b e9 9e fd ff ff be 03 00 00 00 e8 a6 e7 3c e9 e9 21 ff ff ff
[12068.780702] RSP: 0018:ffffb92b0317fc80 EFLAGS: 00010202
[12068.780710] RAX: 0000000000000000 RBX: ffff9769c40919e0 RCX: 0000000000000000
[12068.780716] RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffff9769c40919e0
[12068.780721] RBP: ffffb92b0317fce0 R08: 0000000000000000 R09: 0000000000000000
[12068.780725] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[12068.780730] R13: ffff9769d24646e0 R14: ffff9769c4091878 R15: ffff976a3b8423c0
[12068.780735] FS:  00007f37d2401ac0(0000) GS:ffff976ceecc0000(0000) knlGS:0000000000000000
[12068.780741] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12068.780747] CR2: 00007f37b6e29c00 CR3: 000000012f150000 CR4: 00000000003506e0
[12068.780753] Call Trace:
[12068.780759]  <TASK>
[12068.780768]  ? show_regs+0x6d/0x80
[12068.780781]  ? __warn+0x89/0x160
[12068.780792]  ? ttm_bo_release+0x299/0x2c0 [ttm]
[12068.780822]  ? report_bug+0x17e/0x1b0
[12068.780837]  ? handle_bug+0x51/0xa0
[12068.780848]  ? exc_invalid_op+0x18/0x80
[12068.780857]  ? asm_exc_invalid_op+0x1b/0x20
[12068.780874]  ? ttm_bo_release+0x299/0x2c0 [ttm]
[12068.780902]  ? srso_return_thunk+0x5/0x10
[12068.780911]  ? __call_rcu_common.constprop.0+0xa0/0x2b0
[12068.780925]  ttm_bo_put+0x3c/0x70 [ttm]
[12068.780952]  radeon_bo_unref+0x1e/0x40 [radeon]
[12068.781083]  radeon_gem_object_free+0x34/0x60 [radeon]
[12068.781220]  drm_gem_object_free+0x1d/0x40 [drm]
[12068.781337]  drm_gem_dmabuf_release+0x46/0x70 [drm]
[12068.781446]  dma_buf_release+0x3e/0xa0
[12068.781457]  __dentry_kill+0x100/0x190
[12068.781467]  dput+0x19d/0x320
[12068.781476]  __fput+0x150/0x2c0
[12068.781487]  ____fput+0xe/0x20
[12068.781494]  task_work_run+0x61/0xa0
[12068.781504]  exit_to_user_mode_loop+0x100/0x130
[12068.781516]  exit_to_user_mode_prepare+0xa5/0xb0
[12068.781526]  syscall_exit_to_user_mode+0x29/0x60
[12068.781536]  do_syscall_64+0x68/0x90
[12068.781543]  ? syscall_exit_to_user_mode+0x37/0x60
[12068.781550]  ? srso_return_thunk+0x5/0x10
[12068.781558]  ? do_syscall_64+0x68/0x90
[12068.781564]  ? srso_return_thunk+0x5/0x10
[12068.781579]  ? radeon_drm_ioctl+0x70/0x90 [radeon]
[12068.781697]  ? srso_return_thunk+0x5/0x10
[12068.781735]  ? exit_to_user_mode_prepare+0x91/0xb0
[12068.781745]  ? srso_return_thunk+0x5/0x10
[12068.781753]  ? syscall_exit_to_user_mode+0x37/0x60
[12068.781761]  ? srso_return_thunk+0x5/0x10
[12068.781768]  ? do_syscall_64+0x68/0x90
[12068.781776]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[12068.781784] RIP: 0033:0x7f37d27238ef
[12068.781828] 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 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
[12068.781834] RSP: 002b:00007ffd3f5be970 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[12068.781842] RAX: 0000000000000000 RBX: 000055e2463fe9a0 RCX: 00007f37d27238ef
[12068.781847] RDX: 00007ffd3f5bea18 RSI: 0000000040086409 RDI: 0000000000000014
[12068.781852] RBP: 00007ffd3f5bea18 R08: 0000000000000007 R09: 0000000000000007
[12068.781856] R10: 0000000000000007 R11: 0000000000000246 R12: 0000000040086409
[12068.781861] R13: 0000000000000014 R14: 000055e24706c9c0 R15: 000055e2464886a8
[12068.781877]  </TASK>
[12068.781881] ---[ end trace 0000000000000000 ]---

System:
  Host: master Kernel: 6.5.0-14-generic arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.8 Distro: Ubuntu 23.10 (Mantic Minotaur)
Machine:
  Type: Desktop System: Micro-Star product: MS-7A39 v: 1.0
    serial: <superuser required>
  Mobo: MSI model: B350M GAMING PRO (MS-7A39) v: 1.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: 2.P3
    date: 07/16/2022
CPU:
  Info: 6-core AMD Ryzen 5 1600 [MT MCP] speed (MHz): avg: 1535
    min/max: 1550/3200
Graphics:
  Device-1: AMD Tobago PRO [Radeon R7 360 / R9 OEM] driver: radeon v: kernel
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 23.2.0 driver: X:
    loaded: radeon unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: radeon
    resolution: 2560x1440~60Hz
  API: OpenGL v: 4.5 Mesa 23.2.1-1ubuntu3.1 renderer: BONAIRE ( LLVM 15.0.7
    DRM 2.50 6.5.0-14-generic)

Note You need to log in before you can comment on or make changes to this bug.