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.

PROCESSOR-SDK-AM57X: Failed to suspend.

Part Number: PROCESSOR-SDK-AM57X
Other Parts Discussed in Thread: TMDSEVM572X

Hi

We are evaluating the AM57X with the following environment.
  Board : TMDSEVM572X
  SDK : PROCESSOR-SDK-LINUX-AM57X-06.03.00.106
            Download am57xx-evm-linux-06.03.00.106.img.zip and write this image to the micro SD card.

We want to use suspend and resume.
We tried as follows.

Set "no_console_suspend" in u-boot.
~~~
=> setenv optargs no_console_suspend
~~~
Check that the cmd line contains "no_console_suspend".
~~~
root@am57xx-evm:~# cat /proc/cmdline
console=ttyS2,115200n8 no_console_suspend root=PARTUUID=351f25a0-02 rw rootfstype=ext4 rootwait
~~~

Test as below.
However, suspend is not completed.
~~~
root@am57xx-evm:~# cat /sys/power/mem_sleep
s2idle [deep]
root@am57xx-evm:~# echo enabled > /sys/devices/platform/44000000.ocp/48020000.serial/tty/ttyS2/power/wakeup
root@am57xx-evm:~# echo mem > /sys/power/state
[ 439.992625] PM: suspend entry (deep)
[ 439.996233] PM: Syncing filesystems ... done.
[ 440.045530] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 440.053873] OOM killer disabled.
[ 440.057111] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 440.289486] omap-mailbox 48840000.mailbox: Try increasing MBOX_TX_QUEUE_LEN
[ 440.296540] omap-rproc 58820000.ipu: PM mbox_send_message failed: -105
[ 440.303124] omap-rproc 58820000.ipu: suspend failed -105
[ 440.308471] dpm_run_callback(): platform_pm_suspend+0x0/0x5c returns -105
[ 440.315338] PM: Device 58820000.ipu failed to suspend: error -105
[ 440.321462] PM: Some devices failed to suspend, or early wake event detected
[ 440.329067] net eth0: initializing cpsw version 1.15 (0)
[ 440.453273] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[ 440.468925] net eth1: initializing cpsw version 1.15 (0)
[ 440.592981] Micrel KSZ9031 Gigabit PHY 48485000.mdio:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=POLL)
[ 440.667407] ata1: SATA link down (SStatus 0 SControl 300)
[ 441.033954] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 441.405189] OOM killer enabled.
[ 441.408344] Restarting tasks ... done.
[ 441.417038] PM: suspend exit
-sh: echo: write error: No buffer space available
root@am57xx-evm:~#
~~~

Switch from deep to s2idel and try again.
Suspend is also not completed.
~~~
root@am57xx-evm:~# echo s2idle > /sys/power/mem_sleep
root@am57xx-evm:~# cat /sys/power/mem_sleep
[s2idle] deep
root@am57xx-evm:~# echo enabled > /sys/devices/platform/44000000.ocp/48020000.serial/tty/ttyS2/power/wakeup
root@am57xx-evm:~# echo mem > /sys/power/state
[ 2224.292607] PM: suspend entry (s2idle)
[ 2224.296379] PM: Syncing filesystems ... done.
[ 2224.347445] Freezing user space processes ... (elapsed 0.001 seconds) done.
[ 2224.355745] OOM killer disabled.
[ 2224.358983] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 2224.623278] omap-mailbox 48840000.mailbox: Try increasing MBOX_TX_QUEUE_LEN
[ 2224.630280] omap-rproc 58820000.ipu: PM mbox_send_message failed: -105
[ 2224.636864] omap-rproc 58820000.ipu: suspend failed -105
[ 2224.642212] dpm_run_callback(): platform_pm_suspend+0x0/0x5c returns -105
[ 2224.649053] PM: Device 58820000.ipu failed to suspend: error -105
[ 2224.655193] PM: Some devices failed to suspend, or early wake event detected
[ 2224.662889] net eth0: initializing cpsw version 1.15 (0)
[ 2224.803002] Micrel KSZ9031 Gigabit PHY 48485000.mdio:01: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:01, irq=POLL)
[ 2224.818654] net eth1: initializing cpsw version 1.15 (0)
[ 2224.953318] Micrel KSZ9031 Gigabit PHY 48485000.mdio:02: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=POLL)
[ 2224.997389] ata1: SATA link down (SStatus 0 SControl 300)
[ 2225.394342] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[ 2225.764694] OOM killer enabled.
[ 2225.767849] Restarting tasks ... done.
[ 2225.777372] PM: suspend exit
-sh: echo: write error: No buffer space available
root@am57xx-evm:~#
~~~

Could you please let us know the solution?

Thanks.

Best regards,