TI中文支持网
TI专业的中文技术问题搜集分享网站

移植AP6181 SDIO驱动 kernel BUG at drivers/mmc/host/omap_hsmmc.c:1480!

您好:

硬件平台是3352 (3.8内核)

在加载AP6181驱动时,内核报错如下:请问是什么原因

[ 31.934891] dhd_module_init: in
[ 31.939212] ======== bcm_wlan_set_plat_data ========
[ 31.951697] dhd_wifi_platform_load: Enter
[ 31.956919] dhd_wifi_platform_load_sdio: enter With #ifdef BCMSDIO[ 31.963617] dhd_wifi_platform_load_sdio: dhd_wifi_platdata->num_adapters=1[ 31.970896] Power-up adapter 'DHD generic adapter'
[ 31.975904] sdio_func_reg_notify: Excuse sdio_register_driver(&dummy_sdmmc_driver)[ 31.984560] wifi_platform_set_power = 1
[ 31.988620] ======== PULL WL_REG_ON(53) HIGH! ========
[ 32.295542] wifi_platform_bus_enumerate device present 1
[ 32.301118] ======== Card detection to detect SDIO card! ========
[ 32.323637] bcmsdh_register: register client driver
[ 32.329866] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[ 32.335218] bcmsdh_sdmmc: bcmsdh_sdmmc_probe Enter
[ 32.340255] bus num (host idx)=2, slot num (rca)=1
[ 32.345264] found adapter info 'DHD generic adapter'
[ 32.350680] sdioh_attach: set sd_f2_blocksize 128
[ 32.356284] dhdsdio_probe : no mutex held. set lock
[ 32.399000] ————[ cut here ]————
[ 32.403815] kernel BUG at drivers/mmc/host/omap_hsmmc.c:1480!
[ 32.409801] Internal error: Oops – BUG: 0 [#1] SMP THUMB2
[ 32.415426] Modules linked in: bcmdhd(+)
[ 32.419526] CPU: 0 Not tainted (3.8.13 #84)
[ 32.424269] PC is at omap_hsmmc_request+0x10/0x2dc
[ 32.429266] LR is at __mmc_start_req+0xb5/0xca
[ 32.433902] pc : [<c02bab28>] lr : [<c02adbb3>] psr: 60000033
[ 32.433902] sp : df011908 ip : 00000000 fp : df0119c8
[ 32.445858] r10: 011ff000 r9 : 151ff000 r8 : 00000000
[ 32.451300] r7 : 01fffe00 r6 : 01fffe00 r5 : df011998 r4 : df79a400
[ 32.458097] r3 : 00000001 r2 : 00000000 r1 : df011998 r0 : df79a400
[ 32.464903] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA Thumb Segment user
[ 32.472516] Control: 50c5387d Table: 9f3c4019 DAC: 00000015
[ 32.478506] Process insmod (pid: 654, stack limit = 0xdf010240)
[ 32.484673] Stack: (0xdf011908 to 0xdf012000)
[ 32.489215] 1900: 35020000 35000000 307f0033 00000000 df15e07c df79a740
[ 32.497745] 1920: ffffffff df011a10 00000001 df011940 c02badcf c02badcf df011998 df79a400
[ 32.506272] 1940: 01fffe00 01fffe00 00000000 151ff000 011ff000 c02adbb3 df011998 df79a400
[ 32.514794] 1960: 00000001 c02adbd3 c0ba21e2 df71f800 00000004 c02b3415 00000001 c0042fab
[ 32.523323] 1980: df0119e0 df0119e0 c0ba21e2 00000dd0 00000004 00000000 00000000 df0119c8
[ 32.531840] 19a0: df0119f8 00000000 00000000 00000000 dead4ead ffffffff ffffffff df0119bc
[ 32.540369] 19c0: df0119bc c02ad5c9 00000035 151ff004 00000000 00000000 00000000 00000000
[ 32.548888] 19e0: 000001b5 00000000 00000000 00000000 df0119f8 df011998 3b9aca00 00000000
[ 32.557412] 1a00: 00000004 00000001 00000000 00000200 00000000 00000000 df011998 00000001
[ 32.565946] 1a20: df011988 00000000 df0cf680 00000004 df70fc00 00000004 df70fdd0 00008ff8
[ 32.574464] 1a40: 00000001 00000000 000001ff c02b4055 00000001 df70fdd0 00000000 00000004
[ 32.582982] 1a60: c02b9415 c02ad7af df0119d0 df011ad4 df70fc00 00008ff8 00000001 df011b34
[ 32.591503] 1a80: 00000000 de35e000 de35e004 c02b408b df70fdd0 00000004 00008ff8 c02b40dd
[ 32.600027] 1aa0: c02b9415 00000004 bf868bd8 bf81c5f7 df79a644 20000013 00000001 df011ad8
[ 32.608550] 1ac0: 00000003 de35e000 df011af0 c0041ff7 00000000 00000000 00000000 58dc7d76
[ 32.617085] 1ae0: 209db0d8 00008000 00000001 df011b7c 00000000 bf81c687 00000001 de615900
[ 32.625612] 1b00: 00000004 00008ff8 de35e800 00000000 de615900 000005dd 00000000 bf81b26b
[ 32.634143] 1b20: 00008ff8 df011b34 00000004 58dc7d76 209da3a9 00000000 df307240 18000ff8
[ 32.642666] 1b40: 00000000 bf804165 df307240 18000ff8 00000000 df307240 00000003 18000000
[ 32.651199] 1b60: 00000000 bf804df5 00008000 df011b7c 00000004 00000001 18000000 18000000
[ 32.659730] 1b80: 00000003 df307240 00000000 bf801a69 00000000 c071edb8 00000001 df010000
[ 32.668265] 1ba0: df000240 000000d0 de0e49c0 de20140c 18000000 00000000 00000003 c0043513
[ 32.676788] 1bc0: 00000000 c07236d8 df011bd0 c03970c9 de201410 c008e6bf 40000013 de0e49c0
[ 32.685313] 1be0: 00000680 00000000 de201410 df307240 de0e49c0 de35e800 de201410 de20140c
[ 32.693834] 1c00: 18000000 00000000 00000003 bf801fd3 00000003 de615900 18000000 de201400
[ 32.702359] 1c20: bf868bbc de0e49c0 00000000 de615900 00000001 00000002 bf868cec bf81e79f
[ 32.710890] 1c40: de615900 de20140c de201410 00000014 00000000 40000013 00000000 18000000
[ 32.719418] 1c60: 00000001 00000000 bf868bbc 00000000 de615900 de0e49c0 00000001 00000002
[ 32.727942] 1c80: bf868cec c0393407 bf858d9d de201400 bf868bbc 00000000 de615900 de0e49c0
[ 32.736460] 1ca0: 00000001 00000002 bf868cec bf81ff29 00000000 00070006 00000000 df70fa08
[ 32.744974] 1cc0: df3070c0 df34da00 de615900 de0e49c0 bf81fd71 de35e000 00000001 00000002
[ 32.753498] 1ce0: dead4ead bf81b561 00000000 00000003 18000000 de0e49c0 de615900 bf868bd8
[ 32.762024] 1d00: de0e49c0 18000000 bf868bd8 de35e000 de0e49c0 df70fa08 de0e41c0 bf81d1ab
[ 32.770552] 1d20: 00000003 00000002 00000001 bf81d095 df70fa08 00000000 df70fa00 bf84b4fc
[ 32.779083] 1d40: bf868cb0 bf868bbc df011e18 c02b3729 df70fa08 df70fa3c c07aa6ac bf868cb0
[ 32.787606] 1d60: bf86da14 c01f087f df70fa08 df70fa3c bf868cb0 00000000 bf86da14 c01f09b9
[ 32.796121] 1d80: 00000000 bf868cb0 c01f0985 c01ef9d3 df190c78 df722f00 bf868cb0 df722e40
[ 32.804657] 1da0: c07497ac c01f035d bf857cc6 bf857cc7 00000000 bf868cb0 00000000 00000001
[ 32.813176] 1dc0: 00000003 c01f0cd9 c07497ac bf86e308 00000000 00000001 00000003 bf81d309
[ 32.821699] 1de0: 40000013 bf81b63b de0e41c0 bf824d55 00000001 bf80d367 bf86da14 c07236c0
[ 32.830216] 1e00: bf88f001 00020002 dead4ead ffffffff ffffffff 00000000 df011e18 df011e18
[ 32.838737] 1e20: 40000013 de0e41c0 bf86da14 c07236c0 bf88f001 bf86bfa3 bf868bbc df010018
[ 32.847253] 1e40: de0e48e4 bf80d585 00000003 bf86a6e4 bf86afa0 bf88f04d df010000 df011f58
[ 32.855776] 1e60: bf86a6e4 bf86a6d8 bf88f001 c07592c0 00000000 c0008699 bf88f001 00000001
[ 32.864305] 1e80: bf86a6d8 ffffffff df011f58 bf86a6e4 bf86a6d8 bf86a720 00000001 de0e48c0
[ 32.872835] 1ea0: 00000001 c005adb7 bf86a6e4 00007fff c00591d9 c0030209 00000053 00000028
[ 32.881359] 1ec0: 00000000 df010008 bf86a814 00000000 e0e611b8 df011eec 46d39668 df011f1c
[ 32.889880] 1ee0: 63737362 c000beb5 e0ea4000 b6f3a000 00000b3f 00000000 00000000 00000000
[ 32.898403] 1f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 32.906929] 1f20: 00000000 00000000 00000000 00000000 20000033 00000000 b6e86000 46d39668
[ 32.915469] 1f40: 00000080 c000c4e4 df010000 00000000 00000000 c005b5e9 e0df0000 000b4bbf
[ 32.923993] 1f60: e0e609e8 e0e607d0 e0e98da8 0006f744 00081624 00000000 00000000 00000000
[ 32.932519] 1f80: 00000032 00000033 00000020 00000024 00000012 00000000 be8d0a4c 00000000
[ 32.941048] 1fa0: 00021d80 c000c341 be8d0a4c 00000000 b6e86000 000b4bbf 46d39668 b6e86000
[ 32.949578] 1fc0: be8d0a4c 00000000 00021d80 00000080 46d39668 00021088 000b4bbf 00000000
[ 32.958098] 1fe0: 00000000 be8d09fc 46d30a88 46cbe684 60000010 b6e86000 00000000 00000000
[ 32.966637] [<c02bab28>] (omap_hsmmc_request+0x10/0x2dc) from [<c02adbb3>] (__mmc_start_req+0xb5/0xca)
[ 32.976340] [<c02adbb3>] (__mmc_start_req+0xb5/0xca) from [<c02adbd3>] (mmc_wait_for_req+0xb/0x14)
[ 32.985689] [<c02adbd3>] (mmc_wait_for_req+0xb/0x14) from [<c02b3415>] (mmc_io_rw_extended+0x16b/0x1be)
[ 32.995483] [<c02b3415>] (mmc_io_rw_extended+0x16b/0x1be) from [<c02b4055>] (sdio_io_rw_ext_helper+0xf9/0x120)
[ 33.005906] [<c02b4055>] (sdio_io_rw_ext_helper+0xf9/0x120) from [<c02b408b>] (sdio_memcpy_fromio+0xf/0x14)
[ 33.016071] [<c02b408b>] (sdio_memcpy_fromio+0xf/0x14) from [<c02b40dd>] (sdio_readl+0x1d/0x30)
[ 33.025541] [<c02b40dd>] (sdio_readl+0x1d/0x30) from [<bf81c5f7>] (sdioh_request_word+0x14a/0x258 [bcmdhd])
[ 33.036018] [<bf81c5f7>] (sdioh_request_word+0x14a/0x258 [bcmdhd]) from [<bf81b26b>] (bcmsdh_reg_read+0x46/0x94 [bcmdhd])
[ 33.047680] [<bf81b26b>] (bcmsdh_reg_read+0x46/0x94 [bcmdhd]) from [<bf804165>] (sb_read_sbreg+0x6c/0xae [bcmdhd])
[ 33.058672] [<bf804165>] (sb_read_sbreg+0x6c/0xae [bcmdhd]) from [<bf804df5>] (sb_scan+0x16/0xbc [bcmdhd])
[ 33.068933] [<bf804df5>] (sb_scan+0x16/0xbc [bcmdhd]) from [<bf801a69>] (si_doattach.isra.5+0x200/0x6fc [bcmdhd])
[ 33.079824] [<bf801a69>] (si_doattach.isra.5+0x200/0x6fc [bcmdhd]) from [<bf801fd3>] (si_attach+0x6e/0xb0 [bcmdhd])
[ 33.090948] [<bf801fd3>] (si_attach+0x6e/0xb0 [bcmdhd]) from [<bf81e79f>] (dhdsdio_probe_attach+0x25a/0x71c [bcmdhd])
[ 33.102291] [<bf81e79f>] (dhdsdio_probe_attach+0x25a/0x71c [bcmdhd]) from [<bf81ff29>] (dhdsdio_probe+0x1b8/0x440 [bcmdhd])
[ 33.114171] [<bf81ff29>] (dhdsdio_probe+0x1b8/0x440 [bcmdhd]) from [<bf81b561>] (bcmsdh_probe+0x84/0xc8 [bcmdhd])
[ 33.125146] [<bf81b561>] (bcmsdh_probe+0x84/0xc8 [bcmdhd]) from [<bf81d1ab>] (bcmsdh_sdmmc_probe+0x116/0x190 [bcmdhd])
[ 33.136439] [<bf81d1ab>] (bcmsdh_sdmmc_probe+0x116/0x190 [bcmdhd]) from [<c02b3729>] (sdio_bus_probe+0x61/0xb2)
[ 33.146963] [<c02b3729>] (sdio_bus_probe+0x61/0xb2) from [<c01f087f>] (driver_probe_device+0x6b/0x14c)
[ 33.156665] [<c01f087f>] (driver_probe_device+0x6b/0x14c) from [<c01f09b9>] (__driver_attach+0x35/0x48)
[ 33.166462] [<c01f09b9>] (__driver_attach+0x35/0x48) from [<c01ef9d3>] (bus_for_each_dev+0x3b/0x46)
[ 33.175895] [<c01ef9d3>] (bus_for_each_dev+0x3b/0x46) from [<c01f035d>] (bus_add_driver+0x89/0x148)
[ 33.185331] [<c01f035d>] (bus_add_driver+0x89/0x148) from [<c01f0cd9>] (driver_register+0x4b/0x96)
[ 33.194827] [<c01f0cd9>] (driver_register+0x4b/0x96) from [<bf81d309>] (bcmsdh_register_client_driver+0x8/0x10 [bcmdhd])
[ 33.206452] [<bf81d309>] (bcmsdh_register_client_driver+0x8/0x10 [bcmdhd]) from [<bf81b63b>] (bcmsdh_register+0x16/0x38 [bcmdhd])
[ 33.218893] [<bf81b63b>] (bcmsdh_register+0x16/0x38 [bcmdhd]) from [<bf824d55>] (dhd_bus_register+0x18/0x2c [bcmdhd])
[ 33.230220] [<bf824d55>] (dhd_bus_register+0x18/0x2c [bcmdhd]) from [<bf80d367>] (dhd_wifi_platform_load+0x17e/0x264 [bcmdhd])
[ 33.242337] [<bf80d367>] (dhd_wifi_platform_load+0x17e/0x264 [bcmdhd]) from [<bf80d585>] (dhd_wifi_platform_register_drv+0x68/0xa8 [bcmdhd])
[ 33.255719] [<bf80d585>] (dhd_wifi_platform_register_drv+0x68/0xa8 [bcmdhd]) from [<bf88f04d>] (dhd_module_init+0x4c/0x103 [bcmdhd])
[ 33.268254] [<bf88f04d>] (dhd_module_init+0x4c/0x103 [bcmdhd]) from [<c0008699>] (do_one_initcall+0x65/0xe8)
[ 33.278522] [<c0008699>] (do_one_initcall+0x65/0xe8) from [<c005adb7>] (load_module+0xb0f/0x12cc)
[ 33.287769] [<c005adb7>] (load_module+0xb0f/0x12cc) from [<c005b5e9>] (sys_init_module+0x75/0x84)
[ 33.297024] [<c005b5e9>] (sys_init_module+0x75/0x84) from [<c000c341>] (ret_fast_syscall+0x1/0x44)
[ 33.306364] Code: 33b8 b08c 460d b103 (de02) f8d0[ 33.311354] —[ end trace 9014d8c940456429 ]—
Segmentation fault

Denny%20Yang99373:

在omap_hsmmc_request()这个函数里加些打印看看

user5086616:

兄弟,您好。请问您调试AP6181调得如何了?我用的是3352,4.1内核,不知道设备树如何配置,能否加个QQ交流一下862049719

qiang fu:

回复 user5086616:

兄弟,你ap6181调好没,能交流下不,qq1226804526

赞(0)
未经允许不得转载:TI中文支持网 » 移植AP6181 SDIO驱动 kernel BUG at drivers/mmc/host/omap_hsmmc.c:1480!
分享到: 更多 (0)