[SLOF] [PATCH slof] fdt: Update phandles after H_CAS
Greg Kurz
groug at kaod.org
Wed Aug 28 19:35:05 AEST 2019
On Mon, 26 Aug 2019 13:45:12 +1000
Alexey Kardashevskiy <aik at ozlabs.ru> wrote:
> At the moment SLOF generates phandles except a few exceptions such as
> an interrupt controller (XICS/XIVE) and NVLink-related nodes. For these
> nodes QEMU generates phandles which SLOF later detects and replaces with
> the node addresses (which are phandles in SLOF).
>
> However we are missing these updates when processing
> the ibm,client-architecture-support RTAS call - SLOF calls QEMU with H_CAS
> to get an update for the device tree, and if that blob contains
> phandles, they make it to the final tree unchanged with undefined results.
>
> This calls fdt-fix-phandles for the H_CAS update blob.
>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> ---
Heh I was thinking something like that would be needed if we
try to get rid of CAS reboot :)
Reviewed-by: Greg Kurz <groug at kaod.org>
> board-qemu/slof/archsupport.fs | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/board-qemu/slof/archsupport.fs b/board-qemu/slof/archsupport.fs
> index a8ace3cc59c4..33ea765c152b 100644
> --- a/board-qemu/slof/archsupport.fs
> +++ b/board-qemu/slof/archsupport.fs
> @@ -29,6 +29,7 @@
> fdt-check-header
> fdt-struct fdt-fix-cas-node
> fdt-fix-cas-success NOT
> + s" /" find-node fdt-fix-phandles
> ELSE
> FALSE
> THEN
More information about the SLOF
mailing list