Hi Viresh,
On 10 February 2014 20:49, Viresh Kumar viresh.kumar@linaro.org wrote:
Getting rid of mainline and getting Linaro list in..
On Tue, May 7, 2013 at 11:21 AM, giridhar.maruthy@linaro.org wrote:
From: Giridhar Maruthy giridhar.maruthy@linaro.org
In intial boot-up, u-boot commit "3d28a181aab5e... arndale5250: Boot in Hyp mode and enable architected timers" puts the CPUs in HYP mode.
Hence, the CPUs need to be put in HYP mode when they are hot plugged out and plugged in back.
This patch is almost same as above u-boot patch, it additionally takes care if the kernel is compiled with thumb-2 option.
Signed-off-by: Giridhar Maruthy giridhar.m@samsung.com Signed-off-by: Inderpal Singh inderpal.singh@linaro.org
arch/arm/mach-exynos/headsmp.S | 114 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+)
I have been using this patch recently on mainline kernel and LNG kernel to get CPU hotplug working. Recently we saw crashes in LNG kernel even if this patch was in and found that this patch doesn't work well in case CONFIG_THUMB2_KERNEL is enabled in kernel. LNG kernels have that enabled by default..
I tested this scenario with the latest linux-next kernel with the subject patch applied and thumb-2 mode enabled. I could successfully hotplug in/out CPU1 a couple of times. However, if done back to back it hangs (without any crash dump even with low level debug enabled). Is this the same behavior that you observe?