It may look like this:
or even so:
I wanna fill bugreport for amdgpu kernel team.
But I couldn't reproduce this issue when I launch ffmpeg from console.
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.
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
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
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
It needs for write easily reproducing example for kernel team.