Assign stable phandles to all arm64 CPU nodes. The GICv5 IRS DT node uses them to map IAFFIDs to CPUs; they remain unreferenced for earlier GIC models. Reviewed-by: Vladimir Murzin Tested-by: Vladimir Murzin Signed-off-by: Sascha Bischoff --- arm64/fdt.c | 1 + arm64/include/kvm/fdt-arch.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arm64/fdt.c b/arm64/fdt.c index 3cbd36e2..5413956d 100644 --- a/arm64/fdt.c +++ b/arm64/fdt.c @@ -54,6 +54,7 @@ static void generate_cpu_nodes(void *fdt, struct kvm *kvm) _FDT(fdt_property_string(fdt, "enable-method", "psci")); _FDT(fdt_property_cell(fdt, "reg", mpidr)); + _FDT(fdt_property_cell(fdt, "phandle", PHANDLE_CPU_BASE + cpu)); _FDT(fdt_end_node(fdt)); } diff --git a/arm64/include/kvm/fdt-arch.h b/arm64/include/kvm/fdt-arch.h index 8a0a460e..2b667c53 100644 --- a/arm64/include/kvm/fdt-arch.h +++ b/arm64/include/kvm/fdt-arch.h @@ -11,4 +11,5 @@ enum phandles { void generate_dma_region_prop(void *fdt); +#define PHANDLE_CPU_BASE PHANDLES_MAX #endif /* ARM__FDT_H */ -- 2.34.1