1. 02 Apr, 2018 3 commits
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-cpuidle' and 'pm-tools' · 103cf0e5
      Rafael J. Wysocki authored
      * pm-cpuidle:
        cpuidle: poll_state: Avoid invoking local_clock() too often
        PM: cpuidle/suspend: Add s2idle usage and time state attributes
        cpuidle: Enable coupled cpuidle support on Exynos3250 platform
        cpuidle: poll_state: Add time limit to poll_idle()
        ARM: cpuidle: Drop memory allocation error message from arm_idle_init_cpu()
      
      * pm-tools:
        pm-graph: AnalyzeSuspend v5.0
        pm-graph: AnalyzeBoot v2.2
        pm-graph: config files and installer
      103cf0e5
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpufreq' · a9f36db7
      Rafael J. Wysocki authored
      * pm-cpufreq: (38 commits)
        cpufreq: CPPC: Use transition_delay_us depending transition_latency
        cpufreq: tegra186: Don't validate the frequency table twice
        cpufreq: speedstep: Don't validate the frequency table twice
        cpufreq: sparc: Don't validate the frequency table twice
        cpufreq: sh: Don't validate the frequency table twice
        cpufreq: sfi: Don't validate the frequency table twice
        cpufreq: scpi: Don't validate the frequency table twice
        cpufreq: sc520: Don't validate the frequency table twice
        cpufreq: s3c24xx: Don't validate the frequency table twice
        cpufreq: qoirq: Don't validate the frequency table twice
        cpufreq: pxa: Don't validate the frequency table twice
        cpufreq: ppc_cbe: Don't validate the frequency table twice
        cpufreq: powernow: Don't validate the frequency table twice
        cpufreq: p4-clockmod: Don't validate the frequency table twice
        cpufreq: mediatek: Don't validate the frequency table twice
        cpufreq: longhaul: Don't validate the frequency table twice
        cpufreq: ia64-acpi: Don't validate the frequency table twice
        cpufreq: elanfreq: Don't validate the frequency table twice
        cpufreq: e_powersaver: Don't validate the frequency table twice
        cpufreq: cpufreq-dt: Don't validate the frequency table twice
        ...
      a9f36db7
    • Rafael J. Wysocki's avatar
      Merge branches 'pm-core', 'pm-sleep' and 'acpi-pm' · e3a495c4
      Rafael J. Wysocki authored
      * pm-core:
        driver core: Introduce device links reference counting
        PM / wakeirq: Add wakeup name to dedicated wake irqs
      
      * pm-sleep:
        PM / hibernate: Change message when writing to /sys/power/resume
        PM / hibernate: Make passing hibernate offsets more friendly
        PCMCIA / PM: Avoid noirq suspend aborts during suspend-to-idle
      
      * acpi-pm:
        ACPI / PM: Fix keyboard wakeup from suspend-to-idle on ASUS UX331UA
        ACPI / PM: Allow deeper wakeup power states with no _SxD nor _SxW
        ACPI / PM: Reduce LPI constraints logging noise
        ACPI / PM: Do not reconfigure GPEs for suspend-to-idle
      e3a495c4
  2. 31 Mar, 2018 1 commit
    • Chris Chiu's avatar
      ACPI / PM: Fix keyboard wakeup from suspend-to-idle on ASUS UX331UA · 6f1d7c45
      Chris Chiu authored
      This issue happens on new ASUS laptop UX331UA which has modern
      standby mode (suspend-to-idle). Pressing keys on the PS2 keyboard
      can't wake up the system from suspend-to-idle which is not expected.
      However, pressing power button can wake up without problem.
      
      Per the engineers of ASUS, the keypress event is routed to Embedded
      Controller (EC) in standby mode. EC then signals the SCI event to
      BIOS so BIOS would Notify() power button to wake up the system. It's
      from BIOS perspective. What we observe here is that kernel receives
      the SCI event from SCI interrupt handler which informs that the GPE
      status bit belongs to EC needs to be handled and then queries the EC
      to find out what event is pending. Then execute the following ACPI
      _QDF method which defined in ACPI DSDT for EC to notify power button.
      
       Method (_QDF, 0, NotSerialized)  // _Qxx: EC Query
              {
                  Notify (PWRB, 0x80) // Status Change
              }
      
      With more debug messages added to analyze this problem, we find that
      the keypress does wake up the system from suspend-to-idle but it's back
      to suspend again almost immediately. As we see in the following messages,
      the acpi_button_notify() is invoked but acpi_pm_wakeup_event() can not
      really wake up the system here because acpi_s2idle_wakeup() is false.
      The acpi_s2idle_wakeup() returnd false because the acpi_s2idle_sync() has
      alrealdy exited.
      
      [   52.987048] s2idle_loop going s2idle
      [   59.713392] acpi_s2idle_wake enter
      [   59.713394] acpi_s2idle_wake exit
      [   59.760888] acpi_ev_gpe_detect enter
      [   59.760893] acpi_s2idle_sync enter
      [   59.760893] acpi_ec_query_flushed ec pending queries 0
      [   59.760953] Read registers for GPE 50-57: Status=01, Enable=01, RunEnable=01, WakeEnable=00
      [   59.760955] ACPI: EC: ===== IRQ (1) =====
      [   59.760972] ACPI: EC: EC_SC(R) = 0x28 SCI_EVT=1 BURST=0 CMD=1 IBF=0 OBF=0
      [   59.760979] ACPI: EC: +++++ Polling enabled +++++
      [   59.760979] ACPI: EC: ##### Command(QR_EC) submitted/blocked #####
      [   59.761003] acpi_s2idle_sync exit
      [   59.769587] ACPI: EC: ##### Query(0xdf) started #####
      [   59.769611] ACPI: EC: ##### Query(0xdf) stopped #####
      [   59.774154] acpi_button_notify button type 1
      [   59.813175] s2idle_loop going s2idle
      
      acpi_s2idle_sync() already makes an effort to flush the EC event
      queue, but in this case, the EC event has yet to be generated when
      the call to acpi_ec_flush_work() is made. The event is generated
      shortly after, through the ongoing handling of the SCI interrupt
      which is happening on another CPU, and we must synchronize that
      to make sure that it has run and completed. Adding another call to
      acpi_os_wait_events_complete() solves this issue, since that
      function synchronizes with SCI interrupt completion.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      [ rjw: Subject ]
      Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
      6f1d7c45
  3. 30 Mar, 2018 3 commits
  4. 29 Mar, 2018 4 commits
  5. 20 Mar, 2018 27 commits
  6. 18 Mar, 2018 2 commits