After compiling the shared transport driver as a module, it works just
fine as-is in the 4.2.x kernels when enabled with modprobe.

However when compiled as module and enabled with modprobe with the
4.3-rc7, it generates a segmentation fault and the dependent drivers
(like BTWILINK) don't function.

This was done an Logic PD Torpedo Torpedo + Wireless which utilizes a
DM3730 processor.

# modprobe st_drv
\[   16.543182] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[   16.551757] pgd = cb0a8000
[   16.554718] [00000000] *pgd=8f70e831, *pte=00000000, *ppte=00000000
[   16.561370] Internal error: Oops: 17 [#1] SMP ARM
[   16.566345] Modules linked in: st_drv(+) arc4 wl12xx wlcore
mac80211 cfg80211 wlcore_sdio
[   16.575073] CPU: 0 PID: 137 Comm: modprobe Not tainted 4.3.0-rc7-dirty #2
[   16.582214] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[   16.588836] task: cb06b180 ti: cb0a6000 task.ti: cb0a6000
[   16.594543] PC is at kim_probe+0x78/0x220 [st_drv]
[   16.599609] LR is at st_core_init+0x90/0x154 [st_drv]
[   16.604949] pc : [<bf1bd2b0>]    lr : [<bf1bceac>]    psr: 600d0013
[   16.604949] sp : cb0a7d68  ip : 00000001  fp : bf1bf008
[   16.617065] r10: 308b3ea8  r9 : 00000001  r8 : 00000000
[   16.622558] r7 : fffffdfb  r6 : bf1beef0  r5 : cf1ea000  r4 : cb2b7f00
[   16.629455] r3 : cb2b7e00  r2 : dead4ead  r1 : bf1be65c  r0 : 00000000
[   16.636322] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   16.643859] Control: 10c5387d  Table: 8b0a8019  DAC: 00000051
[   16.649902] Process modprobe (pid: 137, stack limit = 0xcb0a6218)
[   16.656341] Stack: (0xcb0a7d68 to 0xcb0a8000)
[   16.660949] 7d60:                   cf1ea010 bf1beef0 cf1ea010
cf1ea010 bf1beef0 fffffdfb
[   16.669586] 7d80: 00000005 c03dd7ec c03dd7a8 cf1ea010 c11c2058
bf1beef0 00000000 c03dbdac
[   16.678222] 7da0: cf1ea010 bf1beef0 cf1ea044 c0991f60 00000000
c03dbf3c 00000000 bf1beef0
[   16.686828] 7dc0: c03dbea8 c03da224 cf0caaa4 cf1ece10 bf1beef0
cb2aeec0 00000000 c03db4d8
[   16.695465] 7de0: bf1be65c bf1beef0 c09163a0 bf1beef0 c09163a0
cf74c040 bf1c2000 c03dc890
[   16.704101] 7e00: 00000000 c09163a0 c09163a0 c0009804 cfd42ea4
c011fb68 cb0a6000 c09c3cb4
[   16.712738] 7e20: 0000000f cfbb1000 cfd42ea4 00000000 0000005b
c0091058 cccee540 000000d0
[   16.721374] 7e40: 000000d0 c01607a0 cb0a7f40 c0091058 c0911f9c
600d0013 a00d0013 bf1befc0
[   16.730010] 7e60: bf1befc0 c09c74e8 cccee540 00000001 cf74c180
308b3ea8 bf1bf008 c0119304
[   16.738616] 7e80: c09c74e8 bf1befc0 cb0a7f40 c09c74e8 bf1befc0
c00cb1e0 bf1befcc 00007fff
[   16.747253] 7ea0: 00000000 c00c8c08 cccee540 c119ffe4 c00c8428
bf1befcc bf1bf1dc d1ddd718
[   16.755889] 7ec0: bf1befcc 00000000 00000010 cf6c6000 00000000
c01560b0 ff000000 00000000
[   16.764526] 7ee0: 00000000 bf1bde78 00000002 00000000 00000000
00000000 00000000 00000000
[   16.773162] 7f00: 00000000 00000000 00000000 00000000 00000000
00000000 c00cb9ac 00000000
[   16.781799] 7f20: 0000a41b b6e06423 00000000 000b1750 d1df341b
cb0a6000 00000051 c00cba1c
[   16.790435] 7f40: d1d99000 0005a41b d1ddcf48 d1ddcd41 d1df2b48
0000322c 00003c7c 00000000
[   16.799041] 7f60: 00000000 00000000 00000032 00000033 0000001a
0000001e 00000016 00000000
[   16.807678] 7f80: 00000000 0005a41b 000b1750 000b1710 00000080
c000f8c4 cb0a6000 00000000
[   16.816314] 7fa0: 00000000 c000f720 0005a41b 000b1750 b6dac008
0005a41b 000b1750 000b1a28
[   16.824951] 7fc0: 0005a41b 000b1750 000b1710 00000080 000b1a28
00000000 000b1710 00000000
[   16.833587] 7fe0: bea7db38 bea7db28 0001be18 b6ed22d0 600d0010
b6dac008 8fdf6861 8fdf6c61
[   16.842254] [<bf1bd2b0>] (kim_probe [st_drv]) from [<c03dd7ec>]
(platform_drv_probe+0x44/0xa4)
[   16.851348] [<c03dd7ec>] (platform_drv_probe) from [<c03dbdac>]
(driver_probe_device+0x1f4/0x2f0)
[   16.860717] [<c03dbdac>] (driver_probe_device) from [<c03dbf3c>]
(__driver_attach+0x94/0x98)
[   16.869628] [<c03dbf3c>] (__driver_attach) from [<c03da224>]
(bus_for_each_dev+0x6c/0xa0)
[   16.878265] [<c03da224>] (bus_for_each_dev) from [<c03db4d8>]
(bus_add_driver+0x18c/0x214)
[   16.886993] [<c03db4d8>] (bus_add_driver) from [<c03dc890>]
(driver_register+0x78/0xf8)
[   16.895446] [<c03dc890>] (driver_register) from [<c0009804>]
(do_one_initcall+0x80/0x1dc)
[   16.904083] [<c0009804>] (do_one_initcall) from [<c0119304>]
(do_init_module+0x5c/0x1d0)
[   16.912628] [<c0119304>] (do_init_module) from [<c00cb1e0>]
(load_module+0x1880/0x1fe0)
[   16.921081] [<c00cb1e0>] (load_module) from [<c00cba1c>]
(SyS_init_module+0xdc/0x14c)
[   16.929351] [<c00cba1c>] (SyS_init_module) from [<c000f720>]
(ret_fast_syscall+0x0/0x1c)
[   16.937896] Code: 1a000050 e5943094 e59f1170 e58340ec (e5980000)
[   16.944458] ---[ end trace dda7ebdfcb435ea8 ]---
Segmentation fault
#
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to