]> xenbits.xensource.com Git - xen.git/commit
xen/arm: gic-v2: Only create GICv2m node when there are GICv2m frame available
authorJulien Grall <julien.grall@arm.com>
Wed, 15 Jun 2016 13:40:48 +0000 (14:40 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Jun 2016 09:28:36 +0000 (10:28 +0100)
commitba9f0951da9c47d8504d549f692fe154027fa587
treea6c65e27657f95fac81fb0f581d5a8e3694209fc
parente286669ab373b981d6bb8d413a6f8bfcd1c23ff8
xen/arm: gic-v2: Only create GICv2m node when there are GICv2m frame available

Xen will crash on platform where GICv2m is not available with the
following error:

(XEN) Can't find ranges property for the gic node
(XEN) Device tree generation failed (-15).
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) Could not set up DOM0 guest OS
(XEN) ****************************************

This is because the property "ranges" may not be present in the GIC
when there are no GICv2m frames.

Skip the creation of the GICv2m node when the hardware does not
support it.

This fixes boot after commit "xen/arm: Export GICv2m register frames to
DOM0 by device tree".

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Wei Chen <wei.chen@linaro.org>
xen/arch/arm/gic-v2.c