Deep sleep LS1021A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deep sleep LS1021A

1,248 Views
maumontadrien
Contributor III

Hi, The deep sleep is resume automaticaly after I launch "echo mem > /sys/power/state"

I don't understand why, I see only one error:

    -sh: echo: write error: Operation not supported

My log:

root@ls1021atwr:~# echo mem > /sys/power/state
[  763.312794] PM: Syncing filesystems ... done.
[  763.322400] Freezing user space processes ... (elapsed 0.005 seconds) done.
[  763.335104] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[  763.345074] Suspending console(s) (use no_console_suspend to debug)
[  763.540371] PM: suspend of devices complete after 187.793 msecs
[  763.542146] PM: late suspend of devices complete after 1.758 msecs
[  763.544015] PM: noirq suspend of devices complete after 1.851 msecs
[  763.544021] Disabling non-boot CPUs ...
[  763.544727] CPU1: shutdown
[  763.562330] Retrying again to check for CPU kill
[  763.562345] CPU1 killed.
[  763.589426] Suspended for 0.000 seconds
[  763.589434] Enabling non-boot CPUs ...
[  763.604242] CPU1 is up
[  763.605546] PM: noirq resume of devices complete after 1.288 msecs
[  763.606903] PM: early resume of devices complete after 1.288 msecs
[  764.630764] dwc3 3100000.usb3: request value same as default, ignoring
[  764.632085] usb usb1: root hub lost power or was reset
[  764.632094] usb usb2: root hub lost power or was reset
[  764.932288] ata1: SATA link down (SStatus 0 SControl 300)
[  764.972624] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[  765.112501] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[  765.112512] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
[  765.412528] PM: resume of devices complete after 1805.608 msecs
[  765.516104] Restarting tasks ... done.
-sh: echo: write error: Operation not supported
root@ls1021atwr:~# [  765.653251] fsl-gianfar soc:ethernet@2d10000 eth0: Link is Down
[  765.659289] br0: port 1(eth0) entered disabled state
[  767.733213] fsl-gianfar soc:ethernet@2d10000 eth0: Link is Up - 1Gbps/Full - flow control off
[  767.742141] br0: port 1(eth0) entered blocking state
[  767.747121] br0: port 1(eth0) entered forwarding state

Tags (3)
0 Kudos
Reply
3 Replies

915 Views
maumontadrien
Contributor III

There is a bug on deep sleep in kernel 4.9 and 4.14. NXP should make a patch to resolve this.

0 Kudos
Reply

915 Views
yipingwang
NXP TechSupport
NXP TechSupport

The development team is working at this issue, when related patches are ready, I will put them here.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

915 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello maumont adrien,

Please refer to the following Kernel configuration for Power Management.

Kernel Configuration:

Power management options -->
     [*] Suspend to RAM and standby


Device Drivers --->

     SOC (System On Chip) specific Drivers --->
      [*] Layerscape Soc Drivers
      [*] FTM alarm driver

CPU Power Management --->
CPU Idle --->
[*] CPU idle PM support
[*] Ladder governor (for periodic timer tick)
-*- Menu governor (for tickless system)
     ARM CPU Idle Drivers --->
         [*] Generic ARM/ARM64 CPU idle Driver

After boot up Linux Kernel, sleep and wake up by FTM timer

/* Start a FTM timer. It will trigger an interrupt to wake up the system in 5 seconds. */
$ echo 5 > /sys/devices/platform/soc/29d0000.ftm0/ftm_alarm && echo mem > /sys/power/state


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply