5 Replies Latest reply on May 15, 2015 11:23 AM by robert_armstrong

    Fail to suspend Edison board - Yocto image ww42

    pierre.collet

      Hi everyone,

       

      In my seeking of low power consumption, I have tried to put the Edison board in a S3 mode (suspend to RAM).

      I am doing it by

       

       

       

      echo mem > /sys/power/state
      
      
      

       

      However, the board start to suspend then fail and resume.

      So I have check dmesg:

       

       

       

      # dmesg
       
      
      [  165.846622] CFG80211-ERROR) wl_is_linkdown : Link down Reason : WLC_E_DEAUTH
      [  165.851966] cfg80211: Calling CRDA to update world regulatory domain
      [  165.854519] i2c_pmic_adap i2c_pmic_adap: pmic_i2c_suspend
      [  165.854553] bcove_thrm bcove_thrm: suspend called.
      [  165.855091] bcmsdh_sdmmc_suspend Enter
      [  165.855098] bcmsdh_sdmmc_suspend Enter
      [  165.902152] bcmsdh_sdmmc_resume Enter
      [  165.902186] pci_pm_suspend(): sdhci_pci_suspend+0x0/0xc0 returns -16
      [  165.902206] dpm_run_callback(): pci_pm_suspend+0x0/0x1b0 returns -16
      [  165.902221] PM: Device 0000:00:01.3 failed to suspend async: error -16
      [  165.923411] PM: Some devices failed to suspend
      [  165.923763] bcove_thrm bcove_thrm: resume called.
      [  165.923789] i2c_pmic_adap i2c_pmic_adap: pmic_i2c_resume
      [  166.031975] PM: resume of devices complete after 108.559 msecs
      [  166.034090] PM: Finishing wakeup.
      [  166.043454] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
      [  166.034105] Restarting tasks ... done.
      root@edison:/sys/power# 
      
      

       

      As you may notice, something goes wrong with the Device 0000:00:01.3

      lspci -v

       

      gave me this for this device:

       

       

       

      
      00:01.3 SD Host controller: Intel Corporation Device 1190 (rev 01) (prog-if 01)
              Flags: bus master, fast devsel, latency 64, IRQ 38
              Memory at ff3fb000 (32-bit, non-prefetchable) [size=256]
              Capabilities: [b0] Power Management version 3
              Capabilities: [b8] Vendor Specific Information: Len=08 <?>
              Capabilities: [c0] PCI-X non-bridge device
              Capabilities: [100] Vendor Specific Information: ID=0000 Rev=0 Len=024 
      <?>
              Kernel driver in use: sdhci-pci
      
      

       

      Do you guys have any idea about what's wrong with this?

       

      Thank you in advance.

        • 1. Re: Fail to suspend Edison board - Yocto image ww42
          JPMontero_Intel

          Hi pierre.collet,

           

          I’m not sure, I tried and I got the same result. Let me do some research on this to see if I’m able to find something helpful.

           

          Regards,
            JPMontero_Intel

          • 2. Re: Fail to suspend Edison board - Yocto image ww42
            pierre.collet

            Hello,

             

            did you find anything? I only tried to shutdown the specific device via pci000:.... folder but it only makes the kernel to panic.

             

            Thanks

             

            Pierre

            • 3. Re: Fail to suspend Edison board - Yocto image ww42
              JPMontero_Intel

              Hi pierre.collet,

               

              Not yet, we are still investigating on It. We will let you know as soon as we have an update on this.

               

              Regards,
                JPMontero_Intel

              • 4. Re: Fail to suspend Edison board - Yocto image ww42
                Mittenz

                Pierre,

                 

                I was running into the same issue. It seems to be related to the wifi. Issuing systemctl stop wpa_supplicant before echo mem > /sys/power/state seemed to fix the issue for me.

                 

                -Mittenz

                • 5. Re: Fail to suspend Edison board - Yocto image ww42
                  robert_armstrong

                  I am not able to get the Edison to sleep.

                   

                  If I stop wlan0 and usb0 and then run "echo mem > /sys/power/state", the system appears to sleep and then wakes up by itself after a couple of seconds with this in dmesg:

                   

                  [  50.809994] PM: suspend of devices complete after 70.388 msecs
                  [  50.811316] PM: late suspend of devices complete after 1.307 msecs
                  [  51.008219] HSU serial 0000:00:04.0: Refused to change power state, currently in D0
                  [  51.038432] PM: noirq suspend of devices complete after 227.132 msecs
                  [  51.038441] Disabling non-boot CPUs ...
                  [  51.040050] Cannot set affinity for irq 317
                  [  51.041262] smpboot: CPU 1 is now offline
                  [  56.428841] wakeup from  IRQ 27
                  [  56.428854] IRQ 27,action name:i2c_pmic_adap
                  [  56.429608] Enabling non-boot CPUs ...
                  [  56.429766] smpboot: Booting Node 0 Processor 1 APIC 0x2
                  [  56.440063] Initializing CPU#1
                  [  56.441177] Skipped synchronization checks as TSC is reliable.
                  [  56.442646] Num p-states 2
                  [  56.442657] State [0]: core_frequency[500] transition_latency[100] control[0x52c]
                  [  56.442664] State [1]: core_frequency[500] transition_latency[100] control[0x52c]
                  [  56.442831] CPU1 is up
                  [  56.665546] PM: noirq resume of devices complete after 222.127 msecs
                  [  56.666765] PM: early resume of devices complete after 0.935 msecs
                  [  56.667020] bcove_thrm bcove_thrm: resume called.
                  [  56.667046] i2c_pmic_adap i2c_pmic_adap: pmic_i2c_resume
                  [  56.667226] bcmsdh_sdmmc_resume Enter
                  [  56.667232] bcmsdh_sdmmc_resume Enter
                  [  56.667239] bcmsdh_sdmmc_resume Enter
                  [  56.667728] snd_intel_sst: runtime_resume called
                  [  56.775405] PM: resume of devices complete after 108.633 msecs
                  [  56.777551] PM: Finishing wakeup.