Bug 103072 - [Regression] Hardware video acceleration of VP9 format is broken since kernel 4.13
Summary: [Regression] Hardware video acceleration of VP9 format is broken since kernel...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords: bisected, regression
: 103657 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-03 09:11 UTC by Maxim Baz
Modified: 2017-11-10 09:30 UTC (History)
4 users (show)

See Also:
i915 platform: BYT, KBL
i915 features: GEM/execlists


Attachments
screenshot_vp9_rendering_issue (2.04 MB, image/png)
2017-10-03 09:11 UTC, Maxim Baz
no flags Details
dmesg when playing vp9 video (4.12.8) (101.42 KB, text/x-log)
2017-10-04 07:38 UTC, Ming-Yang Lu
no flags Details
dmesg when playing vp9 video (4.13.3) (111.10 KB, text/x-log)
2017-10-04 07:39 UTC, Ming-Yang Lu
no flags Details

Description Maxim Baz 2017-10-03 09:11:17 UTC
Created attachment 134634 [details]
screenshot_vp9_rendering_issue

See attachment on how a video encoded with VP9 format is being rendered with hardware acceleration enabled since I upgraded the kernel to 4.13.3. There is no issue with playing H264 videos. Downgrading kernel to 4.12.12 resolves the issue. A few people in [1] confirm the same behavior.


Reproducible on ArchLinux with mpv or chromium compiled with VA-API. 

People who confirm this bug have the following CPUs: Intel i7-7820HQ, i7-7500U, Pentium n3450.


This bug was also submitted to the kernel [2], but it was suggested in [1] that this might be a better place to report it.

[1] https://aur.archlinux.org/packages/chromium-vaapi
[2] https://bugzilla.kernel.org/show_bug.cgi?id=197113
Comment 1 Elizabeth 2017-10-03 15:55:48 UTC
Hello Maxim,
Could you please share logs, dmesg and/or kern.log with debug info, drm.debug=0xe log_bug_len=2M (or bigger) on grub.
Thank you.
Comment 2 Ming-Yang Lu 2017-10-04 07:38:37 UTC
Created attachment 134658 [details]
dmesg when playing vp9 video (4.12.8)

Hi Elizabeth,

I'm running into this same issue too.
Here is the dmesg log with `drm.debug=0xe log_bug_len=2M` when playing a vp9 video with `mpv --hwdec=vaapi --vo=vaapi`. It didn't produce new logs when playing the video.

Archlinux
Thinkpad X1 Carbon 5th i7-7500U / HD620
mesa-17.1.8-2
libva-intel-driver 1.8.3-1
Comment 3 Ming-Yang Lu 2017-10-04 07:39:20 UTC
Created attachment 134659 [details]
dmesg when playing vp9 video (4.13.3)
Comment 4 Ming-Yang Lu 2017-10-05 15:32:23 UTC
I did a git-bisect on drm-tip and found this commit is the first bad one:

    [2889caa9232109afc8881f29a2205abeb5709d0c] drm/i915: Eliminate lots of iterations over the execobjects array

before this commit, vp9 videos rendered as expect.
Comment 5 Chris Wilson 2017-10-05 16:57:57 UTC
Sadly likely to be a forgotten relocation specifier from userspace that happened to work (or at least until it came under GTT pressure). Another option, the one that happened last time would be a forgotten write hazard indicator.

vp9 requires Kabylake?
Comment 6 Ming-Yang Lu 2017-10-06 05:02:07 UTC
(In reply to Chris Wilson from comment #5)
> Sadly likely to be a forgotten relocation specifier from userspace that
> happened to work (or at least until it came under GTT pressure). Another
> option, the one that happened last time would be a forgotten write hazard
> indicator.

Thanks for the hint :)
I just found that intel-vaapi-driver already fixed the issue on the master branch[1].
I think we can close this issue for now.

[1]: https://github.com/01org/intel-vaapi-driver/issues/262
Comment 7 Elizabeth 2017-10-06 14:09:15 UTC
(In reply to Ming-Yang Lu from comment #6)
> (In reply to Chris Wilson from comment #5)
> > Sadly likely to be a forgotten relocation specifier from userspace that
> > happened to work (or at least until it came under GTT pressure). Another
> > option, the one that happened last time would be a forgotten write hazard
> > indicator.
> 
> Thanks for the hint :)
> I just found that intel-vaapi-driver already fixed the issue on the master
> branch[1].
> I think we can close this issue for now.
> 
> [1]: https://github.com/01org/intel-vaapi-driver/issues/262
Thanks for the update. Closing.
Comment 8 Chris Wilson 2017-11-10 09:30:01 UTC
*** Bug 103657 has been marked as a duplicate of this bug. ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.