tbsdtv / linux_media

TBS linux open source drivers
https://github.com/tbsdtv/linux_media/wiki
Other
170 stars 79 forks source link

TBS6205 driver can not load in DS918+ 6.2.2 #194

Open momokind opened 4 years ago

momokind commented 4 years ago

Hi, After compile the latest source for DS918+ 6.2.2, kernel is 4.4.59+,when upload the driver to DS918+,use insmod tbsecp3.ko the system kernel panic,the log is here.

[ 119.479829] mc: Linux media interface: v0.10 [ 124.443737] videodev: Linux video capture interface: v2.00 [ 124.443740] 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): 2af1d0601ff01a26a58052573fd6c05533369e4a media: dvb-frontends/si2168: Extended signal statistic extended. [ 143.915029] 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): 2af1d0601ff01a26a58052573fd6c05533369e4a media: dvb-frontends/si2168: Extended signal statistic extended. [ 213.324037] TBSECP3 driver 0000:01:00.0: enabling device (0000 -> 0002) [ 213.324105] BUG: unable to handle kernel paging request at 00000000ffffffff [ 213.331609] IP: [] tbsecp3_probe+0xc9/0x470 [tbsecp3] [ 213.338723] PGD ce7a3067 PUD 0 [ 213.342121] Oops: 0002 [#1] PREEMPT SMP [ 213.346378] Modules linked in: tbsecp3(OE+) si2157(OE) si2168(OE) tas2101(OE) regmap_i2c dvb_core(OE) videobuf2_vmalloc(OE) videobuf2_memops(OE) videobuf2_common(OE) videodev(OE) mc(OE) cifs udf isofs loop hid_generic usbhid hid usblp uhci_hcd ehci_pci ehci_hcd tcm_loop(O) iscsi_target_mod(O) target_core_ep(O) target_core_multi_file(O) target_core_file(O) target_core_iblock(O) target_core_mod(O) syno_extent_pool(PO) rodsp_ep(O) apollolake_synobios(PO) aqc111(OE) et131x(E) vxge(E) s2io(E) r8152(OE) via_velocity(E) via_rhine(E) sc92031(E) rtl8150(E) plusb(E) pegasus(E) mvmdio(E) mcs7830(E) enic(E) e100(E) dl2k(E) cxgb4(E) cxgb3(E) cxgb(E) cx82310_eth(E) bna(E) atl2(E) asix(E) evdev(E) ax88179_178a(E) tg3(E) r8101(OE) bnx2(E) vmxnet3(E) pcnet32(E) e1000(E) sfc(E) netxen_nic(E) qlge(E) qlcnic(E) qla3xxx(E) [ 213.423594] sky2(E) skge(E) jme(E) uio(E) alx(E) atl1c(E) atl1e(E) atl1(E) r8169(OE) usbnet(E) libphy(E) mii(E) exfat(O) btrfs i915 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops cfbfillrect cfbcopyarea cfbimgblt drm fb fbdev intel_agp intel_gtt agpgart video backlight button(E) synoacl_vfs(PO) hfsplus md4 hmac bnx2x(E) mlx5_core(E) mlx4_en(E) mlx4_core(E) mlx_compat(OE) atlantic(OE) r8168(OE) tn40xx(OE) i40e(OE) ixgbe(OE) be2net(E) igb(OE) i2c_algo_bit e1000e(OE) vxlan ip6_udp_tunnel udp_tunnel fuse vfat fat crc32c_intel aesni_intel glue_helper lrw gf128mul ablk_helper arc4 cryptd ecryptfs sha256_generic ecb aes_x86_64 authenc des_generic ansi_cprng cts md5 cbc cpufreq_powersave cpufreq_performance acpi_cpufreq processor cpufreq_stats dm_snapshot dm_bufio crc_itu_t(E) crc_ccitt(E) [ 213.499003] quota_v2 quota_tree psnap p8022 llc sit tunnel4 ip_tunnel ipv6 zram sg etxhci_hcd sx8(E) aic94xx(E) mvumi(E) mvsas(E) isci(E) hptiop(E) hpsa(E) gdth(E) arcmsr(E) aacraid(E) 3w_sas(E) 3w_9xxx(E) rtc_cmos(E) mdio(E) mpt3sas(E) megaraid_sas(E) megaraid(E) mptctl(E) mptspi(E) mptscsih(E) mptbase(E) megaraid_mbox(E) megaraid_mm(E) vmw_pvscsi(E) BusLogic(E) raid_class(E) libsas(E) scsi_transport_sas(E) scsi_transport_spi(E) usb_storage xhci_pci xhci_hcd ohci_hcd(E) usbcore usb_common fddfffdfuuu(OE) [last unloaded: apollolake_synobios] [ 213.550006] CPU: 0 PID: 14666 Comm: insmod Tainted: P OE 4.4.59+ #24922 [ 213.558211] Hardware name: LENOVO IBM x3100M5/IBM x3100M5, BIOS FBKTB4AUS 07/01/2015 [ 213.566471] task: ffff880210296200 ti: ffff880036de8000 task.ti: ffff880036de8000 [ 213.574478] RIP: 0010:[] [] tbsecp3_probe+0xc9/0x470 [tbsecp3] [ 213.584205] RSP: 0018:ffff880036debb88 EFLAGS: 00010202 [ 213.589899] RAX: 00000000ffffffff RBX: ffff880215041090 RCX: 00000000ffffffff [ 213.597591] RDX: 00000000ffffffff RSI: 00000000ffffffff RDI: ffff880215041098 [ 213.605220] RBP: ffff880036debbb0 R08: 0000000000000002 R09: ffff880036debaec [ 213.612864] R10: 0000000000000000 R11: 0000000000000000 R12: ffff880215041000 [ 213.620509] R13: ffff880215041098 R14: ffffffffa14b4d40 R15: ffffffffa14b5cc0 [ 213.628171] FS: 00007fbb9ea32700(0000) GS:ffff88021ea00000(0000) knlGS:0000000000000000 [ 213.636860] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 213.643040] CR2: 00000000ffffffff CR3: 0000000037278000 CR4: 00000000001606f0 [ 213.650666] Stack: [ 213.652792] ffff880215041090 ffffffffa14b5d28 ffff880215041000 ffffffffa14b4d40 [ 213.660755] ffffffffa14b5cc0 ffff880036debbe8 ffffffff812ffb8c ffff880215041090 [ 213.668770] 0000000000000000 ffffffffa14b5d28 0000000000000027 ffff880213ea6a40 [ 213.676815] Call Trace: [ 213.679443] [] pci_device_probe+0x8c/0x100 [ 213.685624] [] driver_probe_device+0x1f1/0x310 [ 213.692147] [] driver_attach+0x82/0x90 [ 213.698057] [] ? driver_probe_device+0x310/0x310 [ 213.704772] [] bus_for_each_dev+0x61/0xa0 [ 213.710797] [] driver_attach+0x19/0x20 [ 213.716616] [] bus_add_driver+0x1b3/0x230 [ 213.722724] [] ? 0xffffffffa14b9000 [ 213.728201] [] driver_register+0x5b/0xe0 [ 213.734142] [] pci_register_driver+0x47/0x50 [ 213.740630] [] tbsecp3_driver_init+0x1e/0x20 [tbsecp3] [ 213.747908] [] do_one_initcall+0x86/0x1b0 [ 213.754033] [] ? __vunmap+0x8d/0xf0 [ 213.759547] [] do_init_module+0x56/0x1be [ 213.765490] [] load_module+0x1dfd/0x2080 [ 213.771472] [] ? __symbol_put+0x50/0x50 [ 213.777322] [] SYSC_finit_module+0x79/0x80 [ 213.783442] [] SyS_finit_module+0x9/0x10 [ 213.789422] [] entry_SYSCALL_64_fastpath+0x1e/0x92 [ 213.796359] Code: 00 00 0f 84 94 03 00 00 be ff ff ff ff 49 8d 7d 00 e8 2c 8b b5 df 85 c0 0f 84 7e 03 00 00 49 8b 84 24 88 02 00 00 b9 ff ff ff ff <48> 89 08 49 8d 3c 24 e8 4b d5 e4 df be c0 80 40 02 48 8b 3d 1f [ 213.817852] RIP [] tbsecp3_probe+0xc9/0x470 [tbsecp3] [ 213.825090] RSP [ 213.828854] CR2: 00000000ffffffff [ 213.832533] ---[ end trace 88f7ef8c6f399e5f ]---