Kodi Community Forum
Linux Radeon OSS with vdpau (howto) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux Radeon OSS with vdpau (howto) (/showthread.php?tid=174854)



RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-03

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?


RE: Radeon OSS with vdpau (howto) - pyrodex - 2013-12-03

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?


RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-03

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.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-03

Quote: [<ffffffffa01b7ecb>] dce6_afmt_write_speaker_allocation+0xdb/0x140 [radeon]

Head over to the usual location :-)


RE: Radeon OSS with vdpau (howto) - pyrodex - 2013-12-03

(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



RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-03

Despite this as @pyrodex pointed out, you are missing the correct mesa packages.


RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-03

i did...
sorry i was trying stuff, and I purged ppa:wsnipex/mesa

one sec, and I'll get updated logs...


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-03

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.


RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-03

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.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-03

Use your creativity :-) Don't be shy.


RE: Radeon OSS with vdpau (howto) - locomot1f - 2013-12-04

@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.


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-04

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


RE: Radeon OSS with vdpau (howto) - wsnipex - 2013-12-04

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


RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-04

I have them in my tree, therefore I ommited that. But will upload two packages shortly.


RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-12-04

I compile my kernels with Ubuntu in vmware player on my desktop, saves having unnecessary dev packages and a faster compile.