]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8675/1: MCPM: ensure not to enter __hyp_soft_restart from loopback and cpu_power...
authorSudeep Holla <sudeep.holla@arm.com>
Thu, 18 May 2017 16:09:59 +0000 (17:09 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 23 May 2017 16:26:08 +0000 (17:26 +0100)
commit06ddbda1a0c43bba1d7d6019c3c42cf78677a228
treea00024811353b58d2c1959851a9e090f3c18bfe3
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
ARM: 8675/1: MCPM: ensure not to enter __hyp_soft_restart from loopback and cpu_power_down

Commit 74e6f2d1ff48 ("ARM: soft-reboot into same mode that we entered
the kernel") added support to enter the new kernel in the same processor
mode as the previous one when we soft-reboot from one kernel into
another by pass a flag to cpu_reset() so it knows what to do exactly.

However it missed to make similar changes in MCPM code. Due to the
missing flag, the CPUs enter HYP mode which is not supported with MCPM.
MCPM works only in secure mode as it manages CCI.

This patch aligns the cpu_reset call in MCPM with other changes in the
above mentioned commit by making phys_reset_t to follow the prototype
of cpu_reset().

Fixes: 74e6f2d1ff48 ("ARM: soft-reboot into same mode that we entered the kernel")
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/common/mcpm_entry.c