This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: Linux-AM3358

Part Number: AM3358

Tool/software: Linux

Hi 

    I am using 4.9.14 kernel for suspend to disk  in low power modes in our custom design board. 

   i have created swap space in mmcblk device.

  1. mkswap /dev/mmcblk0p3

2. swapon /dev/mmcblk0p3

3.  After run this "echo disk > /sys/power/state."  image was writing in swap space. and gets shutdown

[ 1540.241570] PM: Syncing filesystems ... [ 1540.318406] done.
[ 1540.320369] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 1540.328872] PM: Preallocating image memory... done (allocated 13602 pages)
[ 1540.477565] PM: Allocated 54408 kbytes in 0.14 seconds (388.62 MB/s)
[ 1540.483998] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 1540.493503] Suspending console(s) (use no_console_suspend to debug)
[ 1540.509707] PM: freeze of devices complete after 9.866 msecs
[ 1540.511761] PM: late freeze of devices complete after 2.019 msecs
[ 1540.514218] PM: noirq freeze of devices complete after 2.423 msecs
[ 1540.514232] PM: Creating hibernation image:
[ 1540.514232] PM: Need to copy 13500 pages
[ 1540.514232] PM: Hibernation image created (13500 pages copied)
[ 1540.534281] PM: noirq thaw of devices complete after 19.953 msecs
[ 1540.536146] PM: early thaw of devices complete after 1.606 msecs
[ 1540.537109] net eth0: initializing cpsw version 1.12 (0)
[ 1540.540988] libphy: PHY 4a101000.mdio:00 not found
[ 1540.541010] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19
[ 1540.548846] Suspended for 1.442 seconds
[ 1540.662276] PM: thaw of devices complete after 126.098 msecs
[ 1540.829831] PM: Using 1 thread(s) for compression.
[ 1540.829831] PM: Compressing and saving image data (13514 pages)...
[ 1540.840972] PM: Image saving progress: 0%
[ 1541.065182] PM: Image saving progress: 10%
[ 1541.252350] PM: Image saving progress: 20%
[ 1541.433710] PM: Image saving progress: 30%
[ 1541.573239] PM: Image saving progress: 40%
[ 1541.720050] PM: Image saving progress: 50%
[ 1541.854153] PM: Image saving progress: 60%
[ 1542.029090] PM: Image saving progress: 70%
[ 1542.171309] PM: Image saving progress: 80%
[ 1542.320160] PM: Image saving progress: 90%
[ 1542.447898] PM: Image saving progress: 100%
[ 1544.627634] PM: Image saving done.
[ 1544.631087] PM: Wrote 54056 kbytes in 3.78 seconds (14.30 MB/s)
[ 1544.640465] PM: S[ 1544.647864] |

4. After Plug in POwer source ,it resumes from mmcblk0p3 as given below.   i am not able to get  prompt in hibernation mode. Please help to solve this issue

 remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148

[ 5.632530] of_cfs_init: OK
[ 5.637320] remoteproc0: remote processor wkup_m3 is now up
[ 5.643059] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[ 6.953127] Freezing user space processes ... (elapsed 0.000 seconds) done.
[ 6.989185] PM: Using 1 thread(s) for decompression.
[ 6.989185] PM: Loading and decompressing image data (13514 pages)...
[ 8.133453] PM: Image loading progress: 0%
[ 8.585907] PM: Image loading progress: 10%
[ 8.844112] PM: Image loading progress: 20%
[ 9.130363] PM: Image loading progress: 30%
[ 9.356363] PM: Image loading progress: 40%
[ 9.586023] PM: Image loading progress: 50%
[ 9.806496] PM: Image loading progress: 60%
[ 10.077251] PM: Image loading progress: 70%
[ 10.301240] PM: Image loading progress: 80%
[ 10.533960] PM: Image loading progress: 90%
[ 10.751632] PM: Image loading progress: 100%
[ 10.756520] PM: Image loading done.
[ 10.760063] PM: Read 54056 kbytes in 3.75 seconds (14.41 MB/s)
[ 10.782742] Suspending console(s) (use no_console_suspend to debug)

Regards

Rajalakshmi A