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) - fritsch - 2013-12-17

Logfile please. I think you are hit by that one: https://bugs.freedesktop.org/show_bug.cgi?id=71753 (but only a logfile will tell). You should not have drops and no long decoding times (only perhaps at the start of a movie).


RE: Radeon OSS with vdpau (howto) - libgradev - 2013-12-17

(2013-12-16, 11:26)libgradev Wrote:
(2013-12-15, 18:51)dubsides Wrote: just wanted to report that with 3.13.RC3, wsnipex test ppa; and fernetmenta, my mpegs no longer crash, YAY!!!!
/Radeon 4550
/hadn't checked in a while so don't know what fixed it

Were you actually getting GPU Lockups though? I've looked through your dmesg output on the bug report and it looked like a different issue...

I'll try an updated stack later, regardless, see if it helps at all!

Didn't help at all sadly. If anything the newer kernel/mesa combos cause worse issues with MPEG-2 on my setup (nastly stuff like flashing screens after the GPU reset!)...


RE: Radeon OSS with vdpau (howto) - EricV - 2013-12-17

(2013-12-17, 11:23)fritsch Wrote: Logfile please. I think you are hit by that one: https://bugs.freedesktop.org/show_bug.cgi?id=71753 (but only a logfile will tell). You should not have drops and no long decoding times (only perhaps at the start of a movie).

A bit complicated because filetering disallow pastebin...

Here it is paste

A lot of skip when hitting o key to see stats on screen. Almost nothing in the log.


RE: Radeon OSS with vdpau (howto) - gfisher - 2013-12-17

@EricV. Try- Let driver choose vsync and deselect sync playback to display. The video and audio sync on HDMI appeared to be the issue at least for me. Someone is trying to play catch up. Logs would be useful.


RE: Radeon OSS with vdpau (howto) - EricV - 2013-12-17

(2013-12-17, 17:06)gfisher Wrote: @EricV. Try- Let driver choose vsync and deselect sync playback to display. The video and audio sync on HDMI appeared to be the issue at least for me. Someone is trying to play catch up. Logs would be useful.

@gfisher : you already have the log in my previous post. I already mentionnhed that disabling sync playback to display fixes the problem.


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

The codec screen is not for measuring skips, cause it is a heavy operation in the render chain, it might first produce those. Therefore, press "o" read the skips, watch 3 minutes more and press "o" again. If there are only a small number more - not an issue.

The log looks okay (some vdpau long decoding on start and stop), but fine otherwise.


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

I wanted to report success in 3.13-rc4 with my setup.. I had to build from source since the mainline ppa is broken at the moment due to a code issue in a specific driver they compile. I also changed to the test mesa PPA a few days ago with success in 3.13-rc3 and now with 3.13-rc4 it is working just as good.

My setup:

Code:
System:    Host: denhtpc Kernel: 3.13.0-rc4-custom x86_64 (64 bit) Console: tty 0 Distro: Ubuntu 13.10
Machine:   Mobo: ASRock model: A75M-ITX Bios: American Megatrends version: P1.60 date: 05/29/2012
CPU:       Triple core AMD A6-3500 APU with Radeon HD Graphics (-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4a svm)
           Clock Speeds: 1: 1600.00 MHz 2: 800.00 MHz 3: 800.00 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] BeaverCreek [Radeon HD 6530D]
           X.org: 1.14.3 drivers: ati,radeon (unloaded: fbdev,vesa) tty size: 150x25 Advanced Data: N/A out of X
Audio:     Card-1: Advanced Micro Devices [AMD] FCH Azalia Controller driver: snd_hda_intel
           Card-2: Advanced Micro Devices [AMD/ATI] BeaverCreek HDMI Audio [Radeon HD 6500D and 6400G-6600G series] driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture ver: k3.13.0-rc4-custom
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 00:25:22:f5:5b:4d
Drives:    HDD Total Size: 60.0GB (9.0% used) 1: id: /dev/sda model: Patriot_Pyro size: 60.0GB
Partition: ID: / size: 47G used: 5.0G (12%) fs: ext4 ID: /boot size: 237M used: 50M (22%) fs: ext2
           ID: swap-1 size: 8.30GB used: 0.00GB (0%) fs: swap
RAID:      No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors:   System Temperatures: cpu: 8.6C mobo: N/A gpu: 8.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 123 Uptime: 16 min Memory: 258.4/7711.5MB Runlevel: 2 Client: Shell (bash) inxi: 1.9.12



RE: Radeon OSS with vdpau (howto) - EricV - 2013-12-17

(2013-12-17, 17:42)fritsch Wrote: The codec screen is not for measuring skips, cause it is a heavy operation in the render chain, it might first produce those. Therefore, press "o" read the skips, watch 3 minutes more and press "o" again. If there are only a small number more - not an issue.

The log looks okay (some vdpau long decoding on start and stop), but fine otherwise.

This is what I do. There are sufficiently more to make viewing not really acceptable for me and the skip count occurs exactly when I see problem on rendering...


RE: Radeon OSS with vdpau (howto) - tomtomme - 2013-12-17

hi Smile
until yesterday my xbmc e-350 oss ran fine but now i am back on llvm software rasterizer... I fear that I played around to much with my kms settings and now i am not able to get it back. But it also may be some mesa10.0 problems, there were quite some updates the last days...

log of /var/log/Xorg...
http://pastebin.com/GHu9Ke3K

dmesg
http://pastebin.com/bDfetLTG

glxinfo
http://pastebin.com/fNQf96ef


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

@tomtomme:
Quote:[ 4.658108] radeon 0000:00:01.0: radeon_uvd: Can't load firmware "radeon/SUMO_uvd.bin"

Fix your firmware :-)


RE: Radeon OSS with vdpau (howto) - fatalsaint - 2013-12-17

For us Artifact people:

https://bugs.freedesktop.org/show_bug.cgi?id=60389#c44
https://bugs.freedesktop.org/attachment.cgi?id=86939

I cannot test until I get home. Based on the comment, doesn't look like it resolves it all the way, but maybe it makes it usable.


RE: Radeon OSS with vdpau (howto) - tomtomme - 2013-12-17

ah yes - thank you so much frtisch - somehow I ended up deleting the wrong firmware files to fasten up mkinitrd ...


RE: Radeon OSS with vdpau (howto) - gfisher - 2013-12-17

@EricV I post on a tablet, usually, and its slow- you posted at the same time. 8). I saw your vsync comment. Look in my history on this thread regarding this topic. My resolution was vsync - let driver choose and disable sync playback to display. (For now). You can try it if you like. With those settings I have very few skips. On my system it seems to all come down to av sync on HDMI. As long as the video was encoded in sync it plays back perfectly here. Logs look like mine did. Fine. Fritsch kindly filed the bug some time ago.

Edit- FYI vsync let driver choose or always both work. Vsync is enabled with let driver choose in most cases, anyway. I believe the methods change. It is in the window-renderer code.


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

@fatalsaint -- i'm bgunteriv

that was from the post that got closed and tagged as a duplicate of this one.

soo... not sure if you already have this patch. if not, give it a try... it's the only patch that has helped me.
i was just trying to see if there is something that can be done with this patch in mind to help fix this issue.

(2013-12-17, 17:43)pyrodex Wrote: I wanted to report success in 3.13-rc4 with my setup.. I had to build from source since the mainline ppa is broken at the moment due to a code issue in a specific driver they compile.
[/code]


thanks for confirming, @pyrodex. wondering if it's the driver that I'm trying to compile... i'm unable to compile as well.


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

(2013-12-17, 18:36)locomot1f Wrote: thanks for confirming, @pyrodex. wondering if it's the driver that I'm trying to compile... i'm unable to compile as well.

Spoke a little to soon... One of my two IDENTICAL machines, minus the TV configuration setup threw the following error in the kernel:

Code:
[    8.092214] BUG: unable to handle kernel paging request at ffffec2000000900
[    8.092273] IP: [<ffffffff8119c356>] kfree+0x56/0x130
[    8.092312] PGD 0
[    8.092328] Oops: 0000 [#1] SMP
[    8.092353] Modules linked in: snd_hda_codec_realtek(F) snd_hda_codec_hdmi(F) snd_seq_midi(F) snd_seq_midi_event(F) snd_rawmidi(F) kvm_amd(F) kvm(F) snd_hda_intel(F) snd_hda_codec(F) snd_hwdep(F) ir_lirc_codec(F) lirc_dev(F) ir_mce_kbd_decoder(F) ir_sanyo_decoder(F) ir_sony_decoder(F) ir_jvc_decoder(F) microcode(F) ir_rc6_decoder(F) ir_rc5_decoder(F) ir_nec_decoder(F) snd_pcm(F) psmouse(F) snd_seq(F) serio_raw(F) rc_rc6_mce(F) k10temp(F) mceusb(F) rc_core(F) snd_page_alloc(F) i2c_piix4(F) snd_timer(F) snd_seq_device(F) radeon(F) i2c_algo_bit(F) drm_kms_helper(F) snd(F) ttm(F) drm(F) mac_hid(F) soundcore(F) lp(F) parport(F) nls_iso8859_1(F) ext2(F) pata_acpi(F) r8169(F) mii(F) pata_atiixp(F) ahci(F) libahci(F)
[    8.092821] CPU: 2 PID: 1096 Comm: Xorg Tainted: GF            3.13.0-rc4-custom #1
[    8.092870] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./A75M-ITX, BIOS P1.60 05/29/2012
[    8.092929] task: ffff88022262b000 ti: ffff88021f4b0000 task.ti: ffff88021f4b0000
[    8.092975] RIP: 0010:[<ffffffff8119c356>]  [<ffffffff8119c356>] kfree+0x56/0x130
[    8.093025] RSP: 0000:ffff88021f4b1a60  EFLAGS: 00010286
[    8.093058] RAX: 0000022000000900 RBX: 0000100000024414 RCX: 0000000000000000
[    8.093103] RDX: 000077ff80000000 RSI: 0000000000005f78 RDI: 0000100000024414
[    8.093147] RBP: ffff88021f4b1a78 R08: 0000000000000018 R09: 0000000000000017
[    8.093190] R10: ffffec2000000900 R11: ffffffffa013e481 R12: 0000000000000000
[    8.093234] R13: ffffffffa019a892 R14: 0000000000000000 R15: ffff880222a06800
[    8.093279] FS:  00007ff8e4e87980(0000) GS:ffff88022ed00000(0000) knlGS:0000000000000000
[    8.093329] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    8.093364] CR2: ffffec2000000900 CR3: 0000000222b15000 CR4: 00000000000007e0
[    8.093408] Stack:
[    8.093422]  ffff880222ad0000 0000000000000000 ffff880222ad0000 ffff88021f4b1b38
[    8.093475]  ffffffffa019a892 0000000000000003 ffff88021f4b1ab0 ffff880200007048
[    8.093527]  000070440000712c ffff880222df4a00 0000100000024414 0000188000024414
[    8.093579] Call Trace:
[    8.093634]  [<ffffffffa019a892>] evergreen_hdmi_setmode+0x832/0x960 [radeon]
[    8.093697]  [<ffffffffa008d51e>] ? drm_detect_hdmi_monitor+0x6e/0xb0 [drm]
[    8.093765]  [<ffffffffa01a1b98>] radeon_atom_encoder_mode_set+0x158/0x2d0 [radeon]
[    8.093817]  [<ffffffffa00c0a90>] drm_crtc_helper_set_mode+0x490/0x500 [drm_kms_helper]
[    8.093887]  [<ffffffffa014c635>] radeon_property_change_mode.isra.1+0x35/0x40 [radeon]
[    8.093955]  [<ffffffffa014c7ce>] radeon_connector_set_property+0x18e/0x300 [radeon]
[    8.094016]  [<ffffffffa008a6d2>] drm_mode_obj_set_property_ioctl+0x142/0x340 [drm]
[    8.094074]  [<ffffffffa008a900>] drm_mode_connector_property_set_ioctl+0x30/0x40 [drm]
[    8.094132]  [<ffffffffa0079c02>] drm_ioctl+0x502/0x630 [drm]
[    8.094172]  [<ffffffff8170aedc>] ? __do_page_fault+0x1ec/0x560
[    8.094226]  [<ffffffffa010e0fe>] radeon_drm_ioctl+0x4e/0x90 [radeon]
[    8.094268]  [<ffffffff811c8230>] do_vfs_ioctl+0x2e0/0x4c0
[    8.094306]  [<ffffffff8109afc4>] ? vtime_account_user+0x54/0x60
[    8.094345]  [<ffffffff811c8491>] SyS_ioctl+0x81/0xa0
[    8.094378]  [<ffffffff8170faff>] tracesys+0xe1/0xe6
[    8.094409] Code: 00 00 00 80 ff 77 00 00 49 ba 00 00 00 00 00 ea ff ff 48 01 d8 48 0f 42 15 c8 8c a7 00 48 01 d0 48 c1 e8 0c 48 c1 e0 06 49 01 c2 <49> 8b 02 f6 c4 80 0f 85 be 00 00 00 49 8b 02 a8 80 0f 84 92 00
[    8.094635] RIP  [<ffffffff8119c356>] kfree+0x56/0x130
[    8.094670]  RSP <ffff88021f4b1a60>
[    8.094693] CR2: ffffec2000000900

I had to revert it back to rc3 for it to work.