Page 1 of 5 123 ... LastLast
Results 1 to 10 of 44

Thread: Radeon UVD problems.

  1. #1
    Join Date
    Oct 2012
    Posts
    6

    Default Radeon UVD problems.

    Hello!

    I have an Intel Pentium T4300 and Radeon Mobility HD4570 discrete card, running Ubuntu 13.04 with open-source drivers.

    Following the announcement of Linux Kernel 3.10, I tried to install uvd support for my laptop following this steps:

    Code:
    1 .Install kernel image and kernel headers from: http://kernel.ubuntu.com/~kernel-ppa/mainline/drm-next/current/
    2. Install libdrm 2.4.45 from: https://launchpad.net/~xorg-edgers/+archive/ppa?field.series_filter=raring
    3. Install the VDPAU header files: sudo apt-get install libvdpau-dev.
    4. Download latest mesa from: http://cgit.freedesktop.org/mesa/mesa/
    5. Compile and install mesa with the following options: --prefix=/usr  --with-gallium-drivers=r600 --enable-vdpau. 
    6. Add an entry in /etc/ld.so.conf.d/z.conf for /usr/local/lib/vdpau followed by running ldconfig.
    7. Install RV710_uvd in /lib/firmware/radeon and in /lib/firmware/3.10.0-996-generic/radeon/
    The thing is after reboot kernel gives the following errors:
    Code:
     radeon 0000:01:00.0: radeon_uvd: Can't load firmware "radeon/RV710_uvd.bin"
    [drm] GART: num cpu pages 131072, num gpu pages 131072
    [drm] Loading RV710 Microcode
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, trying to reset the VCPU!!!
    [drm:r600_uvd_init] *ERROR* UVD not responding, giving up!!!
    [drm:rv770_startup] *ERROR* radeon: failed initializing UVD (-1).
    [/CODE]
    The strange thing is that before the login window is presented, a black screen is shown and it starts to fade out into a white color (funny, it's quite a smooth animation). Also glxinfo is showing me that Mesa 9.1.3 is still in use, instead of 9.2.

    I tried to research the thing and I found this link:http://lists.freedesktop.org/archive...ay/039042.html
    but honestly, I don't have the necessary knowledge to figure out what kind of configuration is messed up.

    If someone was having this kind of problems, or maybe you have enough knowledge about this kind of thing, I beg you to give a hand of help

    Thank you!

  2. #2

    Default

    If you haven't found the firmware already, I believe you can get it from http://people.freedesktop.org/~agd5f/radeon_ucode/

    I found this link from Christian König's post regarding UVD support added to the radeon driver: http://lists.freedesktop.org/archive...il/036766.html

    Please report back if you get it working. I have an on-board HD4200 chip and would love to get XBMC working with UVD2/VDPAU via the radeon driver!

    Also, where did you find the instructions you posted?

    - 007

    Quote Originally Posted by fioan89 View Post
    Hello!

    The thing is after reboot kernel gives the following errors:
    Code:
     radeon 0000:01:00.0: radeon_uvd: Can't load firmware "radeon/RV710_uvd.bin"
    [drm] GART: num cpu pages 131072, num gpu pages 131072
    ...

  3. #3
    Join Date
    Oct 2012
    Posts
    6

    Wink

    Quote Originally Posted by JamesBond007 View Post
    If you haven't found the firmware already, I believe you can get it from http://people.freedesktop.org/~agd5f/radeon_ucode/

    I found this link from Christian König's post regarding UVD support added to the radeon driver: http://lists.freedesktop.org/archive...il/036766.html

    Please report back if you get it working. I have an on-board HD4200 chip and would love to get XBMC working with UVD2/VDPAU via the radeon driver!

    Also, where did you find the instructions you posted?
    - 007

    Hi!
    So to answer to your questions:
    I've managed to fix the problems by installing the firmware from this ppa: https://launchpad.net/~dtl131/+archive/uvd (I think sudo apt-get install linux-firmware should work, altough I have used Synaptic package manager to install the software from this ppa). So I think you stand correct about the wrong version of firmware.
    Also you might want to use this ppa: https://launchpad.net/~relokin/+archive/uvd for installing the latest mesa. I have manually compiled it and installed, but Ubuntu was still using the old 9.1.3 version.

    I found the instructions at:http://www.phoronix.com/scan.php?pag...tem&px=MTM1NDk
    I tested it with mplayer on 720p videos, and it's working ( altough sometimes video screen freezes for a few seconds but anything else is good). get around 15-20% CPU usage on both cores compared to 60%-100% without vdpau acceleration.

    Hmm... XBMC is a good idea, I will give it a try in a few seconds .
    Thank you.

  4. #4

    Default

    Quote Originally Posted by fioan89 View Post
    Hmm... XBMC is a good idea, I will give it a try in a few seconds .
    Thank you.
    According to this post: http://forum.xbmc.org/showthread.php...413#pid1400413 ...XBMC does not work well with the open source (OSS) UVD radeon driver ... this post is from April, though, so things may have improved since then. I haven't had time to read through the entire thread yet.

  5. #5
    Join Date
    Feb 2012
    Posts
    43

    Default

    With fedora on a 3.10 kernel, I am having audio sync problems. Seems fine when not using VDPAU.

  6. #6
    Join Date
    Jan 2009
    Posts
    191

    Default

    Quote Originally Posted by Lemonzest View Post
    With fedora on a 3.10 kernel, I am having audio sync problems. Seems fine when not using VDPAU. :mad:
    i can attest to that from my Fedora 19 with kernel-3.11.2
    Code:
    OpenGL renderer string: Gallium 0.4 on AMD BARTS
    OpenGL core profile version string: 3.1 (Core Profile) Mesa 9.2.0
    OpenGL core profile shading language version string: 1.40
    
    [    3.732592] [drm] initializing kernel modesetting (BARTS 0x1002:0x6738 0x1787:0x2305).
    [    3.732610] [drm] register mmio base: 0xFDDC0000
    [    3.732613] [drm] register mmio size: 131072
    [    3.733132] [drm] Detected VRAM RAM=1024M, BAR=256M
    [    3.733134] [drm] RAM width 256bits DDR
    it looks like mplayer with vdpau renders ahead, and if i enable framedrop it starts to pause about every second for audio to catch up.

  7. #7
    Join Date
    Jun 2013
    Posts
    48

    Default

    Alright, so here's my odd problem I have with UVD....

    I'm on ubuntu 12.10 with xserver-xorg-video-ati 7.2; using DRM-Next's latest 3.11 kernel (3.11.0-996-generic) and using mpv (fork of mplayer/mplayer2, note I tried using mplayer2 as well).
    So far UVD works.... Though it appears with some videos I get really bad lag, not sure why, and these files happen to be 4:3 (h.264).... I tried other 4:3 files and 16:9 videos and they play fine, any ideas? Here's some info on opengl and vdpau:

    Code:
    x@Akaigo-Arc:~$  glxinfo | grep -i opengl
    OpenGL vendor string: X.Org
    OpenGL renderer string: Gallium 0.4 on AMD CEDAR
    OpenGL version string: 3.0 Mesa 9.3.0-devel (git-eb0a57a quantal-oibaf-ppa)
    OpenGL shading language version string: 1.30
    OpenGL extensions:
    Code:
    x@Akaigo-Arc:~$  vdpauinfo
    display: :0.0   screen: 0
    API version: 1
    Information string: G3DVL VDPAU Driver Shared Library version 1.0
    
    Video surface:
    
    name   width height types
    -------------------------------------------
    420    16384 16384  NV12 
    422    16384 16384  
    444    16384 16384  
    
    Decoder capabilities:
    
    name               level macbs width height
    -------------------------------------------
    MPEG1                 0  9216  2048  1152
    MPEG2_SIMPLE          3  9216  2048  1152
    MPEG2_MAIN            3  9216  2048  1152
    H264_BASELINE        41  9216  2048  1152
    H264_MAIN            41  9216  2048  1152
    H264_HIGH            41  9216  2048  1152
    VC1_SIMPLE            1  9216  2048  1152
    VC1_MAIN              2  9216  2048  1152
    VC1_ADVANCED          4  9216  2048  1152
    
    Output surface:
    
    name              width height nat types
    ----------------------------------------------------
    B8G8R8A8         16384 16384    y  NV12 
    R8G8B8A8         16384 16384    y  NV12 
    R10G10B10A2      16384 16384    y  NV12 
    B10G10R10A2      16384 16384    y  NV12 
    
    Bitmap surface:
    
    name              width height
    ------------------------------
    B8G8R8A8         16384 16384
    R8G8B8A8         16384 16384
    R10G10B10A2      16384 16384
    B10G10R10A2      16384 16384
    A8               16384 16384
    
    Video mixer:
    
    feature name                    sup
    ------------------------------------
    DEINTERLACE_TEMPORAL             -
    DEINTERLACE_TEMPORAL_SPATIAL     -
    INVERSE_TELECINE                 -
    NOISE_REDUCTION                  y
    SHARPNESS                        y
    LUMA_KEY                         -
    HIGH QUALITY SCALING - L1        -
    HIGH QUALITY SCALING - L2        -
    HIGH QUALITY SCALING - L3        -
    HIGH QUALITY SCALING - L4        -
    HIGH QUALITY SCALING - L5        -
    HIGH QUALITY SCALING - L6        -
    HIGH QUALITY SCALING - L7        -
    HIGH QUALITY SCALING - L8        -
    HIGH QUALITY SCALING - L9        -
    
    parameter name                  sup      min      max
    -----------------------------------------------------
    VIDEO_SURFACE_WIDTH              y        48     2048
    VIDEO_SURFACE_HEIGHT             y        48     1152
    CHROMA_TYPE                      y  
    LAYERS                           y         0        4
    
    attribute name                  sup      min      max
    -----------------------------------------------------
    BACKGROUND_COLOR                 y  
    CSC_MATRIX                       y  
    NOISE_REDUCTION_LEVEL            y      0.00     1.00
    SHARPNESS_LEVEL                  y     -1.00     1.00
    LUMA_KEY_MIN_LUMA                y  
    LUMA_KEY_MAX_LUMA                y
    Code:
    Graphics
     01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Manhattan [Mobility Radeon HD 5400 Series]
    (this is a laptop btw)
    Last edited by Bushido_root; 10-03-2013 at 02:19 AM.

  8. #8

    Default

    The vdpau/UVD implementation needs some work to stabilize. I get issues too with certain files (desktop A8-5500, Debian Testing 64-bit/Xfce 4.10 with kernel, mesa, xf86-ati from git).

    I use mplayer (i think its from the 2 branch, default in Debian Testing). I found the best results with only mplayer itself, without any wrapper like smplayer - those pass tons of arguments and sometimes it seems those have detrimental effects.
    Also, sometimes if a video has artifacts i restart the playback and most of the time it goes away. But there are videos that crap out anyway with vdpau (in any player).

    You can add most (if not all) settings to the ~/.mplayer/config file to make it easy to use. Downside is that you have to learn the keyboard control shortcuts for the interface (mplayer --help).

    For example i have (i use alsa+volume preamplification because for some reason with pulse the volume is too low):

    Code:
    $ cat ~/.mplayer/config
    
    [default]
    # Write your default config options here!
    
    heartbeat-cmd="xscreensaver-command -deactivate &"
    ao=alsa
    vo=vdpau
    vc=ffh264vdpau,ffodivxvdpau,ffvc1vdpau,ffwmv3vdpau,ffmpeg12vdpau
    af=volume=10:0

  9. #9
    Join Date
    Jan 2009
    Posts
    1,621

    Default

    Since this came up. Anyone got VDPAU to work with VLC 2.1???

    i get:

    Code:
    $ vlc
    VLC media player 2.1.0 Rincewind (revision 2.1.0-0-gedd8835)
    [0x10331f8] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [0x7f0604c05fd8] vdpau generic error: decoding profile not supported: 8.16 1280x720
    [0x7f0604c05fd8] vdpau generic error: decoding profile not supported: 8.16 1280x720
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    Fontconfig warning: FcPattern object size does not accept value "0"
    [0x7f05e4001248] main vout display error: Failed to resize display
    [0x7f0604c38e78] freetype spu text error: Breaking unbreakable line
    Inconsistency detected by ld.so: dl-close.c: 771: _dl_close: Assertion `map->l_init_called' failed!

  10. #10
    Join Date
    Sep 2012
    Posts
    88

    Default

    Quote Originally Posted by 89c51 View Post
    Since this came up. Anyone got VDPAU to work with VLC 2.1???

    i get:

    Code:
    [0x7f0604c05fd8] vdpau generic error: decoding profile not supported: 8.16 1280x720
    [0x7f0604c05fd8] vdpau generic error: decoding profile not supported: 8.16 1280x720
    ...
    [0x7f05e4001248] main vout display error: Failed to resize display
    I updated vlc to 2.1 last night and, in testing, I received those same three std_error lines on every file I attempted playback with ... (the only change being the decoding profile portion of the message being accordant to video resolution of the test file) ... she ain't working .... interestingly, it really didn't like the dvd test sample (from mplayer IIRC), as cpu went high on that one, whereas utilization for 1080 material was much lower and in accordance with what would be expected for software decoding of that res and the given bitrates
    Last edited by Tyler_K; 10-03-2013 at 11:17 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •