Hi,
I was using the prebuild kernel and dtb from ti-sdk-am437x-evm-07.01.00.00-Linux-x86-Install.bin sdk. According to the wiki [1], the suspend to ram is supported on am437x. But it doesn't work for me. The standby suspend works fine. The following is the log:
root@am437x-evm:~# cat /proc/version
Linux version 3.12.10-ti2013.12.01 (jenkins@sdit-build02) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) 1
Mon Jun 9 09:55:20 CDT 2014
root@am437x-evm:~#
root@am437x-evm:~# echo standby >/sys/power/state
[ 81.493771] PM: Syncing filesystems ... done.
[ 81.515094] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 81.523678] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 81.532698] Suspending console(s) (use no_console_suspend to debug)
[ 81.544149] PM: suspend of devices complete after 4.218 msecs
[ 81.544664] PM: late suspend of devices complete after 0.500 msecs
[ 81.545394] PM: noirq suspend of devices complete after 0.715 msecs
[ 81.545505] PM: Successfully put all powerdomains to target state
[ 81.545505] PM: Wakeup source UART
[ 81.559186] PM: noirq resume of devices complete after 13.645 msecs
[ 81.559332] pixcir_ts 1-005c: pixcir_ts_typeb_report: i2c_master_send failed(), ret=-13
[ 81.559784] PM: early resume of devices complete after 0.428 msecs
[ 81.560256] net eth0: initializing cpsw version 1.15 (0)
[ 81.561652] net eth0: phy found : id is : 0x221622
[ 81.843626] PM: resume of devices complete after 283.820 msecs
[ 81.912417] Restarting tasks ... done.
root@am437x-evm:~# [ 83.554248] libphy: 4a101000.mdio:00 - Link is Up - 100/Full
root@am437x-evm:~#
root@am437x-evm:~# echo mem >/sys/power/state
[ 91.773702] PM: Syncing filesystems ... done.
[ 92.273256] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 92.281837] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 92.290879] Suspending console(s) (use no_console_suspend to debug)
Did I miss something? Does anyone can confirm if the suspend to ram is supported or not on am437x-gp-evm board?
Thanks,
Kevin
[1] - http://processors.wiki.ti.com/index.php/Linux_Core_Power_Management_User%27s_Guide