No resuming from standby or suspend low power modes - Colibri iMX6ULL

I have problems when using both of the low power modes for iMX6ULL with Linux Console Image 2.8b3.111

Using either of the commands:

 $ echo mem > /sys/power/state
 $ echo standby > /sys/power/state

I get the following message

[   47.651320] PM: Syncing filesystems ... done.
[   47.716495] Freezing user space processes ... (elapsed 0.001 seconds) done.
[   47.725354] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[   47.734600] Suspending console(s) (use no_console_suspend to debug)

However, for suspend to memory, the system immeditely goes into a reboot

U-Boot 2016.11-2.8.3+gaca804c (Jun 26 2018 - 16:29:39 +0000)

For standby I get the following error on wakeup:

[ 2857.086021] mwifiex_sdio mmc1:0001:1: EVENT: BT coex wlan param update
[ 2857.087395] mwifiex_sdio mmc1:0001:1: None of the WOWLAN triggers enabled
[ 2857.227623] PM: suspend of devices complete after 143.876 msecs
[ 2857.229208] PM: late suspend of devices complete after 1.560 msecs
[ 2857.230723] PM: noirq suspend of devices complete after 1.491 msecs
[ 2857.230731] Disabling non-boot CPUs ...
[ 2857.231986] PM: noirq resume of devices complete after 1.141 msecs
[ 2857.233364] PM: early resume of devices complete after 1.066 msecs
[ 2857.235480] gpmi-nand 1806000.gpmi-nand: mode:5 ,failed in set feature.
[ 2857.264014] mmc1: error -110 during resume (card was removed?)
[ 2857.270592] Suspended for 21.226 seconds
[ 2859.307526] fec 20b4000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 2860.267082] mwifiex_sdio mmc1:0001:1: Firmware wakeup failed
[ 2860.267262] PM: resume of devices complete after 3033.618 msecs
[ 2860.353651] Restarting tasks ... [ 2860.389159] mwifiex_sdio mmc1:0001:1: PREP_CMD: FW in reset state
[ 2860.395440] mwifiex_sdio mmc1:0001:1: PREP_CMD: FW in reset state
[ 2860.402870] done.
[ 2860.417697] mwifiex_sdio mmc1:0001:1: info: shutdown mwifiex...
[ 2860.457867] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
[ 2860.464016] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
root@colibri-imx6ull:~# [ 2860.552019] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
[ 2860.677259] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
[ 2860.747329] mwifiex_sdio mmc1:0001:1: PREP_CMD: card is removed
[ 2860.852461] mmc1: card 0001 removed
[ 2861.153870] sdhci-esdhc-imx 2194000.usdhc: no support for card's volts
[ 2861.179770] mmc1: error -22 whilst initialising SDIO card
[ 2861.300646] sdhci-esdhc-imx 2194000.usdhc: no support for card's volts
[ 2861.326131] mmc1: error -22 whilst initialising SDIO card
[ 2861.451666] sdhci-esdhc-imx 2194000.usdhc: no support for card's volts
[ 2861.477047] mmc1: error -22 whilst initialising SDIO card
(this repeats endlessly)

Can anyone suggest what needs to be done to get the lower power modes (particularly suspend to memory) working correctly?

hi @lachlanp

I reproduced the Issue on my Side with Bsp2.8b3111

  • Suspend leads to reboot of Imx6ULL IT Module only.
  • Resume from Standby is not working on Iris on Colibri-IMX6ULL as already stated here in Bsp 2.8b3.

You need to create your own image using open-embedded with the patch mentioned in the link above to solve the issue with no working Resume from Standy on Iris.

For the Suspend Issue, we will work on it and let you when this is solved.

will this patch you mention be added to v2.8b4 or 2.8 stable?
Also, will the gcc problem (refer: GCC in Apalis iMX6 cannot compile anymore in the new BSP (GCC7) - Technical Support - Toradex Community) be fixed in v2.84b or 2.8 stable?

@jaski.tx , regarding the suspend issue, was this fixed now on the IT modules?

Hi @Arnout: Yeah. Could you try the Bsp2.8b5? Thanks.