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
Task Type Bug Report
Category Kernel
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Levente Polyak (anthraxx)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Andreas Radke (AndyRTR)
Sunday, 10 October 2021, 19:58 GMT
Reason for closing:  Fixed
Comment by Jonathon (jonathon) - Tuesday, 27 July 2021, 12:24 GMT
Could you check with linux-mainline 5.14rc3? A number of amdgpu-related issues have been resolved in rc3.
Comment by Wyatt Childers (Dark_Arc) - Monday, 09 August 2021, 02:05 GMT
Wanted to comment I'm having the same issue on Fedora, so this is likely to be an upstream/mainline issue with the 5.13 series.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1988772

I have yet to test a 5.14 kernel.
Comment by Wyatt Childers (Dark_Arc) - Monday, 09 August 2021, 02:14 GMT
I tested Fedora's 5.14.0-0.rc4.20210804gitd5ad8ec3cfb5.36.fc35.x86_64, this is still broken there, presumably it is here as well.
Comment by loqs (loqs) - Monday, 09 August 2021, 04:12 GMT Comment by Mel (Mel) - Tuesday, 10 August 2021, 02:11 GMT
Confirming the patch works.
```
~ ▶ 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
```
Comment by Mel (Mel) - Saturday, 14 August 2021, 09:30 GMT
Linux 5.13.10 seems to incorporate the patch already.

Loading...