airspy/airspyone_firmware

[Ubuntu ] -- Linux kernel 4.10.0-30-generic -- Airspy module crash !

souldreamfr opened this issue · 1 comments

Hello,

Seems something is broken on last Ubuntu :

Linux 4.10.0-30-generic #34-Ubuntu SMP Mon Jul 31 19:38:17 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Once device is plugged i have a module crash over Airspy.

I do a complete delete of media / staging/media & recompiled all modules, but after a reboot , i have the same error / crash.

I use the kernel installed by default on last ubuntu , but i installed media driver ( DVB ) from luis to get TBS card opensource working.


[ 2.422405] WARNING: You are using an experimental version of the media stack.
As the driver is backported to an older kernel, it doesn't offer
enough quality for its usage in production.
Use it with care.
Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
7c2f212f4a7f6d898190e36a7787184c73dddfad add to visit 24cxx on tbs6301

[ 2.426632] SAA716x Budget 0000:07:00.0: enabling device (0000 -> 0002)
[ 2.429281] airspy 1-1:1.0: Board ID: 00
[ 2.429282] airspy 1-1:1.0: Firmware version: AirSpy NOS v1.0.0-rc10-0-g946184a 2016-09-19
[ 2.429292] general protection fault: 0000 [#1] SMP
[ 2.429300] Modules linked in: airspy(OE+) snd_seq input_leds snd_pcm saa716x_tbs_dvb(OE+) snd_seq_device cx24117(OE) videobuf2_vmalloc(OE) saa716x_core(OE) videobuf2_memops(OE) joydev tas2101(OE) videobuf2_v4l2(OE) snd_timer videobuf2_core(OE) dvb_core(OE) aesni_intel(+) i2c_mux videodev(OE) aes_x86_64 media(OE) snd crypto_simd glue_helper cryptd soundcore serio_raw mei_me mei shpchp hci_uart btbcm btqca btintel bluetooth intel_lpss_acpi intel_lpss acpi_als mac_hid kfifo_buf acpi_pad industrialio parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid uas usb_storage nouveau mxm_wmi i2c_algo_bit ttm e1000e drm_kms_helper psmouse syscopyarea ptp sysfillrect pps_core sysimgblt fb_sys_fops ahci drm libahci wmi i2c_hid video pinctrl_sunrisepoint hid pinctrl_intel fjes
[ 2.429330] CPU: 2 PID: 384 Comm: systemd-udevd Tainted: G OE 4.10.0-30-generic #34-Ubuntu
[ 2.429332] Hardware name: System manufacturer System Product Name/STRIX Z270F GAMING, BIOS 0906 03/22/2017
[ 2.429336] task: ffff9997c3ec5c00 task.stack: ffffb406c25d4000
[ 2.429342] RIP: 0010:find_ref+0x49/0xc0 [videodev]
[ 2.429344] RSP: 0000:ffffb406c25d78b0 EFLAGS: 00010202
[ 2.429346] RAX: 00010102464c457f RBX: ffff9997c25c79f8 RCX: ffffb406c1a7d000
[ 2.429349] RDX: 0000000000000000 RSI: 0000000000a20001 RDI: ffff9997c25c79f8
[ 2.429351] RBP: ffffb406c25d78b0 R08: 0000000000000001 R09: 0000000000000002
[ 2.429354] R10: 0000000000a20929 R11: ffffffffc0893f70 R12: 0000000000a20001
[ 2.429356] R13: 0000000000a20001 R14: ffffb406c1a85000 R15: ffffb406c1a85000
[ 2.429359] FS: 00007f1cb3e728c0(0000) GS:ffff9997dec80000(0000) knlGS:0000000000000000
[ 2.429362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.429365] CR2: 000055ecbf23b078 CR3: 000000044a3ef000 CR4: 00000000003406e0
[ 2.429367] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2.429370] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2.429372] Call Trace:
[ 2.429377] find_ref_lock+0x2b/0x50 [videodev]
[ 2.429381] handler_new_ref+0x4c/0x1c0 [videodev]
[ 2.429385] v4l2_ctrl_new+0x334/0x5c0 [videodev]
[ 2.429389] v4l2_ctrl_new_std+0x11c/0x130 [videodev]
[ 2.429392] airspy_probe+0x2b7/0x4ae [airspy]
[ 2.429396] usb_probe_interface+0x159/0x2d0
[ 2.429399] driver_probe_device+0x2bb/0x460
[ 2.429402] __driver_attach+0xdf/0xf0
[ 2.429405] ? driver_probe_device+0x460/0x460
[ 2.429407] bus_for_each_dev+0x6c/0xc0
[ 2.429410] driver_attach+0x1e/0x20
[ 2.429412] bus_add_driver+0x170/0x270
[ 2.429415] driver_register+0x60/0xe0
[ 2.429417] usb_register_driver+0x81/0x140
[ 2.429419] ? 0xffffffffc0b12000
[ 2.429422] airspy_driver_init+0x1e/0x1000 [airspy]
[ 2.429425] do_one_initcall+0x52/0x1b0
[ 2.429428] ? kmem_cache_alloc_trace+0x142/0x190
[ 2.429431] do_init_module+0x5f/0x200
[ 2.429434] load_module+0x190b/0x1c70
[ 2.429436] ? __symbol_put+0x60/0x60
[ 2.429439] ? ima_post_read_file+0x7e/0xa0
[ 2.429441] ? security_kernel_post_read_file+0x6b/0x80
[ 2.429444] SYSC_finit_module+0xdf/0x110
[ 2.429447] SyS_finit_module+0xe/0x10
[ 2.429449] do_syscall_64+0x5b/0xc0
[ 2.429452] entry_SYSCALL64_slow_path+0x25/0x25
[ 2.429454] RIP: 0033:0x7f1cb2cfa9f9
[ 2.429456] RSP: 002b:00007ffd75260048 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 2.429459] RAX: ffffffffffffffda RBX: 000056090be5f210 RCX: 00007f1cb2cfa9f9
[ 2.429462] RDX: 0000000000000000 RSI: 00007f1cb361de23 RDI: 0000000000000014
[ 2.429470] RBP: 00007f1cb361de23 R08: 0000000000000000 R09: 0000000000000000
[ 2.429472] R10: 0000000000000014 R11: 0000000000000246 R12: 0000000000000000
[ 2.429475] R13: 000056090be981c0 R14: 0000000000020000 R15: 000056090b09ae30
[ 2.429477] Code: 74 09 48 8b 50 18 3b 72 48 74 3f 48 8b 4f 50 48 85 c9 74 4b 44 0f b7 47 68 31 d2 89 f0 41 f7 f0 89 d2 48 8b 04 d1 48 85 c0 74 1f <48> 8b 50 18 39 72 48 74 12 48 8b 40 10 48 85 c0 74 0d 48 8b 50
[ 2.429496] RIP: find_ref+0x49/0xc0 [videodev] RSP: ffffb406c25d78b0
[ 2.429499] ---[ end trace 68b3472e90bcf323 ]---
[ 2.436985] snd_hda_intel 0000:00:1f.3: enabling device (0000 -> 0002)
[ 2.437252] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 2.437255] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 2.447852] snd_hda_codec_generic hdaudioC0D0: autoconfig for Generic: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[ 2.447855] snd_hda_codec_generic hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 2.447857] snd_hda_codec_generic hdaudioC0D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 2.447858] snd_hda_codec_generic hdaudioC0D0: mono: mono_out=0x0
[ 2.447859] snd_hda_codec_generic hdaudioC0D0: dig-out=0x1e/0x0
[ 2.447860] snd_hda_codec_generic hdaudioC0D0: inputs:
[ 2.447861] snd_hda_codec_generic hdaudioC0D0: Front Mic=0x19
[ 2.447862] snd_hda_codec_generic hdaudioC0D0: Rear Mic=0x18
[ 2.447863] snd_hda_codec_generic hdaudioC0D0: Line=0x1a

Any advice ?

I recompiled new kernel vanilla ( last up to date ).

Linux 4.13.0-rc4 #2 SMP Wed Aug 9 16:49:23 CEST 2017 x86_64 x86_64 x86_64 GNU/Linux

[ 2.836449] Linux video capture interface: v2.00
[ 2.845124] airspy 1-1:1.0: Board ID: 00
[ 2.845125] airspy 1-1:1.0: Firmware version: AirSpy NOS v1.0.0-rc10-0-g946184a 2016-09-19
[ 2.845552] airspy 1-1:1.0: Registered as swradio0
[ 2.845552] airspy 1-1:1.0: SDR API is still slightly experimental and functionality changes may follow
[ 2.845562] usbcore: registered new interface driver airspy

So seems the integration of media driver ( DVB ) is the source of the crash !

You can close the ticket :-)