OBS with FFMPEG VAAPI encoder lead kernel panic

MikeGav

New Member
It may look like this:
Code:
[ 8354.787317] gmc_v10_0_process_interrupt: 264 callbacks suppressed
[ 8354.787329] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787363] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f5000 from client 18
[ 8354.787370] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00241A51
[ 8354.787375] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: VCN1 (0xd)
[ 8354.787385] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[ 8354.787399] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787406] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[ 8354.787411] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787415] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1
[ 8354.787431] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787442] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f6000 from client 18
[ 8354.787449] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00241A51
[ 8354.787453] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: VCN1 (0xd)
[ 8354.787458] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[ 8354.787462] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787468] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[ 8354.787476] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787483] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1
[ 8354.787537] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787547] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f4000 from client 18
[ 8354.787551] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00241A51
[ 8354.787554] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: VCN1 (0xd)
[ 8354.787557] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[ 8354.787560] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787563] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[ 8354.787566] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787569] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1
[ 8354.787583] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787588] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f7000 from client 18
[ 8354.787591] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00241A51
[ 8354.787594] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: VCN1 (0xd)
[ 8354.787597] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x1
[ 8354.787612] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787615] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x5
[ 8354.787619] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787626] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x1
[ 8354.787641] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787646] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f5000 from client 18
[ 8354.787649] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787652] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787656] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787659] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787663] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.787669] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787672] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
[ 8354.787682] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787687] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f6000 from client 18
[ 8354.787691] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787695] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787698] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787759] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787762] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.787766] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787769] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
[ 8354.787778] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787784] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f4000 from client 18
[ 8354.787788] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787792] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787796] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787799] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787803] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.787807] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787810] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
[ 8354.787822] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787827] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f7000 from client 18
[ 8354.787830] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787833] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787836] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787839] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787842] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.787845] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787903] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
[ 8354.787914] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787919] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f8000 from client 18
[ 8354.787922] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787926] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787929] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787932] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.787937] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.787941] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.787944] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
[ 8354.787956] amdgpu 0000:0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:2 pasid:32774, for process obs pid 15785 thread obs:cs0 pid 15798)
[ 8354.787960] amdgpu 0000:0b:00.0: amdgpu:   in page starting at address 0x8001241f9000 from client 18
[ 8354.787964] amdgpu 0000:0b:00.0: amdgpu: MMVM_L2_PROTECTION_FAULT_STATUS:0x00000000
[ 8354.787967] amdgpu 0000:0b:00.0: amdgpu:      Faulty UTCL2 client ID: unknown (0x0)
[ 8354.787970] amdgpu 0000:0b:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 8354.787973] amdgpu 0000:0b:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 8354.788031] amdgpu 0000:0b:00.0: amdgpu:      PERMISSION_FAULTS: 0x0
[ 8354.788187] amdgpu 0000:0b:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 8354.788190] amdgpu 0000:0b:00.0: amdgpu:      RW: 0x0
or even so:
Code:
[12341.860944] ------------[ cut here ]------------
[12341.860961] kernel BUG at drivers/dma-buf/dma-resv.c:287!
[12341.860968] invalid opcode: 0000 [#1] SMP NOPTI
[12341.860972] CPU: 28 PID: 18261 Comm: kworker/28:0 Tainted: G        W        --------- ---  5.12.0-0.rc5.180.fc35.x86_64+debug #1
[12341.860977] Hardware name: System manufacturer System Product Name/ROG STRIX X570-I GAMING, BIOS 3402 01/13/2021
[12341.860981] Workqueue: events amdgpu_irq_handle_ih_soft [amdgpu]
[12341.861102] RIP: 0010:dma_resv_add_shared_fence+0x2ab/0x2c0
[12341.861108] Code: fd ff ff be 01 00 00 00 e8 e2 74 dc ff e9 ac fd ff ff 48 83 c4 18 be 03 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 c5 74 dc ff <0f> 0b 31 ed e9 73 fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f
[12341.861112] RSP: 0018:ffffb2f084c87bb0 EFLAGS: 00010246
[12341.861115] RAX: 0000000000000002 RBX: ffff9f9551184998 RCX: 0000000000000000
[12341.861119] RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff9f9551184a50
[12341.861122] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
[12341.861124] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9f91b9a18140
[12341.861127] R13: ffff9f91c9020740 R14: ffff9f91c9020768 R15: 0000000000000000
[12341.861130] FS:  0000000000000000(0000) GS:ffff9f984a200000(0000) knlGS:0000000000000000
[12341.861133] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12341.861136] CR2: 0000144e080d8000 CR3: 000000010e98c000 CR4: 0000000000350ee0
[12341.861139] Call Trace:
[12341.861143]  amdgpu_vm_sdma_commit+0x182/0x220 [amdgpu]
[12341.861251]  amdgpu_vm_bo_update_mapping.constprop.0+0x278/0x3c0 [amdgpu]
[12341.861356]  amdgpu_vm_handle_fault+0x145/0x290 [amdgpu]
[12341.861461]  gmc_v10_0_process_interrupt+0xb3/0x250 [amdgpu]
[12341.861571]  ? _raw_spin_unlock_irqrestore+0x37/0x40
[12341.861577]  ? lock_acquire+0x179/0x3a0
[12341.861583]  ? lock_acquire+0x179/0x3a0
[12341.861587]  ? amdgpu_irq_dispatch+0xc6/0x240 [amdgpu]
[12341.861692]  amdgpu_irq_dispatch+0xc6/0x240 [amdgpu]
[12341.861796]  amdgpu_ih_process+0x90/0x110 [amdgpu]
[12341.861900]  process_one_work+0x2b0/0x5e0
[12341.861906]  worker_thread+0x55/0x3c0
[12341.861910]  ? process_one_work+0x5e0/0x5e0
[12341.861915]  kthread+0x13a/0x150
[12341.861918]  ? __kthread_bind_mask+0x60/0x60
[12341.861922]  ret_from_fork+0x22/0x30
[12341.861928] Modules linked in: uinput snd_seq_dummy rfcomm snd_hrtimer netconsole nft_objref nf_conntrack_netbios_ns nf_conntrack_broadcast 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 nf_tables nfnetlink cmac bnep sunrpc vfat fat hid_logitech_hidpp joydev hid_logitech_dj mt76x2u mt76x2_common mt76x02_usb mt76_usb mt76x02_lib intel_rapl_msr intel_rapl_common mt76 iwlmvm mac80211 snd_hda_codec_realtek edac_mce_amd snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi btusb kvm_amd snd_hda_intel btrtl snd_intel_dspcfg btbcm snd_intel_sdw_acpi snd_usb_audio uvcvideo btintel snd_hda_codec videobuf2_vmalloc snd_usbmidi_lib videobuf2_memops iwlwifi kvm bluetooth snd_rawmidi snd_hda_core snd_seq videobuf2_v4l2 snd_hwdep videobuf2_common snd_seq_device eeepc_wmi snd_pcm videodev asus_wmi sparse_keymap libarc4 mc irqbypass snd_timer ecdh_generic cfg80211 video
[12341.861969]  wmi_bmof rapl ecc snd sp5100_tco k10temp i2c_piix4 soundcore rfkill acpi_cpufreq ip_tables amdgpu drm_ttm_helper ttm iommu_v2 gpu_sched drm_kms_helper crct10dif_pclmul cec crc32_pclmul crc32c_intel drm ghash_clmulni_intel igb nvme ccp dca nvme_core i2c_algo_bit wmi pinctrl_amd fuse
[12341.862012] ---[ end trace 3503913ed2bda6ad ]---
[12341.862018] RIP: 0010:dma_resv_add_shared_fence+0x2ab/0x2c0
[12341.862024] Code: fd ff ff be 01 00 00 00 e8 e2 74 dc ff e9 ac fd ff ff 48 83 c4 18 be 03 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 c5 74 dc ff <0f> 0b 31 ed e9 73 fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 0f
[12341.862028] RSP: 0018:ffffb2f084c87bb0 EFLAGS: 00010246
[12341.862035] RAX: 0000000000000002 RBX: ffff9f9551184998 RCX: 0000000000000000
[12341.862039] RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff9f9551184a50
[12341.862045] RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000000
[12341.862049] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9f91b9a18140
[12341.862053] R13: ffff9f91c9020740 R14: ffff9f91c9020768 R15: 0000000000000000
[12341.862057] FS:  0000000000000000(0000) GS:ffff9f984a200000(0000) knlGS:0000000000000000
[12341.862062] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[12341.862066] CR2: 0000144e080d8000 CR3: 000000010e98c000 CR4: 0000000000350ee0
[12341.862072] note: kworker/28:0[18261] exited with preempt_count 1
I wanna fill bugreport for amdgpu kernel team.
But I couldn't reproduce this issue when I launch ffmpeg from console.
Code:
$ ffmpeg -vaapi_device /dev/dri/renderD128 -f v4l2 -framerate 30 -video_size 3840x2160 -input_format nv12 -i /dev/video2 -vf 'format=nv12,hwupload' -vcodec h264_vaapi -f mp4 -bf 0 -qp 0 -profile 578 -bitrate 25000 output.mp4
I wanna know is exists any equivalent for command options of ffmpeg for emulating OBS behavior.
It needs for write easily reproducing example for kernel team.
 

ryan77627

New Member
Funnily enough I just ran into this same issue. Here's my info for possible bug triaging? Might be a bad kernel update tbh, what kernel you running?

Code:
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32785, for process obs pid 16027 thread obs:cs0 pid 16064)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu:   in page starting at address 0x800102f2c000 from client 27
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00301031
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: RW: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32785, for process obs pid 16027 thread obs:cs0 pid 16064)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x800102f10000 from client 27
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00301031
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: RW: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32785, for process obs pid 16027 thread obs:cs0 pid 16064)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x800102f59000 from client 27
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00301031
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: RW: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32785, for process obs pid 16027 thread obs:cs0 pid 16064)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x800102f3b000 from client 27
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00301031
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: RW: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: [gfxhub0] retry page fault (src_id:0 ring:0 vmid:3 pasid:32785, for process obs pid 16027 thread obs:cs0 pid 16064)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: in page starting at address 0x800102eff000 from client 27
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: VM_L2_PROTECTION_FAULT_STATUS:0x00301031
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: Faulty UTCL2 client ID: TCP (0x8)
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MORE_FAULTS: 0x1
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: WALKER_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: PERMISSION_FAULTS: 0x3
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: MAPPING_ERROR: 0x0
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: RW: 0x0
May 11 10:46:49 ryanlaptop kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout, signaled seq=17438301, emitted seq=17438303
May 11 10:46:49 ryanlaptop kernel: [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process obs pid 16027 thread obs:cs0 pid 16064
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: GPU reset begin!
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231ec0 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231ee0 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231f00 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231f20 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231f40 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231f60 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231f80 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231fa0 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231fc0 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x0000 address=0x113231fe0 flags=0x0070]
May 11 10:46:49 ryanlaptop kernel: amdgpu 0000:04:00.0: amdgpu: IH ring buffer overflow (0x000B35E0, 0x00023780, 0x00033600)

Then the kernel proceeds to dump a stack trace and resets the GPU, causing my session to get killed and the system to become unrecoverable for me
Code:
May 11 10:46:51 ryanlaptop kernel: ------------[ cut here ]------------
May 11 10:46:51 ryanlaptop kernel: WARNING: CPU: 5 PID: 19854 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:942 dc_commit_state+0x9ca/0xa90 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: Modules linked in: uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc vhost_net vhost vhost_iotlb tap tun wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64 libblake2s bl>
May 11 10:46:51 ryanlaptop kernel: ip6table_filter ip6_tables iptable_filter ip_tables x_tables bpfilter intel_rapl_msr intel_rapl_common rtw88_8822be snd_hda_codec_conexant snd_hda_codec_generic rtw88_8822b edac_mce_amd rtw88_pci ledtrig_audio snd_hda_codec_hdmi kvm_>
May 11 10:46:51 ryanlaptop kernel: ttm iommu_v2 gpu_sched i2c_algo_bit drm_kms_helper crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel xhci_pci xhci_pci_renesas syscopyarea xhci_hcd sysfillrect sysimgblt fb_sys_fops cec rc_core aesni_intel drm usbcore cr>
May 11 10:46:51 ryanlaptop kernel: CPU: 5 PID: 19854 Comm: kworker/5:2 Not tainted 5.12.0-2-default #1 openSUSE Tumbleweed
May 11 10:46:51 ryanlaptop kernel: Hardware name: LENOVO 81SS/LNVNB161216, BIOS AGCN24WW(V1.07) 09/16/2019
May 11 10:46:51 ryanlaptop kernel: Workqueue: events drm_sched_job_timedout [gpu_sched]
May 11 10:46:51 ryanlaptop kernel: RIP: 0010:dc_commit_state+0x9ca/0xa90 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: Code: 89 f7 e8 29 de d5 f5 e9 d1 f8 ff ff 0f 1f 44 00 00 e9 85 fd ff ff 31 d2 e9 ca f7 ff ff 80 b8 80 03 00 00 00 0f 84 1d fd ff ff <0f> 0b e9 16 fd ff ff 48 89 ef e8 07 be 00 00 48 89 ef e8 ef dd d5
May 11 10:46:51 ryanlaptop kernel: RSP: 0018:ffffb848c96f3c58 EFLAGS: 00010202
May 11 10:46:51 ryanlaptop kernel: RAX: ffff9d426c3f3000 RBX: ffff9d41fecc06c0 RCX: 0000000000000005
May 11 10:46:51 ryanlaptop kernel: RDX: 0000000000000e04 RSI: 00000000000008e6 RDI: 0000090bcde38142
May 11 10:46:51 ryanlaptop kernel: RBP: 0000000000000000 R08: ffffb848c96f3bac R09: ffffb848c96f3b20
May 11 10:46:51 ryanlaptop kernel: R10: 0000000000000002 R11: 0000000000000000 R12: ffff9d41fecc0000
May 11 10:46:51 ryanlaptop kernel: R13: ffff9d41fecc1ef8 R14: 0000000000000002 R15: ffff9d410a720000
May 11 10:46:51 ryanlaptop kernel: FS: 0000000000000000(0000) GS:ffff9d44bcb40000(0000) knlGS:0000000000000000
May 11 10:46:51 ryanlaptop kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 11 10:46:51 ryanlaptop kernel: CR2: 00007f65b35174f0 CR3: 0000000113132000 CR4: 00000000003506e0
May 11 10:46:51 ryanlaptop kernel: Call Trace:
May 11 10:46:51 ryanlaptop kernel: dm_resume+0x3bc/0x520 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: ? psm_adjust_power_state_dynamic+0xe8/0x1c0 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: amdgpu_device_ip_resume_phase2+0x52/0xb0 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: amdgpu_do_asic_reset+0x25d/0x38d [amdgpu]
May 11 10:46:51 ryanlaptop kernel: amdgpu_device_gpu_recover.cold+0x7b6/0x9f2 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: amdgpu_job_timedout+0x11c/0x140 [amdgpu]
May 11 10:46:51 ryanlaptop kernel: drm_sched_job_timedout+0x66/0xf0 [gpu_sched]
May 11 10:46:51 ryanlaptop kernel: process_one_work+0x1df/0x370
May 11 10:46:51 ryanlaptop kernel: worker_thread+0x50/0x400
May 11 10:46:51 ryanlaptop kernel: ? process_one_work+0x370/0x370
May 11 10:46:51 ryanlaptop kernel: kthread+0x11b/0x140
May 11 10:46:51 ryanlaptop kernel: ? __kthread_bind_mask+0x60/0x60
May 11 10:46:51 ryanlaptop kernel: ret_from_fork+0x22/0x30
May 11 10:46:51 ryanlaptop kernel: ---[ end trace 16871d2e3b5e4edd ]---

I am on the 5.12.0-2-default kernel on openSUSE Tumbleweed and was running 27.0.0-rc2 of obs, however I was encoding using pure software cpu x264 encoding, so I don't think the encoding had anything to do with this crash. I'm no kernel developer so I very well could be wrong with that assumption though. Did you happen to be capturing a screen using Pipewire on wayland? That's what I was doing that could have contributed to the crash.
 
Top