radeon UVD failure after resume from hibernation
Just after boot the system:
$ vainfo
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Mesa Gallium driver 21.3.4 for AMD RS880 (DRM 2.50.0 / 5.15.14-200.fc35.x86_64, LLVM 13.0.0)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
Then after hibernate and resume:
$ vainfo
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_13
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Mesa Gallium driver 21.3.4 for AMD RS880 (DRM 2.50.0 / 5.15.14-200.fc35.x86_64, LLVM 13.0.0)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
dmesg shows:
[ 1020.535927] [drm] PCIE GART of 512M enabled (table at 0x00000000C0146000).
[ 1020.535968] radeon 0000:01:05.0: WB enabled
[ 1020.535972] radeon 0000:01:05.0: fence driver on ring 0 use gpu addr 0x00000000a0000c00
[ 1020.536384] radeon 0000:01:05.0: fence driver on ring 5 use gpu addr 0x00000000c0056038
[ 1020.536614] debugfs: File 'radeon_ring_gfx' in directory '0' already present!
[ 1020.568335] [drm] ring test on 0 succeeded in 1 usecs
[ 1020.568336] debugfs: File 'radeon_ring_uvd' in directory '0' already present!
[ 1020.744395] [drm] ring test on 5 succeeded in 1 usecs
[ 1020.744402] [drm] UVD initialized successfully.
[ 1020.744424] [drm] ib test on ring 0 succeeded in 0 usecs
[ 1021.947599] [drm:uvd_v1_0_ib_test [radeon]] *ERROR* radeon: fence wait timed out.
[ 1021.947651] [drm:radeon_ib_ring_tests [radeon]] *ERROR* radeon: failed testing IB on ring 5 (-110).
After resume from hibernation UVD video acceleration is lost.
Hardware description:
- CPU: AMD Phenom(tm) II X4 965 Processor
- GPU: 01:05.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] RS880 [Radeon HD 4200] [1002:9710], iGPU on M4A785TD-V EVO mainboard
- System Memory: 16 GB
- Display(s): 2
- Type of Display Connection: HDMI and DSUB
System information:
- Distro name and Version: Fedora 35
- Kernel version: 5.15.14-200.fc35.x86_64
- Custom kernel: N/A
- AMD official driver version: N/A
How to reproduce the issue:
Hibernate the system and resume it.