1. 03 6月, 2015 1 次提交
    • S
      ARM: imx6: initialize CCM_CLPCR_LPM into RUN mode earlier · 35e2916f
      Shawn Guo 提交于
      Commit 4631960d26da ("ARM: imx6: set initial power mode in pm function")
      moves imx6_set_lpm() from clock init function into
      imx6_pm_common_init().  This causes a hang when cpuidle support is
      enabled.  The reason for that is ARM core clock is shut down
      unexpectedly by WAIT mode.  It happens with the following call stack:
      
          cpuidle_register_governor()
              cpuidle_switch_governor()
                  cpuidle_uninstall_idle_handler()
                      synchronize_sched()
                          wait_rcu_gp()
                              wait_for_completion()
      
      When wait_for_completion() is called as above, all cores are idle/WFI.
      Hence, the reset value of CCM_CLPCR_LPM - WAIT mode, will trigger a
      hardware shutdown of the ARM core clock.
      
      To fix the regression, we need to ensure that CCM_CLPCR_LPM is
      initialized into RUN mode earlier than cpuidle governor registration,
      which is a postcore_initcall.  This patch creates function
      imx6_pm_ccm_init() to map CCM block and initialize CCM_CLPCR_LPM into
      RUN mode, and have the function called from machine .init_irq hook,
      which should be early enough.
      Reported-by: NKevin Hilman <khilman@kernel.org>
      Fixes: 8fb76a07 ("ARM: imx6: set initial power mode in pm function")
      Tested-by: NKevin Hilman <khilman@linaro.org>
      Tested-by: NTyler Baker <tyler.baker@linaro.org>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      35e2916f
  2. 30 3月, 2015 2 次提交
  3. 09 1月, 2015 1 次提交
  4. 05 1月, 2015 1 次提交
  5. 01 1月, 2015 1 次提交
  6. 23 11月, 2014 1 次提交
  7. 22 11月, 2014 2 次提交
  8. 16 9月, 2014 1 次提交
  9. 18 7月, 2014 3 次提交
  10. 16 5月, 2014 1 次提交