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.

AM437x Starter Kit EVM does not resume from Suspend

I am using AM437x-sk, and I am trying to perform Suspend/resume. I followed documentation's instructions here http://processors.wiki.ti.com/index.php/Linux_Core_Power_Management_User%27s_Guide_%28v4.1%29#Power_Management_Usage  and I can put/out my board in standby mode but when I enter in mem mode I am not able to exit that mode.

  • No it is a standard board.
    Best Regards
    Achille
  • Please post what command you are using.
  • In/out standby mode

    root@am437xsk:/ # echo standby > /sys/power/state                              
    [  207.186641] PM: suspend entry 2000-01-01 00:16:51.859737376 UTC
    [  207.192980] PM: Syncing filesystems ... done.
    [  207.227985] PM: Preparing system for standby sleep
    [  207.254815] Freezing user space processes ... (elapsed 0.006 seconds) done.
    [  207.270048] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
    [  207.280487] PM: Entering standby sleep
    [  207.284542] Suspending console(s) (use no_console_suspend to debug)
    [  207.307038] PM: suspend of devices complete after 13.032 msecs
    [  207.311615] PM: late suspend of devices complete after 4.536 msecs
    [  207.317115] PM: noirq suspend of devices complete after 5.460 msecs
    [  207.317137] PM: Successfully put all powerdomains to target state
    [  207.317137] PM: Wakeup source UART
    [  207.317137] Suspended for 0.000 seconds
    [  207.336410] PM: noirq resume of devices complete after 19.101 msecs
    [  207.340589] PM: early resume of devices complete after 3.539 msecs
    [  207.342176] net eth0: initializing cpsw version 1.15 (0)
    [  207.416075] net eth0: phy found : id is : 0x221622
    [  207.613595] PM: resume of devices complete after 272.960 msecs
    [  207.681040] PM: Finishing wakeup.
    [  207.684603] Restarting tasks ... done.
    [  207.712897] PM: suspend exit 2000-01-01 00:16:54.290983875 UTC

    In mem mode


    root@am437xsk:/ # echo mem > /sys/power/state                                  
    [  256.126628] PM: suspend entry 2000-01-01 00:17:42.704707547 UTC
    [  256.140786] PM: Syncing filesystems ... done.
    [  256.152599] PM: Preparing system for mem sleep
    [  256.166920] (NULL device *): Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [  256.177050] (NULL device *): Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
    [  256.190247] (NULL device *): Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2
    [  256.203630] (NULL device *): Direct firmware load for am43x-evm-scale-data.bin failed with error -2
    [  256.218905] (NULL device *): Falling back to user helper
    [  256.225368] (NULL device *): Falling back to user helper
    [  256.231967] (NULL device *): Falling back to user helper
    [  256.238298] (NULL device *): Falling back to user helper
    [  256.311993] Freezing user space processes ... (elapsed 0.007 seconds) done.
    [  256.333832] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
    [  256.344271] PM: Entering mem sleep
    [  256.348210] Suspending console(s) (use no_console_suspend to debug)

  • I will ask the software team to check this.
  • Hi,

    Can you please rebuild your kernel with no_console_suspend, in case there is any additional debug information on your console? If there is, please post it.

    Also as I see you have problems suspending your board. Could you please post your bootlog? You probably have some power management related errors while booting your board.

    The following wiki may give you some debugging tips: processors.wiki.ti.com/.../Debugging_AM335x_Suspend-Resume_Issues

    Best Regards,
    Yordan
  • HI,

    I did  an distclean on my kernel and rebuild its. Now Suspend/Resume seems work fine, I don't know why, may be It was due to a wrong defconfig. When I enable  no_console_suspend with echo no > /sys/module/printk/parameters/console_suspend, I get theses kernel's logs for in/out men mode :

    root@am437xsk:/ # echo no > /sys/module/printk/parameters/console_suspend      
    root@am437xsk:/ # echo mem > /sys/power/state                                  
    [ 1133.286783] PM: suspend entry 2016-05-30 14:33:06.619845553 UTC
    [ 1133.293123] PM: Syncing filesystems ... done.
    [ 1133.301008] PM: Preparing system for mem sleep
    [ 1133.306543] (NULL device *): Direct firmware load for ti-connectivity/TIInit_11.8.32.bts failed with error -2
    [ 1133.318139] (NULL device *): Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [ 1133.329928] (NULL device *): Direct firmware load for ti-connectivity/wl1271-nvs.bin failed with error -2
    [ 1133.341009] (NULL device *): Direct firmware load for ti-connectivity/wl18xx-conf.bin failed with error -2
    [ 1133.352703] (NULL device *): Falling back to user helper
    [ 1133.360973] (NULL device *): Direct firmware load for am43x-evm-scale-data.bin failed with error -2
    [ 1133.370916] (NULL device *): Falling back to user helper
    [ 1133.376763] (NULL device *): Falling back to user helper
    [ 1133.384022] (NULL device *): Falling back to user helper
    [ 1133.392646] (NULL device *): Falling back to user helper
    [ 1133.449156] Freezing user space processes ... (elapsed 0.007 seconds) done.
    [ 1133.464305] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
    [ 1133.475056] PM: Entering mem sleep
    [ 1133.494043] PM: suspend of devices complete after 12.708 msecs
    [ 1133.505091] PM: late suspend of devices complete after 4.529 msecs
    [ 1133.517177] PM: noirq suspend of devices complete after 5.341 msecs
    [ 1133.523881] PM: Successfully put all powerdomains to target state
    [ 1133.523881] PM: Wakeup source GPIO0
    [ 1133.523881] Suspended for 0.000 seconds
    [ 1133.559293] PM: noirq resume of devices complete after 35.241 msecs
    [ 1133.570854] PM: early resume of devices complete after 3.688 msecs
    [ 1133.578813] net eth0: initializing cpsw version 1.15 (0)
    [ 1133.666364] net eth0: phy found : id is : 0x221622
    [ 1133.676192] usb usb1: root hub lost power or was reset
    [ 1133.681698] usb usb2: root hub lost power or was reset
    [ 1133.840842] PM: resume of devices complete after 263.237 msecs
    [ 1133.850189] PM: Finishing wakeup.
    [ 1133.853778] Restarting tasks ... done.
    [ 1133.877593] PM: suspend exit 2016-05-30 14:33:13.186579042 UTC