Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

soc: qcom: spm: Fix idle on THUMB2 kernels

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 <khilman@linaro.org>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>

authored by

Stephen Boyd and committed by
Kevin Hilman
498f09bc 1a429fce

+1 -1
+1 -1
drivers/soc/qcom/spm.c
··· 260 260 /* We have atleast one power down mode */ 261 261 cpumask_clear(&mask); 262 262 cpumask_set_cpu(cpu, &mask); 263 - qcom_scm_set_warm_boot_addr(cpu_resume, &mask); 263 + qcom_scm_set_warm_boot_addr(cpu_resume_arm, &mask); 264 264 } 265 265 266 266 per_cpu(qcom_idle_ops, cpu) = fns;