suspend/resume test

Balaji Rao balaji at raobalaji.com
Sun Dec 7 15:49:50 CET 2008


On Sun, Dec 07, 2008 at 02:41:13PM +0000, Andy Green wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Somebody in the thread at some point said:
>
> |         Right now, I use andy-tracking branch, and the version I built
> | was 2eb3742db1ecd3d9ffe8f02eaa8def1b2bd2a2c2.
> |         I copied arch/arm/configs/gta02-moredrivers-defconfig to
> | .config, then I used the build script to build.
> |         After the build, I got uImage-GTA02.bin and
> | uImage-moredrivers-GTA02_andy-tracking_2eb3742db1ecd3d9.bin. I think
> | they are the same. That are the image I used.
> |         I changed the runlevel to 3 and tried as I can. The resume
> | seemed not work for me. and I got a resume panic log by using debug
> | board, as attached file.   Any ideas about what I may do wrong ?
>
> First what's up with your terminal emulator, you need to set it to add
> CR to LF or use a more normal one.
>
> Did you have a uSD in the device at this time?
>
> The first two backtraces are not "panics" but warning backtraces about
> sequencing of regulator stuffs, to show where the code that needs work
> is and how we got there.  They're on my list of stuff to fix, but these
> are not fatal errors.
>
> Then there is this:
> ~                             <3>[  229.785000] INFO: task apmd:685
> blocked for more than 120 seconds.
> ~          <3>[  229.785000] "echo 0 >
> /proc/sys/kernel/hung_task_timeout_secs" disables this message.
> ~          <6>[  229.785000] apmd          D c0378cd8     0   685      1
>
> <4>[  229.785000] [<c03789c8>] (schedule+0x0/0x36c) from [<c01ca354>]
> (apm_ioctl+0x124/0x1e4)
>
> ~ <4>[  229.785000] [<c01ca230>] (apm_ioctl+0x0/0x1e4) from [<c00bc3b8>]
> (vfs_ioctl+0x80/0x9c)
>
> ~  <4>[  229.785000]  r6:00004102 r5:00000000 r4:c783b200
> ~                                     <4>[  229.785000] [<c00bc338>]
> (vfs_ioctl+0x0/0x9c) from [<c00bc93c>] (do_vfs_ioctl+0x150/0x16c)
> ~                                          <4>[  229.785000]  r6:00004102
> r5:fffffff7 r4:00000000
> ~     <4>[  229.785000] [<c00bc7ec>] (do_vfs_ioctl+0x0/0x16c) from
> [<c00bc998>] (sys_ioctl+0x40/0x60)
> ~         <4>[  229.785000]  r4:c783b200
> ~                                       <4>[  229.785000] [<c00bc958>]
> (sys_ioctl+0x0/0x60) from [<c002fde0>] (ret_fast_syscall+0x0/0x2c)
> ~                                             <4>[  229.785000]
> r6:0000003c r5:40e032c0 r4:00000000
> ~        <4>[  229.785000] INFO: lockdep is turned off.
> ~                                                      <0>Kernel panic -
> not syncing: softlockup: blocked task
>
> I'm not running apmd and I don't get any trouble therefore... what is
> apmd doing?  Is this because you suspended by apm -s?
>

Jeremy,

I just used apm -s and it suspended and resumed perfectly. Probably a
bug in your apm command ? Try 'echo mem > /sys/power/state'. 

	- Balaji



More information about the openmoko-kernel mailing list