From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Leela Krishna Amudala <leela.krishna@linaro.org>,
linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: kgene.kim@samsung.com, amit.kucheria@linaro.org
Subject: Re: [PATCH] ARM: EXYNOS: Use wfi macro in platform_do_lowpower
Date: Thu, 22 May 2014 13:53:20 +0200 [thread overview]
Message-ID: <537DE530.3050205@linaro.org> (raw)
In-Reply-To: <1400745455-27920-1-git-send-email-leela.krishna@linaro.org>
On 05/22/2014 09:57 AM, Leela Krishna Amudala wrote:
> This patch is originally based on commit b3377d186572 ("ARM: 7064/1:
> vexpress: Use wfi macro in platform_do_lowpower.")
>
> Current Exynos CPU hotplug code includes a hardcoded WFI
> instruction, in ARM encoding. When the kernel is compiled in Thumb-2
> mode, this is invalid and causes the machine to hang hard when a CPU
> is offlined.
>
> Use wfi macro instead of the hardcoded WFI instruction.
Is it possible to change it for cpu_do_idle() ?
I guess, that should be backported to the previous kernel version, right
? (Cc stable@).
Thanks
-- Daniel
> Signed-off-by: Leela Krishna Amudala <leela.krishna@linaro.org>
> ---
> arch/arm/mach-exynos/hotplug.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c
> index 69fa483..8a134d0 100644
> --- a/arch/arm/mach-exynos/hotplug.c
> +++ b/arch/arm/mach-exynos/hotplug.c
> @@ -46,13 +46,7 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
> if (cpu == 1)
> exynos_cpu_power_down(cpu);
>
> - /*
> - * here's the WFI
> - */
> - asm(".word 0xe320f003\n"
> - :
> - :
> - : "memory", "cc");
> + wfi();
>
> if (pen_release == cpu_logical_map(cpu)) {
> /*
>
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
WARNING: multiple messages have this Message-ID (diff)
From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: EXYNOS: Use wfi macro in platform_do_lowpower
Date: Thu, 22 May 2014 13:53:20 +0200 [thread overview]
Message-ID: <537DE530.3050205@linaro.org> (raw)
In-Reply-To: <1400745455-27920-1-git-send-email-leela.krishna@linaro.org>
On 05/22/2014 09:57 AM, Leela Krishna Amudala wrote:
> This patch is originally based on commit b3377d186572 ("ARM: 7064/1:
> vexpress: Use wfi macro in platform_do_lowpower.")
>
> Current Exynos CPU hotplug code includes a hardcoded WFI
> instruction, in ARM encoding. When the kernel is compiled in Thumb-2
> mode, this is invalid and causes the machine to hang hard when a CPU
> is offlined.
>
> Use wfi macro instead of the hardcoded WFI instruction.
Is it possible to change it for cpu_do_idle() ?
I guess, that should be backported to the previous kernel version, right
? (Cc stable@).
Thanks
-- Daniel
> Signed-off-by: Leela Krishna Amudala <leela.krishna@linaro.org>
> ---
> arch/arm/mach-exynos/hotplug.c | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
>
> diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c
> index 69fa483..8a134d0 100644
> --- a/arch/arm/mach-exynos/hotplug.c
> +++ b/arch/arm/mach-exynos/hotplug.c
> @@ -46,13 +46,7 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious)
> if (cpu == 1)
> exynos_cpu_power_down(cpu);
>
> - /*
> - * here's the WFI
> - */
> - asm(".word 0xe320f003\n"
> - :
> - :
> - : "memory", "cc");
> + wfi();
>
> if (pen_release == cpu_logical_map(cpu)) {
> /*
>
--
<http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
next prev parent reply other threads:[~2014-05-22 11:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 7:57 [PATCH] ARM: EXYNOS: Use wfi macro in platform_do_lowpower Leela Krishna Amudala
2014-05-22 7:57 ` Leela Krishna Amudala
2014-05-22 11:53 ` Daniel Lezcano [this message]
2014-05-22 11:53 ` Daniel Lezcano
2014-05-22 17:55 ` Nicolas Pitre
2014-05-22 17:55 ` Nicolas Pitre
2014-05-22 19:01 ` Daniel Lezcano
2014-05-22 19:01 ` Daniel Lezcano
2014-05-23 6:13 ` Leela Krishna Amudala
2014-05-23 6:13 ` Leela Krishna Amudala
2014-05-27 15:33 ` Kukjin Kim
2014-05-27 15:33 ` Kukjin Kim
-- strict thread matches above, loose matches on Subject: below --
2013-03-08 11:09 Tushar Behera
2013-03-08 11:09 ` Tushar Behera
2013-04-02 8:29 ` Tushar Behera
2013-04-02 8:29 ` Tushar Behera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=537DE530.3050205@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=amit.kucheria@linaro.org \
--cc=kgene.kim@samsung.com \
--cc=leela.krishna@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.