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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
|
RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-19 @Mysqo: Please post the logfiles from the first page, thx Sv: RE: Radeon OSS with vdpau (howto) - Mysqo - 2013-12-19 (2013-12-19, 21:46)jaapp Wrote: Did you purge the previous 3.13 kernel? No I didn't just installed using dpkg -i (2013-12-19, 21:47)fritsch Wrote: @Mysqo: Please post the logfiles from the first page, thxWill do so... dmesg : http://paste.ubuntu.com/6601465/ xbmclog: http://paste.ubuntu.com/6601471/ Xorg: http://paste.ubuntu.com/6601475/ Display: http://paste.ubuntu.com/6601477/ dpkg: http://paste.ubuntu.com/6601480/ RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-19 Remove your asound.conf - whereever you got it, not by this howto. RE: Radeon OSS with vdpau (howto) - EricV - 2013-12-20 (2013-12-17, 18:49)pyrodex Wrote:(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. I have exactly the same bug on rc4 on a custom amd machine: BUG: unable to handle kernel paging request at ffffec2000000900 [ 39.507099] IP: [<ffffffff810a78ee>] kfree+0x41/0xe2 [ 39.507118] PGD 0 [ 39.507126] Oops: 0000 [#1] PREEMPT SMP [ 39.507135] Modules linked in: radeon drm_kms_helper ttm drm cfbfillrect cfbimgblt cfbcopyarea i2c_algo_bit fb fbdev [ 39.507166] CPU: 1 PID: 3777 Comm: Xorg Not tainted 3.13.0-rc4 #4 [ 39.507175] Hardware name: To be filled by O.E.M. To be filled by O.E.M./Inagua CRB, BIOS 4.6.4 06/15/2011 [ 39.507184] task: ffff88013b9ed940 ti: ffff880099790000 task.ti: ffff880099790000 [ 39.507192] RIP: 0010:[<ffffffff810a78ee>] [<ffffffff810a78ee>] kfree+0x41/0xe2 [ 39.507206] RSP: 0000:ffff880099791a40 EFLAGS: 00010286 [ 39.507213] RAX: ffffea0000000000 RBX: 0000100000024414 RCX: 0000000000000000 [ 39.507220] RDX: 0000000000010005 RSI: 0000000000005f78 RDI: 0000100000024414 [ 39.507227] RBP: 0000000000000c00 R08: ffffec2000000900 R09: 0000000000000c00 [ 39.507234] R10: ffffffffa00a5dba R11: ffffffffa00a5f1d R12: ffff8800a3712c00 [ 39.507240] R13: ffff8800a2f20000 R14: 0000000000000000 R15: ffff8800a19f0400 [ 39.507249] FS: 00007f737efc3980(0000) GS:ffff88013fd00000(0000) knlGS:0000000000000000 [ 39.507256] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 39.507263] CR2: ffffec2000000900 CR3: 0000000099a7f000 CR4: 00000000000007e0 [ 39.507267] Stack: [ 39.507273] ffff8800a2f20000 ffffffffa00ef1c8 00007c44a00f42a4 00007d2c00007c48 [ 39.507284] ffff8800a3712c00 0000000000000003 0000000000000000 ffffffffa0173091 [ 39.507294] 0000100000024414 0000188000024414 0000180000028488 ffffffff00024414 [ 39.507304] Call Trace: [ 39.507411] [<ffffffffa00ef1c8>] ? evergreen_hdmi_setmode+0x3cc/0x7e1 [radeon] [ 39.507431] [<ffffffffa0086732>] ? drm_crtc_helper_set_mode+0x30a/0x40a [drm_kms_helper] [ 39.507451] [<ffffffffa008748c>] ? drm_crtc_helper_set_config+0x5ff/0x842 [drm_kms_helper] [ 39.507522] [<ffffffffa00b23a7>] ? radeon_crtc_set_config+0x41/0xe8 [radeon] [ 39.507570] [<ffffffffa00323e7>] ? drm_mode_set_config_internal+0x44/0xac [drm] [ 39.507611] [<ffffffffa00348cb>] ? drm_mode_setcrtc+0x3e8/0x499 [drm] [ 39.507644] [<ffffffffa00298b3>] ? drm_ioctl+0x26f/0x394 [drm] [ 39.507684] [<ffffffffa00344e3>] ? drm_mode_setplane+0x335/0x335 [drm] [ 39.507739] [<ffffffffa0094045>] ? radeon_drm_ioctl+0x45/0x77 [radeon] [ 39.507752] [<ffffffff810b9598>] ? do_vfs_ioctl+0x356/0x421 [ 39.507763] [<ffffffff810b96b1>] ? SyS_ioctl+0x4e/0x7b [ 39.507775] [<ffffffff8147aba2>] ? system_call_fastpath+0x16/0x1b [ 39.507781] Code: 00 00 00 80 ff 77 00 00 49 01 f8 48 0f 42 05 3a 87 96 00 49 01 c0 48 b8 00 00 00 00 00 ea ff ff 49 c1 e8 0c 49 c1 e0 06 49 01 c0 <49> 8b 00 f6 c4 80 74 04 4d 8b 40 30 49 8b 00 a8 80 75 22 49 f7 [ 39.507871] RIP [<ffffffff810a78ee>] kfree+0x41/0xe2 [ 39.507882] RSP <ffff880099791a40> [ 39.507887] CR2: ffffec2000000900 [ 39.507895] ---[ end trace bf1d9379f65c36f8 ]-- RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-20 Try the kernel version in here: https://github.com/fritsch/linux/commits/drm-fixes-3.13 whichs is: http://cgit.freedesktop.org/~agd5f/linux/log/?h=drm-fixes-3.13 + the latest artifacts patch RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-20 (2013-12-13, 13:11)fritsch Wrote: Works for me on Marantz. So, as long as you need to stick to 60hz. Just disable all the hd audio codecs (DTS-Hd, TrueHD) - it will put out as LCPM, when your speaker config is set correctly. TrueHD without quality loss, for DTS-HD we use the DTS and decoder that one as ffmpeg does not have a DTS-HD decoder. @fritsch Back with the DTS-HD problem: Of course it’s are workaround to switch to DTS, but not really satisfying. I tried to localize were the problem could be. So I installed in parallel Windows8 (with newest patches and drivers) and XBMC 13 on my HTPC. If I configure in XBMC system the audio, XBMC offers two different HDMI interfaces: 1. Direct-Sound: HDMI-1-Denon-AVAMP 2. WASAPI: HDMI-1-Denon-AVAMP If I configure 1 there if the same behaviour as in Linux-XBMC: periodic distortions and gaps in DTS-HD If configure 2 DTS-HD runs perfect. The AVR signals DTS-HD and it works on all frame-rates, so the DENON-AVR is capable the handle DTS-HD at all frame rates. Conclusion: For my understanding the problem is located somewhere in XBMC or in the Linux audio drivers (ALSA?) May be ALSA should perform like WASAPI. RE: Radeon OSS with vdpau (howto) - fritsch - 2013-12-20 It's a driver thing. We cannot do anything about it. Retry with latest / greatest - see the updated kernels I posted. Also make sure, you edit your init script, I added one line to priorize the Sink which writes the Audio data. If all that does not help, which I think it does not, post your problems on the ALSA user mailing list. As you don't get any dts-hd also in plain system with != 60hz, it's not an xbmc fault. Make some tests with aplay to confirm. RE: Radeon OSS with vdpau (howto) - Kablam - 2013-12-20 I see the glitches to with the latest kernel check vids ( can be hard to see) playback of 720p mkv glitch video (hard to see here small glitches) playback of rarcompressed 720p mkv glitch video (easier to see here large glitches) my log files: dmesg | pastebinit -> http://paste.ubuntu.com/6605418/ cat ~/.xbmc/temp/xbmc.log | pastebinit -> http://paste.ubuntu.com/6605418/ cat /var/log/Xorg.0.log | pastebinit -> http://paste.ubuntu.com/6605413/ DISPLAY=:0 vdpauinfo | pastebinit -> http://paste.ubuntu.com/6605416/ dpkg -l |grep mesa | pastebinit -> http://paste.ubuntu.com/6605418/ RE: Radeon OSS with vdpau (howto) - ixbeemce - 2013-12-20 (2013-12-20, 12:12)fritsch Wrote: It's a driver thing. We cannot do anything about it. Retry with latest / greatest - see the updated kernels I posted. Also make sure, you edit your init script, I added one line to priorize the Sink which writes the Audio data. If all that does not help, which I think it does not, post your problems on the ALSA user mailing list. @fritsch Thx for answering. I installed the actual kernel, but now I run into a forther problem. I have also running VMware Workstation on my HTPC and with linux kernel 3.12 it works. But now with kernel 3.13.0-rc3-drm-fixes14-v999-na+ I got errors if VMware tries to build its drivers. see error log: http://paste.ubuntu.com/6605402/ any idea& RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-12-20 vmware drivers won't build with 3.13 yet. unlikely they will fix them until 3.13 is official, though sometimes you can find a patch someone has made. RE: Radeon OSS with vdpau (howto) - libgradev - 2013-12-20 (2013-12-19, 08:59)fritsch Wrote: Okay :-) Have you heard anything from the AMD guys about looking into the MPEG-2 lockups? RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-12-20 didn't the last patch work for you libgradev?, it should be fixed in newer kernels. drm/radeon: fix typo in fetching mpll params RE: Radeon OSS with vdpau (howto) - EricV - 2013-12-20 (2013-12-20, 00:21)fritsch Wrote: Try the kernel version in here: https://github.com/fritsch/linux/commits/drm-fixes-3.13 @fritsch Will do over the week-end. Thanks for suggestion. Is there someone using a sapphire edge vs8? I consider buying one once the price and availability will be more favorable but would like to know if it works almots out of the box. RE: Radeon OSS with vdpau (howto) - libgradev - 2013-12-20 (2013-12-20, 16:43)deadite66 Wrote: didn't the last patch work for you libgradev?, it should be fixed in newer kernels. Nope, I posted back a while ago about that patch. Tried fritsch's kernel with it in and a later rc3 that I compiled - both caused worse issues. I posted back to the bug tracker but there's been no response RE: Radeon OSS with vdpau (howto) - deadite66 - 2013-12-20 Christian just pushed a new patch (dri.devel list) for UVD, no idea if it effects anyone here. Code: [PATCH] drm/radeon: fix UVD 256MB check |