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!
Created attachment 300497 [details] Potential fix Please test the attached patch, it should fix the issue.
Applied the provided patch to kernel 5.17-rc5. Confirming the patch fixes the issue. Thanks!
Hi I have same error in debian with kernel 6.1.0-13-amd64 and vlc 3.0.20-0+deb12u1 .
upgraded to 6.5.0-0.deb12.1-amd64 from backport repo but not solved .
Same. Arch, Linux 6.6.10. Old laptop with Radeon graphics. [ 509.113392] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* Failed mapping the UVD message (-22)! [ 509.113573] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream ! And later: [ 514.145319] [drm:radeon_uvd_cs_parse [radeon]] *ERROR* Invalid UVD handle 0x70500005! [ 514.145636] [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !