Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-09-15 Thread Christian König
Am 15.09.21 um 12:36 schrieb Mikhail Gavrilov: On Wed, 15 Sept 2021 at 14:55, Christian König wrote: Yes, absolutely. You should see GPU resets and recovery in the system log after that. Unfortunately, not one DE will survive a GPU reset. All applications will terminate abnormally in fact

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-09-15 Thread Mikhail Gavrilov
On Wed, 15 Sept 2021 at 14:55, Christian König wrote: > > Yes, absolutely. You should see GPU resets and recovery in the system log > after that. Unfortunately, not one DE will survive a GPU reset. All applications will terminate abnormally in fact this would be equivalent to reboot (and denial

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-09-15 Thread Christian König
Am 14.09.21 um 20:19 schrieb Mikhail Gavrilov: On Wed, 14 Apr 2021 at 11:48, Christian König > wrote: That is expected behavior, the application is just buggy and causing a page fault on the GPU. The kernel should just not crash with a

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-09-14 Thread Mikhail Gavrilov
On Wed, 14 Apr 2021 at 11:48, Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > > That is expected behavior, the application is just buggy and causing a > page fault on the GPU. > > The kernel should just not crash with a backtrace. > > Regards, > Christian. > If after it GPU hangs

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-21 Thread Mikhail Gavrilov
On Wed, 21 Apr 2021 at 11:42, Christian König wrote: > I can try, but I'm not sure if we even have the full page fault handling > for Navi in 5.12. > It would be great. For me this patch is working as expected and I already for several days didn't see the panic "kernel BUG at

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-21 Thread Christian König
Am 20.04.21 um 20:03 schrieb Mikhail Gavrilov: On Wed, 14 Apr 2021 at 11:48, Christian König wrote: commit f63da9ae7584280582cbc834b20cc18bfb203b14 Author: Philip Yang Date: Thu Apr 1 00:22:23 2021 -0400 drm/amdgpu: reserve fence slot to update page table That is expected

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-20 Thread Mikhail Gavrilov
On Wed, 14 Apr 2021 at 11:48, Christian König wrote: > > >> commit f63da9ae7584280582cbc834b20cc18bfb203b14 > >> Author: Philip Yang > >> Date: Thu Apr 1 00:22:23 2021 -0400 > >> > >> drm/amdgpu: reserve fence slot to update page table > >> > > That is expected behavior, the application

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-14 Thread Mikhail Gavrilov
On Wed, 14 Apr 2021 at 03:22, Leo Liu wrote: > > This is decode command line, are you seeing issue with encode or > decode? I was means that described above the kernel panic happens only when OBS record or stream video with VAAPI encoder. Grabbing and encoding video with ffmpeg (given command

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-14 Thread Christian König
Am 13.04.21 um 23:19 schrieb Mikhail Gavrilov: On Tue, 13 Apr 2021 at 12:29, Christian König wrote: Hi Mikhail, the crash is a known issue and should be fixed by: commit f63da9ae7584280582cbc834b20cc18bfb203b14 Author: Philip Yang Date: Thu Apr 1 00:22:23 2021 -0400 drm/amdgpu:

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-13 Thread Leo Liu
On 2021-04-13 5:24 p.m., Mikhail Gavrilov wrote: On Tue, 13 Apr 2021 at 04:55, Leo Liu wrote: It curious why ffmpeg does not cause such issues. For example such command not cause kernel panic: $ ffmpeg -f x11grab -framerate 60 -video_size 3840x2160 -i :0.0 -vf 'format=nv12,hwupload'

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-13 Thread Mikhail Gavrilov
On Tue, 13 Apr 2021 at 04:55, Leo Liu wrote: > > >It curious why ffmpeg does not cause such issues. > >For example such command not cause kernel panic: > >$ ffmpeg -f x11grab -framerate 60 -video_size 3840x2160 -i :0.0 -vf > >'format=nv12,hwupload' -vaapi_device /dev/dri/renderD128 -vcodec >

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-13 Thread Mikhail Gavrilov
On Tue, 13 Apr 2021 at 12:29, Christian König wrote: > > Hi Mikhail, > > the crash is a known issue and should be fixed by: > > commit f63da9ae7584280582cbc834b20cc18bfb203b14 > Author: Philip Yang > Date: Thu Apr 1 00:22:23 2021 -0400 > > drm/amdgpu: reserve fence slot to update page

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-13 Thread Christian König
Hi Mikhail, the crash is a known issue and should be fixed by: commit f63da9ae7584280582cbc834b20cc18bfb203b14 Author: Philip Yang Date:   Thu Apr 1 00:22:23 2021 -0400     drm/amdgpu: reserve fence slot to update page table But that an userspace application can cause a page fault is

Re: [BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-12 Thread Leo Liu
It curious why ffmpeg does not cause such issues. For example such command not cause kernel panic: $ ffmpeg -f x11grab -framerate 60 -video_size 3840x2160 -i :0.0 -vf 'format=nv12,hwupload' -vaapi_device /dev/dri/renderD128 -vcodec h264_vaapi output3.mp4 What command are you using to see the

[BUG] VAAPI encoder cause kernel panic if encoded video in 4K

2021-04-12 Thread Mikhail Gavrilov
Video demonstration: https://youtu.be/3nkvUeB0GSw How looks kernel traces. 1. [ 7315.156460] amdgpu :0b:00.0: amdgpu: [mmhub] page fault (src_id:0 ring:0 vmid:6 pasid:32779, for process obs pid 23963 thread obs:cs0 pid 23977) [ 7315.156490] amdgpu :0b:00.0: amdgpu: in page starting at