Bug 215600 - Radeon - *ERROR* Failed waiting for UVD message
Summary: Radeon - *ERROR* Failed waiting for UVD message
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(Other) (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: drivers_video-other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-12 22:13 UTC by Richard Herbert
Modified: 2022-02-21 14:56 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.17-rc4
Tree: Mainline
Regression: Yes


Attachments
Details (4.30 KB, text/plain)
2022-02-12 22:13 UTC, Richard Herbert
Details
Potential fix (1.66 KB, patch)
2022-02-21 08:35 UTC, Christian König
Details | Diff

Description Richard Herbert 2022-02-12 22:13:07 UTC
Created attachment 300445 [details]
Details

When attempting to play some types of videos with VLC 3.0.16 (eg. *.flv, *.mp4), when running kernels 5.17-rc1 to 5.17-rc3, only the audio portion is heard and the VLC video screen remains black. Meanwhile, many of these entries are written per second to /var/log/syslog:

2/12/22 3:41 PM	starbug	kernel	[drm:radeon_uvd_cs_parse [radeon]] *ERROR* Failed waiting for UVD message (-1)!
2/12/22 3:41 PM	starbug	kernel	[drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !
2/12/22 3:41 PM	starbug	kernel	[drm:radeon_uvd_cs_parse [radeon]] *ERROR* Failed waiting for UVD message (-1)!
2/12/22 3:41 PM	starbug	kernel	[drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !
2/12/22 3:41 PM	starbug	kernel	[drm:radeon_uvd_cs_parse [radeon]] *ERROR* Failed waiting for UVD message (-1)!
2/12/22 3:41 PM	starbug	kernel	[drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !


The problem doesn't occur in kernels of the 5.16 series.  It may have been introduced here:


https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/drivers/gpu/drm/radeon/radeon_uvd.c?id=v5.16&id2=v5.17-rc1


Thanks!
Comment 1 Christian König 2022-02-21 08:35:19 UTC
Created attachment 300497 [details]
Potential fix

Please test the attached patch, it should fix the issue.
Comment 2 Richard Herbert 2022-02-21 14:56:01 UTC
Applied the provided patch to kernel 5.17-rc5. Confirming the patch fixes the issue.

Thanks!

Note You need to log in before you can comment on or make changes to this bug.