From nobody Wed Feb 11 03:03:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.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 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1508214897111643.2268701570433; Mon, 16 Oct 2017 21:34:57 -0700 (PDT) Received: from localhost ([::1]:36397 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4Jae-0001xO-Bw for importer@patchew.org; Tue, 17 Oct 2017 00:34:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e4JOU-0008J8-Ba for qemu-devel@nongnu.org; Tue, 17 Oct 2017 00:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e4JOT-0006wf-5y for qemu-devel@nongnu.org; Tue, 17 Oct 2017 00:22:18 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:54607) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e4JOS-0006s2-Rb; Tue, 17 Oct 2017 00:22:17 -0400 Received: by ozlabs.org (Postfix, from userid 1007) id 3yGMTq3LPpz9sRq; Tue, 17 Oct 2017 15:22:07 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1508214127; bh=G4RVCbI3bIGw8JnrXZgS6AG3fQS7hhhdGzIwbRY7/wY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JWvDcmo3ix08VyqzqMJsx+QZw2iVCcKSZIJPGayDEdqrV2+lsHX46a2HnQbBMjfql kmYC9vUp3xlxHBVxwziGDJgmvshfhl7rj8TM3LPlWnGKxi3H8bGl5i70wiSbZYhLTs tJQXiZy2CssPdboLhFpzLj+jg1UyOxtTW7Qv0cQo= From: David Gibson To: peter.maydell@linaro.org Date: Tue, 17 Oct 2017 15:21:24 +1100 Message-Id: <20171017042152.29443-7-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171017042152.29443-1-david@gibson.dropbear.id.au> References: <20171017042152.29443-1-david@gibson.dropbear.id.au> 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 06/34] target/ppc: Add POWER9 DD2.0 model information 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: agraf@suse.de, ehabkost@redhat.com, qemu-devel@nongnu.org, groug@kaod.org, qemu-ppc@nongnu.org, imammedo@redhat.com, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" At the moment the only POWER9 model which is listed in qemu is v1.0 (aka "DD1"). This is a very early (read, buggy) version which will never be released to the public - it was included in qemu only for the convenience of those doing bringup on the early silicon. For bonus points, we actually had its PVR incorrect in the table (0x004e0000 instead of 0x004e0100). We also never actually implemented the differences in behaviour (read, bugs) that marked DD1 in qemu. Now that we know the PVR for the substantially better v2.0 (DD2) chip, include it and make it the default POWER9 in qemu. For the time being we leave the DD1 definition in place for the poor souls (read, me) who still need to work with DD1 hardware. Signed-off-by: David Gibson --- hw/ppc/spapr_cpu_core.c | 1 + target/ppc/cpu-models.c | 6 ++++-- target/ppc/cpu-models.h | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c index 3e20b1d886..37beb56e8b 100644 --- a/hw/ppc/spapr_cpu_core.c +++ b/hw/ppc/spapr_cpu_core.c @@ -296,6 +296,7 @@ static const char *spapr_core_models[] =3D { =20 /* POWER9 */ "power9_v1.0", + "power9_v2.0", }; =20 static Property spapr_cpu_core_properties[] =3D { diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c index 9d45702843..6c9bfde2d2 100644 --- a/target/ppc/cpu-models.c +++ b/target/ppc/cpu-models.c @@ -756,8 +756,10 @@ POWERPC_DEF("970_v2.2", CPU_POWERPC_970_v22, 970, "PowerPC 970 v2.2") =20 - POWERPC_DEF("power9_v1.0", CPU_POWERPC_POWER9_BASE, POWER= 9, + POWERPC_DEF("power9_v1.0", CPU_POWERPC_POWER9_DD1, POWER= 9, "POWER9 v1.0") + POWERPC_DEF("power9_v2.0", CPU_POWERPC_POWER9_DD20, POWER= 9, + "POWER9 v2.0") =20 POWERPC_DEF("970fx_v1.0", CPU_POWERPC_970FX_v10, 970, "PowerPC 970FX v1.0 (G5)") @@ -945,7 +947,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] =3D { { "power8e", "power8e_v2.1" }, { "power8", "power8_v2.0" }, { "power8nvl", "power8nvl_v1.0" }, - { "power9", "power9_v1.0" }, + { "power9", "power9_v2.0" }, { "970", "970_v2.2" }, { "970fx", "970fx_v3.1" }, { "970mp", "970mp_v1.1" }, diff --git a/target/ppc/cpu-models.h b/target/ppc/cpu-models.h index 25ef372d4c..efdb2fa53c 100644 --- a/target/ppc/cpu-models.h +++ b/target/ppc/cpu-models.h @@ -372,6 +372,7 @@ enum { CPU_POWERPC_POWER8NVL_v10 =3D 0x004C0100, CPU_POWERPC_POWER9_BASE =3D 0x004E0000, CPU_POWERPC_POWER9_DD1 =3D 0x004E0100, + CPU_POWERPC_POWER9_DD20 =3D 0x004E1200, CPU_POWERPC_970_v22 =3D 0x00390202, CPU_POWERPC_970FX_v10 =3D 0x00391100, CPU_POWERPC_970FX_v20 =3D 0x003C0200, --=20 2.13.6