[Nexus 4 Android Development] deltatux:
It seems like r203 can't wake from deep sleep, I guess it's the "super deep sleep" since regular deep sleep work. Only is an issue if I don't touch the device for more than 5 hours... Regular Franco Kernel doesn't have the same issue.

Attached is my last kmsg log.

I've found several crashes in the kernel log:

[29685.389007] ------------[ cut here ]------------
[29685.389007] WARNING: at arch/arm/common/gic.c:1067 gic_is_irq_pending+0xa8/0xb4()
[29685.389007] msm_pm_enter
[29685.389007] Modules linked in:
[29685.389007] msm_pm_enter: power collapse
[29685.389007]
[29685.389007] msm_mpm_irqs_detectable: cannot monitor irq=261 (null)
[29685.389007] Backtrace:
[29685.389007] msm_pm_enter: cannot find the lowest power limit
[29685.389007]
[29685.389007] msm_pm_enter: return
[29685.389007] [<c0012a70>] (dump_backtrace+0x0/0x10c) from [<c084a300>] (dump_stack+0x18/0x1c)
[29685.389007] r6:c001e590 r5:00000009 r4:00000000 r3:902945ce
[29685.389129] [<c084a2e8>] (dump_stack+0x0/0x1c) from [<c0075de8>] (warn_slowpath_common+0x54/0x6c)
[29685.389221] [<c0075d94>] (warn_slowpath_common+0x0/0x6c) from [<c0075e24>] (warn_slowpath_null+0x24/0x2c)
[29685.389282] r8:d55bbb94 r7:c0f445d4 r6:c0f465cc r5:00080000 r4:c0e07b80
[29685.389374] r3:00000009
[29685.389465] [<c0075e00>] (warn_slowpath_null+0x0/0x2c) from [<c001e590>] (gic_is_irq_pending+0xa8/0xb4)
[29685.389587] [<c001e4e8>] (gic_is_irq_pending+0x0/0xb4) from [<c0066160>] (msm_rpm_busy_wait_for_request_completion+0x54/0xd8)
[29685.389618] r5:00000000 r4:c0f445d4
[29685.389740] [<c006610c>] (msm_rpm_busy_wait_for_request_completion+0x0/0xd8) from [<c00663bc>] (msm_rpm_set_exclusive_noirq+0x1d8/0x294)
[29685.389801] r8:d55bbb94 r7:00000001 r6:c0f465cc r5:c0f445d4 r4:0000000c
[29685.389892] r3:fa006008
[29685.389984] [<c00661e4>] (msm_rpm_set_exclusive_noirq+0x0/0x294) from [<c00666ac>] (msm_rpm_set_noirq+0x84/0xc0)
[29685.390075] [<c0066628>] (msm_rpm_set_noirq+0x0/0xc0) from [<c00679d4>] (msm_rpmrs_set_noirq+0x3c/0x6c)
[29685.390137] r8:00000000 r7:60000013 r6:d55bbbf0 r5:00000001 r4:00000000
[29685.390289] [<c0067998>] (msm_rpmrs_set_noirq+0x0/0x6c) from [<c0061378>] (clk_rpmrs_set_rate+0x40/0x44)
[29685.390350] r6:07ed6b40 r5:00020788 r4:c0e44b60 r3:00000001
[29685.390503] [<c0061338>] (clk_rpmrs_set_rate+0x0/0x44) from [<c006105c>] (rpm_clk_set_rate+0xa8/0xe4)
[29685.390594] [<c0060fb4>] (rpm_clk_set_rate+0x0/0xe4) from [<c0025c4c>] (clk_set_rate+0xb4/0x114)
[29685.390716] [<c0025b98>] (clk_set_rate+0x0/0x114) from [<c0025f88>] (voter_clk_set_rate+0xa0/0xc4)
[29685.390747] r8:1fc4ef40 r7:c0e45060 r6:c0e45024 r5:07ed6b40 r4:1fc4ef40
[29685.390838] r3:1fc4ef40
[29685.390930] [<c0025ee8>] (voter_clk_set_rate+0x0/0xc4) from [<c0025c4c>] (clk_set_rate+0xb4/0x114)
[29685.390991] r6:07ed6b40 r5:00000000 r4:c0e45024 r3:c0025ee8
[29685.391144] [<c0025b98>] (clk_set_rate+0x0/0x114) from [<c0069ee0>] (msm_bus_fabric_clk_set+0x120/0x1b8)
[29685.391174] r8:00000000 r7:00000001 r6:00000000 r5:00000001 r4:e53d7518
[29685.391266] r3:c0060f68
[29685.391388] [<c0069dc0>] (msm_bus_fabric_clk_set+0x0/0x1b8) from [<c0069fec>] (msm_bus_fabric_clk_commit+0x74/0xe8)
[29685.391479] [<c0069f78>] (msm_bus_fabric_clk_commit+0x0/0xe8) from [<c006a07c>] (msm_bus_fabric_hw_commit+0x1c/0x88)
[29685.391540] r8:00000002 r7:e55a7b80 r6:c006b020 r5:00000000 r4:cf730400
[29685.391693] [<c006a060>] (msm_bus_fabric_hw_commit+0x0/0x88) from [<c006b03c>] (msm_bus_commit_fn+0x1c/0x20)
[29685.391724] r5:00000000 r4:00000000
[29685.391876] [<c006b020>] (msm_bus_commit_fn+0x0/0x20) from [<c0315aa0>] (bus_for_each_dev+0x54/0x88)
[29685.391968] [<c0315a4c>] (bus_for_each_dev+0x0/0x88) from [<c006bdf0>] (msm_bus_scale_client_update_request+0x21c/0x300)
[29685.392029] r6:e55a71c0 r5:00000000 r4:00000000
[29685.392151] [<c006bbd4>] (msm_bus_scale_client_update_request+0x0/0x300) from [<c002875c>] (acpuclk_krait_set_rate+0x328/0x664)
[29685.392242] [<c0028434>] (acpuclk_krait_set_rate+0x0/0x664) from [<c0027f84>] (acpuclk_set_rate+0x54/0x64)
[29685.392334] [<c0027f30>] (acpuclk_set_rate+0x0/0x64) from [<c0027020>] (msm_cpufreq_target+0x148/0x21c)
[29685.392395] r7:c0e003b8 r6:c0e29ed0 r5:edc3de40 r4:000278d0
[29685.392548] [<c0026ed8>] (msm_cpufreq_target+0x0/0x21c) from [<c0483344>] (__cpufreq_driver_target+0x74/0x9c)
[29685.392639] [<c04832d0>] (__cpufreq_driver_target+0x0/0x9c) from [<c0485ef0>] (cpufreq_interactive_freq_down+0xf4/0x11c)
[29685.392700] r5:c3726230 r4:000278d0
[29685.392822] [<c0485dfc>] (cpufreq_interactive_freq_down+0x0/0x11c) from [<c008d0c0>] (process_one_work+0x154/0x450)
[29685.392914] [<c008cf6c>] (process_one_work+0x0/0x450) from [<c008d728>] (worker_thread+0x170/0x448)
[29685.393005] [<c008d5b8>] (worker_thread+0x0/0x448) from [<c0091bf0>] (kthread+0xac/0xb8)
[29685.393097] [<c0091b44>] (kthread+0x0/0xb8) from [<c0079be8>] (do_exit+0x0/0x7e4)
[29685.393128] r7:00000013 r6:c0079be8 r5:c0091b44 r4:d4f89e88
[29685.393250] ---[ end trace a260e30eb2c864e1 ]---

[29685.888229] ------------[ cut here ]------------
[29685.888229] WARNING: at kernel/time/timekeeping.c:251 ktime_get+0x118/0x12c()
[29685.888229] Modules linked in:
[29685.888229] Backtrace:
[29685.888229] [<c0012a70>] (dump_backtrace+0x0/0x10c) from [<c084a300>] (dump_stack+0x18/0x1c)
[29685.888229] r6:c00acc20 r5:00000009
[29685.888229] msm_pm_enter
[29685.888229] r4:00000000
[29685.888229] msm_pm_enter: power collapse
[29685.888229] r3:902945ce
[29685.888229] msm_mpm_irqs_detectable: cannot monitor irq=261 (null)
[29685.888229]
[29685.888229] msm_pm_enter: cannot find the lowest power limit
[29685.888229] [<c084a2e8>] (dump_stack+0x0/0x1c) from [<c0075de8>] (warn_slowpath_common+0x54/0x6c)
[29685.888229] msm_pm_enter: return
[29685.888229] [<c0075d94>] (warn_slowpath_common+0x0/0x6c) from [<c0075e24>] (warn_slowpath_null+0x24/0x2c)
[29685.888229] r8:00000000 r7:00000012 r6:00000020 r5:e536a000 r4:00000001
[29685.888229] r3:00000009
[29685.888229] [<c0075e00>] (warn_slowpath_null+0x0/0x2c) from [<c00acc20>] (ktime_get+0x118/0x12c)
[29685.888229] [<c00acb08>] (ktime_get+0x0/0x12c) from [<c00b37c8>] (tick_nohz_stop_sched_tick.isra.5+0x48/0x39c)
[29685.888229] [<c00b3780>] (tick_nohz_stop_sched_tick.isra.5+0x0/0x39c) from [<c00b3c10>] (tick_nohz_irq_exit+0x40/0x4c)
[29685.888260] [<c00b3bd0>] (tick_nohz_irq_exit+0x0/0x4c) from [<c007c720>] (irq_exit+0x80/0xa0)
[29685.888290] [<c007c6a0>] (irq_exit+0x0/0xa0) from [<c000f850>] (handle_IRQ+0x5c/0xc0)
[29685.888290] r4:c0e29ed0 r3:c001db60
[29685.888321] [<c000f7f4>] (handle_IRQ+0x0/0xc0) from [<c00085c4>] (gic_handle_irq+0x44/0xec)
[29685.888321] r8:c0e2915c r7:e536bf20 r6:fa003000 r5:00000012 r4:c0e2915c
[29685.888321] r3:00000002
[29685.888351] [<c0008580>] (gic_handle_irq+0x0/0xec) from [<c000e540>] (__irq_svc+0x40/0x70)
[29685.888351] Exception stack(0xe536bf20 to 0xe536bf68)
[29685.888382] bf20: 00000000 00000003 0000f3f8 00000000 c37273c0 00000000 c37273c0 c1013878
[29685.888382] bf40: c0e3d73c 510f06f2 c0906c80 e536bf7c 00000000 e536bf68 c0058ebc c005e284
[29685.888412] bf60: 60000013 ffffffff
[29685.888412] r8:c0e3d73c r7:e536bf54 r6:ffffffff r5:60000013 r4:c005e284
[29685.888443] [<c005e220>] (msm_cpuidle_enter+0x0/0x74) from [<c0487228>] (cpuidle_enter+0x1c/0x20)
[29685.888443] r5:00000000 r4:00000000
[29685.888473] [<c048720c>] (cpuidle_enter+0x0/0x20) from [<c0487750>] (cpuidle_idle_call+0xa8/0x13c)
[29685.888504] [<c04876a8>] (cpuidle_idle_call+0x0/0x13c) from [<c000ff08>] (cpu_idle+0x78/0x108)
[29685.888504] r8:c0e31f50 r7:e536a000 r6:c0ed7888 r5:e536a000 r4:e536a000
[29685.888504] r3:00000000
[29685.888534] [<c000fe90>] (cpu_idle+0x0/0x108) from [<c08470e8>] (secondary_start_kernel+0x11c/0x13c)
[29685.888565] [<c0846fcc>] (secondary_start_kernel+0x0/0x13c) from [<80a467f4>] (0x80a467f4)
[29685.888565] r5:00000015 r4:51000400
[29685.888595] ---[ end trace a260e30eb2c864e2 ]---

[29720.593402] ------------[ cut here ]------------
[29720.593402] msm_mpm_irqs_detectable: cannot monitor irq=261 (null)
[29720.593402] WARNING: at kernel/time/timekeeping.c:251 ktime_get+0x118/0x12c()
[29720.593402] msm_pm_enter: cannot find the lowest power limit
[29720.593402] Modules linked in:
[29720.593402] msm_pm_enter: return
[29720.593402]
[29720.593402] Backtrace:
[29720.593402] [<c0012a70>] (dump_backtrace+0x0/0x10c) from [<c084a300>] (dump_stack+0x18/0x1c)
[29720.593463] r6:c00acc20 r5:00000009 r4:00000000 r3:902945ce
[29720.593616] [<c084a2e8>] (dump_stack+0x0/0x1c) from [<c0075de8>] (warn_slowpath_common+0x54/0x6c)
[29720.593707] [<c0075d94>] (warn_slowpath_common+0x0/0x6c) from [<c0075e24>] (warn_slowpath_null+0x24/0x2c)
[29720.593768] r8:00000002 r7:c1013878 r6:00000000 r5:00001b07 r4:98ef55af
[29720.593891] r3:00000009
[29720.593982] [<c0075e00>] (warn_slowpath_null+0x0/0x2c) from [<c00acc20>] (ktime_get+0x118/0x12c)
[29720.594074] [<c00acb08>] (ktime_get+0x0/0x12c) from [<c0058554>] (msm_pm_idle_enter+0x64/0x230)
[29720.594165] [<c00584f0>] (msm_pm_idle_enter+0x0/0x230) from [<c005e23c>] (msm_cpuidle_enter+0x1c/0x74)
[29720.594226] r8:c0e3d73c r7:c1013878 r6:c37273c0 r5:00000000 r4:c37273c0
[29720.594379] [<c005e220>] (msm_cpuidle_enter+0x0/0x74) from [<c0487228>] (cpuidle_enter+0x1c/0x20)
[29720.594440] r5:00000000 r4:00000000
[29720.594531] [<c048720c>] (cpuidle_enter+0x0/0x20) from [<c0487750>] (cpuidle_idle_call+0xa8/0x13c)
[29720.594623] [<c04876a8>] (cpuidle_idle_call+0x0/0x13c) from [<c000ff08>] (cpu_idle+0x78/0x108)
[29720.594684] r8:c0e31f50 r7:e536a000 r6:c0ed7888 r5:e536a000 r4:e536a000
[29720.594776] r3:00000000
[29720.594898] [<c000fe90>] (cpu_idle+0x0/0x108) from [<c08470e8>] (secondary_start_kernel+0x11c/0x13c)
[29720.594959] PM: noirq resume of devices complete after 1.463 msecs
[29720.595020] [<c0846fcc>] (secondary_start_kernel+0x0/0x13c) from [<80a467f4>] (0x80a467f4)
[29720.595050] r5:00000015 r4:51000400
[29720.595111] ---[ end trace a260e30eb2c864e3 ]---

[29765.876845] ------------[ cut here ]------------
[29765.876845] WARNING: at arch/arm/mach-msm/pm-8x60.c:978 msm_pm_enter+0x1ac/0x308()
[29765.876845] Modules linked in:
[29765.876845] Backtrace:
[29765.876845] [<c0012a70>] (dump_backtrace+0x0/0x10c) from [<c084a300>] (dump_stack+0x18/0x1c)
[29765.876845] r6:c0058070 r5:00000009 r4:00000000 r3:902945ce
[29765.876845] [<c084a2e8>] (dump_stack+0x0/0x1c) from [<c0075de8>] (warn_slowpath_common+0x54/0x6c)
[29765.876845] [<c0075d94>] (warn_slowpath_common+0x0/0x6c) from [<c0075e24>] (warn_slowpath_null+0x24/0x2c)
[29765.876845] r8:c0e37e8c r7:c0fe7914 r6:00000003 r5:00003ce4 r4:a13f3c54
[29765.876845] r3:00000009
[29765.876845] [<c0075e00>] (warn_slowpath_null+0x0/0x2c) from [<c0058070>] (msm_pm_enter+0x1ac/0x308)
[29765.876845] [<c0057ec4>] (msm_pm_enter+0x0/0x308) from [<c00a9ad8>] (suspend_devices_and_enter+0x1a0/0x1d4)
[29765.876845] [<c00a9938>] (suspend_devices_and_enter+0x0/0x1d4) from [<c00a9c60>] (pm_suspend+0x154/0x1d8)
[29765.876845] r8:00000000 r7:e8802000 r6:000fd2fe r5:00000000 r4:00000003
[29765.876845] r3:00000000
[29765.876845] [<c00a9b0c>] (pm_suspend+0x0/0x1d8) from [<c00aada4>] (suspend+0x64/0x19c)
[29765.876845] r5:c0f8a058 r4:c0e7f8b0
[29765.876845] [<c00aad40>] (suspend+0x0/0x19c) from [<c008d0c0>] (process_one_work+0x154/0x450)
[29765.876845] r7:e8802000 r6:c0f89540 r5:ec2f8e40 r4:c0e7fa98
[29765.876845] [<c008cf6c>] (process_one_work+0x0/0x450) from [<c008d728>] (worker_thread+0x170/0x448)
[29765.876845] [<c008d5b8>] (worker_thread+0x0/0x448) from [<c0091bf0>] (kthread+0xac/0xb8)
[29765.876845] [<c0091b44>] (kthread+0x0/0xb8) from [<c0079be8>] (do_exit+0x0/0x7e4)
[29765.876845] r7:00000013 r6:c0079be8 r5:c0091b44 r4:c617be88
[29765.876845] ---[ end trace a260e30eb2c864e4 ]---

[29777.030942] ------------[ cut here ]------------
[29777.030942] msm_pm_enter: return
[29777.030942] WARNING: at kernel/time/timekeeping.c:251 ktime_get+0x118/0x12c()
[29777.030942] Modules linked in:
[29777.030942] Backtrace:
[29777.030942] [<c0012a70>] (dump_backtrace+0x0/0x10c) from [<c084a300>] (dump_stack+0x18/0x1c)
[29777.030942] r6:c00acc20 r5:00000009 r4:00000000 r3:902945ce
[29777.030973] [<c084a2e8>] (dump_stack+0x0/0x1c) from [<c0075de8>] (warn_slowpath_common+0x54/0x6c)
[29777.031003] [<c0075d94>] (warn_slowpath_common+0x0/0x6c) from [<c0075e24>] (warn_slowpath_null+0x24/0x2c)
[29777.031034] r8:00000002 r7:c1013878 r6:00000000 r5:00001b14 r4:bc6d3c6e
[29777.031034] r3:00000009
[29777.031064] [<c0075e00>] (warn_slowpath_null+0x0/0x2c) from [<c00acc20>] (ktime_get+0x118/0x12c)
[29777.031095] [<c00acb08>] (ktime_get+0x0/0x12c) from [<c0058554>] (msm_pm_idle_enter+0x64/0x230)
[29777.031125] [<c00584f0>] (msm_pm_idle_enter+0x0/0x230) from [<c005e23c>] (msm_cpuidle_enter+0x1c/0x74)
[29777.031125] r8:c0e3d73c r7:c1013878 r6:c37273c0 r5:00000000 r4:c37273c0
[29777.031156] [<c005e220>] (msm_cpuidle_enter+0x0/0x74) from [<c0487228>] (cpuidle_enter+0x1c/0x20)
[29777.031156] r5:00000000 r4:00000000
[29777.031186] [<c048720c>] (cpuidle_enter+0x0/0x20) from [<c0487750>] (cpuidle_idle_call+0xa8/0x13c)
[29777.031217] [<c04876a8>] (cpuidle_idle_call+0x0/0x13c) from [<c000ff08>] (cpu_idle+0x78/0x108)
[29777.031217] r8:c0e31f50 r7:e536a000 r6:c0ed7888 r5:e536a000 r4:e536a000
[29777.031247] r3:00000000
[29777.031278] [<c000fe90>] (cpu_idle+0x0/0x108) from [<c08470e8>] (secondary_start_kernel+0x11c/0x13c)
[29777.031308] [<c0846fcc>] (secondary_start_kernel+0x0/0x13c) from [<80a467f4>] (0x80a467f4)
[29777.031308] r5:00000015 r4:51000400
[29777.031339] ---[ end trace a260e30eb2c864e5 ]---

EDIT: Hopefully there's a new r203 (or r204 if franco releases a new build) soon since franco merged a lot of new patches and speed improvements in r202 and fixed a deep sleep bug in r203.

deltatux