dan-and / linux-sunxi

Linux source for Allwinner/Boxchip F20 (sun3i), A10 (sun4i), A12/A13 (sun5i), A20 (sun7i) SoCs -- You can visit it a chat at https://gitter.im/dan-and/linux-sunxi --
http://linux-sunxi.org/Linux
Other
17 stars 17 forks source link

kernel panic when pause video #28

Closed damien7851 closed 8 years ago

damien7851 commented 8 years ago

Hi,

If i play a HD video with mpv and pause it kernel panic.

I use libsunxivdpau from sunxi github.

dan-and commented 8 years ago

I need more details:

A) Which Kernel Version - Self made or one of my tar balls from http://dl.danand.de/ ?

B) Which version of Linux-Distribution, Player version, libsunxivdpau version ?

C) Do other videos work ? How to reproduce the error ?

D) Log output, log output, log output ;-)

damien7851 commented 8 years ago

Hi,

I have compiled from my fork of our kernel form github : Linux cubietruck 3.4.111-ir+ #8 SMP PREEMPT Fri Apr 22 22:52:46 CEST 2016 armv7l armv7l armv7l GNU/Linux

I use armbian trusty.

libvdpausunxi commit : 906c36ed45ceb53fecd5fc72e821c11849eeb1a3 form official

mpv 0.3.4 (C) 2000-2013 mpv/MPlayer/mplayer2 projects built on 2014-02-01T17:13:16 libav library versions: libavutil 52.3.0 libavcodec 54.35.0 libavformat 54.20.3 (runtime 54.20.4) libswscale 2.1.1 libavfilter 3.3.0 libavresample 1.0.1

mpv video conf :

##################

video settings

##################

Specify default video driver (see --vo=help for a list).

vo=vdpau hwdec=vdpau hwdec-codecs=all

Start in fullscreen mode by default.

fs=yes

brightness=10 contrast=0 gamma=1

force starting with centered window

geometry=50%:50%

don't allow a new window to have a size larger than 90% of the screen size

autofit-larger=90%x90%

Disable the On Screen Controller (OSC).

force-rgba-osd-rendering

Keep the player window on top of all other windows.

ontop=yes

all video with h264 fail on pause but play correctly.

for reproduce bug simply play video and put in pause !

Le 28/04/2016 16:59, Daniel Andersen a écrit :

I need more details:

A) Which Kernel Version - Self made or one of my tar balls from http://dl.danand.de/ ?

B) Which version of Linux-Distribution, Player version, libsunxivdpau version ?

C) Do other videos work ? How to reproduce the error ?

D) Log output, log output, log output ;-)

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/dan-and/linux-sunxi/issues/28#issuecomment-215453920

------------[ cut here ]------------ [12542.553014] kernel BUG at arch/arm/mach-sun7i/dma/dma_core.c:32! [12542.557810] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM [12542.559656] Modules linked in: cpufreq_userspace bnep rfcomm ir_lirc_codec ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder lirc_send_pwm(O) pwm_sunxi ir_rc5_decoder lirc_dev ir_nec_decoder sunxi_lirc_new rc_core hidp hci_uart bluetooth [12542.585382] CPU: 0 Tainted: G O (3.4.111-ir+ #8) [12542.588198] PC is at dma_start+0x7c/0x80 [12542.590831] LR is at dma_ctrl+0x90/0x198 [12542.599702] pc : [] lr : [] psr: 60010093 [12542.599711] sp : ec5e7e50 ip : 00000001 fp : 00000004 [12542.603640] r10: 00000000 r9 : 00000000 r8 : 80010093 [12542.608867] r7 : 00000000 r6 : c0a93b88 r5 : c0a93b94 r4 : c0a93b3c [12542.614096] r3 : c0a93b94 r2 : 00000004 r1 : 00000000 r0 : c0a93b3c [12542.620021] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user [12542.624475] Control: 10c5387d Table: 6bd2806a DAC: 00000015 [12542.626147] [12542.626152] PC: 0xc002cc30: [12542.626607] cc30 e12fff1e e1a03000 e92d4070 e1a04000 e5b35058 e1550003 0a000018 e1a00005 [12542.633603] cc50 e245600c eb0f3bfb e1a00004 e515100c ebffff9b e1a00004 e5151008 ebffff9c [12542.640599] cc70 e1a00004 e5151004 ebffff9d e1a00004 e5941044 ebffffcb e1a00004 e594102c [12542.647594] cc90 ebffffa3 e1a00004 ebfffefa e3a03001 e5846054 e3a00000 e5843040 e8bd8070 [12542.654588] ccb0 e7f001f2 e92d40f8 e2807058 e1a05000 e5900058 e1570000 08bd80f8 e3036b38 [12542.661586] ccd0 e34c60a9 e240400c eb0f3bda e5960000 e1a01004 eb02c8f3 e5950058 e1500007 [12542.668580] ccf0 1afffff7 e8bd80f8 e92d4010 e1a04000 e5901054 e3510000 0a000005 e3033b38 [12542.675575] cd10 e34c30a9 e5930000 eb02c8e6 e3a03000 e5843054 e1a00004 e8bd4010 eaffffe0 [12542.683785] [12542.683790] LR: 0xc002d330: [12542.684245] d330 e1a00006 e1a07002 eb1b9f2c e1a08000 e3540008 979ff104 ea000043 c002d39c [12542.691239] d350 c002d3d0 c002d3dc c002d3ec c002d404 c002d41c c002d434 c002d444 c002d370 [12542.698236] d370 e3570000 0a000049 e1a00005 e5971000 ebfffd60 e1a00006 e1a01008 eb1b9daf [12542.705231] d390 e3a04000 e1a00004 e8bd81f0 e5953040 e3530000 1a000037 e1a00005 ebfffe20 [12542.712226] d3b0 e1a01008 e1a04000 e1a00006 eb1b9da3 e3540000 1a000028 e1a00004 e8bd81f0 [12542.719222] d3d0 e1a00005 ebfffe55 eaffffe9 e1a00005 ebfffde4 e5870000 eaffffe5 e3570000 [12542.726217] d3f0 0a00002e e1a00005 e5971000 ebfffd51 eaffffdf e3570000 0a000027 e1a00005 [12542.733212] d410 e1a01007 ebfffe74 eaffffd9 e3570000 0a000020 e1a00005 e1a01007 ebfffe7e [12542.741422] [12542.741427] SP: 0xec5e7dd0: [12542.741882] 7dd0 ec5e7f10 ec5e7e58 eef701c0 ec5e7e08 00000000 00000001 00000001 ebdf9000 [12542.748875] 7df0 c002ccb4 60010093 c000e894 00000000 e7100000 c000e5ec c0a93b3c 00000000 [12542.755869] 7e10 00000004 c0a93b94 c0a93b3c c0a93b94 c0a93b88 00000000 80010093 00000000 [12542.762862] 7e30 00000000 00000004 00000001 ec5e7e50 c002d3b0 c002ccb0 60010093 ffffffff [12542.769855] 7e50 00000000 c0a93b3c c0a93b88 c002d3b0 ec69a4c0 00000010 00000004 ee8d5800 [12542.776849] 7e70 ee9fc6b0 c05d869c c05d8620 eea2c200 eea08800 c05d31d4 c05d3170 c0a72144 [12542.783844] 7e90 eea2c200 00000000 eea2c2d0 c05c1fd8 00000000 eea2c200 0000000b 00000000 [12542.790837] 7eb0 eea2c2d0 c05c387c 00000000 00000001 00000018 00000000 00000000 00000000 [12542.799045] [12542.799049] R0: 0xc0a93abc: [12542.799505] 3abc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.806496] 3adc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.813490] 3afc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.820481] 3b1c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ef0b0f80 [12542.827473] 3b3c 00000001 00000000 49445053 756f2046 00000074 00000000 00000000 00000000 [12542.834466] 3b5c 00000000 00000000 f1c02100 02a28296 00000000 00000000 c05d84fc c0a73ae0 [12542.841458] 3b7c 00000000 00000002 00000000 00000001 00000000 00000000 c0a93b94 c0a93b94 [12542.848451] 3b9c 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 [12542.856657] [12542.856662] R3: 0xc0a93b14: [12542.857116] 3b14 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.864108] 3b34 00000000 ef0b0f80 00000001 00000000 49445053 756f2046 00000074 00000000 [12542.871101] 3b54 00000000 00000000 00000000 00000000 f1c02100 02a28296 00000000 00000000 [12542.878092] 3b74 c05d84fc c0a73ae0 00000000 00000002 00000000 00000001 00000000 00000000 [12542.885084] 3b94 c0a93b94 c0a93b94 00000000 00000001 00000000 00000000 00000000 00000000 [12542.892076] 3bb4 00000000 00000000 00000000 00000000 f1c02120 00000000 00000000 00000000 [12542.899067] 3bd4 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.906058] 3bf4 00000000 00000000 00000000 00000002 00000000 00000000 00000000 00000000 [12542.914264] [12542.914269] R4: 0xc0a93abc: [12542.914724] 3abc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.921716] 3adc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.928706] 3afc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.935698] 3b1c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 ef0b0f80 [12542.942689] 3b3c 00000001 00000000 49445053 756f2046 00000074 00000000 00000000 00000000 [12542.949681] 3b5c 00000000 00000000 f1c02100 02a28296 00000000 00000000 c05d84fc c0a73ae0 [12542.956674] 3b7c 00000000 00000002 00000000 00000001 00000000 00000000 c0a93b94 c0a93b94 [12542.963666] 3b9c 00000000 00000001 00000000 00000000 00000000 00000000 00000000 00000000 [12542.971872] [12542.971877] R5: 0xc0a93b14: [12542.972332] 3b14 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12542.979323] 3b34 00000000 ef0b0f80 00000001 00000000 49445053 756f2046 00000074 00000000 [12542.986315] 3b54 00000000 00000000 00000000 00000000 f1c02100 02a28296 00000000 00000000 [12542.993307] 3b74 c05d84fc c0a73ae0 00000000 00000002 00000000 00000001 00000000 00000000 [12543.000299] 3b94 c0a93b94 c0a93b94 00000000 00000001 00000000 00000000 00000000 00000000 [12543.007291] 3bb4 00000000 00000000 00000000 00000000 f1c02120 00000000 00000000 00000000 [12543.014282] 3bd4 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12543.021275] 3bf4 00000000 00000000 00000000 00000002 00000000 00000000 00000000 00000000 [12543.029481] [12543.029485] R6: 0xc0a93b08: [12543.029941] 3b08 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12543.036932] 3b28 00000000 00000000 00000000 00000000 ef0b0f80 00000001 00000000 49445053 [12543.043924] 3b48 756f2046 00000074 00000000 00000000 00000000 00000000 00000000 f1c02100 [12543.050916] 3b68 02a28296 00000000 00000000 c05d84fc c0a73ae0 00000000 00000002 00000000 [12543.057908] 3b88 00000001 00000000 00000000 c0a93b94 c0a93b94 00000000 00000001 00000000 [12543.064900] 3ba8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 f1c02120 [12543.071891] 3bc8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [12543.078882] 3be8 00000000 00000000 00000000 00000000 00000000 00000000 00000002 00000000 [12543.090131] Process mpv (pid: 4346, stack limit = 0xec5e62f0) [12543.093453] Stack: (0xec5e7e50 to 0xec5e8000) [12543.100594] 7e40: 00000000 c0a93b3c c0a93b88 c002d3b0 [12543.107741] 7e60: ec69a4c0 00000010 00000004 ee8d5800 ee9fc6b0 c05d869c c05d8620 eea2c200 [12543.114889] 7e80: eea08800 c05d31d4 c05d3170 c0a72144 eea2c200 00000000 eea2c2d0 c05c1fd8 [12543.122035] 7ea0: 00000000 eea2c200 0000000b 00000000 eea2c2d0 c05c387c 00000000 00000001 [12543.129182] 7ec0: 00000018 00000000 00000000 00000000 00000008 ebcf0248 00000008 00000000 [12543.136328] 7ee0: 0000000b eea2c200 ec3b3240 ee9fc6b0 00000000 00000000 00000004 c05c3d48 [12543.143475] 7f00: 00000001 ec5e7f00 c0b17b84 ec5e7f10 00e52860 ec3b3240 0000000b 00000000 [12543.150622] 7f20: ec3b3240 ee9fc6b0 00000000 c00f9b9c 00000001 becdf178 00000008 becdee8c [12543.157770] 7f40: 00000000 eef701c0 becdee8c 00000000 00000129 c000eb04 ec5e6000 00000000 [12543.164917] 7f60: 00e37580 c05dd4f8 40044145 0000000b 00000000 ec3b3240 c000eb04 ec5e6000 [12543.172064] 7f80: 00000000 c00f9d7c 00000001 00000000 0000004c 00e703a0 00e701f8 00000002 [12543.179211] 7fa0: 00000036 c000e980 00e703a0 00e701f8 0000000b 40044145 00000000 00e70628 [12543.186358] 7fc0: 00e703a0 00e701f8 00000002 00000036 becdf0e8 000b4b20 becdf1c0 00000004 [12543.193505] 7fe0: b616c0f8 becdf00c b6110c81 b5ccd2b6 40010030 0000000b 00000000 00000000 [12543.200330] from [12543.207671] from [12543.215520] from [12543.223718] from [12543.232610] from [12543.241853] from [12543.250313] from [12543.257387] from [12543.264542] from [12543.269612] Code: e5846054 e3a00000 e5843040 e8bd8070 (e7f001f2) [12543.282500] ---[ end trace 756f9634c2b7be4d ]--- [12543.286765] note: mpv[4346] exited with preempt_count 4 [12543.291962] BUG: scheduling while atomic: mpv/4346/0x40000005 [12543.293912] Modules linked in: cpufreq_userspace bnep rfcomm ir_lirc_codec ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder lirc_send_pwm(O) pwm_sunxi ir_rc5_decoder lirc_dev ir_nec_decoder sunxi_lirc_new rc_core hidp hci_uart bluetooth [12543.323314] from [](schedule+0x744/0x7d0) [12543.330732] from [12543.338235] from [12543.346057] from [12543.353616] from [12543.360518] from [12543.366975] from [12543.373313] from [12543.380049] from [12543.386369] from [12543.393214] from [12543.400959] from [12543.404790] Exception stack(0xec5e7e08 to 0xec5e7e50) [12543.411720] 7e00: c0a93b3c 00000000 00000004 c0a93b94 c0a93b3c c0a93b94 [12543.418641] 7e20: c0a93b88 00000000 80010093 00000000 00000000 00000004 00000001 ec5e7e50 [12543.422462] 7e40: c002d3b0 c002ccb0 60010093 ffffffff [12543.429835] from [12543.436679] from [12543.444079] from [12543.451961] from [12543.460188] from [12543.469149] from [12543.478423] from [12543.486938] from [12543.494075] from [12543.501262] from [12543.503420] i2c-0, xfer timeout [12543.507463] axp_mfd 0-0034: failed reading from 0xbc [12543.531390] [DISP] layer allocated at close: 0,102 [12543.536261] BUG: scheduling while atomic: mpv/4346/0x40000005 [12543.538217] Modules linked in: cpufreq_userspace bnep rfcomm ir_lirc_codec ir_mce_kbd_decoder ir_sanyo_decoder ir_sony_decoder ir_jvc_decoder ir_rc6_decoder lirc_send_pwm(O) pwm_sunxi ir_rc5_decoder lirc_dev ir_nec_decoder sunxi_lirc_new rc_core hidp hci_uart bluetooth [12543.567804] from [12543.575410] from [12543.583003] from [12543.599113] from [12543.606499] from [12543.612886] from [12543.619805] from [12543.627596] from [12543.631467] Exception stack(0xec5e7e08 to 0xec5e7e50) [12543.638509] 7e00: c0a93b3c 00000000 00000004 c0a93b94 c0a93b3c c0a93b94 [12543.645529] 7e20: c0a93b88 00000000 80010093 00000000 00000000 00000004 00000001 ec5e7e50 [12543.649336] 7e40: c002d3b0 c002ccb0 60010093 ffffffff [12543.656713] from [12543.663595] from [12543.670968] from [12543.678856] from [12543.687139] from [12543.696078] from [12543.705375] from [12543.713879] from [12543.720990] from [12543.728205] from

igorpecovnik commented 8 years ago

It's possible that you need to recompile video drivers if you changed kernel. https://github.com/igorpecovnik/lib/blob/master/desktop.sh#L78

I never experienced crash while playing video with mpv. But my usage was only few test runs to check if building was done properly.

damien7851 commented 8 years ago

Hello,

This bug has been present and before I recompile kernel(the 3.4.108 I think). I will nevertheless try to recompile the driver of any way it will be just as beneficial.

After I will try to apply it: http://forum.kodi.tv/showthread.php?tid=254202. I have to patch the kernel and add cma. And I intend to do the test starting from a headless xenial if possible otherwise a jessie.

But the main thing for me is to have a reliable solution playback HD video with sound in 5.1

igorpecovnik commented 8 years ago

This is not my field, don't know much but I think you will need some luck to make this work. Check forum http://forum.armbian.com/ ... there has been some similar attempts.

damien7851 commented 8 years ago

Yes it is on, but nothing ventured, nothing gained! Thanks for your help.

damien7851 commented 8 years ago

I have tested video playback with last xenial armbian. Pause is ok. But it is not danand kernel...