xen/arm: Add support of PSCI v1.0 for the host
authorJulien Grall <julien.grall@citrix.com>
Mon, 12 Oct 2015 15:39:11 +0000 (16:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 23 Oct 2015 13:31:36 +0000 (14:31 +0100)
commit2831f2099b6175384817d7afd952f7918998b39a
treea28a9ee8348ff589698d16516aaf65b75711e83c
parent14fa16961b03a23e9b883e5f0ed06b6837a489d8
xen/arm: Add support of PSCI v1.0 for the host

From Xen's point of view, PSCI v0.2 and PSCI v1.0 are very similar. All
the PSCI calls used within Xen (PSCI_VERSION, CPU_ON, SYSTEM_OFF and
SYSTEM_RESET) behave exactly the same.

Furthermore, based on the spec (5.3.1 DEN0022C), any 1.y version must be
compatible with 1.x when y > x for any functions existing in 1.x.

So check the presence of the new compatible string [1] and allow Xen to
boot on any platform using PSCI 1.x.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/374547.html

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/psci.c
xen/include/asm-arm/psci.h