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.
it's a kernel bug, if you add cma=0 to grub it will stop the error until they fix it.

haven't had the problem on my xbmc machine but it did effect kde on my desktop.
Something for speculating:

http://www.phoronix.com/forums/showthrea...post443046

AMD is implementing VAAPI.
I'm struggling to achieve proper HDMI audio and vdpau acceleration using the radeon oss driver. I've followed the tutorial on post #1, however, pcm sound is choppy, non-hd bitstreaming works properly but only when hardware acceleration is disabled, and hd bitstreaming does not work with or without the supplied EDID. My card is an XFX AMD 7770. Any help would be greatly appreciated!

dmesg | pastebinit
http://paste.ubuntu.com/8461379/
cat ~/.xbmc/temp/xbmc.log | pastebinit
http://paste.ubuntu.com/8461380/
cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/8461381/
DISPLAY=:0 vdpauinfo | pastebinit
http://paste.ubuntu.com/8461382/
dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/8461384/
(2014-09-29, 08:47)fritsch Wrote: [ -> ]Something for speculating:

http://www.phoronix.com/forums/showthrea...post443046

AMD is implementing VAAPI.

Could this eventually make kodi work with UVD2 HW which don't support vdpau gl interop?
@danofun
You are likely affected by this bug I filed. Very little activity on this BR.
https://bugs.freedesktop.org/show_bug.cgi?id=77677
Note- I have not tried kernel 3.16x, yet. Maybe it got fixed.. Dedicated 77xx cards dont seem to play well on oss and pure alsa. If you install pulse audio it should work for ac3 and dts5.1 core pass through thanks to fritsch's patches to pulse.
@danofun:

I could not see anything playing in the xbmc logfile. The rest looks okay. Also enable debugging, play some samples and then post the log.
(2014-09-30, 05:43)gfisher Wrote: [ -> ]@danofun
You are likely affected by this bug I filed. Very little activity on this BR.
https://bugs.freedesktop.org/show_bug.cgi?id=77677
Note- I have not tried kernel 3.16x, yet. Maybe it got fixed.. Dedicated 77xx cards dont seem to play well on oss and pure alsa. If you install pulse audio it should work for ac3 and dts5.1 core pass through thanks to fritsch's patches to pulse.
@gfisher:
Thank you for your reply. I do seem to be affected by this same bug. I've upgraded my kernel to 3.16.3 and have not experienced any improvement.
(2014-09-30, 08:12)fritsch Wrote: [ -> ]@danofun:

I could not see anything playing in the xbmc logfile. The rest looks okay. Also enable debugging, play some samples and then post the log.
@fritsch:
I greatly appreciate you taking a look at the logs! The debug log is below. I played 4 files in this order:
- .mp3 file that resulted in stuttering/choppy, barely discernible audio.
- .mkv containing 6-channel DTS audio stream that was passed through properly and played fine. VDPAU disabled
- same DTS .mkv as above resulted in no sound whatsoever. VDPAU enabled
- .mkv containing 6-channel DTS-HD Master Audio stream that provided no sound but a flickering "DTS" on the receiver. VDPAU disabled

http://paste.ubuntu.com/8465799/
(2014-08-11, 19:34)bluezed Wrote: [ -> ]Thanks for the very quick reply!

I thought removing the AMD proprietary driver would be enough... obviously not...

Now, I don't seem to be able to remove fglrx. I've tried several step-by-step guides which all pretty much say to do this:

Code:
sudo apt-get remove --purge fglrx fglrx-amdcccle fglrx-dev
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -rf /etc/ati

But after reboot the dmesg output still has the same lines in it. See here: pastebin

Again sorry for being such a novice Big Grin


I had the same problem and I manage to fix it: to run properly the Radon Open Source driver after a previous installation of fglrx propriatary driver.

What I did is:

1) remove the fglrx driver and install Open Souce one following : https://wiki.ubuntu.com/X/Troubleshootin...rge_-fglrx

But I was still facing problem with Video tearing on XBMC. (No Harware acceleration and 180% of CPU usage in XBMC)

I was stuck and read carrefuly the difference of between the "var/log/Xorg.0.log" file: Mine and those posted here. I noticed that the difference was :

Code:
LoadModule: "ati"
Warning, couldn't open module ati
UnloadModule: "ati"
Unloading ati
Failed to load module "ati" (module does not exist, 0)

So ATI Driver was not use.... and fglrx neither
Code:
LoadModule: "fglrx"
Warning, couldn't open module fglrx
UnloadModule: "fglrx"
Unloading fglrx
Failed to load module "fglrx" (module does not exist, 0)

None of the two drivers "fglrx" (because removed) nor "ATI" was taking into account by Xorg. The reason was probably "fglrx" not completly removed or "ATI" Radeon not completly installed.

So I run a installation again

Code:
sudo apt-get install xserver-xorg-video-ati

And the magic came! Now in my "var/log/Xorg.0.log" file:

Code:
[ 37959.948] (II) LoadModule: "fglrx"
[ 37959.949] (WW) Warning, couldn't open module fglrx
[ 37959.949] (II) UnloadModule: "fglrx"
[ 37959.949] (II) Unloading fglrx
[ 37959.949] (EE) Failed to load module "fglrx" (module does not exist, 0)
[ 37959.949] (II) LoadModule: "ati"
[ 37959.949] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
[ 37959.949] (II) Module ati: vendor="X.Org Foundation"
[ 37959.949]    compiled for 1.15.1, module version = 7.3.0
[ 37959.949]    Module class: X.Org Video Driver
[ 37959.949]    ABI class: X.Org Video Driver, version 15.0
[ 37959.949] (II) LoadModule: "radeon"
[ 37959.950] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[ 37959.950] (II) Module radeon: vendor="X.Org Foundation"

and on XBMC: no more Video Tearing and 5% CPU usage: Hardware acceraltion is working!!!
(2014-09-30, 15:00)danofun Wrote: [ -> ]
(2014-09-30, 05:43)gfisher Wrote: [ -> ]@danofun
You are likely affected by this bug I filed. Very little activity on this BR.
https://bugs.freedesktop.org/show_bug.cgi?id=77677
Note- I have not tried kernel 3.16x, yet. Maybe it got fixed.. Dedicated 77xx cards dont seem to play well on oss and pure alsa. If you install pulse audio it should work for ac3 and dts5.1 core pass through thanks to fritsch's patches to pulse.
@gfisher:
Thank you for your reply. I do seem to be affected by this same bug. I've upgraded my kernel to 3.16.3 and have not experienced any improvement.
(2014-09-30, 08:12)fritsch Wrote: [ -> ]@danofun:

I could not see anything playing in the xbmc logfile. The rest looks okay. Also enable debugging, play some samples and then post the log.
@fritsch:
I greatly appreciate you taking a look at the logs! The debug log is below. I played 4 files in this order:
- .mp3 file that resulted in stuttering/choppy, barely discernible audio.
- .mkv containing 6-channel DTS audio stream that was passed through properly and played fine. VDPAU disabled
- same DTS .mkv as above resulted in no sound whatsoever. VDPAU enabled
- .mkv containing 6-channel DTS-HD Master Audio stream that provided no sound but a flickering "DTS" on the receiver. VDPAU disabled

http://paste.ubuntu.com/8465799/

I think you need to have a look at the bug gfisher pointed out. I lack deeper kernel knowledge to fix this issue.
Is it possible to to go back to Saucy/Gotham from Trusty/Kodi14? Are the files still available?

I have an annoying buffer problems, causing hanging, since upgrading
"CActiveAEStream::AddData - timeout waiting for buffer, paused: 0, cache time: 0.000000, free buffers: 0"

And there seems to be no fix available.
I used a completely clean install, partition wipe, etc.

Everything was great with previous versions.
After a reboot it runs fine, but use Seek or Chapter skip during playback, or scroll a menu, and the buffer warnings begin.
There is plenty of memory available, but only another reboot will correct the problem once it starts.
post your logfiles, please.
It actually took a couple of days this time to re-occur...I almost began to believe the hard boot fixed it.
There are a lot of log entries as I tried to trigger it with seek and scroll actions.

http://paste.ubuntu.com/8512267/
http://paste.ubuntu.com/8512272/
http://paste.ubuntu.com/8512276/
http://paste.ubuntu.com/8512300/
http://paste.ubuntu.com/8512282/
Does this also happen with local files? Besides that:
Quote:21:46:59 T:140440619742976 WARNING: (null) - one queue is stalled while other does not accept data

this is not a good sign. Next week probably is more time -> file a bug on trac.xbmc.org and add me and FernetMenta. Don't expect a reply before next week.
(2014-10-07, 07:41)fritsch Wrote: [ -> ]Does this also happen with local files? Besides that:
Quote:21:46:59 T:140440619742976 WARNING: (null) - one queue is stalled while other does not accept data

this is not a good sign. Next week probably is more time -> file a bug on trac.xbmc.org and add me and FernetMenta. Don't expect a reply before next week.

Yes. drv1 - 4 are local mounts and once it starts even low bitrate encodes are affected.
(2014-10-07, 07:41)fritsch Wrote: [ -> ]Does this also happen with local files? Besides that:
Quote:21:46:59 T:140440619742976 WARNING: (null) - one queue is stalled while other does not accept data

this is not a good sign. Next week probably is more time -> file a bug on trac.xbmc.org and add me and FernetMenta. Don't expect a reply before next week.

trac is only for mainline versions