hardkernel / linux

Linux kernel source tree
Other
427 stars 408 forks source link

xu4-4.9 mfc patches causes problems #284

Closed ardje closed 7 years ago

ardje commented 7 years ago
Hi guys,
This:
https://github.com/ardje/xu4-gst-quickstart/blob/master/examples/test5.sh
Works on:
https://github.com/hardkernel/linux/tree/e6eb15063500cee87eba1286c9021967881bf1ca
(6 march 2017 xu4 4.9 tree)
On:
https://github.com/hardkernel/linux/tree/5b1a747f2c8d0456093310097fb6805bf07a31a8
(21 march 2017 xu4 4.9 tree)
it starts of with:
Mar 21 13:04:54 odroid kernel: [   37.165153] s5p_mfc_alloc_priv_buf:78: Allocating private buffer of size 23243744 failed
Mar 21 13:04:54 odroid kernel: [   37.171865] s5p_mfc_alloc_codec_buffers_v6:244: Failed to allocate Bank1 memory
Mar 21 13:04:54 odroid kernel: [   37.179143] vidioc_reqbufs:1174: Failed to allocate encoding buffers

By removing the setting from:
https://github.com/hardkernel/linux/commit/c713a3aa55f9bacfbccf9e03f0b3775bb50dc501
and adding an expliciet 64m, I do not get the memory allocation failure, but the pipeline is completely stalled.

Anyway: even with the simple out of memory, it results in:
Mar 21 12:57:11 odroid kernel: [  478.449491] s5p_mfc_alloc_priv_buf:78: Allocating private buffer of size 23243744 failed
Mar 21 12:57:11 odroid kernel: [  478.456129] s5p_mfc_alloc_codec_buffers_v6:244: Failed to allocate Bank1 memory
Mar 21 12:57:11 odroid kernel: [  478.463412] vidioc_reqbufs:1174: Failed to allocate encoding buffers
Mar 21 12:57:24 odroid kernel: [  491.552790] s5p_mfc_handle_error:470: Interrupt Error: 00000032
Mar 21 12:57:24 odroid kernel: [  491.557227] ------------[ cut here ]------------
Mar 21 12:57:24 odroid kernel: [  491.557249] WARNING: CPU: 0 PID: 0 at drivers/media/platform/s5p-mfc/s5p_mfc.c:498 s5p_mfc_irq+0x
Mar 21 12:57:24 odroid kernel: [  491.557254] Modules linked in: fuse binfmt_misc cpufreq_conservative cpufreq_userspace cpufreq_po
Mar 21 12:57:24 odroid kernel: [  491.557320] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.9.13-ckhk2+ #1
Mar 21 12:57:24 odroid kernel: [  491.557324] Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
Mar 21 12:57:24 odroid kernel: [  491.557351] [<c010e70c>] (unwind_backtrace) from [<c010b3b0>] (show_stack+0x10/0x14)
Mar 21 12:57:24 odroid kernel: [  491.557367] [<c010b3b0>] (show_stack) from [<c039bca0>] (dump_stack+0x94/0xa8)
Mar 21 12:57:24 odroid kernel: [  491.557382] [<c039bca0>] (dump_stack) from [<c01203f8>] (__warn+0xe8/0x100)
Mar 21 12:57:24 odroid kernel: [  491.557392] [<c01203f8>] (__warn) from [<c01204c0>] (warn_slowpath_null+0x20/0x28)
Mar 21 12:57:24 odroid kernel: [  491.557402] [<c01204c0>] (warn_slowpath_null) from [<c05d0e78>] (s5p_mfc_irq+0x9d8/0xa94)
Mar 21 12:57:24 odroid kernel: [  491.557418] [<c05d0e78>] (s5p_mfc_irq) from [<c0169c78>] (__handle_irq_event_percpu+0x88/0x118)
Mar 21 12:57:24 odroid kernel: [  491.557428] [<c0169c78>] (__handle_irq_event_percpu) from [<c0169d24>] (handle_irq_event_percpu+0
Mar 21 12:57:24 odroid kernel: [  491.557438] [<c0169d24>] (handle_irq_event_percpu) from [<c0169d98>] (handle_irq_event+0x38/0x5c)
Mar 21 12:57:24 odroid kernel: [  491.557450] [<c0169d98>] (handle_irq_event) from [<c016d0c4>] (handle_fasteoi_irq+0xb8/0x190)
Mar 21 12:57:24 odroid kernel: [  491.557461] [<c016d0c4>] (handle_fasteoi_irq) from [<c0168fdc>] (generic_handle_irq+0x24/0x34)
Mar 21 12:57:24 odroid kernel: [  491.557470] [<c0168fdc>] (generic_handle_irq) from [<c01694d8>] (__handle_domain_irq+0x5c/0xb4)
Mar 21 12:57:24 odroid kernel: [  491.557480] [<c01694d8>] (__handle_domain_irq) from [<c0101418>] (gic_handle_irq+0x54/0x98)
Mar 21 12:57:24 odroid kernel: [  491.557488] [<c0101418>] (gic_handle_irq) from [<c010becc>] (__irq_svc+0x6c/0xa8)
Mar 21 12:57:24 odroid kernel: [  491.557494] Exception stack(0xc0c01f50 to 0xc0c01f98)