Kodi Community Forum

Full Version: Radeon OSS with vdpau (howto)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I kept getting errors about the HAWAII drivers.

i know you said that this forum will become obsolete when 3.13 is released.
so, should I purge the repository ppa:wsnipex/mesa, and just use the mainline?
I've also had another successful run with 3.13-rc2 with no issues. I am wondering if the people having problems have newer GPUs?
xbmc@xbmc:~$ dmesg | pastebinit
http://paste.ubuntu.com/6514897/
xbmc@xbmc:~$ cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/6514899/
xbmc@xbmc:~$ cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/6514901/
xbmc@xbmc:~$ DISPLAY=:0 vdpauinfo | pastebinit
[1]+ Stopped DISPLAY=:0 vdpauinfo | pastebinit
xbmc@xbmc:~$ dpkg -l | grep mesa | pastebinit
http://paste.ubuntu.com/6514909/

as you can see, when I tried to run the DISPLAY=:0 vdpauinfo, it just hangs, and I had to cancel it.
Quote: [<ffffffffa01b7ecb>] dce6_afmt_write_speaker_allocation+0xdb/0x140 [radeon]

Head over to the usual location :-)
(2013-12-03, 17:01)locomot1f Wrote: [ -> ]xbmc@xbmc:~$ dmesg | pastebinit
http://paste.ubuntu.com/6514897/
xbmc@xbmc:~$ cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/6514899/
xbmc@xbmc:~$ cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/6514901/
xbmc@xbmc:~$ DISPLAY=:0 vdpauinfo | pastebinit
[1]+ Stopped DISPLAY=:0 vdpauinfo | pastebinit
xbmc@xbmc:~$ dpkg -l | grep mesa | pastebinit
http://paste.ubuntu.com/6514909/

as you can see, when I tried to run the DISPLAY=:0 vdpauinfo, it just hangs, and I had to cancel it.

Your mesa looks funky... did you follow the guide? Here is mine:

Code:
ii  libegl1-mesa:amd64                     10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the EGL API -- runtime
ii  libegl1-mesa-drivers:amd64             10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the EGL API -- hardware drivers
ii  libg3dvl-mesa                          10.0~git201311181342.37827~ubuntu13.10.1 amd64        xvmc and vdpau Gallium3D video acceleration drivers
ii  libgl1-mesa-dri:amd64                  10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the OpenGL API -- DRI modules
ii  libgl1-mesa-glx:amd64                  10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the OpenGL API -- GLX runtime
ii  libglapi-mesa:amd64                    10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the GL API -- shared library
ii  libglu1-mesa:amd64                     9.0.0-1                                  amd64        Mesa OpenGL utility library (GLU)
ii  libopenvg1-mesa:amd64                  10.0~git201311181342.37827~ubuntu13.10.1 amd64        free implementation of the OpenVG API -- runtime
ii  mesa-utils                             8.1.0-2                                  amd64        Miscellaneous Mesa GL utilities
Despite this as @pyrodex pointed out, you are missing the correct mesa packages.
i did...
sorry i was trying stuff, and I purged ppa:wsnipex/mesa

one sec, and I'll get updated logs...
The problem is the kernel error, this happens when the driver tries to acquire the speaker mask. This was patched out during 3.12, as it caused those issues. Big disadvantage: Speaker ELD acquiering stopped working for everybody, therefore they put it in again.

File that bug at freedesktop.org please. This needs upstream care.
xbmc@xbmc:~$ dmesg | pastebinit
http://paste.ubuntu.com/6515001/
xbmc@xbmc:~$ cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/6515003/
xbmc@xbmc:~$ cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/6515004/
xbmc@xbmc:~$ DISPLAY=:0 vdpauinfo | pastebinit
[1]+ Stopped DISPLAY=:0 vdpauinfo | pastebinit
xbmc@xbmc:~$ dpkg -l | grep mesa | pastebinit
http://paste.ubuntu.com/6515006/


..... so, it's not MESA...Huh
is there a bug report already open on this? if so, can someone point me in the right direction? what would i file this under?
I'm still new to this bug reporting on freedesktop.
Use your creativity :-) Don't be shy.
@fritsch,

thanks for the vote of courage.
Alex D. pointed me to possible fix with a patch, but I have no experience with patching kernels.
could you help me out again by applying this patch so that I can test it out?
https://bugs.freedesktop.org/attachment.cgi?id=90196

thanks in advance.
It's quite easy:

Code:
sudo apt-get install kernel-package fakeroot build-essential libncurses5-dev
git clone https://github.com/fritsch/linux.git
git checkout master
cd linux
cp /boot/config-3.13.0-031300rc2-generic .config
fakeroot make-kpkg --initrd -j6 --revision=0.1 kernel_image kernel_headers
It requires that a 3.13-rc2 kernel was already installed, cause we use that .config.
This will produce two .deb files, which you only have to install via: sudo dpkg -i firstfile.deb secondfile.deb
That master branch includes your segfault patch and the patch the others might need for mpeg-2 (PLL something)

It might need ages on e.g. E350, but you can easily build on other machines and copy over the .debs
don't forget to add the patch before building Wink

untested:
steps from above...
cp /boot/config-3.13.0-031300rc2-generic .config
wget https://bugs.freedesktop.org/attachment.cgi?id=90196 -O drm-fix.patch
git apply drm-fix.patch
fakeroot make-kpkg --initrd -j6 --revision=0.1 kernel_image kernel_headers
I have them in my tree, therefore I ommited that. But will upload two packages shortly.
I compile my kernels with Ubuntu in vmware player on my desktop, saves having unnecessary dev packages and a faster compile.