Openmoko Bug #2309: hangs during resume after printing GSTATUS4

4 messages Options
Embed this post
Permalink
Openmoko Public Trac

Openmoko Bug #2309: hangs during resume after printing GSTATUS4

Reply Threaded More More options
Print post
Permalink
#2309: hangs during resume after printing GSTATUS4
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel      
     Type:  defect           |         Status:  new                  
 Priority:  normal           |      Milestone:                      
Component:  System Software  |        Version:                      
 Severity:  normal           |       Keywords:  resume suspend kernel
 Haspatch:  0                |      Blockedby:                      
Estimated:                   |    Patchreview:                      
 Blocking:                   |   Reproducible:  rarely              
-----------------------------+----------------------------------------------
 Steps to reproduce (occurs very rarely!):
 1) suspend the device
 2) press power button

 Expected results:
 2) phone wakes up

 Actual results:
 2) nothing visible happens

 More info:
 1) kernel: andy-tracking 4e418ad2a6bae968 with two patches:
 1.1)
 http://docs.openmoko.org/trac/attachment/ticket/2277/wifi_ifupdown.patch
 1.2)
 http://docs.openmoko.org/trac/attachment/ticket/2135/ramconsole-2.patch
 2) boot loader: Qi 9ef7754b8243457c
 3) hardware: gta02V5
 4) Xorg driver: xserver-xorg-video-fbdev
 4) after step 2) I called myself from another phone
 5) I then removed the battery and caller was immediately notified
 "User is temporarily unavailable." -- This should prove that the GSM modem
 was alive and lost power only when I finally removed the battery
 6) I recovered kernel log buffer from memory and noticed that the last
 messages printed by the kernel were

 <7>[46635.530000] Leaving IRQ 49 (pin 165) enAbled
 <7>[46635.530000] Disabling IRQ 50 (pin 166)
 <7>[46635.530000] Disabling IRQ 51 (pin 167)
 <7>[46635.530000] Leaving IRQ 53 (pin 193) enabled
 <7>[46635.530000] Disabling IRQ 56 (pin 196)
 <7>[46635.530000] sleep: irq wakeup masks: fffffffd,fffffdcf
 <7>[46635.530000] GSTATUS3 0x3038ca5c
 <7>[46635.530000] GSTATUS4 0x00000200

 NOTE: RAM contents was partially corrupted when I removed the battery, you
 should not trust the output to be 100% correct.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2309>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Openmoko Public Trac

Re: Openmoko Bug #2309: hangs during resume after printing GSTATUS4

Reply Threaded More More options
Print post
Permalink
#2309: hangs during resume after printing GSTATUS4
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel      
     Type:  defect           |         Status:  new                  
 Priority:  normal           |      Milestone:                      
Component:  System Software  |        Version:                      
 Severity:  normal           |       Keywords:  resume suspend kernel
 Haspatch:  0                |      Blockedby:                      
Estimated:                   |    Patchreview:                      
 Blocking:                   |   Reproducible:  rarely              
-----------------------------+----------------------------------------------

Comment(by lindi):

 I hit this again. This time I connected the phone via USB to laptop and
 removed the battery with the hope that I could measure USB power
 consumption with laptop. However, I heard maybe a really low frequency
 sound from the phone when I removed the battery. I put the battery back
 and noticed that the device was booting.

 Since the battery was removed for a while the ramconsole output got really
 garbled:

 {{{
 00076680  48 33 61 62 6c 69 6a 67  20 48 52 11 20 35 22 20  |H3ablijg HR.
 5" |
 00076690  28 10 29 6e 20 31 19 36  29 02 3c 33 3a 4b 33 16  |(.)n
 1.6).<3:K3.|
 000766a0  30 11 36 31 2e 10 30 31  20 30 30 5c 20 63 44 25  |0.61..01 00\
 cD%|
 000766b0  65 50 2a 20 61 32 71 20  73 60 42 65 75 50 00 69  |eP* a2q
 s`BeuP.i|
 000766c0  21 73 6b 72 3a 00 62 66  26 66 66 64 66 64 2c 24
 |!skr:.bf&ffdfd,$|
 000766d0  64 66 64 66 24 42 22 0a  3c 32 3e 59 33 17 18 31
 |dfdf$B".<2>Y3..1|
 000766e0  26 30 04 31 30 34 30 30  00 55 20 47 02 54 01 10  |&0.10400.U
 G.T..|
 000766f0  45 52 12 20 00 70 13 30  23 38 21 60 45 23 0a 3c  |ER.
 .p.0#8!`E#.<|
 00076700  07 1e 42 33 17 30 30 36  30 22 11 30 11 30 30 30
 |..B3.0060".0.000|
 00076710  5d 20 07 13 14 41 54 51  51 34 00 10 38 10 30 30  |] ...AT
 }}}

 However, one can easily see patterns like "Disabling IRQ 56 (pin 196)" and
 "sleep: irq wakeup masks: fffffffd,fffffdcf".

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2309#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Openmoko Public Trac

Re: Openmoko Bug #2309: hangs during resume after printing GSTATUS4

Reply Threaded More More options
Print post
Permalink
In reply to this post by Openmoko Public Trac
#2309: hangs during resume after printing GSTATUS4
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel      
     Type:  defect           |         Status:  new                  
 Priority:  normal           |      Milestone:                      
Component:  System Software  |        Version:                      
 Severity:  normal           |       Keywords:  resume suspend kernel
 Haspatch:  0                |      Blockedby:                      
Estimated:                   |    Patchreview:                      
 Blocking:                   |   Reproducible:  rarely              
-----------------------------+----------------------------------------------

Comment(by lindi):

 This time the kernel was andy-tracking a3587e4ed77974ad with ramconsole
 patch and Qi 9ef7754b8243457c. I still don't have a clue on how to
 reproduce the bug.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2309#comment:2>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
Openmoko Public Trac

Re: Openmoko Bug #2309: hangs during resume after printing GSTATUS4

Reply Threaded More More options
Print post
Permalink
In reply to this post by Openmoko Public Trac
#2309: hangs during resume after printing GSTATUS4
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel      
     Type:  defect           |         Status:  new                  
 Priority:  normal           |      Milestone:                      
Component:  System Software  |        Version:                      
 Severity:  normal           |       Keywords:  resume suspend kernel
 Haspatch:  0                |      Blockedby:                      
Estimated:                   |    Patchreview:                      
 Blocking:                   |   Reproducible:  rarely              
-----------------------------+----------------------------------------------

Comment(by RuiSeabra):

 I think this sometimes happens to me as well. I've got current and updated
 shr-unstable, with Xglamo. I'd point towards kernel or bootloader thing as
 Xglamo is neither xorg nor xorg with fbdev.

--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2309#comment:3>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac