Bug 84920 - Radeon UVD error
Summary: Radeon UVD error
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-11 20:28 UTC by Apostolos B.
Modified: 2019-09-18 19:17 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Apostolos B. 2014-10-11 20:28:09 UTC
I had this on occasion but couldn't reproduce it reliably:

Go to:
http://global.burton.com/on/demandware.store/Sites-Burton_GLOBAL-Site/default/Team-Riders

and move the cursor over the faces.

You will see many (toooo many) errors like the one below in the journal:

Oct 11 23:20:38 mainland kernel: [drm:radeon_uvd_cs_msg] *ERROR* No more free UVD handles!
Oct 11 23:20:38 mainland kernel: [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !


Linux mainland 3.16.4-1-ARCH #1 SMP PREEMPT Mon Oct 6 08:22:27 CEST 2014 x86_64 GNU/Linux

glxinfo | grep -i opengl
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.3.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.3.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
OpenGL ES profile extensions:

The dmesg is useless cause the error filled everything.
Comment 1 Christian König 2014-10-12 09:23:11 UTC
(In reply to Apostolos B. from comment #0) 
> Oct 11 23:20:38 mainland kernel: [drm:radeon_uvd_cs_msg] *ERROR* No more
> free UVD handles!

What browser do you use? Do you have video acceleration enabled in flash?

It sounds like flash is trying to play a lot of videos at the same time.
Comment 2 Apostolos B. 2014-10-12 17:04:28 UTC
No flash. HW acceleration is gst-vaapi with the vdpau driver for r600. Firefox 32.

libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'vdpau'
libva info: Trying to open /usr/lib/dri/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.36 (libva 1.4.0)
vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG4Simple            : VAEntrypointVLD
      VAProfileMPEG4AdvancedSimple    : VAEntrypointVLD
      VAProfileH264Baseline           : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
Comment 3 Alexander 2015-03-10 20:22:13 UTC
I observe the same issue on virtual machine with VGA passthrough. The virtual guest runs only Kodi media center session with autologin from lightdm display manager.
The issue is easily reproducible when I do fast forward (FF).

Here's sample from dmesg:
[  195.123895] perf interrupt took too long (10006 > 10000), lowering kernel.perf_event_max_sample_rate to 12500
[  457.994431] perf interrupt took too long (20020 > 20000), lowering kernel.perf_event_max_sample_rate to 6250
[45310.627571] [drm:radeon_uvd_cs_msg] *ERROR* No more free UVD handles!
[45310.627575] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
... and lots of such messages ...
[45323.651977] [drm:radeon_uvd_cs_msg] *ERROR* No more free UVD handles!
[45323.651979] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !


You see, that before doing FF there were some messages and long uptime without any message. When I stop doing FF the messages stop.

The system is Debian GNU/Linux 8.0 Jesie

$ uname -a
Linux infmc 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt4-3 (2015-02-03) i686 GNU/Linux

$ lspci -vnn | grep -A 10 VGA
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] [1002:6779] (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Device [1043:3017]
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 43
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	Memory at fe800000 (64-bit, non-prefetchable) [size=128K]
	I/O ports at c000 [size=256]
	Expansion ROM at fe820000 [disabled] [size=64K]
	Capabilities: <access denied>
	Kernel driver in use: radeon

The graphics card is ASUS AMD R5 230 1G.
Comment 4 Christian König 2015-03-11 09:07:59 UTC
(In reply to Alexander from comment #3)
> I observe the same issue on virtual machine with VGA passthrough. The
> virtual guest runs only Kodi media center session with autologin from
> lightdm display manager.
> The issue is easily reproducible when I do fast forward (FF).

Do you run Kodi with the VA-API wrapper or the native VDPAU backend? The VA-API wrapper isn't really supported any more, so the issue is most likely somewhere there.

What happens here is that the hardware runs out of UVD handles because the software stack is trying to play a lot of streams at the same time.
Comment 5 GitLab Migration User 2019-09-18 19:17:42 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/529.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.