Linux - Radeon OSS with vdpau (howto)

  Thread Rating:
  • 24 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
deadite66 Offline
Donor
Posts: 230
Joined: Aug 2008
Reputation: 0
Location: UK
Post: #3211
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.

Asus E2KM1I-DELUXE (E2-2000 with HD7340) 60GB SSD + 2TB WD Caviar Green : xubuntu Trusty x64 : 3.14.2, (mythtv 0.27+fixes + 2x PCTV 290e DVB-T2)
Acer aspire revo R3600 Ubuntu Oneiric.
ASRock ION 3D, atom D525/ion2, 2GB ram, 1TB HDD running Ubuntu Precise. - in storage

(This post was last modified: 2014-09-20 15:06 by deadite66.)
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,341
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #3212
Something for speculating:

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

AMD is implementing VAAPI.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
Settings missing? Read the FAQ: http://wiki.xbmc.org/index.php?title=XBM...otham)_FAQ
No help without a proper Debug Log
find quote
danofun Offline
Junior Member
Posts: 14
Joined: Mar 2010
Reputation: 0
Post: #3213
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/
find quote
pvautrin Offline
Junior Member
Posts: 40
Joined: Jan 2011
Reputation: 0
Post: #3214
(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?
find quote
gfisher Offline
Senior Member
Posts: 219
Joined: Feb 2012
Reputation: 4
Post: #3215
@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.
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,341
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #3216
@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.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
Settings missing? Read the FAQ: http://wiki.xbmc.org/index.php?title=XBM...otham)_FAQ
No help without a proper Debug Log
find quote
danofun Offline
Junior Member
Posts: 14
Joined: Mar 2010
Reputation: 0
Post: #3217
(Yesterday 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.
(Yesterday 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/
find quote
florent Offline
Junior Member
Posts: 1
Joined: Sep 2014
Reputation: 0
Post: #3218
(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!!!
find quote
fritsch Online
Team-XBMC Developer
Posts: 6,341
Joined: Aug 2011
Reputation: 144
Location: Karlsruhe
Post: #3219
(Yesterday 15:00)danofun Wrote:  
(Yesterday 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.
(Yesterday 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.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
Settings missing? Read the FAQ: http://wiki.xbmc.org/index.php?title=XBM...otham)_FAQ
No help without a proper Debug Log
find quote
Post Reply