bas-t / ffdecsawrapper

FFdecsa empowered softcam for MythTV
GNU General Public License v3.0
17 stars 9 forks source link

Building dvbloopback module against v4l media_tree can result in multiple symbol issues #38

Closed bas-t closed 9 years ago

bas-t commented 9 years ago

As the title says. Have to dig into this when time permts.

bas-t commented 9 years ago

Also, building against current media_tree can crash the kernel like this:

[ 215.431027] DVB: registering new adapter (DVB-LOOPBACK) [ 236.425487] INFO: rcu_sched self-detected stall on CPU { 0} (t=5250 jiffies g=4913 c=4912 q=788) [ 236.425531] sending NMI to all CPUs: [ 236.425535] NMI backtrace for cpu 0 [ 236.425537] CPU: 0 PID: 3220 Comm: modprobe Tainted: G O 3.16.0-4-amd64 #1 Debian 3.16.7-ckt7-1 [ 236.425538] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./H77-D3H, BIOS F15 11/14/2013 [ 236.425539] task: ffff8800d4928150 ti: ffff8800da670000 task.ti: ffff8800da670000 [ 236.425540] RIP: 0010:[] [] __const_udelay+0x9/0x30 [ 236.425545] RSP: 0018:ffff88011f203e50 EFLAGS: 00000046 [ 236.425546] RAX: 0000000000000000 RBX: 0000000000002710 RCX: 0000000000000008 [ 236.425547] RDX: 0000000000bcc840 RSI: 0000000000000200 RDI: 0000000000418958 [ 236.425547] RBP: ffffffff81853640 R08: 000000000000000a R09: 0000000000000000 [ 236.425548] R10: 000000000000038e R11: ffff88011f203b96 R12: 0000000000000000 [ 236.425549] R13: ffffffff818e1cc0 R14: 0000000000000314 R15: ffffffff81853640 [ 236.425550] FS: 00007fd1fe383700(0000) GS:ffff88011f200000(0000) knlGS:0000000000000000 [ 236.425551] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 236.425552] CR2: 00007fd1fde922e0 CR3: 00000000d4f55000 CR4: 00000000001407f0 [ 236.425553] Stack: [ 236.425554] ffffffff8104699a ffff88011f20d660 ffffffff810c51aa ffffffff8181f7c0 [ 236.425555] ffffffff810c6cf5 0000000000000086 ffff8800d4928150 0000000000000000 [ 236.425557] 0000000000000000 ffff88011f20d1a0 ffff88011f203f68 ffffffff810cfb90 [ 236.425558] Call Trace: [ 236.425559]

[ 236.425563] [] ? arch_trigger_all_cpu_backtrace+0x10a/0x140 [ 236.425566] [] ? rcu_check_callbacks+0x3ea/0x630 [ 236.425568] [] ? timekeeping_update.constprop.9+0x35/0x70 [ 236.425571] [] ? tick_sched_handle.isra.16+0x60/0x60 [ 236.425574] [] ? update_process_times+0x40/0x70 [ 236.425576] [] ? tick_sched_handle.isra.16+0x20/0x60 [ 236.425577] [] ? tick_sched_timer+0x3c/0x60 [ 236.425579] [] ? __run_hrtimer+0x67/0x1c0 [ 236.425581] [] ? hrtimer_interrupt+0xe9/0x220 [ 236.425583] [] ? smp_apic_timer_interrupt+0x3b/0x60 [ 236.425585] [] ? apic_timer_interrupt+0x6d/0x80 [ 236.425586]

[ 236.425593] [] ? _raw_spin_lock+0x25/0x30 [ 236.425599] [] ? media_device_register_entity+0x24/0xa0 [media] [ 236.425602] [] ? dvb_register_device+0x363/0x620 [dvb_core] [ 236.425606] [] ? create_lb_dev+0x43/0x25d [dvbloopback] [ 236.425612] [] ? 0xffffffffa00f9fff [ 236.425615] [] ? dvblb_init+0x189/0x1000 [dvbloopback] [ 236.425617] [] ? do_one_initcall+0xcc/0x200 [ 236.425619] [] ? load_module+0x20da/0x26b0 [ 236.425621] [] ? store_uevent+0x40/0x40 [ 236.425623] [] ? SyS_finit_module+0x7d/0xa0 [ 236.425625] [] ? system_call_fast_compare_end+0x10/0x15 [ 236.425626] Code: 00 00 48 ff c8 75 fb 48 ff c8 c3 0f 1f 80 00 00 00 00 0f 1f 44 00 00 48 8b 05 9c 48 5e 00 ff e0 66 90 65 48 8b 14 25 a0 26 01 00 <48> 8d 0c 12 48 c1 e2 06 48 8d 04 bd 00 00 00 00 48 29 ca f7 e2 [ 236.425642] NMI backtrace for cpu 1 [ 236.425645] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G O 3.16.0-4-amd64 #1 Debian 3.16.7-ckt7-1 [ 236.425646] Hardware name: Gigabyte Technology Co., Ltd. To be filled by O.E.M./H77-D3H, BIOS F15 11/14/2013 [ 236.425647] task: ffff88011a7aea20 ti: ffff88011a7b8000 task.ti: ffff88011a7b8000 [ 236.425648] RIP: 0010:[] [] intel_idle+0xc2/0x140 [ 236.425652] RSP: 0018:ffff88011a7bbe78 EFLAGS: 00000046 [ 236.425653] RAX: 0000000000000020 RBX: 0000000000000008 RCX: 0000000000000001 [ 236.425653] RDX: 0000000000000000 RSI: ffff88011a7bbfd8 RDI: 0000000000000001 [ 236.425654] RBP: 0000000000000004 R08: 0000000000000f41 R09: 0000000000000018 [ 236.425655] R10: 0000000000002c7f R11: 0000000000000006 R12: 0000000000000020 [ 236.425656] R13: 0000000000000003 R14: 0000000000000004 R15: ffffffff8189e5d8 [ 236.425657] FS: 0000000000000000(0000) GS:ffff88011f300000(0000) knlGS:0000000000000000 [ 236.425658] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 236.425659] CR2: 00007f3755dda0b8 CR3: 0000000001813000 CR4: 00000000001407e0 [ 236.425660] Stack: [ 236.425660] 000000018101b4c5 ffff88011f319100 ffff88011a7bbed0 ffffffff8189e460 [ 236.425662] 000000370fc8bc27 ffffffff813dcdb0 ffffffff818e1c80 ffff88011a7b8000 [ 236.425663] ffffffff8189e460 0000000000000004 0000000000000000 ffff88011f319100 [ 236.425665] Call Trace: [ 236.425668] [] ? cpuidle_enter_state+0x40/0xc0 [ 236.425671] [] ? cpu_startup_entry+0x2f8/0x400 [ 236.425673] [] ? start_secondary+0x20f/0x2d0 [ 236.425674] Code: 31 d2 65 48 8b 34 25 88 b8 00 00 48 89 d1 48 8d 86 38 c0 ff ff 0f 01 c8 48 8b 86 38 c0 ff ff a8 08 75 08 b1 01 4c 89 e0 0f 01 c9 <65> 48 8b 0c 25 88 b8 00 00 f0 80 a1 3a c0 ff ff df 0f ae f0 48

Message from syslogd@master at Mar 8 22:38:14 ... kernel:[ 264.007269] BUG: soft lockup - CPU#0 stuck for 22s! [modprobe:3220]

bas-t commented 9 years ago

Solution: Compile with "# CONFIG_MEDIA_CONTROLLER_DVB is not set"