FS#71627 - [Linux, Linux-zen 5.13.x] VAAPI is broken on RX6700XT
Attached to Project:
Arch Linux
Opened by Mel (Mel) - Tuesday, 27 July 2021, 07:31 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 10 October 2021, 19:58 GMT
Opened by Mel (Mel) - Tuesday, 27 July 2021, 07:31 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 10 October 2021, 19:58 GMT
|
Details
Description:
With the Linux and Linux-zen packages updated to 5.13.x VAAPI acceleration stopped working on RX6700XT GPU, possibly on other NAVI2 GPUs VAAPI is functional on 5.12.15. Originally reported on arch forums here: https://bbs.archlinux.org/viewtopic.php?pid=1984257 Additional info: * package version(s) linux 5.12.15.arch1-1 (working) linux 5.13.4.arch2-1 (broken) mesa 21.1.5-1 libva 2.12.0-1 libva-mesa-driver 21.1.5-1 * config and/or log files etc. output of 'vainfo' for Linux 5.12 and 5.13 respectively: ``` ~ ▶ vainfo vainfo: VA-API version: 1.12 (libva 2.12.0) vainfo: Driver version: Mesa Gallium driver 21.1.5 for AMD Radeon RX 6700 XT (NAVY_FLOUNDER, DRM 3.40.0, 5.12.15-arch1-1, LLVM 12.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileJPEGBaseline : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc ``` 5.13.4 ``` ~ ▶ vainfo vainfo: VA-API version: 1.12 (libva 2.12.0) vainfo: Driver version: Mesa Gallium driver 21.1.5 for AMD Radeon RX 6700 XT (NAVY_FLOUNDER, DRM 3.41.0, 5.13.4-arch1-1, LLVM 12.0.1) vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc ``` * link to upstream bug report, if any N/A Steps to reproduce: Use Linux or Linux-zen 5.13.x packages and observe high CPU usage while video decoding on AMD RX6700 XT (and possibly other RX6x00 cards?) Reportedly OBS fails to encode videos using GPU as well (kindly see reddit URLs in the aforementioned bbs topic) but that's not my use case so I cannot confirm this. |
This task depends upon
See: https://bugzilla.redhat.com/show_bug.cgi?id=1988772
I have yet to test a 5.14 kernel.
Edit:
Please try the patch from [1].
[1] https://gitlab.freedesktop.org/drm/amd/-/issues/1673#note_1023720
```
~ ▶ vainfo
vainfo: VA-API version: 1.12 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 21.2.0 for AMD Radeon RX 6700 XT (NAVY_FLOUNDER, DRM 3.41.0, 5.13.9-arch1-2, LLVM 12.0.1)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
~ ▶ uname -a
Linux bababool 5.13.9-arch1-2 #1 SMP PREEMPT Tue, 10 Aug 2021 01:23:46 +0000 x86_64 GNU/Linux
```