李峻伟 发表于 2017-4-11 21:01:11

CB6深度休眠重启

CB6开发板公版程序,打开WIFI后设置15秒休眠。等机器进入深度休眠后,系统跑飞重启。求解决方法
log如下:
temp:48
temp:48
dhd_set_suspend: force extra Suspend setting
request_suspend_state: sleep (0->3) at 244736158027 (2011-01-01 00:38:56.406746527 UTC)
owl_dss CORE: early suspending displays
OWL_HDMI: Enter hdmi_display_disable
restore_declk_for_hdmi de_clk2_rate 150000000 MHZ

OWL_HDMI: owldss_hdmi_panel_suspend
temp:47
owl_dss CORE: early suspending displays end
gl5201_irkeypad_drv:
enter early_suspend
sync_system +
sync_system -
temp:45
temp:45
PM: suspend entry 2011-01-01 00:39:00.823730028 UTC
PM: Syncing filesystems ... done.
Disabling non-boot CPUs ...
CPU1: shutdown
CPU2: shutdown
CPU3: shutdown
ATC260X_GAUGE: log_switch = 0
Freezing user space processes ...
active wakeup source: wlan_wd_wake
active wakeup source: wlan_wake

Freezing of tasks aborted after 0.010 seconds (19 tasks refusing to freeze, wq_busy=0):

Restarting tasks ... done.
cpu:1
po 1
wu 1
pr:-1
cpu:2
po 2
wu 2
pr:-1
cpu:3
po 3
wu 3
pr:-1
PM: suspend exit 2011-01-01 00:39:02.035503778 UTC
temp:44
PM: suspend entry 2011-01-01 00:39:03.570762528 UTC
PM: Syncing filesystems ... done.
Disabling non-boot CPUs ...
CPU1: shutdown
CPU2: shutdown
CPU3: shutdown
ATC260X_GAUGE: log_switch = 0
Freezing user space processes ... (elapsed 0.003 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.003 seconds) done.
atc260x-onoff atc2603c-onoff.0: atc260x_onoff_suspend_prepare() enter
aotg_hcd aotg_hcd.1:==> aotg_hcd_hub_suspend
name: 'usb2_1', on: 0, before SPS_PG_CTL: 0x15ff05
name: 'usb2_1', on: 0, after SPS_PG_CTL: 0x15ff01
<--rfkill_suspend
: atc2603c_suspend

##> wlan_suspend
owl_dss CORE: suspending dss
owl_dss DE: owl_de_suspend
owl_dss DE: de_backup_regs
owl_dss CORE: suspending dss end
atc260x-power atc2603c-power.0: atc260x_power_suspend()
atc260x_power_suspend,cur_bat_cap:0, bat_mv:64
gl5201_irkeypad_drv:
gl5201_irkeypad_drv:
gl5201_irkeypad_drv: atc260x_irkeypad_reset_irc ,reset IRC protocol!
gl5201_irkeypad_drv:
atc260x-rtc atc2603c-rtc.0: atc260x_rtc_suspend() enter
atc260x-onoff atc2603c-onoff.0: atc260x_onoff_suspend() enter
atc260x_i2c 0-0065: atc260x_core_dev_suspend() enter

----xhci_set_plugstate--HOST_SUSPEND--
SUSPEND pStatus->message_status is 4!!!!!!!!!!!!!!
vde : vde_suspend: In , vde_clk_isEnable=0, RST0=0xffffffff
vde : vde_suspend: Out
SDC2 mmc card finish data then enter suspend
SDC1 mmc card finish data then enter suspend
WARNING: driver bcmsdh_sdmmc did not remove its interrupt handler!
dhdsdio_disconnect : no mutex held. set lock
------------[ cut here ]------------
kernel BUG at /home/lijunwei/S500/s500_actduino/Actions/kernel/drivers/mmc/core/sdio_io.c:30!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
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
CPU: 0 PID: 6 Comm: kworker/u8:0 Tainted: G      W    3.10.37 #1
Workqueue: autosleep try_to_suspend
task: d7471a40 ti: d7490000 task.ti: d7490000
PC is at sdio_claim_host+0x24/0x28
LR is at sdioh_request_byte+0x100/0x30c
pc : [<c04b499c>]    lr : [<bf0d566c>]    psr: 600e0013
sp : d7491bf0ip : 00000000fp : c0ac0d78
r10: 00000001r9 : 00000000r8 : 00000107
r7 : 00000001r6 : bf128714r5 : 0001000er4 : d6105800
r3 : 00000000r2 : 00000001r1 : 00000001r0 : d3f85e00
Flags: nZCvIRQs onFIQs onMode SVC_32ISA ARMSegment kernel
Control: 10c53c7dTable: 16ae404aDAC: 00000015

PC: 0xc04b491c:
491ce5903000 e3530000 0a000008 e5933000 e59301c4 e1d10000 05932334 13e00015
493c01821001 05831334 e12fff1e e7f001f2 e7f001f2 e3500000 0a000005 e5903000
495ce3530000 0a000003 e5933000 e59301c4 e12fff1e e7f001f2 e7f001f2 e3500000
497c0a000005 e5903000 e3530000 0a000003 e5930000 e3a01000 eaffcf45 e7f001f2
499ce7f001f2 e3500000 e92d4010 e1a04003 e24dd008 0a000015 e24230f0 e5900000
49bce353000f 9a000006 e590318c e3130001 1a000003 e3540000 13e03015 15843000
49dcea000008 e3a0c000 e58d1000 e1a03002 e58dc004 e1a0200c e3a01001 ebfff97e
49fce3540000 15840000 e28dd008 e8bd8010 e7f001f2 e3500000 e92d4010 e1a03001

SP: 0xd7491b70:
1b7000000000 c003b2e4 0000003a c00518d0 bda7e480 00200200 c0b5abd4 c0b5add4
1b90c04b49a0 00000000 c000f258 00000000 e7100000 c000efec d3f85e00 00000001
1bb000000001 00000000 d6105800 0001000e bf128714 00000001 00000107 00000000
1bd000000001 c0ac0d78 00000000 d7491bf0 bf0d566c c04b499c 600e0013 ffffffff
1bf0c0aaa064 0000001d 600e0193 00000000 c0aaa064 00000000 d60a9fc0 00000001
1c100001000e 00000000 c0adbde0 bf0d5898 d7491c37 c00085e0 c002e040 bf0d4408
1c30400e0013 10ffffff d7491c74 d69dd400 bf1286fc d60a9fc0 00000001 bf0d7580
1c50d7491c5c 0000002c c0ad8824 c0b393c8 00000003 d69dd400 bf1286fc 00000000

FP: 0xc0ac0cf8:
0cf865a91991 af75b8ca 9b044835 51d8e96e 0fbd0b82 c561aad9 046a0e5f ceb6af04
0d1890d34de8 5a0fecb3 a5d9c4e1 6f0565ba 31608756 fbbc260d 3ab7828b f06b23d0
0d38ae0ec13c 64d26067 00000000 00000001 c001e4b4 ffffffff c0011c44 00000009
0d580008b8d7 c001da48 c001da80 90f00000 c001d574 c001d538 00000012 00001a0a
0d78c001df0c c001e134 c001e078 c001dee0 c001e224 c001dea0 c001de5c 00000000
0d98c001e2f0 00000000 00000000 00000000 00000001 0000000f 0000000f 00000001
0db800000000 d7460100 d7460200 d7460300 d7404600 d7460500 d7460600 d7460700
0dd800000000 0000003c 00000001 00000000 00002e7b 000003e8 00000001 00000001

R0: 0xd3f85d80:
5d8000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5da000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5dc000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5de000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5e0000000000 00000000 d69ddc08 d5050a00 d614e8c0 d3f85e14 d3f85e14 00000000
5e20d6e4ba00 c0af7458 00000000 00000000 0000000d 00000000 00000000 00000001
5e40000c000c d3f85e44 d3f85e44 00000000 00000000 d3f85e3c c0b04fd0 00000000
5e6000000000 00000000 0000002c 000a000a d3f85e70 d3f85e70 fffffffe 00030003

R4: 0xd6105780:
578000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
57a000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
57c000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
57e000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
5800d60a9040 d60a9fc0 00000100 bf0e09bc d69dd400 00000000 000003a2 00010100
582000000000 00000040 00000040 00000080 00000000 00000000 00000000 00000000
584000000002 00001070 00001070 00001000 00001038 00000000 00000000 00000000
586000000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
Process kworker/u8:0 (pid: 6, stack limit = 0xd7490240)
Stack: (0xd7491bf0 to 0xd7492000)
1be0:                                     c0aaa064 0000001d 600e0193 00000000
1c00: c0aaa064 00000000 d60a9fc0 00000001 0001000e 00000000 c0adbde0 bf0d5898
1c20: d7491c37 c00085e0 c002e040 bf0d4408 400e0013 10ffffff d7491c74 d69dd400
1c40: bf1286fc d60a9fc0 00000001 bf0d7580 d7491c5c 0000002c c0ad8824 c0b393c8
1c60: 00000003 d69dd400 bf1286fc 00000000 00000000 00000000 c0adbde0 bf0d7d74
1c80: 00000001 00000000 d60a9040 d69dd400 d60a9040 00000001 bf1286fc bf0e219c
1ca0: c1c9d660 c0f41520 00000000 00000000 00000000 d6488000 00004c5c d60a9040
1cc0: d6488000 bf1286fc 00000000 c0adbde0 00000000 bf0b9e30 00000001 d69dd400
1ce0: bf1286fc d60a9040 00000000 00000022 c0adbde0 bf0db32c d69dd400 bf1286fc
1d00: bf12878c bf0db4a8 bf0db458 d60a9fc0 d60a9040 bf0d4c44 d6105800 bf0d6d24
1d20: d3f84e00 d3f84e08 bf12878c c04b3530 d3f84e08 bf12878c c0b04fd0 c0362d9c
1d40: d7471a40 d3f84e3c d3f84e08 c0362e10 00000000 d6fb0230 d3f84e08 c0362840
1d60: d3f84e08 d3f84e08 d69ddc08 c0360370 d3f84e08 000000b9 d7413800 c04b38c0
1d80: 00000001 c04b28f0 c04b28b0 d7413800 ffffffda d74139e0 d7413800 c04ab208
1da0: 00000000 00000000 d7413b80 c0ba8bc8 d7413800 c04bc018 00000000 00000000
1dc0: c0ba8bc8 d6ef8210 c0364808 c0364858 00000000 c03699f4 d6ef8210 c0ba8bc8
1de0: 00000000 00000000 00000000 d6ef8210 c0ba8bc8 00000002 d6ef8244 c0369b10
1e00: 00491e14 d6ef8210 d7471a40 c0b5ad64 c0b11470 fffff20c c0b5a3c0 c03698f0
1e20: d7491e04 ffffffff ffffffff 00000000 00000000 00000000 00000000 00000000
1e40: d6ef8278 d6ef8210 c0af7b84 c0ba8bc8 c0af7bc0 c036b1f0 c0af7bb8 00000002
1e60: aae64e8e 0000003a aae64e8e 0000003a d740a800 00000003 00000003 c0b24da0
1e80: d740a800 c0b21964 00000000 d6e5fa00 c0b5d838 c0072c84 00000000 d6e5fa00
1ea0: 00000000 c0732234 c09510d4 d7491ec4 00000003 00000000 00000003 c0b24da0
1ec0: d740a800 d7490000 00000000 d6e5fa00 00000000 c0073230 d745f400 c0adbfa0
1ee0: c0b21590 c0079b60 00000994 c073bf3c d6e5fa05 c0047750 d6e5fa00 c0adbfa0
1f00: 00000001 00000000 00000000 d745f400 d740a814 d745f418 d7490000 d7490000
1f20: c0b21140 00000001 d740a800 c0047e2c c0047cf4 d7490000 00000000 d7490000
1f40: c0047cf4 d746fdf8 00000000 d745f400 c0047cf4 00000000 00000000 00000000
1f60: 00000000 c004da08 4f926865 00000000 6e8389c1 d745f400 00000000 00000000
1f80: d7491f80 d7491f80 00000000 00000000 d7491f90 d7491f90 d7491fac d746fdf8
1fa0: c004d964 00000000 00000000 c000f3d8 00000000 00000000 00000000 00000000
1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 7ed3c845 6a914173
[<c04b499c>] (sdio_claim_host+0x24/0x28) from [<bf0d566c>] (sdioh_request_byte+0x100/0x30c )
[<bf0d566c>] (sdioh_request_byte+0x100/0x30c ) from [<bf0d5898>] (sdioh_cfg_write+0x20/0x28 )
[<bf0d5898>] (sdioh_cfg_write+0x20/0x28 ) from [<bf0d4408>] (bcmsdh_cfg_write+0x38/0x8c )
[<bf0d4408>] (bcmsdh_cfg_write+0x38/0x8c ) from [<bf0d7580>] (dhdsdio_resume+0x36c/0x2368 )
[<bf0d7580>] (dhdsdio_resume+0x36c/0x2368 ) from [<bf0d7d74>] (dhdsdio_resume+0xb60/0x2368 )
[<bf0d7d74>] (dhdsdio_resume+0xb60/0x2368 ) from [<bf0e219c>] (dhd_bus_stop+0x190/0x3f4 )
[<bf0e219c>] (dhd_bus_stop+0x190/0x3f4 ) from [<bf0b9e30>] (dhd_detach+0x2d0/0x42c )
[<bf0b9e30>] (dhd_detach+0x2d0/0x42c ) from [<bf0db32c>] (dhd_bus_txdata+0x1424/0x1550 )
[<bf0db32c>] (dhd_bus_txdata+0x1424/0x1550 ) from [<bf0db4a8>] (dhdsdio_disconnect+0x50/0xf4 )
[<bf0db4a8>] (dhdsdio_disconnect+0x50/0xf4 ) from [<bf0d4c44>] (bcmsdh_remove+0x20/0x44 )
[<bf0d4c44>] (bcmsdh_remove+0x20/0x44 ) from [<bf0d6d24>] (bcmsdh_sdmmc_remove+0x64/0x158 )
[<bf0d6d24>] (bcmsdh_sdmmc_remove+0x64/0x158 ) from [<c04b3530>] (sdio_bus_remove+0x30/0xf8)
[<c04b3530>] (sdio_bus_remove+0x30/0xf8) from [<c0362d9c>] (__device_release_driver+0x70/0xc8)
[<c0362d9c>] (__device_release_driver+0x70/0xc8) from [<c0362e10>] (device_release_driver+0x1c/0x28)
[<c0362e10>] (device_release_driver+0x1c/0x28) from [<c0362840>] (bus_remove_device+0xd4/0x124)
[<c0362840>] (bus_remove_device+0xd4/0x124) from [<c0360370>] (device_del+0xf0/0x174)
[<c0360370>] (device_del+0xf0/0x174) from [<c04b38c0>] (sdio_remove_func+0x1c/0x28)
[<c04b38c0>] (sdio_remove_func+0x1c/0x28) from [<c04b28f0>] (mmc_sdio_remove+0x40/0x78)
[<c04b28f0>] (mmc_sdio_remove+0x40/0x78) from [<c04ab208>] (mmc_suspend_host+0x144/0x18c)
[<c04ab208>] (mmc_suspend_host+0x144/0x18c) from [<c04bc018>] (acts_mmc_suspend+0xb0/0x140)
[<c04bc018>] (acts_mmc_suspend+0xb0/0x140) from [<c0364858>] (platform_pm_suspend+0x50/0x54)
[<c0364858>] (platform_pm_suspend+0x50/0x54) from [<c03699f4>] (dpm_run_callback+0x44/0x7c)
[<c03699f4>] (dpm_run_callback+0x44/0x7c) from [<c0369b10>] (__device_suspend+0xe4/0x298)
[<c0369b10>] (__device_suspend+0xe4/0x298) from [<c036b1f0>] (dpm_suspend+0x50/0x20c)
[<c036b1f0>] (dpm_suspend+0x50/0x20c) from [<c0072c84>] (suspend_devices_and_enter+0x9c/0x464)
[<c0072c84>] (suspend_devices_and_enter+0x9c/0x464) from [<c0073230>] (pm_suspend+0x1e4/0x284)
[<c0073230>] (pm_suspend+0x1e4/0x284) from [<c0079b60>] (try_to_suspend+0x74/0xcc)
[<c0079b60>] (try_to_suspend+0x74/0xcc) from [<c0047750>] (process_one_work+0x134/0x414)
[<c0047750>] (process_one_work+0x134/0x414) from [<c0047e2c>] (worker_thread+0x138/0x37c)
[<c0047e2c>] (worker_thread+0x138/0x37c) from [<c004da08>] (kthread+0xa4/0xb0)
[<c004da08>] (kthread+0xa4/0xb0) from [<c000f3d8>] (ret_from_fork+0x14/0x3c)
Code: e5930000 e3a01000 eaffcf45 e7f001f2 (e7f001f2)
---[ end trace c29d29a85c5647f7 ]---
Kernel panic - not syncing: Fatal exception
Rebooting in 5 seconds..


bill 发表于 2017-4-12 09:41:59

要在device/actions/gb5_wxga/device.mk文件下,添加以下配置
(加入下列属性表示suspend前会走rm wlan.ko的方式)
ro.wifi.suspend_policy=RMMOD_WLAN_KO




bill 发表于 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文件 解决了休眠重启的问题 谢谢了!
页: [1]
查看完整版本: CB6深度休眠重启