[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH 09/15] spapr: populate PHB DRC entries for roo
From: |
David Gibson |
Subject: |
Re: [Qemu-ppc] [RFC PATCH 09/15] spapr: populate PHB DRC entries for root DT node |
Date: |
Tue, 5 May 2015 21:39:11 +1000 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Wed, Apr 29, 2015 at 02:20:18PM -0500, Michael Roth wrote:
> From: Nathan Fontenot <address@hidden>
>
> This add entries to the root OF node to advertise our PHBs as being
> DR-capable in accordance with PAPR specification.
>
> Signed-off-by: Nathan Fontenot <address@hidden>
> Signed-off-by: Michael Roth <address@hidden>
> ---
> hw/ppc/spapr.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index c539932..a7af332 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -57,6 +57,7 @@
> #include "qemu/error-report.h"
> #include "trace.h"
> #include "hw/nmi.h"
> +#include "hw/ppc/spapr_drc.h"
>
> #include "hw/compat.h"
>
> @@ -745,6 +746,7 @@ static void spapr_finalize_fdt(sPAPREnvironment *spapr,
> size_t cb = 0;
> char *bootlist;
> void *fdt;
> + int fdt_offset;
> sPAPRPHBState *phb;
>
> fdt = g_malloc(FDT_MAX_SIZE);
> @@ -804,6 +806,13 @@ static void spapr_finalize_fdt(sPAPREnvironment *spapr,
> spapr_populate_chosen_stdout(fdt, spapr->vio_bus);
> }
>
> + fdt_offset = fdt_path_offset(fdt, "/");
> + ret = spapr_drc_populate_dt(fdt, fdt_offset, NULL,
> + SPAPR_DR_CONNECTOR_TYPE_PHB);
> + if (ret < 0) {
> + fprintf(stderr, "Couldn't set up RTAS device tree properties\n");
This error message isn't right.
Otherwise,
Reviewed-by: David Gibson <address@hidden>
> + }
> +
> _FDT((fdt_pack(fdt)));
>
> if (fdt_totalsize(fdt) > FDT_MAX_SIZE) {
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
pgpuQZGz9B4Sv.pgp
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-ppc] [RFC PATCH 09/15] spapr: populate PHB DRC entries for root DT node,
David Gibson <=