VAAPI encoding is broken in Skylake
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
intel-vaapi-driver (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When trying to do any type of encoding using any of the VAAPI encoders from FFmpeg, the system hangs entirely for some time. On dmesg, the following appears:
[ 107.557643] [drm] GPU HANG: ecode 9:0:0x8fd8ffff, in ffmpeg [2047], reason: Hang on rcs0, action: reset
[ 107.557651] [drm] GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.
[ 107.557654] [drm] Please file a _new_ bug report on bugs.freedeskto
[ 107.557657] [drm] drm/i915 developers can then reassign to the right component if it's not a kernel issue.
[ 107.557660] [drm] The gpu crash dump is required to analyze gpu hangs, so please always attach it.
[ 107.557665] [drm] GPU crash dump saved to /sys/class/
[ 107.557684] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[ 115.615609] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[ 123.514807] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[ 131.511092] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[ 137.492729] i915 0000:00:02.0: Resetting vcs0 after gpu hang
Then the system returns. It shows an enormous RAM usage (more than 6 GB) for a few seconds and then reduces to lower values, but still high. Using h264_vaapi as a example: it uses 580 MB, while when VAAPI was not broken, it used 20 MB for the same task. The resulting media file from FFmpeg has no video output, only audio.
This is happening with all VAAPI encoders but vp8_vaapi, which it says the is no entry point (although Skylake has support for VP8 encoding working in Artful).
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: i965-va-driver 2.0.0+dfsg1-1
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Feb 24 14:51:41 2018
InstallationDate: Installed on 2017-06-13 (255 days ago)
InstallationMedia: Xubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
SourcePackage: intel-vaapi-driver
UpgradeStatus: Upgraded to bionic on 2017-10-20 (127 days ago)
please test with 2.1.0 which was uploaded earlier today