CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 7684|回复: 3

CB6深度休眠重启

[复制链接]
发表于 2017-4-11 21:01:11 | 显示全部楼层 |阅读模式
CB6开发板公版程序,打开WIFI后设置15秒休眠。等机器进入深度休眠后,系统跑飞重启。求解决方法
log如下:
[  240.881359] temp:48
[  242.881365] temp:48
[  243.850929] dhd_set_suspend: force extra Suspend setting
[  244.762969] request_suspend_state: sleep (0->3) at 244736158027 (2011-01-01 00:38:56.406746527 UTC)
[  244.772993] owl_dss CORE: early suspending displays
[  244.778095] OWL_HDMI: Enter hdmi_display_disable
[  244.782866] restore_declk_for_hdmi de_clk2_rate 150000000 MHZ

[  244.789662] OWL_HDMI: owldss_hdmi_panel_suspend
[  244.881353] temp:47
[  245.147014] owl_dss CORE: early suspending displays end
[  245.152243] gl5201_irkeypad_drv: [irkeypad_early_suspend finished]
[  245.158578] [atc260x_gauge_early_suspend-2849] enter early_suspend
[  245.165241] sync_system +
[  245.200295] sync_system -
[  246.881354] temp:45
[  248.881253] temp:45
[  249.179940] PM: suspend entry 2011-01-01 00:39:00.823730028 UTC
[  249.185876] PM: Syncing filesystems ... done.
[  250.287558] Disabling non-boot CPUs ...
[  250.294060] CPU1: shutdown
[  250.301176] CPU2: shutdown
[  250.308717] CPU3: shutdown
[  250.313431] ATC260X_GAUGE: log_switch = 0
[  250.317904] Freezing user space processes ...
[  250.323976] active wakeup source: wlan_wd_wake
[  250.328893] active wakeup source: wlan_wake
[  250.333187]
[  250.334696] Freezing of tasks aborted after 0.010 seconds (19 tasks refusing to freeze, wq_busy=0):
[  250.343982]
[  250.345564] Restarting tasks ... done.
[  250.352346] cpu:1
[  250.354278] po 1
[  250.358805] wu 1
[  250.362049] pr:-1
[  250.366519] cpu:2
[  250.369082] po 2
[  250.371589] wu 2
[  250.374815] pr:-1
[  250.378666] cpu:3
[  250.380599] po 3
[  250.383094] wu 3
[  250.387356] pr:-1
[  250.391688] PM: suspend exit 2011-01-01 00:39:02.035503778 UTC
[  250.881358] temp:44
[  251.926958] PM: suspend entry 2011-01-01 00:39:03.570762528 UTC
[  251.932885] PM: Syncing filesystems ... done.
[  251.942335] Disabling non-boot CPUs ...
[  251.949194] CPU1: shutdown
[  251.955352] CPU2: shutdown
[  251.961642] CPU3: shutdown
[  251.965387] ATC260X_GAUGE: log_switch = 0
[  251.970374] Freezing user space processes ... (elapsed 0.003 seconds) done.
[  251.980874] Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
[  251.992300] atc260x-onoff atc2603c-onoff.0: atc260x_onoff_suspend_prepare() enter
[  252.003905] aotg_hcd aotg_hcd.1:  ==> aotg_hcd_hub_suspend
[  252.009494] [PowerGate] name: 'usb2_1', on: 0, before SPS_PG_CTL: 0x15ff05
[  252.016369] [PowerGate] name: 'usb2_1', on: 0, after SPS_PG_CTL: 0x15ff01
[  252.023445] <--rfkill_suspend
[  252.029645] [SNDRV]:[atc2603c_suspend] atc2603c_suspend
[  252.029645]
[  252.036666] ##> wlan_suspend
[  252.041654] owl_dss CORE: suspending dss
[  252.045673] owl_dss DE: owl_de_suspend
[  252.049485] owl_dss DE: de_backup_regs
[  252.053278] owl_dss CORE: suspending dss end
[  252.060172] atc260x-power atc2603c-power.0: atc260x_power_suspend()
[  252.066446] atc260x_power_suspend,cur_bat_cap:0, bat_mv:64
[  252.072178] gl5201_irkeypad_drv: [asoc_irkeypad_stop start]
[  252.078313] gl5201_irkeypad_drv: [asoc_irkeypad_stop finished]
[  252.084148] gl5201_irkeypad_drv: atc260x_irkeypad_reset_irc ,reset IRC protocol!
[  252.197232] gl5201_irkeypad_drv: [atc260x_irkeypad_suspend finished]
[  252.203796] atc260x-rtc atc2603c-rtc.0: atc260x_rtc_suspend() enter
[  252.210370] atc260x-onoff atc2603c-onoff.0: atc260x_onoff_suspend() enter
[  252.218893] atc260x_i2c 0-0065: atc260x_core_dev_suspend() enter
[  252.227059]
[  252.227059] ----xhci_set_plugstate--HOST_SUSPEND--
[  252.233368] SUSPEND pStatus->message_status is 4!!!!!!!!!!!!!!
[  252.240228] vde : vde_suspend: In , vde_clk_isEnable=0, RST0=0xffffffff
[  252.246895] vde : vde_suspend: Out
[  252.250451] SDC2 mmc card finish data then enter suspend
[  252.287809] SDC1 mmc card finish data then enter suspend
[  252.293401] WARNING: driver bcmsdh_sdmmc did not remove its interrupt handler!
[  252.301609] dhdsdio_disconnect : no mutex held. set lock
[  252.307114] ------------[ cut here ]------------
[  252.311738] kernel BUG at /home/lijunwei/S500/s500_actduino/Actions/kernel/drivers/mmc/core/sdio_io.c:30!
[  252.321298] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[  252.327124] Modules linked in: wlan_bcmdhd dc_owl pvrsrvkm bcmdhd_prealloc rfkill_actions_bcmdhd sensor_detect uvcvideo videobuf2_vmalloc atc260x_irkeypad atc260x_adckeypad ethernet flashlight atc260x_cap_gauge
[  252.345866] CPU: 0 PID: 6 Comm: kworker/u8:0 Tainted: G        W    3.10.37 #1
[  252.353109] Workqueue: autosleep try_to_suspend
[  252.357639] task: d7471a40 ti: d7490000 task.ti: d7490000
[  252.363047] PC is at sdio_claim_host+0x24/0x28
[  252.367592] LR is at sdioh_request_byte+0x100/0x30c [wlan_bcmdhd]
[  252.373689] pc : [<c04b499c>]    lr : [<bf0d566c>]    psr: 600e0013
[  252.373689] sp : d7491bf0  ip : 00000000  fp : c0ac0d78
[  252.385156] r10: 00000001  r9 : 00000000  r8 : 00000107
[  252.390376] r7 : 00000001  r6 : bf128714  r5 : 0001000e  r4 : d6105800
[  252.396896] r3 : 00000000  r2 : 00000001  r1 : 00000001  r0 : d3f85e00
[  252.403422] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[  252.410724] Control: 10c53c7d  Table: 16ae404a  DAC: 00000015
[  252.416461]
[  252.416461] PC: 0xc04b491c:
[  252.420727] 491c  e5903000 e3530000 0a000008 e5933000 e59301c4 e1d10000 05932334 13e00015
[  252.428920] 493c  01821001 05831334 e12fff1e e7f001f2 e7f001f2 e3500000 0a000005 e5903000
[  252.437105] 495c  e3530000 0a000003 e5933000 e59301c4 e12fff1e e7f001f2 e7f001f2 e3500000
[  252.445288] 497c  0a000005 e5903000 e3530000 0a000003 e5930000 e3a01000 eaffcf45 e7f001f2
[  252.453470] 499c  e7f001f2 e3500000 e92d4010 e1a04003 e24dd008 0a000015 e24230f0 e5900000
[  252.461653] 49bc  e353000f 9a000006 e590318c e3130001 1a000003 e3540000 13e03015 15843000
[  252.469835] 49dc  ea000008 e3a0c000 e58d1000 e1a03002 e58dc004 e1a0200c e3a01001 ebfff97e
[  252.478018] 49fc  e3540000 15840000 e28dd008 e8bd8010 e7f001f2 e3500000 e92d4010 e1a03001
[  252.486204]
[  252.486204] SP: 0xd7491b70:
[  252.490469] 1b70  00000000 c003b2e4 0000003a c00518d0 bda7e480 00200200 c0b5abd4 c0b5add4
[  252.498653] 1b90  c04b49a0 00000000 c000f258 00000000 e7100000 c000efec d3f85e00 00000001
[  252.506835] 1bb0  00000001 00000000 d6105800 0001000e bf128714 00000001 00000107 00000000
[  252.515017] 1bd0  00000001 c0ac0d78 00000000 d7491bf0 bf0d566c c04b499c 600e0013 ffffffff
[  252.523197] 1bf0  c0aaa064 0000001d 600e0193 00000000 c0aaa064 00000000 d60a9fc0 00000001
[  252.531376] 1c10  0001000e 00000000 c0adbde0 bf0d5898 d7491c37 c00085e0 c002e040 bf0d4408
[  252.539559] 1c30  400e0013 10ffffff d7491c74 d69dd400 bf1286fc d60a9fc0 00000001 bf0d7580
[  252.547741] 1c50  d7491c5c 0000002c c0ad8824 c0b393c8 00000003 d69dd400 bf1286fc 00000000
[  252.555926]
[  252.555926] FP: 0xc0ac0cf8:
[  252.560190] 0cf8  65a91991 af75b8ca 9b044835 51d8e96e 0fbd0b82 c561aad9 046a0e5f ceb6af04
[  252.568376] 0d18  90d34de8 5a0fecb3 a5d9c4e1 6f0565ba 31608756 fbbc260d 3ab7828b f06b23d0
[  252.576558] 0d38  ae0ec13c 64d26067 00000000 00000001 c001e4b4 ffffffff c0011c44 00000009
[  252.584741] 0d58  0008b8d7 c001da48 c001da80 90f00000 c001d574 c001d538 00000012 00001a0a
[  252.592924] 0d78  c001df0c c001e134 c001e078 c001dee0 c001e224 c001dea0 c001de5c 00000000
[  252.601106] 0d98  c001e2f0 00000000 00000000 00000000 00000001 0000000f 0000000f 00000001
[  252.609286] 0db8  00000000 d7460100 d7460200 d7460300 d7404600 d7460500 d7460600 d7460700
[  252.617468] 0dd8  00000000 0000003c 00000001 00000000 00002e7b 000003e8 00000001 00000001
[  252.625653]
[  252.625653] R0: 0xd3f85d80:
[  252.629918] 5d80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.638099] 5da0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.646278] 5dc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.654458] 5de0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.662637] 5e00  00000000 00000000 d69ddc08 d5050a00 d614e8c0 d3f85e14 d3f85e14 00000000
[  252.670818] 5e20  d6e4ba00 c0af7458 00000000 00000000 0000000d 00000000 00000000 00000001
[  252.678998] 5e40  000c000c d3f85e44 d3f85e44 00000000 00000000 d3f85e3c c0b04fd0 00000000
[  252.687180] 5e60  00000000 00000000 0000002c 000a000a d3f85e70 d3f85e70 fffffffe 00030003
[  252.695366]
[  252.695366] R4: 0xd6105780:
[  252.699630] 5780  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.707811] 57a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.715989] 57c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.724168] 57e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.732347] 5800  d60a9040 d60a9fc0 00000100 bf0e09bc d69dd400 00000000 000003a2 00010100
[  252.740528] 5820  00000000 00000040 00000040 00000080 00000000 00000000 00000000 00000000
[  252.748702] 5840  00000002 00001070 00001070 00001000 00001038 00000000 00000000 00000000
[  252.756882] 5860  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  252.765073] Process kworker/u8:0 (pid: 6, stack limit = 0xd7490240)
[  252.771335] Stack: (0xd7491bf0 to 0xd7492000)
[  252.775697] 1be0:                                     c0aaa064 0000001d 600e0193 00000000
[  252.783879] 1c00: c0aaa064 00000000 d60a9fc0 00000001 0001000e 00000000 c0adbde0 bf0d5898
[  252.792060] 1c20: d7491c37 c00085e0 c002e040 bf0d4408 400e0013 10ffffff d7491c74 d69dd400
[  252.800238] 1c40: bf1286fc d60a9fc0 00000001 bf0d7580 d7491c5c 0000002c c0ad8824 c0b393c8
[  252.808415] 1c60: 00000003 d69dd400 bf1286fc 00000000 00000000 00000000 c0adbde0 bf0d7d74
[  252.816593] 1c80: 00000001 00000000 d60a9040 d69dd400 d60a9040 00000001 bf1286fc bf0e219c
[  252.824772] 1ca0: c1c9d660 c0f41520 00000000 00000000 00000000 d6488000 00004c5c d60a9040
[  252.832949] 1cc0: d6488000 bf1286fc 00000000 c0adbde0 00000000 bf0b9e30 00000001 d69dd400
[  252.841129] 1ce0: bf1286fc d60a9040 00000000 00000022 c0adbde0 bf0db32c d69dd400 bf1286fc
[  252.849308] 1d00: bf12878c bf0db4a8 bf0db458 d60a9fc0 d60a9040 bf0d4c44 d6105800 bf0d6d24
[  252.857488] 1d20: d3f84e00 d3f84e08 bf12878c c04b3530 d3f84e08 bf12878c c0b04fd0 c0362d9c
[  252.865666] 1d40: d7471a40 d3f84e3c d3f84e08 c0362e10 00000000 d6fb0230 d3f84e08 c0362840
[  252.873844] 1d60: d3f84e08 d3f84e08 d69ddc08 c0360370 d3f84e08 000000b9 d7413800 c04b38c0
[  252.882022] 1d80: 00000001 c04b28f0 c04b28b0 d7413800 ffffffda d74139e0 d7413800 c04ab208
[  252.890201] 1da0: 00000000 00000000 d7413b80 c0ba8bc8 d7413800 c04bc018 00000000 00000000
[  252.898379] 1dc0: c0ba8bc8 d6ef8210 c0364808 c0364858 00000000 c03699f4 d6ef8210 c0ba8bc8
[  252.906556] 1de0: 00000000 00000000 00000000 d6ef8210 c0ba8bc8 00000002 d6ef8244 c0369b10
[  252.914736] 1e00: 00491e14 d6ef8210 d7471a40 c0b5ad64 c0b11470 fffff20c c0b5a3c0 c03698f0
[  252.922913] 1e20: d7491e04 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
[  252.931091] 1e40: d6ef8278 d6ef8210 c0af7b84 c0ba8bc8 c0af7bc0 c036b1f0 c0af7bb8 00000002
[  252.939269] 1e60: aae64e8e 0000003a aae64e8e 0000003a d740a800 00000003 00000003 c0b24da0
[  252.947447] 1e80: d740a800 c0b21964 00000000 d6e5fa00 c0b5d838 c0072c84 00000000 d6e5fa00
[  252.955625] 1ea0: 00000000 c0732234 c09510d4 d7491ec4 00000003 00000000 00000003 c0b24da0
[  252.963803] 1ec0: d740a800 d7490000 00000000 d6e5fa00 00000000 c0073230 d745f400 c0adbfa0
[  252.971983] 1ee0: c0b21590 c0079b60 00000994 c073bf3c d6e5fa05 c0047750 d6e5fa00 c0adbfa0
[  252.980161] 1f00: 00000001 00000000 00000000 d745f400 d740a814 d745f418 d7490000 d7490000
[  252.988339] 1f20: c0b21140 00000001 d740a800 c0047e2c c0047cf4 d7490000 00000000 d7490000
[  252.996518] 1f40: c0047cf4 d746fdf8 00000000 d745f400 c0047cf4 00000000 00000000 00000000
[  253.004695] 1f60: 00000000 c004da08 4f926865 00000000 6e8389c1 d745f400 00000000 00000000
[  253.012874] 1f80: d7491f80 d7491f80 00000000 00000000 d7491f90 d7491f90 d7491fac d746fdf8
[  253.021051] 1fa0: c004d964 00000000 00000000 c000f3d8 00000000 00000000 00000000 00000000
[  253.029227] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  253.037404] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 7ed3c845 6a914173
[  253.045702] [<c04b499c>] (sdio_claim_host+0x24/0x28) from [<bf0d566c>] (sdioh_request_byte+0x100/0x30c [wlan_bcmdhd])
[  253.056511] [<bf0d566c>] (sdioh_request_byte+0x100/0x30c [wlan_bcmdhd]) from [<bf0d5898>] (sdioh_cfg_write+0x20/0x28 [wlan_bcmdhd])
[  253.068514] [<bf0d5898>] (sdioh_cfg_write+0x20/0x28 [wlan_bcmdhd]) from [<bf0d4408>] (bcmsdh_cfg_write+0x38/0x8c [wlan_bcmdhd])
[  253.080161] [<bf0d4408>] (bcmsdh_cfg_write+0x38/0x8c [wlan_bcmdhd]) from [<bf0d7580>] (dhdsdio_resume+0x36c/0x2368 [wlan_bcmdhd])
[  253.091970] [<bf0d7580>] (dhdsdio_resume+0x36c/0x2368 [wlan_bcmdhd]) from [<bf0d7d74>] (dhdsdio_resume+0xb60/0x2368 [wlan_bcmdhd])
[  253.103867] [<bf0d7d74>] (dhdsdio_resume+0xb60/0x2368 [wlan_bcmdhd]) from [<bf0e219c>] (dhd_bus_stop+0x190/0x3f4 [wlan_bcmdhd])
[  253.115516] [<bf0e219c>] (dhd_bus_stop+0x190/0x3f4 [wlan_bcmdhd]) from [<bf0b9e30>] (dhd_detach+0x2d0/0x42c [wlan_bcmdhd])
[  253.126728] [<bf0b9e30>] (dhd_detach+0x2d0/0x42c [wlan_bcmdhd]) from [<bf0db32c>] (dhd_bus_txdata+0x1424/0x1550 [wlan_bcmdhd])
[  253.138277] [<bf0db32c>] (dhd_bus_txdata+0x1424/0x1550 [wlan_bcmdhd]) from [<bf0db4a8>] (dhdsdio_disconnect+0x50/0xf4 [wlan_bcmdhd])
[  253.150351] [<bf0db4a8>] (dhdsdio_disconnect+0x50/0xf4 [wlan_bcmdhd]) from [<bf0d4c44>] (bcmsdh_remove+0x20/0x44 [wlan_bcmdhd])
[  253.161990] [<bf0d4c44>] (bcmsdh_remove+0x20/0x44 [wlan_bcmdhd]) from [<bf0d6d24>] (bcmsdh_sdmmc_remove+0x64/0x158 [wlan_bcmdhd])
[  253.173737] [<bf0d6d24>] (bcmsdh_sdmmc_remove+0x64/0x158 [wlan_bcmdhd]) from [<c04b3530>] (sdio_bus_remove+0x30/0xf8)
[  253.184368] [<c04b3530>] (sdio_bus_remove+0x30/0xf8) from [<c0362d9c>] (__device_release_driver+0x70/0xc8)
[  253.194033] [<c0362d9c>] (__device_release_driver+0x70/0xc8) from [<c0362e10>] (device_release_driver+0x1c/0x28)
[  253.204212] [<c0362e10>] (device_release_driver+0x1c/0x28) from [<c0362840>] (bus_remove_device+0xd4/0x124)
[  253.213965] [<c0362840>] (bus_remove_device+0xd4/0x124) from [<c0360370>] (device_del+0xf0/0x174)
[  253.222848] [<c0360370>] (device_del+0xf0/0x174) from [<c04b38c0>] (sdio_remove_func+0x1c/0x28)
[  253.231559] [<c04b38c0>] (sdio_remove_func+0x1c/0x28) from [<c04b28f0>] (mmc_sdio_remove+0x40/0x78)
[  253.240621] [<c04b28f0>] (mmc_sdio_remove+0x40/0x78) from [<c04ab208>] (mmc_suspend_host+0x144/0x18c)
[  253.249857] [<c04ab208>] (mmc_suspend_host+0x144/0x18c) from [<c04bc018>] (acts_mmc_suspend+0xb0/0x140)
[  253.259266] [<c04bc018>] (acts_mmc_suspend+0xb0/0x140) from [<c0364858>] (platform_pm_suspend+0x50/0x54)
[  253.268761] [<c0364858>] (platform_pm_suspend+0x50/0x54) from [<c03699f4>] (dpm_run_callback+0x44/0x7c)
[  253.278164] [<c03699f4>] (dpm_run_callback+0x44/0x7c) from [<c0369b10>] (__device_suspend+0xe4/0x298)
[  253.287391] [<c0369b10>] (__device_suspend+0xe4/0x298) from [<c036b1f0>] (dpm_suspend+0x50/0x20c)
[  253.296282] [<c036b1f0>] (dpm_suspend+0x50/0x20c) from [<c0072c84>] (suspend_devices_and_enter+0x9c/0x464)
[  253.305954] [<c0072c84>] (suspend_devices_and_enter+0x9c/0x464) from [<c0073230>] (pm_suspend+0x1e4/0x284)
[  253.315617] [<c0073230>] (pm_suspend+0x1e4/0x284) from [<c0079b60>] (try_to_suspend+0x74/0xcc)
[  253.324243] [<c0079b60>] (try_to_suspend+0x74/0xcc) from [<c0047750>] (process_one_work+0x134/0x414)
[  253.333385] [<c0047750>] (process_one_work+0x134/0x414) from [<c0047e2c>] (worker_thread+0x138/0x37c)
[  253.342617] [<c0047e2c>] (worker_thread+0x138/0x37c) from [<c004da08>] (kthread+0xa4/0xb0)
[  253.350903] [<c004da08>] (kthread+0xa4/0xb0) from [<c000f3d8>] (ret_from_fork+0x14/0x3c)
[  253.358999] Code: e5930000 e3a01000 eaffcf45 e7f001f2 (e7f001f2)
[  253.365095] ---[ end trace c29d29a85c5647f7 ]---
[  253.369713] Kernel panic - not syncing: Fatal exception
[  253.374942] Rebooting in 5 seconds..


回复

使用道具 举报

发表于 2017-4-12 09:41:59 | 显示全部楼层
要在device/actions/gb5_wxga/device.mk文件下,添加以下配置
(加入下列属性表示suspend前会走rm wlan.ko的方式)
ro.wifi.suspend_policy=RMMOD_WLAN_KO




回复 支持 反对

使用道具 举报

发表于 2017-4-12 09:53:56 | 显示全部楼层
这边反复验证了几次,都能成功解决打开wifi并且休眠后死机的现象,所以先确认添加的配置是否有编译进去,查看一下android/out/target/product/gb5_wxga/system/build.prop文件中,“ro.wifi.suspend_policy=RMMOD_WLAN_KO”是否有编进去
回复 支持 反对

使用道具 举报

 楼主| 发表于 2017-4-13 14:50:19 | 显示全部楼层
在owl目录下make clean不会清除Android/out目录下编程生成的文件  现在已经把属性编译build.prop文件 解决了休眠重启的问题 谢谢了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-12-22 15:16 , Processed in 0.019792 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部