From nobody Sun Nov 9 16:22:03 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1551158667138316.5994658043471; Mon, 25 Feb 2019 21:24:27 -0800 (PST) Received: from localhost ([127.0.0.1]:49295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyVEA-0003F5-36 for importer@patchew.org; Tue, 26 Feb 2019 00:24:26 -0500 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 Received: from ozlabs.org ([203.11.71.1]:59425) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyUlB-0002VQ-KW; Mon, 25 Feb 2019 23:54:32 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 447mfN1rxxz9sP7; Tue, 26 Feb 2019 15:53:15 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1551156796; bh=sfolXBhQtsjoCcCeGhSMoTOWL0+ScH9XEfEvOmwmEGo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnsRcqcrVVhqno9jrNOzMnBd1jxIfpGQvOtcNUmLMRaSR3Y+JhZtni0tVoFFjhkmu fdJA8yOTk7TeOXMiIVvDRaZn1XPPnpaoOTB0QK5xsvnVBmumgAhy2c0poQBshtk6Ix XmPjM0DE/XbCxTqMFN3abDDvQEp6SawaXoJjKVTM= From: David Gibson To: peter.maydell@linaro.org Date: Tue, 26 Feb 2019 15:52:53 +1100 Message-Id: <20190226045304.25618-40-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.20.1 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 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 203.11.71.1 Subject: [Qemu-devel] [PULL 39/50] spapr: populate PHB DRC entries for root DT node X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, gkurz@kaod.org, qemu-devel@nongnu.org, Michael Roth , Greg Kurz , qemu-ppc@nongnu.org, clg@kaod.org, Nathan Fontenot , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" 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.toul= ouse-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 *spap= r) exit(1); } =20 + if (smc->dr_phb_enabled) { + ret =3D spapr_drc_populate_dt(fdt, 0, NULL, SPAPR_DR_CONNECTOR_TYP= E_PHB); + if (ret < 0) { + error_report("Couldn't set up PHB DR device tree properties"); + exit(1); + } + } + return fdt; } =20 --=20 2.20.1