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.

EVM_SK - Suspend and Resume issues

Hello all,

I have an am335xsk starter kit, and I am testing out the suspend and resume features outlined in:

http://processors.wiki.ti.com/index.php/AM335x_Linux_Power_Management_User_Guide#Suspend_.26_Resume
.. but I am not getting the same results. When I run:

echo enabled > /sys/devices/platform/omap/ti_tscadc/power/wakeup
echo mem > /sys/power/state

the dmesg log will only show:

request_suspend_state: sleep (0->3) at 1526822531759 (2000-01-01 00:25:25.160629053 UTC)

.. the screen will go dark, and the device appears to be in some sort of power save mode but the device will not wake
when I touch the screen or press any of the buttons..?

Thanks,

-Jake








  • Hi Jake,

    Which Linux version are you running?

  • Hello Biser,

    My log print out says linux version 3.2.0-00244-gcf99001 ...

    <5>[    0.000000] Linux version 3.2.0-00244-gcf99001 (blueadmin@blueadmin-PowerEdge-R710) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 Tue Sep 2 15:16:14 CDT 2014
    <4>[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d

    and later on in the log..

    <6>[    2.146423] Power Management for AM33XX family
    <6>[    2.151275] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    <6>[    2.157958] Copied the M3 firmware to UMEM
    <6>[    2.162322] Cortex M3 Firmware Version = 0x181

    and in my kernel defconfig file I have the following settings..

    # Power management options
    #
    CONFIG_SUSPEND=y
    CONFIG_SUSPEND_FREEZER=y
    CONFIG_HAS_WAKELOCK=y
    CONFIG_HAS_EARLYSUSPEND=y
    CONFIG_WAKELOCK=y
    CONFIG_WAKELOCK_STAT=y
    CONFIG_USER_WAKELOCK=y
    CONFIG_EARLYSUSPEND=y
    # CONFIG_NO_USER_SPACE_SCREEN_ACCESS_CONTROL is not set
    # CONFIG_CONSOLE_EARLYSUSPEND is not set
    CONFIG_FB_EARLYSUSPEND=y
    CONFIG_PM_SLEEP=y
    CONFIG_PM_RUNTIME=y
    CONFIG_PM=y
    CONFIG_PM_DEBUG=y
    CONFIG_PM_ADVANCED_DEBUG=y
    # CONFIG_PM_TEST_SUSPEND is not set
    CONFIG_CAN_PM_TRACE=y
    # CONFIG_APM_EMULATION is not set
    CONFIG_ARCH_HAS_OPP=y
    CONFIG_PM_OPP=y
    CONFIG_PM_CLK=y
    CONFIG_CPU_PM=y
    # CONFIG_SUSPEND_TIME is not set
    CONFIG_ARCH_SUSPEND_POSSIBLE=y
    CONFIG_ARM_CPU_SUSPEND=y
    CONFIG_NET=y

    and

    #
    # Generic Driver Options
    #
    CONFIG_UEVENT_HELPER_PATH=""
    # CONFIG_DEVTMPFS is not set
    CONFIG_STANDALONE=y
    CONFIG_PREVENT_FIRMWARE_BUILD=y
    CONFIG_FW_LOADER=y
    CONFIG_FIRMWARE_IN_KERNEL=y
    CONFIG_EXTRA_FIRMWARE="am335x-pm-firmware.bin"
    CONFIG_EXTRA_FIRMWARE_DIR="firmware"
    # CONFIG_DEBUG_DRIVER is not set
    # CONFIG_DEBUG_DEVRES is not set
    # CONFIG_SYS_HYPERVISOR is not set
    CONFIG_REGMAP=y
    CONFIG_REGMAP_I2C=y
    CONFIG_REGMAP_SPI=y

    Edit: I accidentally posted code from a custom branch that we've been working on here, edited to post results of code that has been unaltered by us..


    Edit2: edited to include Cortex-M3 binary defconfig stuff..

     

    Thanks,

     

    Jake

     

  • Hello Biser,

    Any updates on this issue?  I noticed that the starter kit has a known issue with testing out the deep sleep mode, according to the following post:

    http://e2e.ti.com/support/arm/sitara_arm/f/791/t/297813.aspx

    This seems related..?

     

    Thanks,

    -Jake

  • Hi Jake,

    Could you do the following:

    echo no > /sys/module/printk/parameters/console_suspend allows for additional console output during the suspend and resume sequences, may catch errors reported while UART is off. (TRADEOFF: No more UART wake while this is active, must use other sources)

    And post the suspend/resume logfile.

  • Hi Biser,

    I booted the starter kit fully so that it was in its desktop screen, and then ran the following commands ( in the order that they are listed ) :

    1)   echo enabled > /sys/devices/platform/omap/ti_tscadc/power/wakeup

    2) echo no > /sys/module/printk/parameters/console_suspend


    3) echo mem > /sys/power/state

    4) bugreport > bugreport.txt


    And attached is the bugreport.txt file - which is every log file on the system combined...

    4064.bugreport.txt

    Thanks,

    -Jake

  • The file that you have posted shows you use Android. Android is supported on a separate dedicated forum: http://e2e.ti.com/support/embedded/android/f/509.aspx