Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753415AbbFDQPR (ORCPT ); Thu, 4 Jun 2015 12:15:17 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:34636 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbbFDQPO (ORCPT ); Thu, 4 Jun 2015 12:15:14 -0400 Date: Thu, 4 Jun 2015 10:15:10 -0600 From: Lina Iyer To: Stephen Boyd Cc: Kumar Gala , Andy Gross , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman , Russell King , Ard Biesheuvel Subject: Re: [PATCH v2 2/2] soc: qcom: spm: Fix idle on THUMB2 kernels Message-ID: <20150604161510.GS32700@linaro.org> References: <1433272378-8470-1-git-send-email-sboyd@codeaurora.org> <1433272378-8470-3-git-send-email-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1433272378-8470-3-git-send-email-sboyd@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1678 Lines: 44 On Tue, Jun 02 2015 at 13:13 -0600, Stephen Boyd wrote: >The ifc6410 firmware always enters the kernel in ARM state from >deep idle. Use the cpu_resume_arm() wrapper instead of >cpu_resume() to property switch into the THUMB2 state when we >wake up from idle. > >This fixes a problem reported by Kevin Hilman on next-20150601 >where the ifc6410 fails to boot a THUMB2 kernel because the >platform's firmware always enters the kernel in ARM mode from >deep idle states. > >Reported-by: Kevin Hilman >Cc: Ard Biesheuvel >Cc: Lina Iyer >Signed-off-by: Stephen Boyd Reviewd-by: Lina Iyer >--- > drivers/soc/qcom/spm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c >index b562af816c0a..b04b05a0904e 100644 >--- a/drivers/soc/qcom/spm.c >+++ b/drivers/soc/qcom/spm.c >@@ -260,7 +260,7 @@ static int __init qcom_cpuidle_init(struct device_node *cpu_node, int cpu) > /* We have atleast one power down mode */ > cpumask_clear(&mask); > cpumask_set_cpu(cpu, &mask); >- qcom_scm_set_warm_boot_addr(cpu_resume, &mask); >+ qcom_scm_set_warm_boot_addr(cpu_resume_arm, &mask); > } > > per_cpu(qcom_idle_ops, cpu) = fns; >-- >The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, >a Linux Foundation Collaborative Project > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/