[kbl] Gpu hangs at playing 4K 60 fps video via Firefox browser-gpu decoding enabled
Hi ,i use a laptop with Intel HD Graphics 630 igpu. Issue i have is at least easily reproducible on my end. Watching this video at 4K 60 fps with gpu decoding and webrender on causes a gpu hang at nearly 10 minutes.
Video: https://youtu.be/mVWJPYKCMco Youtube info says video is encoded with VP9.
vainfo
output:
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.6.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
How to enable webrender and necessary gpu decoding bits:
https://bugzilla.mozilla.org/show_bug.cgi?id=1619523#c57
sudo intel_gpu_top
can be used while watching that video or any other non AV1 video to confirm gpu decoding is working.
Firefox version: 83.0
Relevant dmesg output from same session where i killed X and reproduced issue again easily:
[ 3269.516341] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out [ 3269.516365] i915 0000:00:02.0: [drm] MediaPD~oder #5[13102] context reset due to GPU hang [ 3269.519133] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:4:a8fffffd, in MediaPD~oder #5 [13102]
[ 4025.480095] i915 0000:00:02.0: [drm] Resetting vcs0 for preemption time out [ 4025.480106] i915 0000:00:02.0: [drm] MediaPD~oder #2[17196] context reset due to GPU hang [ 4025.482081] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:4:a8fffffd, in MediaPD~oder #2 [17196]
GPU crash dump retrieved /sys/class/drm/card0/error:
System info ( it should be in error.log also but posting anyway)
inxi -SMGxx
System:
Host: asus-FX553VD Kernel: 5.9.13-xanmod2 x86_64 bits: 64 compiler: N/A
Desktop: Cinnamon 4.6.7 wm: muffin dm: GDM3, LightDM
Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal
Machine:
Type: Laptop System: ASUSTeK product: GL553VD v: 1.0
serial: <superuser/root required>
Mobo: ASUSTeK model: GL553VD v: 1.0 serial: <superuser/root required>
UEFI: American Megatrends v: GL553VD.308 date: 04/29/2019
Graphics:
Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:591b
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: ASUSTeK
driver: nvidia v: 455.45.01 bus ID: 01:00.0 chip ID: 10de:1c8d
Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia
unloaded: fbdev,nouveau,vesa tty: N/A
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2)
v: 4.6 Mesa 20.3.0 - kisak-mesa PPA direct render: Yes
Driver modesetting,nvidia: This an Optimus gpu that runs in hybrid-on demand mode. Which means everything is on igpu until neede env vars to utilize NV gpu are passed.