Received: from eggs.gnu.org ([209.51.188.92]:58107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyUlH-0005P6-Hk for qemu-devel@nongnu.org; Mon, 25 Feb 2019 23:54:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyUlF-0002ts-HH for qemu-devel@nongnu.org; Mon, 25 Feb 2019 23:54:35 -0500 From: David Gibson Date: Tue, 26 Feb 2019 15:52:53 +1100 Message-Id: <20190226045304.25618-40-david@gibson.dropbear.id.au> In-Reply-To: <20190226045304.25618-1-david@gibson.dropbear.id.au> References: <20190226045304.25618-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 39/50] spapr: populate PHB DRC entries for root DT node List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org Cc: gkurz@kaod.org, clg@kaod.org, lvivier@redhat.com, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Nathan Fontenot , Michael Roth , David Gibson , Greg Kurz From: Nathan Fontenot 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 Signed-off-by: Michael Roth Reviewed-by: David Gibson Signed-off-by: Greg Kurz Message-Id: <155059670897.1466090.10843921337591637414.stgit@bahia.lab.to= ulouse-stg.fr.ibm.com> Signed-off-by: David Gibson --- hw/ppc/spapr.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 96bea7580a..fcda177090 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1365,6 +1365,14 @@ static void *spapr_build_fdt(sPAPRMachineState *sp= apr) exit(1); } =20 + if (smc->dr_phb_enabled) { + ret =3D spapr_drc_populate_dt(fdt, 0, NULL, SPAPR_DR_CONNECTOR_T= YPE_PHB); + if (ret < 0) { + error_report("Couldn't set up PHB DR device tree properties"= ); + exit(1); + } + } + return fdt; } =20 --=20 2.20.1