From nobody Mon Feb 9 22:38:10 2026 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 ARC-Seal: i=1; a=rsa-sha256; t=1559114991; cv=none; d=zoho.com; s=zohoarc; b=blUmIlNpgSeG4+ajxqBMI006+nH8E060cYf81ORSkVXm0beU3gakRfo+Sq+sD2u7L1/7DosN+QqCXMlJLjgzZNb5wlLC2i5i1gdzsdFIT1azpg3ftpSCpjn1KzA7V4JmcUf3m8vxnl6UOX59okbqlQ+FOi89syHpHvcCjhWB+Fc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559114991; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=sTHfTuha1AhEevFmMTz3lYrsZvpWm4asmuAjFsmgY0M=; b=mSfxowtPOXReUsHYb1xWipPYo6xOr/7Nn/PPnv7g1fCGr757V2YpSS26BX/FLyapFCy/bWfP66yp02F+n4FY6jTrNerxbuJQotxI7/KZAiKgY3bY7VJvIhLJWbsIltbU+RRz2PDY68O/vACgxqgBFuIqeed68L+fcexKd24SOWc= ARC-Authentication-Results: i=1; mx.zoho.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 1559114991037752.1198249386332; Wed, 29 May 2019 00:29:51 -0700 (PDT) Received: from localhost ([127.0.0.1]:48981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVt1s-0007od-2S for importer@patchew.org; Wed, 29 May 2019 03:29:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVsQo-0000n5-3z for qemu-devel@nongnu.org; Wed, 29 May 2019 02:51:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVsQn-00031I-16 for qemu-devel@nongnu.org; Wed, 29 May 2019 02:51:26 -0400 Received: from bilbo.ozlabs.org ([2401:3900:2:1::2]:56773 helo=ozlabs.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVsQm-0002rC-M1; Wed, 29 May 2019 02:51:24 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 45DLv726v9z9sPZ; Wed, 29 May 2019 16:50:26 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1559112627; bh=zeNEbEta8kla1fTMD1ODliIetCj1SoUIfL596OlUPyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNE9Gce5TEZpFuAjJ5dmqFb7v4J33fY+hy2G+2tmUAZjmidx6iuM63Rh/xL0NK2+P /D/wrokd8QIjPzxiDWYYr/MjNYVhLi1ZcNfJFNRDM3vxoK5sXOo5WlMmFcjYQuf2UV M2cJrBRPhj2MiouuTRAEAl3RymXOAZKEujO5i/yg= From: David Gibson To: peter.maydell@linaro.org Date: Wed, 29 May 2019 16:50:16 +1000 Message-Id: <20190529065017.15149-44-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190529065017.15149-1-david@gibson.dropbear.id.au> References: <20190529065017.15149-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2401:3900:2:1::2 Subject: [Qemu-devel] [PULL 43/44] ppc/pnv: introduce new skiboot platform properties 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, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, David Gibson , rth@twiddle.net 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: C=C3=A9dric Le Goater Newer skiboots (after 6.3) support QEMU platforms that have characteristics closer to real OpenPOWER systems. The CPU type is used to define the BMC drivers: Aspeed AST2400 for POWER8 processors and AST2500 for POWER9s. Advertise the new platform property names, "qemu,powernv8" and "qemu,powernv9", using the CPU type chosen for the QEMU PowerNV machine. Also, advertise the original platform name "qemu,powernv" in case of POWER8 processors for compatibility with older skiboots. Signed-off-by: C=C3=A9dric Le Goater Message-Id: <20190527071749.31499-1-clg@kaod.org> Signed-off-by: David Gibson --- hw/ppc/pnv.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index 31aa20ee25..046f0a83c8 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -450,7 +450,8 @@ static void pnv_dt_power_mgt(void *fdt) =20 static void *pnv_dt_create(MachineState *machine) { - const char plat_compat[] =3D "qemu,powernv\0ibm,powernv"; + const char plat_compat8[] =3D "qemu,powernv8\0qemu,powernv\0ibm,powern= v"; + const char plat_compat9[] =3D "qemu,powernv9\0ibm,powernv"; PnvMachineState *pnv =3D PNV_MACHINE(machine); void *fdt; char *buf; @@ -465,8 +466,14 @@ static void *pnv_dt_create(MachineState *machine) _FDT((fdt_setprop_cell(fdt, 0, "#size-cells", 0x2))); _FDT((fdt_setprop_string(fdt, 0, "model", "IBM PowerNV (emulated by qemu)"))); - _FDT((fdt_setprop(fdt, 0, "compatible", plat_compat, - sizeof(plat_compat)))); + if (pnv_is_power9(pnv)) { + _FDT((fdt_setprop(fdt, 0, "compatible", plat_compat9, + sizeof(plat_compat9)))); + } else { + _FDT((fdt_setprop(fdt, 0, "compatible", plat_compat8, + sizeof(plat_compat8)))); + } + =20 buf =3D qemu_uuid_unparse_strdup(&qemu_uuid); _FDT((fdt_setprop_string(fdt, 0, "vm,uuid", buf))); --=20 2.21.0