[SLOF] [PATCH slof] fdt: Update phandles after H_CAS

Alexey Kardashevskiy aik at ozlabs.ru
Mon Aug 26 13:59:35 AEST 2019



On 26/08/2019 13:45, Alexey Kardashevskiy 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

oops, it is not an RTAS call, it is a client interface, I'll tweak this 
in my tree.


> 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>
> ---
>   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
> 

-- 
Alexey


More information about the SLOF mailing list